[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

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 really

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 would

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

[fpc-pascal] Simple drawing

2007-03-06 Thread leslie . polzer
Since I would like to use FreePascal, among other things, for teaching, it would be great for me to have a simple library of drawing functions, i.e. very simple setup (one function call), cross-platform (but only GNU/Linux is also okay) and pretty high-level overall. Is the 'graph' unit a

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

Re: [fpc-pascal] Simple drawing

2007-03-06 Thread Michael Van Canneyt
On Tue, 6 Mar 2007, [EMAIL PROTECTED] wrote: Since I would like to use FreePascal, among other things, for teaching, it would be great for me to have a simple library of drawing functions, i.e. very simple setup (one function call), cross-platform (but only GNU/Linux is also okay) and

Re: [fpc-pascal] Simple drawing

2007-03-06 Thread Bisma Jayadi
Is the 'graph' unit a candidate for this (I remember it to be easily used from my Turbo Pascal days), or is there a better alternative? If you're considering compatibility with other pascal compilers (TP/BP, FPC, Delphi) then the graph unit is the best alternative since it's also available on

Re: [fpc-pascal] Simple drawing

2007-03-06 Thread Jonas Maebe
On 06 Mar 2007, at 10:40, Bisma Jayadi wrote: If you're considering compatibility with other pascal compilers (TP/ BP, FPC, Delphi) then the graph unit is the best alternative since it's also available on almost other pascal compilers though sometimes with a little different names but

Re: [fpc-pascal] Simple drawing

2007-03-06 Thread leslie . polzer
On Tue, Mar 06, 2007 at 04:40:49PM +0700, Bisma Jayadi wrote: Is the 'graph' unit a candidate for this (I remember it to be easily used from my Turbo Pascal days), or is there a better alternative? If you're considering compatibility with other pascal compilers (TP/BP, FPC, Delphi) then the

Re: [fpc-pascal] Simple drawing

2007-03-06 Thread Bisma Jayadi
Speed is not important. Does it work with X11? AFAIK, no. CMIIW. On Linux, it requires svgalib and root access. For more info about svgalib, please visit http://www.svgalib.org/jay/beginners_guide/beginners_guide.html -Bee- has Bee.ography at: http://beeography.wordpress.com

Re: [fpc-pascal] Simple drawing

2007-03-06 Thread Bisma Jayadi
The main problem with the graph unit is that basically no one is maintaining it currently. The poor performance is coupled to that, since a plugin for it which bases it on sdl or any other framework could be written. I think it's becaused not too much people need (direct) graphical console

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 Object

Re: [fpc-pascal] Simple drawing

2007-03-06 Thread Jonas Maebe
On 6 mrt 2007, at 11:37, Bisma Jayadi wrote: The main problem with the graph unit is that basically no one is maintaining it currently. The poor performance is coupled to that, since a plugin for it which bases it on sdl or any other framework could be written. I think it's becaused not

Re: [fpc-pascal] Simple drawing

2007-03-06 Thread Daniël Mantione
Op Tue, 6 Mar 2007, schreef [EMAIL PROTECTED]: On Tue, Mar 06, 2007 at 04:40:49PM +0700, Bisma Jayadi wrote: Is the 'graph' unit a candidate for this (I remember it to be easily used from my Turbo Pascal days), or is there a better alternative? If you're considering compatibility

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 and that's

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 only reason

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 and that's

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

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 noticably,

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 work has 128MB of RAM

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

2007-03-06 Thread Jason P Sage
I would like to put my two sense in because I have been doing extensive FreePascal Web programming, and I have to agree that FreePascal has a nice structure and PHP often can get quite ugly. For many applications PHP is just fine. The points you guys are bringing up are good ones - like

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 etc. At

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

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

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

2007-03-06 Thread Graeme Geldenhuys
On 3/6/07, Jason P Sage [EMAIL PROTECTED] wrote: Personally, I'd rather have my FreePascal Syntax, smartLinking, Socket library, multi-threading library, ability to call dlls, inline functions, true object oriented binaries versus emulated OO script (Which is likely OOP underneath but it still