News for hackers. Stuff that matters.
Re:Erlang/OTP 20.0 by dbcurtis on Wednesday June 21, 2017 @02:01PM (#14606316)
Thanks! I came here to ask the "How do I Erlang?" question. Erlang has been on my radar for a long time but I've never taken the time to dig in. 85% of my code output is obscure protocol stacks in Python+Twisted, the other 15% is real-time embedded C over an RTOS. Even if I can't use Erlang in production, I'm sure I'd find food for thought in the concepts.
Re:Erlang/OTP 20.0 by digitalzombie on Wednesday June 21, 2017 @02:10PM (#14606393)
http://learnyousomeerlang.com/

That book is a good place to start.

> Even if I can't use Erlang in production, I'm sure I'd find food for thought in the concepts.

Oh boy are you going to be in for a treat. The concept for no loop construct other than recursion and recursive thinking was worth it for the little time I dabble in Erlang.

Re:Erlang/OTP 20.0 by equalunique on Wednesday June 21, 2017 @02:14PM (#14606440)
As an erlang newcomer, the non-loop seems to be one of the most intriguing concepts, IMO.
Re:Erlang/OTP 20.0 by marianoguerra on Wednesday June 21, 2017 @02:44PM (#14606759)
You still have list comprehensions, map, filter, fold and foreach using higher order functions
Re:Erlang/OTP 20.0 by dbcurtis on Wednesday June 21, 2017 @02:50PM (#14606807)
Sounds excellent. Procedural imperative programming is the curse of computer science. Program counters be damned! Data-flow FTW.

I'm sure there's some tee-shirt art in that rant somewhere.....

Re:Erlang/OTP 20.0 by pmarreck on Wednesday June 21, 2017 @04:14PM (#14607490)
You run close to the metal, eh? Then you might find this project interesting to hack on:

http://nerves-project.org/

FWIW, the class for it was the first class to sell out for the upcoming https://elixirconf.com/.

Here's a great presentation by Garth Hitchens on Nerves https://www.youtube.com/watch?v=O39ipRsXv3Y (he uses it in production at his company, http://www.rosepoint.com/, which builds sort of vertical-market marine navigation hardware). He mentions some performance stats as well.

Re:Erlang/OTP 20.0 by dbcurtis on Thursday June 22, 2017 @02:17AM (#14610418)
Yes, thanks. Good link. I do live on the hardware/software frontier and always have.

I'm a big fan of Micropython, Python on bare metal. Noob question: What is the chance of an Erlang VM on bare metal?

Re:Erlang/OTP 20.0 by sofetch on Thursday June 22, 2017 @05:05AM (#14610963)
Pretty decent chance: https://www.grisp.org/
Re:Erlang/OTP 20.0 by pmarreck on Friday June 23, 2017 @04:28PM (#14622492)
wow, first I've heard about this. How does this differ from the Nerves project, which also boots directly into the Erlang VM?
Re:Erlang/OTP 20.0 by sofetch on Saturday June 24, 2017 @07:14AM (#14625202)
Nerves boots into the ErlangVM, but runs on a buildroot Linux. This makes it possible to run on a wide variety of hardware, but with the associated baggage.

GRiSP uses RTEMS[0] as its base which should make its performance more predictable.

[0] https://www.rtems.org/

Re:Erlang/OTP 20.0 by cat199 on Wednesday June 21, 2017 @04:20PM (#14607535)
The tutorials and core library documentation are really very clean.. You should be able to go pretty far just by installing a package and starting through the tutorials, although OP also has some links to more docs too