Erlang NOTP: a middle way
blog.ikura.co
blog.ikura.co
Anyone knows what mystery "the final few pages in the Joe Armstrong 2nd edition Erlang book" hold?
I have version P5.0 from 2011 though, so it could be wrong altogether.
https://www.safaribooksonline.com/library/view/programming-e...
http://erlang.org/pipermail/erlang-questions/2014-February/0...
In the book Joe explains that OTP loads 67 modules and starts 25 processes at startup, which makes it slow to boot. Then he demonstrates how to create a single module providing a very minimal subset of what these 67 modules do. This single module can then be used to create scripts that start and run very quickly, since they don't require the whole OTP machinery.
Some of the functionality the module provides are rpc, stdio, and very basic process registration.
I'm not sure why one would do that as opposed to say, running things with JavaScript (ubiquity) or Ruby/Python (library support). I like Elixir, though I recognize that many of Erlang's advantages is in concurrency and control.
#!/usr/bin/env escript
%%!
main(_) ->
stuff.https://bitbucket.org/nato/notp/src/efe882a3ff3eb2e6a00d7013...