<div dir="ltr">Great stuff - will tweet</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jun 13, 2014 at 5:58 PM, Gordon Guthrie <span dir="ltr"><<a href="mailto:gordon@vixo.com" target="_blank">gordon@vixo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have taken a bit more radical approach.<br>
<br>
People traditionally comparing Erlang to other languages - and Erlang<br>
loses because of its weak spot - it has a prolog syntax in a world<br>
dominated by c-like syntaxes.<br>
<br>
I decided to compare Erlang/OTP with other ways of building<br>
multi-machine clusters.<br>
<br>
Here's my hell world attempt:<br>
<a href="http://erlangotp.com" target="_blank">http://erlangotp.com</a><br>
<br>
Thoughts comments, welcome<br>
<br>
Gordon<br>
<div class=""><br>
On 12/06/2014, Mark Allen <<a href="mailto:mallen@alertlogic.com">mallen@alertlogic.com</a>> wrote:<br>
> I started <a href="http://introducingerlang.com" target="_blank">http://introducingerlang.com</a> right after EF2014 in San Francisco.<br>
> It's intended to be a really short and simple introduction to Erlang for<br>
> people who know how to program in other languages but don't know Erlang. I<br>
> have a mostly documented OTP application (uses Gordon Guthrie's "literate<br>
> Erlang" markup) with a supervisor, gen_server and application modules here:<br>
><br>
> <a href="https://github.com/introducingerlang/todolist/tree/master/src_md" target="_blank">https://github.com/introducingerlang/todolist/tree/master/src_md</a><br>
><br>
> I would welcome any help finishing the documentation of the modules in that<br>
> repo or extending/correcting/fixing the web content that's already there. I<br>
> can add you directly to the github organization.<br>
><br>
> Thanks,<br>
><br>
> Mark<br>
><br>
</div>> From: Joe Armstrong <<a href="mailto:erlang@gmail.com">erlang@gmail.com</a><mailto:<a href="mailto:erlang@gmail.com">erlang@gmail.com</a>>><br>
<div class="">> Date: Thursday, June 12, 2014 9:54 AM<br>
> To: Erlang<br>
</div>> <<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><mailto:<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a>>><br>
<div class="HOEnZb"><div class="h5">> Subject: [erlang-questions] Beginners tutorials<br>
><br>
> Re: Garrett's great talk at EUC2014<br>
><br>
> The point has been made many times before that<br>
> "There are no easy Erlang getting started guides"<br>
><br>
> So I thought I'd take a look at Node.js.<br>
><br>
> The node js home page (node.js) starts with a simple example<br>
><br>
><br>
> <quote><br>
> var http = require('http');<br>
> http.createServer(function (req, res) {<br>
> res.writeHead(200, {'Content-Type': 'text/plain'});<br>
> res.end('Hello World\n');<br>
> }).listen(1337, '127.0.0.1');<br>
> console.log('Server running at <a href="http://127.0.0.1:1337/'" target="_blank">http://127.0.0.1:1337/'</a>);<br>
><br>
> To run the server, put the code into a file example.js and execute it with<br>
> the node program from the command line:<br>
><br>
> % node example.js<br>
> Server running at <a href="http://127.0.0.1:1337/" target="_blank">http://127.0.0.1:1337/</a><br>
> </endquote><br>
><br>
> It's pretty easy to knock up an almost identical example in Erlang - using<br>
> any of the well-known web<br>
> servers in the background, unfortunately this has not been done, or if it<br>
> has been done<br>
> it's not easy to find the examples (or if there are examples I can't find<br>
> them)<br>
><br>
> I was vaguely thinking of making some examples that are more-or-less<br>
> isomorphic to the<br>
> node.js examples and then applying small transformation steps to turn then<br>
> from idiomatic node.js code to idiomatic Erlang code.<br>
><br>
> Although I could find a simple hello world example in node.js I could not<br>
> find a tutorial that<br>
> started with a simple example and then built on it in very small steps<br>
> adding routing, authentication,<br>
> database access and so on.<br>
><br>
> Does anybody know of some examples of node.js that could be used for this.<br>
><br>
> Cheers<br>
><br>
> /Joe<br>
><br>
><br>
<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
Gordon Guthrie<br>
CEO hypernumbers<br>
<br>
<a href="http://hypernumbers.com" target="_blank">http://hypernumbers.com</a><br>
t: hypernumbers<br>
<a href="tel:%2B44%207776%20251669" value="+447776251669">+44 7776 251669</a><br>
</font></span></blockquote></div><br></div>