Compiled Home Pages is a server side web programming language.
The main goal is to make a language that's as easy to use as PHP, but runs as fast as C++.
- Trying to have syntax similar to PHP.
- Trying to be as easy as PHP.
- Trying to be able to make web page changes and test them as fast as PHP.
- Trying to be as fast as C++.
Here's a simple example of a chp web page:
<html><head><title>Example</title></head>
<body>
5 + 3 = <?chp echo(5+3); ?><br />
8 + 4 = <?chp
int $a = 8;
int $b = 4;
echo($a + $b);
?></body></html>
The chp tags work similar to
PHP.
Differences:
- Instead of pages being interpreted, they're compiled.
- Instead of the web server communicating to the PHP engine using a socket,
the web site is compiled into a DLL and linked at run time with the web server.
- All variables are static typed instead of dynamic typed.
- Some variables are designed to match the specs of
mysql C API binding.
- After a change to a web page is saved, you have to compile it and put it on the server. But this step usually takes less than 5 seconds.