On Tue, May 10, 2011 at 8:15 AM, Hannes Wallnoefer <[email protected]> wrote:
> As to matching the performance of V8, don't get your hopes too hight.
> V8 uses some optimizations that probably can't be replicated on the
> JVM. For example, regular expressions are compiled to machine code as
> well. We have an experimental branch for using JRuby's Joni as regexp
> engine, and it's still 5 or 6 x slower than V8.

As Tom mentioned, the creator of Joni has promised us a JVM
bytecode-generating update for a couple years now. Perhaps it's time
to collect :)

> Of course the other side of the coin is that V8 was made for the
> client from the ground up, and the Node.js event loop actually does
> not behave that well under high concurrency (not even for the use case
> it is supposedly written for), so Java usually beats Node handsomely
> in server benchmarks, even with Rhino involved.
>
> http://amix.dk/blog/post/19577
> http://hns.github.com/2010/09/29/benchmark2.html

Very cool. Yeah, I really just want to see the node.js stuff available
for JS on JVM, since really the piece that node.js does well is making
event-driven request processing really nice. That's easy to mimic.

> In the end, it's true what somebody wrote on twitter today: The Node
> hype is not so much about performance. Or maybe it's more about
> perceived speed and leanness than measurable performance. It just has
> that "lifestyle" aspect to it I guess.

That's probably true, but I think we've managed to bring Ruby users a
similar-feeling "lifestyle" with JRuby. It's a damned hard thing to
do, but it is possible to make the JVM feel like a friendly tool for
small servers, client-side apps, and even for CLI use if you work hard
enough. And we've worked pretty hard to make the JRuby experience feel
the same as the Ruby experience, despite the JVM resisting our efforts
:)

I think it's totally possible to make a JS/Node-like environment on
JVM feel as lean, fast, and hipster-cool as V8 + node.js.

- Charlie

-- 
You received this message because you are subscribed to the Google Groups "JVM 
Languages" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jvm-languages?hl=en.

Reply via email to