4 ms·
you'd think that an article about how facebook bought the erlang-implemented whatsapp because facebook messenger was less popular would bother to mention that f
by kragen 3y ago
you'd think that an article about how facebook bought the erlang-implemented whatsapp because facebook messenger was less popular would bother to mention that facebook messenger used bob ippolito's mochi media's mochiweb, an erlang web server, to handle the comet connections that allowed facebook messenger to deliver asynchronous notifications to web browsers
that is, facebook messenger was also to a significant extent written in erlang, though i don't have any insight into how much of the internal facebook messenger system was erlang-based (i imagine probably not that much)
also why does the article say
> In 2022, it received a notable update that speeded up the execution of Erlang programs significantly through the introduction of a ‘just in time’ compiler.
and not mention that the hipe jit compiler was added in 02000, 22 years earlier, with x86 support added the next year? there have literally been jit compilers for erlang since last millennium. https://www.researchgate.net/publication/225129672_The_HiPEx86_Erlang_Compiler_System_Description_and_Performance_Evaluation https://www.researchgate.net/publication/225129672_The_HiPEx...
- klelatti 3y agoThanks for the feedback. The article does say that that Facebook Messenger used Erlang. I've amended the comment on the jit compiler to say 'updated jit compiler' - my mistake.
- kragen 3y agosorry, i guess i missed that, i'm a dope
- foldr 3y ago> and not mention that the hipe jit compiler was added in 02000 It’s notable because previous JITs were not very successful at increasing performance: https://www.erlang.org/blog/the-road-to-the-jit/ https://www.erlang.org/blog/the-road-to-the-jit/
- avsm 3y agoThere was a Commercial Uses of Functional Programming workshop talk back in 2009 where the engineers behind Facebook Chat talked about their use of Erlang. http://cufp.org/2009/functional-programming-facebook.html http://cufp.org/2009/functional-programming-facebook.html The abstract covers the pros and cons behind using Erlang back then pretty well.
- kragen 3y agothis is great, thank you
- troupo 3y agoI won't be able to find the relevant link now, but the backend for Facebook Messenger was rewritten in Facebook's own network stack (mostly C++ IIRC)