I have a vision for dynamic C++ driven websites!

C

CoreyWhite

I have a vision for webservers, like apache, which drive websites
online. Html and PHP are basically just templates that webservers
*USE*. If we want to be real geniuses then we need to code our own
dynamic website inside of the webserver, and just use basic layouts
and templates as part of an object oriented programming model. If you
just strip all of the colors and layouts from the google website, I
believe what you are left with is hard coded C++ code that gets
injected into the layout and served directly to you individually.
Webservers already multi-task and handle indididual requests. It is
just a matter of processing power and bandwidth that allows google to
serve out so many individual requests. I mean if you think google is
coded up with php and mysql you have to be crazy!

So who is with me? We join the revolution and we launch, our own C++
website programming library, instead of just putting up another
website written in C++. Does anyone follow me here? We basically
just take Apache and make a library that allows C++ programs to work
with it that would control what kind of webpages the end users looks
at.
 
I

Ivan Marsh

I have a vision for webservers, like apache, which drive websites
online. Html and PHP are basically just templates that webservers
*USE*. If we want to be real geniuses then we need to code our own
dynamic website inside of the webserver, and just use basic layouts
and templates as part of an object oriented programming model. If you
just strip all of the colors and layouts from the google website, I
believe what you are left with is hard coded C++ code that gets
injected into the layout and served directly to you individually.

Yea... it's called CGI. I've been programming C++ backends for websites
for years.
 
G

Gianni Mariani

CoreyWhite wrote:
....
So who is with me? We join the revolution and we launch, our own C++
website programming library, instead of just putting up another
website written in C++. Does anyone follow me here? We basically
just take Apache and make a library that allows C++ programs to work
with it that would control what kind of webpages the end users looks
at.

Been there, done that.

In 2000 I wrote a front-end ASP/PHP scripting language that had embedded
C++ that compiled to DLL's. It also allowed you to dynamically load and
unload DLL's and had a debugging environment that allowed you to track
down exactly which line of code produced which output text.

I called it "CSP" - compiled server pages...

We built a template libary around it not unlike smarty.

Cut a long story short, the new management wanted everything done in
perl and killed the whole thing.

After the new management killed the company, the original founder
started up the company from the ashes and gave me permission to open
source publish all the "non proprietary" parts of the code. I still
haven't got around to doing it.

You can make C++ just as dynamic as a scripted language...
 
V

virtualadepts

The best idea I could come up with was to download a minimal httpd
webserver written in a single C++ source file from here:
http://www.muquit.com/muquit/software/mhttpd/mhttpd.html
It doesn't handle PHP yet, but that could be coded in to it later.
Once you have the bare bones of a webserver, it is just a matter of
coding that into the DLL, along with a front end to code up webpages
in cpp files. The idea is simple enough, to have a custom web
server. But getting nice minimalistic code that translates to and
from CPP, HTML, PHP, & CSS is hard. I think we would have to use the
dynamic template model. CPP functions could have all the basic
objects for templates the websites use in its memory, and know how to
modify them. With the option of writing web based scripts directly in
the CPP program. The hard part comes when you want to translate the
entire language of PHP to CPP, and translate HTML, and especially CSS
or javascript. The easy way to do it is to leave room for people to
input their own scripts into the webserver, and to look at them as
basic modifiable objects.

What was the idea behind your project? Write me an e-mail at
(e-mail address removed) if you ever catch wind of other projects out
there that can do this. I like the CGI/C++ backend idea. I'll be
looking into it today.
 
S

shimmyshack

The best idea I could come up with was to download a minimal httpd
webserver written in a single C++ source file from here:http://www.muquit.com/muquit/software/mhttpd/mhttpd.html
It doesn't handle PHP yet, but that could be coded in to it later.
Once you have the bare bones of a webserver, it is just a matter of
coding that into the DLL, along with a front end to code up webpages
in cpp files. The idea is simple enough, to have a custom web
server. But getting nice minimalistic code that translates to and
from CPP, HTML, PHP, & CSS is hard. I think we would have to use the
dynamic template model. CPP functions could have all the basic
objects for templates the websites use in its memory, and know how to
modify them. With the option of writing web based scripts directly in
the CPP program. The hard part comes when you want to translate the
entire language of PHP to CPP, and translate HTML, and especially CSS
or javascript. The easy way to do it is to leave room for people to
input their own scripts into the webserver, and to look at them as
basic modifiable objects.

