News for hackers. Stuff that matters.
Re:Haskell is 4.2x as good as Erlang at lightweight concurre... by jrockway on Thursday August 20, 2009 @05:17PM (#776301)
Also worth nothing that what GHC does in 8 seconds, Ruby does in 48 minutes. This is why I always chuckle when people get super-excited about multi-core concurrency in langauges like Perl, Python, and Ruby -- at best, you will make your app 4-8x faster. But by moving to a different language, you can make your app 360x faster.

Something to keep in mind.

Re:Haskell is 4.2x as good as Erlang at lightweight concurre... by thenduks on Thursday August 20, 2009 @05:43PM (#776390)
I see your point but unfortunately using Haskell doesn't magically also make your database (/etc other bottlenecks) 360x faster, so... Ruby it is :)
Re:Haskell is 4.2x as good as Erlang at lightweight concurre... by jrockway on Thursday August 20, 2009 @08:59PM (#776773)
I have written a lot of database-driven web applications in dynamic languages, and the database has never been the bottleneck. It has always been in the application code.

(Actually, not true, when I worked for $LARGE_ADVERTISING_COMPANY, we checked the state of the session in the database for every request. This put an enormous load on the database, and made every page load take at least two seconds waiting for locks. No, I did not design any part of this system, nor was I allowed to fix it; so it doesn't count :)

Re:Haskell is 4.2x as good as Erlang at lightweight concurre... by jamesbritt on Thursday August 20, 2009 @06:34PM (#776510)
And you can call Haskell from Ruby

http://github.com/mwotton/Hubris/tree/master

Re:Haskell is 4.2x as good as Erlang at lightweight concurre... by neilc on Thursday August 20, 2009 @05:22PM (#776317)
But by moving to a different language, you can make your app 360x faster.

If your "app" is a toy microbenchmark with an under-specified benchmarking methodology, then sure. You could also make your "app" 360x faster by switching to a userspace thread implementation.

Re:Haskell is 4.2x as good as Erlang at lightweight concurre... by jrockway on Thursday August 20, 2009 @05:37PM (#776362)
Lightweight threads are a much better fit for many applications. If you are writing one of those applications, this benchmark shows that you can get great performance using Haskell... with only a few lines of code.

I am sure C would do better with a proper userspace thread library, but nobody has submitted such a program to the shootout yet. "If it's so easy..."