My Erlang isn't bad, but it would be madness for me to suggest it to a client. What happens if I get run over by a bus tomorrow, or we need to bring extra coders on board?
Erlang, for all its many, many favours, is just not appropriate for the average-client-on-the-street.
I realise that you didn't use Erlang as an example, but there's a reason why there's so much work for competent PHP programmers, and it's not stupidity.
Not sure how node.js can be 'simpler' though, it's pretty much coding in pure JavaScript which is a simple language itself?
rows = db.select('users')
instead of callback spaghetti monster (CSM) db.select('users',function(data){/*callabck*/},function(error){/*error*/})
I guarantee you 90% of (CSM) could be avoided if node wasn't so anal about everything being async.90% of the time I need the template when I read it
view = template('index.html')
90% of the time I need the file I am reading right away text = getFile('setup.yaml')
90% of the time I need the content of a url right there html = webget('google.com')
So why design a language for the 10% of the use cases?Fork it, drop the (CSM) stuff and conquer that 90% who would like to use JS on the server.
IO is slow, Node is evented IO, the requests come in and the requests (to the database) go out, the data comes in and the result is rendered to the client. Node deals with requests.
But let's say it was made to work like you request, and the docs were changed to reflect that. People learn they could throw some code in a file and call it node.js. (I've done that, using a fastcgi server implementation and adding a hander for it on a bluehost account.)
So now you have PHP but with Javascript as it's syntax, your developers build applications the way they do in PHP, you call Node slow and a thread like this launches on HN saying how bad the language is and how somebody should fix that.
So yes, simplify JS on the server to act like PHP and use node for servers and other stuff. Name it differently if you want so they don't call node slow. V8CGI is the closest to a deliciously simple JS implementation on the server I've seen. Take a look at it for some ideas.
Astronauts need to come down to earth and help stupid people build better blinking tags for their lolcats, not push them to write lolcats in monads with concurrency.
So, whether astronauts like it or not, a simpler un-evented node.js would sell like hotcakes (because it is js, not because it is evented), while a cleaner, facelifted php will sell even more.
Fork php, use + for string concatenating, . for class members, fix haystacks and needles, add [1,2,3] and {a:1,b:2} as simple data structs, that's all lolcats need.
Learn to serve your customers, even if they are stupid.