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

Why is this a surprise to anyone? And Nginx to memcache will be even faster... and serving static content even faster...

You're adding a tremendous amount of overhead with any high level language stuck in between the connect and the data source.

This is about as basic as it gets, not worthy of #1 item on hacker news.



The idea that you might not need the high-level language in the middle at all is interesting in itself. At least, it is to me. I've not seen it before.


This is working backwards. You do realize that before PHP and higher level languages this is how things generally worked to begin with (server modules) as opposed to now (higher level languages).

I still don't understand why this is on hacker news, let alone the top of the list.. seems to be about the most obvious item of all..

disappointing


Isn't this still how things work if you want to do anything easily with Microsoft's IIS?


If you're also using Microsoft SQL Server, it essentially has this capability (using XML not JSON): http://msdn.microsoft.com/en-US/library/ms188266(v=SQL.90).a...


Yes, you can write an ISAPI module if you want as little as possible between your program and IIS, but I wouldn't label that as "easily".

And I don't see why you would bother, ASP.Net is compiled, it's not exactly a performance hog, unlike PHP.


I haven't used them, but there are a variety of PHP compilers, like phc or Facebook's HipHop. I hear that they can really speed up PHP code.


I can't really tell from the phc page, but HipHop at least doesn't "speed up PHP code". It converts the code from PHP to C++. That isn't speeding up PHP, that's unraveling the PHP and respinning it as C++.


It's still speeding up PHP by compiling it, it's just using C++ as an (extra) intermediate representation.


You haven't seen PHP or Python between MySQL and the webserver? I must be missing your point.


The reverse - I can't remember having seen a database spew JSON from port 80 before without an intervening HLL.


That makes more sense. Thanks for clarifying.


You're kidding me right? I'm off to re-write my entire app as a stored proc ;)

You are right of course. But what would be nice would be to replace part of a static page with the result of a piece of SQL. To combine ESIs with MySql so that you can serve static files and still be able to add things like watermarks using a MySql lookup based on a session cookie.




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

Search: