News for hackers. Stuff that matters.
[deleted]
Re:Announcing Topaz: A New Ruby by fijal on Wednesday February 06, 2013 @11:50AM (#5177408)
the idea was to implement enough of "hard stuff". So it should not change. but hello world is not a good idea (this one also might actually change due to library loading, but please don't benchmark it like that)
Re:Announcing Topaz: A New Ruby by jtanderson on Wednesday February 06, 2013 @11:53AM (#5177426)
Makes sense. I wasn't claiming any "absolute" benchmark, of course, just pointing out that real benchmarks should wait until the implementation is more complete.
Re:Announcing Topaz: A New Ruby by fijal on Wednesday February 06, 2013 @11:57AM (#5177446)
in other words - if you can run it today, you should believe numbers. if you cannot run it, then well, you cannot.
Re:Announcing Topaz: A New Ruby by stcredzero on Wednesday February 06, 2013 @11:56AM (#5177443)
> the lack of many core features probably helps out a lot atm.

I don't understand why the lack of features would affect the time of "hello world."

Re:Announcing Topaz: A New Ruby by ephemeralgomi on Wednesday February 06, 2013 @11:59AM (#5177457)
Loading the standard library takes time. With a smaller (underimplemented) standard library, you can get to the user's code much more quickly.
Re:Announcing Topaz: A New Ruby by stcredzero on Wednesday February 06, 2013 @02:57PM (#5178430)
Perl 5 had an in-memory footprint of about 768k. VisualWorks Smalltalk had a standard one of 12MB, yet loaded and started it faster than Perl did with 768k. If just your standard library takes very long at all to load, something needs attention.
Re:Announcing Topaz: A New Ruby by wmf on Wednesday February 06, 2013 @06:33PM (#5179615)
Yeah, a lot of language runtimes seem to not have discovered mmap.
Re:Announcing Topaz: A New Ruby by huherto on Wednesday February 06, 2013 @12:39PM (#5177709)
Exactly.

time echo "hello world" hello world

  real    0m0.000s
  user    0m0.000s
  sys     0m0.000s
Re:Announcing Topaz: A New Ruby by sciurus on Wednesday February 06, 2013 @06:11PM (#5179516)

  $ type /bin/echo
  /bin/echo is /bin/echo
  $ time /bin/echo "hello world"
  hello world

  real	0m0.009s
  user	0m0.002s
  sys	0m0.004s

  $ type echo
  echo is a shell builtin
  $ time echo "hello world"
  hello world

  real	0m0.000s
  user	0m0.000s
  sys	0m0.000s