Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I don't know much about erlang but I used to write node.js app and I still maintain some today.

I really like the new concept brought by Node.js. However I realised that most of the time I don't need/want to write asynchronous code which I found harder to test and grow than synchronous code.

Now Mojolicious is a non-blocking IO framework that simulate blocking IO by default. This means that with Mojo you can write code either with blocking or non-blocking IO. To do that you'll have to learn using the mojo::IOLoop which is less natural than node.js to do non blocking but does the job and got easier to use with the 5.0 release.

With node.js you don't have that choice, you're stuck writing application entirely asynchronous.



Thanks. I found a 3-part tutorial at http://blogs.perl.org/users/joel_berger/mojolicious/




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: