Re: Apache Pascal Module



Olivier Pons wrote:
I've just finished an Apache module.
It's blazingly fast (278 times faster than a php equivalent, to be precise).

Could it be a lot of work to :
- take a Pascal file written with specific functions ;
- convert it to a C-file module that could be compiled then linked with Apache ?

This is a place where, except C files, *nothing* has been done.
There are more than 60 % of the www servers that are based on an Apache solution, and still *nothing* has been done to help develop Apache modules really quickly. What took me 3 weeks to develop may have taken 1 week in Pascal, and I'm pretty sure it would be more maintanable. I hope I'll be able to read and understand what I've done in, say 6 months, even though I've put a lot of comments. Pascal files are easier to read and to write.


Oliver,

You can build Apache DSO modules with Delphi, there is a Apache 2 unit available somewhere (power toys or something) I used to use CrossKylix to compile them in Delphi 2006 and deploy to Linux.

I have since converted them all to PHP using Prado. While the DSOs where faster it was not orders of magnitude faster as seen by the end user and the PHP versions are MUCH easier to maintain and update.

later,

Tony
.



Relevant Pages