Is there any real reason why no one makes there dynamic webpages in say c++ rather than interpreted languages like php that are many times slower?
I can see several reasons why I wouldn't mind my entire site being just one dll, with each page being represented by a function or something.
- Varibles can be shared between page requests, and even across multiple different pages, eg a list of all the users currently logged in
- Multithreading would be easier. Eg allowing multiple pages to be requested at once, since everything is running in the same program, varibles can be shared easily (eg lock handles) (does php even support doing this at all?).
- Resources can be pooled far more easily, eg db connections which under php are oftern created for every page request
And if there isn't a real reason why not, then how could I go about doing it?