What was the idea behind your project? Write me an e-mail at
(e-mail address removed) if you ever catch wind of other projects out
there that can do this. I like the CGI/C++ backend idea. I'll be
looking into it today.

so corey/virtualade is just an elaborate way of getting people to
visit muquit.com, or do you just enjoy replying to your own posts?
 
V

virtualadepts

so corey/virtualade is just an elaborate way of getting people to
visit muquit.com, or do you just enjoy replying to your own posts?

LOL, funny. I'm busy ordering books on CGI & Perl now. It is hard to
find the good books though. I'm looking for something comprehensive
and written at the level experts using the language would use the book
as a reference.
 
T

Toby A Inkster

CoreyWhite said:
If we want to be real geniuses then we need to code our own
dynamic website inside of the webserver

This has been done before. On Apache it's called modules; on IIS it's
called ISAPI.
and just use basic layouts and templates as part of an object oriented
programming model.

That has also been done before -- it's called MVC.
I mean if you think google is coded up with php and mysql you have to be
crazy!

Indeed, you would have to be.
We basically just take Apache and make a library that allows C++ programs
to work with it that would control what kind of webpages the end users
looks at.

Already been done -- it's called CGIC.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Geek of ~ HTML/SQL/Perl/PHP/Python*/Apache/Linux

* = I'm getting there!
 
D

Dave

I have a vision for webservers, like apache, which drive websites
online. Html and PHP are basically just templates that webservers
*USE*. If we want to be real geniuses then we need to code our own
dynamic website inside of the webserver, and just use basic layouts
and templates as part of an object oriented programming model. If you
just strip all of the colors and layouts from the google website, I
believe what you are left with is hard coded C++ code that gets
injected into the layout and served directly to you individually.
Webservers already multi-task and handle indididual requests. It is
just a matter of processing power and bandwidth that allows google to
serve out so many individual requests. I mean if you think google is
coded up with php and mysql you have to be crazy!

So who is with me? We join the revolution and we launch, our own C++
website programming library, instead of just putting up another
website written in C++. Does anyone follow me here? We basically
just take Apache and make a library that allows C++ programs to work
with it that would control what kind of webpages the end users looks
at.

It's not what you do it with, it is what you do with it that matters.
If you have an cool web idea patent it and then script/write it in the
most appropriate language.

E.g. what happened to automated purchasing for consumers?
 
B

Becky & Bruce

93,

----- Original Message -----
From: <[email protected]>
Newsgroups:
alt.magick,alt.religion.wicca,alt.native,comp.lang.c++,comp.lang.php
Sent: Friday, March 30, 2007 11:26 AM
Subject: Re: I have a vision for dynamic C++ driven websites!

LOL, funny. I'm busy ordering books on CGI & Perl now. It is hard to
find the good books though. I'm looking for something comprehensive
and written at the level experts using the language would use the book
as a reference.

Oh my, but don't we have a narrow, narrow viewpoint (not Corey). Magick is
the art of causing change in conformance with will. That could EASILY
describe programming eh ? I mean, I mean, Corey may be trying to, doing,
and exposing a great truth here eh ? I have followed his posts dillegently
for quite a while, being a life long software developer (I started in grade
school, began in ernest in Junior High, and haven't stopped). Note, his
posts aren't labled as "off topic" ... because they are not off topic !!!
Unfortunately my experience is with C++, but my passion is Prolog, Lisp,
self modifying decision trees. So unless you want your web server to ask if
you want to play a game I'm not the man. Side's, I'm on permanant
disability ;->.

Bruce
http://bellsouthpwp.net/T/i/Tiger93/dusktodawn.htm
93 93/93
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,294
Messages
2,571,511
Members
48,210
Latest member
KimWhittin

Latest Threads

Top