News for hackers. Stuff that matters.
Re:PHP 7 Virtual Machine by bpicolo on Monday April 17, 2017 @07:53AM (#14130330)
Every web framework out there (express + nodejs included) will handle exceptions properly and not blow up the server on exception.
Re:PHP 7 Virtual Machine by matsemann on Monday April 17, 2017 @08:03AM (#14130370)
You're not refusing my point by insisting on adding more complexity (a huge framework), when simplicity and rapid prototyping of a small script was the goal.

This question is what I mean, extra stuff one has to keep in mind: http://stackoverflow.com/q/5999373/923847 Does it matter for a real project? Probably not, just some boilerplate. Does it matter when I want something quick up and running? Yes.

Re:PHP 7 Virtual Machine by bpicolo on Monday April 17, 2017 @08:36AM (#14130488)
> a huge framework

I contest the idea that sinatra-style frameworks are "huge".

Python + flask is about as low-overhead as one can get. No need to set up any extra (apache || nginx).

PHP's model of "just chug along returning null" by disabling most relevant errors is a massive antipattern in production code.

Re:PHP 7 Virtual Machine by innocenat on Monday April 17, 2017 @09:13AM (#14130641)
PHP has lower overhead still. You don't need to import, explicitly define route, etc. PHP Built-in dev server doesn't require anything extra either.
Re:PHP 7 Virtual Machine by bpicolo on Monday April 17, 2017 @09:22AM (#14130688)
I mean, it's "different", but I think it's a stretch to say lower. PHP overhead is suddenly a lot higher when you need a route with a dynamic ID in it if you're talking pure out-of-the-box, for example, which is a reasonably trivial use case.
Re:PHP 7 Virtual Machine by ec109685 on Monday April 17, 2017 @10:36AM (#14131151)
Express can't catch an exception thrown in a callback cleanly.
Re:PHP 7 Virtual Machine by bpicolo on Monday April 17, 2017 @11:23AM (#14131553)
It doesn't crash the server, though, is the point.
Re:PHP 7 Virtual Machine by ec109685 on Wednesday April 26, 2017 @12:03AM (#14200349)
It effectively does. All concurrent requests are halted.