News for hackers. Stuff that matters.
Re:Erlang vs. Stackless Python: a first benchmark by tdavis on Thursday December 25, 2008 @08:22PM (#409876)
I don't think Stackless is nearly as well-known as it should be. It has a solid value proposition and is blazing fast in my experience as well.
Re:Erlang vs. Stackless Python: a first benchmark by inklesspen on Friday December 26, 2008 @03:48PM (#410393)
Stackless is missing some important parts. I've spent a great deal of time working with it over the past few months, and there's no good SSL socket support. The built-in socket module will block the entire process (all tasklets), and while drop-in replacements exist, they either don't work with SSL, are buggy, or both.

Stackless also lacks Erlang's transparent support for multi-process and multi-machine execution, though I talked to a guy who's working on adding that for his Master's degree.

Re:Erlang vs. Stackless Python: a first benchmark by tdavis on Friday December 26, 2008 @05:59PM (#410518)
I'll be the first to admit that http socket issues exist and drop-in replacements are indeed often buggy. That being said, this wouldn't be a huge issue to overcome were Stackless given more TLC. Regardless, it has many other valuable uses.
Re:Erlang vs. Stackless Python: a first benchmark by amix on Thursday December 25, 2008 @08:29PM (#409882)
For most things language performance is just a constant - the really hard issue is making something distributed and it's really here that Erlang shines. Being a Python programmer I know that creating a distributed application in Python is far from simple - while it's almost a trivial task in Erlang.
Re:Erlang vs. Stackless Python: a first benchmark by graemep on Thursday December 25, 2008 @11:40PM (#409954)
I was wondering about this. Is it really comparing like with like? I do not know Erlang, but I thought it had a lot of overhead from being designed for distributed apps etc.
Re:Erlang vs. Stackless Python: a first benchmark by shutter on Friday December 26, 2008 @12:30AM (#409987)
A better comparison would be with Multiprocessing, or Eventlet/Spawning.
Re:Erlang vs. Stackless Python: a first benchmark by bitdiddle on Friday December 26, 2008 @08:47AM (#410154)
It's certainly important to know where Erlang doesn't perform so well. Project Euler ( http://projecteuler.net/ ) is also good for exploring the strengths of a given lanaguage. In terms of building robust and scalable distributed systems it cannot be touched. This stems for it's motivating use case of telephony. I'm not sure about Python but I know Haskell has been used largely in academic circles and hasn't had the same amount of attention paid to robustness. Joe Armstrong wrote a very good paper on the history of Erlang's development ( http://lambda-the-ultimate.org/node/2811 ).
Re:Erlang vs. Stackless Python: a first benchmark by silentbicycle on Friday December 26, 2008 @09:30AM (#410171)
Sounds like the thread-ring benchmark (http://shootout.alioth.debian.org/u32/benchmark.php?test=thr...) at the shootout. It benchmarks an Erlang program that isn't the first the author ever wrote, so its performance is probably more representative.
Re:Erlang vs. Stackless Python: a first benchmark by igouy on Saturday December 27, 2008 @12:32PM (#411147)
Yep - and both derive from this 10 year old measurement of context switching:

"Performance Measurements of Threads in Java and Processes in Erlang" http://www.sics.se/~joe/ericsson/du98024.html

Re:Erlang vs. Stackless Python: a first benchmark by rw on Thursday December 25, 2008 @06:37PM (#409837)
Article is from Summer 2007.
Re:Erlang vs. Stackless Python: a first benchmark by chaostheory on Friday December 26, 2008 @07:05PM (#410575)
as was already pointed out, this isn't a very accurate benchmark; it wasn't tested on a multi-core/processor machine, nor more importantly was it tested on a cluster of machines.
Re:Erlang vs. Stackless Python: a first benchmark by unrealwh on Thursday December 25, 2008 @07:15PM (#409855)
not surprising that python is competitive...afaik haskell also crushes erlang in lightweight threading benchmarks (supposedly the core strength of erlang).
Re:Erlang vs. Stackless Python: a first benchmark by jbjohns on Friday December 26, 2008 @05:28AM (#410096)
Have a link for this? But lightweight threading isn't all that Erlang brings to the table. It comes with an entire library designed to create extremely fault tolerant, live-upgradable, extremely concurrent systems.

Getting lightweight threading of the same speed or faster is good, but it's less than 1/3 of the equation.

Re:Erlang vs. Stackless Python: a first benchmark by njharman on Friday December 26, 2008 @02:47PM (#410358)
Fault-tolerance (uptime) is Erlang's core strength. Concurrency is just a pleasant and currently trendy side benefit.
Re:Erlang vs. Stackless Python: a first benchmark by igouy on Saturday December 27, 2008 @12:26PM (#411143)
> afaik haskell also crushes erlang in lightweight threading

For some definition of "crushes"

http://shootout.alioth.debian.org/u32/benchmark.php?test=thr...

But with quad-core Erlang processes float between cores slowing things down for sequential programs

http://shootout.alioth.debian.org/u32q/benchmark.php?test=th...

Re:Erlang vs. Stackless Python: a first benchmark by newt0311 on Thursday December 25, 2008 @07:24PM (#409857)
Nice article. Anybody want to try this with the new CPython multiprocess module?