If I want real speed for a web application. What webserver/language should I use?
This is a question I've been asking myself lately, and I found that there is no real good solution currently available.
Sure, PHP/ASP/JSP/Whatever with MySQL/SQLite/OtherDB would probably work in most cases, but I would like to have some real powerful kick ass speed.
What I would like to have is C++ used like a scripting language, and I've been thinking that this can't be that impossible. Can it?
What I would like to have:
- A webserver that compiles the C++-files when accessed just like a scripting language. It should check for file-changes and compile when appropriate.
- The abillity to create in memory "application"-objects that also can run things in threads. What I mean is that if I for instance create the "application" "http://myserver/forum", there could be some "void main()" in the "forum"-folder that is executed when the webserver starts. This "void main()" could then create threads or do whatever it would like in the background. If C++-files would change related to the "application", then it should run the applications appropriate destructors, recompile, and start the "application" again.
- Preferably it should be build using MVC.
- Everything should be build using a object oriented interface. Communication between "pages" and the "application" and the webserver should all be done using pure virtual interfaces plugins just like we do in mC2 . This would make everything alot more clean.
If something like this existed you would be able to build some really powerful webapps. Caching the most important objects in the "application"-part, and accessing the rest from the database.
Sure, the developer would still be responsible for not overloading memory in the "application"-part, but C++-developers are used to this. It would probably help with some kind of help-library that implements caching-vectors that removes objects that are rarely used in the "application"
so, am I the only one that's been thinking like this or is my googling just bad?