5 ms·
I got to about 500K processes on Erlang's VM on an i7 with lots of memory. These people people got up to 2M concurrent TCP connections http://blog.whatsapp.co
by rdtsc 13y ago
I got to about 500K processes on Erlang's VM on an i7 with lots of memory.
These people people got up to 2M concurrent TCP connections
http://blog.whatsapp.com/index.php/2012/01/1-million-is-so-2011/ http://blog.whatsapp.com/index.php/2012/01/1-million-is-so-2...
And on top of it, it is using isolated heaps. That is beautiful I think. Completely concurrent GC is beautiful.
I know Erlang syntax is not to for everyone's taste (I do like it though). There is also Elixir (http://elixir-lang.org/ http://elixir-lang.org/). But the underlying BEAM VM is an awesome piece of technology.
> The thought was to have a billion threads on a SPARCStation 10
There are some green-thread C libraries I've been playing with, like Protothreads ( http://dunkels.com/adam/pt/index.html http://dunkels.com/adam/pt/index.html ) and libconcurrency ( https://code.google.com/p/libconcurrency/ https://code.google.com/p/libconcurrency/ ) I think they use setjump/longjump trick. Some use setcontext()/getcontext() POSIX call.
I still like Erlang VM best.
- HowardMei 13y agoErlang is really good, especially for engineers with hardware background, who may find FP & Message Passing are more intuitive than OOP & Context Switching. But it's quite difficult to hire.
- reginaldjcooper 13y agoDifficult as in you are looking for Erlangers but cannot find them? I haven't seen many postings looking for Erlang programmers.
- yapcguy 13y agoSeems to be the same thing with Haskell and other languages, including Golang, that many groups on HN are passionate about. There aren't many people hiring for skills in these languages. Some start-up founders I know who have built their company on Python and Javascript, when I ask them if they have looked at Golang, they reply 'What's that?'.
- skriticos2 13y agoI'd be happy if someone would hire Python. Most of it is Java, PHP and C# around here. So sad.
- wtracy 13y agoWhere's "here"? I constantly get emails from recruiters looking for Python devs. (I'm in the SF area, but a lot of the ads I see are for New York and parts of the Midwest.)
- yen223 13y agoQuite frankly, "here" could be anywhere that's not near the Bay Area.
- skriticos2 13y agoI think so too. I'm located in Germany, but I think this situation applies to most all of the word except the west coast of the U.S.
- cmccabe 13y agoPython is 22 years old, Golang is 4 years old. Give it time.
- RussianCow 13y agoHaskell is even older, but you don't see many job ads for it. I don't think it has much to do with the age of the language. Node.js is an example of a very young platform that many, many startups are using. (Although, to be fair, JavaScript has been around for quite some time now.)
- cmccabe 13y agoIn order for a programming language to get used: * it has to fill a need people have. * people have to know about it. * it has to have a mature implementation. Age helps with point #2 and #3. With regard to JavaScript, the web browser pretty much forces you to use it. So it doesn't really matter how good or bad it is, it will have adoption.
- mpweiher 13y ago"FP & Message Passing are more intuitive than OOP & Context Switching." Huh? OOP & Message Passing! http://lists.squeakfoundation.org/pipermail/squeak-dev/1998-October/017019.html http://lists.squeakfoundation.org/pipermail/squeak-dev/1998-...
- CmonDev 13y agoSpace pilots and nuclear plant engineers are hard to hire because you need hardware to train. Hiring software developers just requires willingness to pay more money than market.
- jzelinskie 13y agoAfter you've been writing a bit of Erlang, you find yourself always putting a "." at the end of lines in other language's interpreters. I actually really like Erlang and would love to get more familiar with it, but there are very few small projects that are suited to Erlang's domain.
- SkyMarshal 13y agoOne option is to port your personal site/blog to Zotonic CMS and play around with that.
- lucaspiller 13y agoOr your favourite library from another language, Erlang is quite lacking in that regard. I had a go at porting RSpec: https://github.com/lucaspiller/espec https://github.com/lucaspiller/espec
- imperialWicket 13y agoChicagoBoss offers a pretty low barrier for entry as well.
- pron 13y agoBTW, the only reason the demo runs 10K or a few 10Ks of actors is because this simulation is very much CPU-bound, and no matter how you schedule tasks – you can't create more CPU power in software. In less computation intensive scenarios, Quasar supports millions of actors.
- kerneis 13y ago> There are some green-thread C libraries Shameless plug for CPC, a compiler translating green-threads to event-driven code: http://gabriel.kerneis.info/software/cpc/ http://gabriel.kerneis.info/software/cpc/ Used to compile coroutines in QEMU during the latest GSoC: http://gabriel.kerneis.info/research/files/qemu-cpc.pdf http://gabriel.kerneis.info/research/files/qemu-cpc.pdf
- reginaldjcooper 13y agoCurse you; you added five papers to my already-full reading list :)
- knewter 13y agoI love Erlang. I've been learning elixir and am recording screen casts at http://elixirsips.com http://elixirsips.com. it's so good for concurrency.