News for hackers. Stuff that matters.
Re:My Road to Erlang (2008) by Karunamon on Saturday May 22, 2021 @07:49PM (#27251265)
Re: your edit, I've heard people say similar things about Lisp. I wonder if that applies to functional languages in general?
Re:My Road to Erlang (2008) by cyberpunk on Saturday May 22, 2021 @08:13PM (#27251386)
I think probably yes. In Erlang world though you get so much for free with beam that it changes your worldview a bit. Say you're writing, I dunno, a spring boot api to expose some db records as a service and suddenly this api is getting hot on the network... Now you need more than one of them, so suddenly state comes into play, maybe sessions, and so on.. With Erlang, you can take your single node app and reasonably trivially make it run on 30 nodes.. There are gotchas, of course, but the quote is quite good: "Any sufficiently complicated server backend contains an ad hoc, informally-specified, bug-ridden, slow implementation of half of Erlang."
Re:My Road to Erlang (2008) by jolux on Saturday May 22, 2021 @09:30PM (#27251725)
I think the key insight in Erlang/OTP is that it should be easy to make any part of your application asynchronous and highly concurrent. Not only can you spread an application trivially across many servers, but even within a single server boundary you can take a GenServer and make as many copies of it as you want. you can break up any application into a set of processes communicating with each other asynchronously with not very much effort, which can make breaking it up and scaling it onto more servers easier when you eventually need to. OTP makes highly concurrent applications a joy to write.
Re:My Road to Erlang (2008) by jolux on Saturday May 22, 2021 @09:35PM (#27251739)
It applies to any language that differs significantly from the imperative programming model that many programmers are weaned on. You might try the book Seven Languages in Seven Weeks, or offhand I can recommend Racket, Erlang/Elixir, Smalltalk, APL, and Haskell or OCaml.
Re:My Road to Erlang (2008) by b3morales on Sunday May 23, 2021 @01:30PM (#27256815)
Prolog might also belong on that list as another "weird" paradigm to explore.
Re:My Road to Erlang (2008) by jolux on Sunday May 23, 2021 @03:24PM (#27257761)
And Erlang syntax is very Prolog-y.
Re:My Road to Erlang (2008) by mononcqc on Saturday May 22, 2021 @07:55PM (#27251302)
Generally this is going to be true of newer experiences that offer a shift in perspectives.
Re:My Road to Erlang (2008) by LAC-Tech on Saturday May 22, 2021 @08:36PM (#27251490)
I'd say in 2021 it applies to anything except Javascript, C#, Java, Python and Go.
Re:My Road to Erlang (2008) by ollran on Sunday May 23, 2021 @09:57AM (#27255036)
I think it applies to almost any programming language and certainly also to every programming paradigm.