4 ms·
>Stateless programs; No side effects Which is not all it's touted up to be. >Concurrency; Plays extremely nice with the rising multi-core technology Nice, bu
by coldtea 11y ago
>Stateless programs; No side effects
Which is not all it's touted up to be.
>Concurrency; Plays extremely nice with the rising multi-core technology
Nice, but not that nice. Don't expect any significant speedup for the most common kinds of programs.
>Programs are usually shorter and in some cases easier to read
For some people they are harder to read. As for shorter, Python can be pretty terse too, as can lots of other languages.
>Productivity goes up (example: Erlang)
Anecdotal. In the real world, most systems in production (including at NASA and the most critical environments) are made with imperative/oo/etc programming, which must count for something. For every WhatsApp there are 10,000 stories of such programs.
>Imperative programming is a very old paradigm (as far as I know)
Functional programming is 5+ decades old too. And parts of math are even older, but we're still keeping them...
>and possibly not suitable for the 21st century
Citation needed.
- im_down_w_otp 11y agoThere are not 10,000 other WhatsApps, FWIW. By any useful measure. User base, concurrent active sessions, both of those relative to size of dev team and/or infrastructure footprint, acquisition price, user growth rate, etc. Though WhatsApp's success was predicated on dogged adherence to core principles of understanding their problem extremely well, selecting the right tools to solve that problem, and do as much as possible with as little as possible. Erlang was just one part of that. Choosing FreeBSD, not hiring craploads of engineers just for the sake of hiring, keeping as little intermediate state as possible, etc. we're all contributors to their success story. But if you have a high-concurrency, small-packet, low-latency, supreme-uptime message processing shaped problem it's pretty dang hard to do better than Erlang as a foundational choice.
- coldtea 11y ago>There are not 10,000 other WhatsApps, FWIW No 10,000 other WhatsApps. 10,000 success stories of programs doing what they need to do with a small team behind them and reliability. It's about the technical/project success aspects, not about the monetary side of the equation -- not even about user count. After all Yahoo (back in the day) and Facebook had a much higher user count while being written in PHP.
- tome 11y ago> >Stateless programs; No side effects > Which is not all it's touted up to be. It's not even true!