[fpc-pascal] CGI (with Free Pascal) vs PHP

2007-03-06 Thread Graeme Geldenhuys
Hi, If you where planning on writing a new online inventory system with a Firebird DB as backend. Yes that is what I'm about to do... What would be the best choice of language? For one I don't know PHP, but was told it is really easy to learn. I know Object Pascal / Delphi very well. What wou

Re: [fpc-pascal] CGI (with Free Pascal) vs PHP

2007-03-06 Thread Michael Van Canneyt
On Tue, 6 Mar 2007, Graeme Geldenhuys wrote: > Hi, > > If you where planning on writing a new online inventory system with a > Firebird DB as backend. Yes that is what I'm about to do... What > would be the best choice of language? FPC ;-) > > For one I don't know PHP, but was told it is re

Re: [fpc-pascal] CGI (with Free Pascal) vs PHP

2007-03-06 Thread Graeme Geldenhuys
On 3/6/07, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: > Firebird DB as backend. Yes that is what I'm about to do... What > would be the best choice of language? FPC ;-) Asking in this mailing list, I would have guessed that much. :-) You can also create an apache module with FPC. I wou

Re: [fpc-pascal] CGI (with Free Pascal) vs PHP

2007-03-06 Thread Bisma Jayadi
If you where planning on writing a new online inventory system with a Firebird DB as backend. Yes that is what I'm about to do... What would be the best choice of language? Of course, Pascal! :) For one I don't know PHP, but was told it is really easy to learn. I know Object Pascal / Delphi v

Re: [fpc-pascal] CGI (with Free Pascal) vs PHP

2007-03-06 Thread Bisma Jayadi
Sorry if this sounds stupid, but what is the difference? Memory usage, threading, etc? I've only ever setup websites with Apache and written basic CGI apps. Is there a speed difference between CGI and PHP? Memory usage? Session information? For informations, comparison, and benchmark, visit ht

Re: [fpc-pascal] CGI (with Free Pascal) vs PHP

2007-03-06 Thread Florian Klaempfl
Graeme Geldenhuys schrieb: > Hi, > > If you where planning on writing a new online inventory system with a > Firebird DB as backend. Yes that is what I'm about to do... What > would be the best choice of language? > > For one I don't know PHP, but was told it is really easy to learn. I > know O

Re: [fpc-pascal] CGI (with Free Pascal) vs PHP

2007-03-06 Thread Chuck Burkins
On 3/6/07, Florian Klaempfl <[EMAIL PROTECTED]> wrote: (Pascal) compiler based CGI is magnitudes faster than PHP, less resource consuming and much easier to maintain. The only advantage of PHP is that is easier to use for beginners and that's probably the only reason why PHP is so popular: you

Re: [fpc-pascal] CGI (with Free Pascal) vs PHP

2007-03-06 Thread Michael Van Canneyt
On Tue, 6 Mar 2007, Chuck Burkins wrote: > On 3/6/07, Florian Klaempfl <[EMAIL PROTECTED]> wrote: > > > > > (Pascal) compiler based CGI is magnitudes faster than PHP, less resource > > consuming and much easier to maintain. The only advantage of PHP is that > > is easier to use for beginners an

Re: [fpc-pascal] CGI (with Free Pascal) vs PHP

2007-03-06 Thread Florian Klaempfl
Chuck Burkins schrieb: > On 3/6/07, Florian Klaempfl <[EMAIL PROTECTED]> wrote: > >> >> (Pascal) compiler based CGI is magnitudes faster than PHP, less resource >> consuming and much easier to maintain. The only advantage of PHP is that >> is easier to use for beginners and that's probably the onl

Re: [fpc-pascal] CGI (with Free Pascal) vs PHP

2007-03-06 Thread Daniël Mantione
Op Tue, 6 Mar 2007, schreef Chuck Burkins: > On 3/6/07, Florian Klaempfl <[EMAIL PROTECTED]> wrote: > > > > > (Pascal) compiler based CGI is magnitudes faster than PHP, less resource > > consuming and much easier to maintain. The only advantage of PHP is that > > is easier to use for beginners

Re: [fpc-pascal] CGI (with Free Pascal) vs PHP

2007-03-06 Thread Jonas Maebe
On 6 mrt 2007, at 13:16, Michael Van Canneyt wrote: PHP does not in any way burden a modern web server, at least when used as an apache module. My test server at work has 128MB of RAM and only occasionally does it slow down noticably, typically when MySQL is working on a particularly ugly joi

Re: [fpc-pascal] CGI (with Free Pascal) vs PHP

2007-03-06 Thread Daniël Mantione
Op Tue, 6 Mar 2007, schreef Jonas Maebe: > > On 6 mrt 2007, at 13:16, Michael Van Canneyt wrote: > > > > PHP does not in any way burden a modern web server, at least when > > > used > > > as an apache module. My test server at work has 128MB of RAM and only > > > occasionally does it slow down

Re: [fpc-pascal] CGI (with Free Pascal) vs PHP

2007-03-06 Thread Michael Van Canneyt
On Tue, 6 Mar 2007, Daniël Mantione wrote: > > > Op Tue, 6 Mar 2007, schreef Jonas Maebe: > > > > > On 6 mrt 2007, at 13:16, Michael Van Canneyt wrote: > > > > > > PHP does not in any way burden a modern web server, at least when > > > > used > > > > as an apache module. My test server at w

Re: [fpc-pascal] CGI (with Free Pascal) vs PHP

2007-03-06 Thread Chuck Burkins
This is an interesting discussion, guys. I really believe that there is no one perfect language and some languages are better at some problems than other. I should also know better than to argue with people who clearly know more than I do about *writing* a language, since I know nothing about it,

Re: [fpc-pascal] CGI (with Free Pascal) vs PHP

2007-03-06 Thread Marco van de Voort
> I agree. But that is something of a matter of taste. > > > PHP is not professionals. If things get big, either in code or in > > performance, PHP becoems a serious handicap. > > I don't agree. PHP is used by corporations all over the place now. Sure, but as vehicle for forums, content system e

Re: [fpc-pascal] CGI (with Free Pascal) vs PHP

2007-03-06 Thread Bisma Jayadi
Now Pascal has its defficiencies in web programming too. CGI programming tends not to be very scalable, allthough it compensates by raw performance. The trouble is when databases come in, connection pooling is almost impossible to achieve with CGI. I'm not quite agree with this. CGI programmin

Re: [fpc-pascal] CGI (with Free Pascal) vs PHP

2007-03-06 Thread Graeme Geldenhuys
On 3/6/07, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: This is not the only problem. To be able to do multiple MySQL queries at once (the MySQL C client does not allow this), PHP must retrieve the whole record set at once, and keep it in memory, thus wasting a lot of memory. That has nothing