News for hackers. Stuff that matters.
Re:Show HN: Nodal. Next-Generation Node.js Server and Framework by wslh on Wednesday January 06, 2016 @06:54AM (#10850010)
I don't want to restart a flame war but after choosing NodeJS for some projects based on specific modules not available in other languages (e.g: bitcore*) I am moving away or leaving it for very specific tasks. The code we wrote more than one year ago making an SQL transaction in 8 statements with async is difficult to understand and have some implicit stuff that you need to take into account. The other problem is not having a multithreading environment (in the official release) because you may want to respond to new tasks instead of blocking the event loop. I have seen timeouts because of this. Even if the recommendation is to do simple tasks, you can't enforce this when using hundreds of third party modules.
Re:Show HN: Nodal. Next-Generation Node.js Server and Framework by Wintamute on Wednesday January 06, 2016 @07:06AM (#10850041)
With the up-most respect, and we've all been there, but I would submit that maybe you just didn't write your Node code very well? Written properly, async code shouldn't be hard to understand. And there are tons of ways to spin up a new process or worker to execute a task without blocking the event loop of the main app. I mean, I could go away and use my limited experience to write a small project in Python to do a specific task ... but if it turned out to have deficiencies I wouldn't blame Python, rather my limited experience. Next time you need something written in Node, why not hire a experienced Node dev? And what is this recommendation to do simple tasks? I never heard that :)
Re:Show HN: Nodal. Next-Generation Node.js Server and Framework by rco8786 on Wednesday January 06, 2016 @09:34AM (#10850650)
How did you manage to block the event loop? For all of JS's warts, the language makes it basically impossible to do this.
Re:Show HN: Nodal. Next-Generation Node.js Server and Framework by wslh on Wednesday January 06, 2016 @11:20AM (#10851332)
If you use a module which uses longer cryptographic operations it is possible.
Re:Show HN: Nodal. Next-Generation Node.js Server and Framework by rco8786 on Wednesday January 06, 2016 @12:55PM (#10852139)
OP said he was making a SQL transaction.
Re:Show HN: Nodal. Next-Generation Node.js Server and Framework by wslh on Wednesday January 06, 2016 @09:14PM (#10855516)
Using bitcore*...