[fpc-pascal] Creating FPC enabled websites
Any recommendations on which library to use to create web enabled FPC apps? Have found a few libraries and wonder if anyone has had good success with any of these or otheres. So far I found embeddable webserver http://www.eilers.net/pascal Site doesn't have much info Synapse http://www.ararat.cz/synapse/doku.php Seems very low level. Powtils http://z505.com/powtils/idx.shtml This one has a number of examples and seems the most promissing. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Creating FPC enabled websites
In our previous episode, Francisco Reyes said: > Have found a few libraries and wonder if anyone has had good success with > any of these or otheres. In the past I've had an Indy9 httpserver + ssl running. That was under Delphi, but parts of that I also had running (with indy10) under FreeBSD/32-bit. It was based on the eliza example iirc. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Creating FPC enabled websites
Marco van de Voort writes: It was based on the eliza example iirc. URL/source? Is the easiest way to go using FPC + apache with CGI? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Creating FPC enabled websites
In our previous episode, Francisco Reyes said: > > It was based on the eliza example iirc. > > URL/source? http://www.indyproject.org there is stuff about indy in the wiki too. > Is the easiest way to go using FPC + apache with CGI? Depends. For me that was not the easiest way, since the web part was only a minor part added to an existing application (an extra presentation layer so to speak), so I just added a HTTP server component. It worked fine, but access was limited, so abuse/DDOS didn't have much chance. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Creating FPC enabled websites
Not fpc related, but irie pascal (http://www.irietools.com) has a pascal that is cross platform, and does handle web support quite well. My attempts to get him to support osx has fallen flat, but dos, windows, bsd, solaris (I think) and other distributions are supported, so it may do what you want. If something like irie pascal could be built using fpc though, it would be a great help, since I'd really like to build some web apps, but w/o irie for osx, it puts a serious crimp in my ability to make cross-platform apps. Fpc is cross platform I know, but as far as I know, it's not optomized for cgi execution like irie pascal is. I suppose I could build a stripped-down version of fpc specifically for cgi-type work, if anyone is interested in such, but i like the approach irie took in that you could use the same compiled source on any of it's supported platforms. I've thought about cloning irie pascal virtual machines and writing that in fpc, but I don't know if i want to do that much work just to get something that out to be simple to create if Mr.Stewart would pull his head out of his nether regions and allow somebody to make anyhow. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Creating FPC enabled websites
Travis, I am joining this discussion fairly late so if you've found your solution already please ignore this post. First, upon reading you feel Irie Pascal is 'optimized' for CGI execution on OSX (Leopard?) my first question is how are you defining that. I've looked over the Irie code just now (using the trial version) and I compared it to the Indy 9 component. So far I don't see anything that would suggest Irie's CGI could handle HTML requests any faster or handle larger loads better that the Indy components. Could you explain in a bit more detail what are you using as the baseline for your comparisons? Next, could you also be a bit more specific if you are trying to write CGI components for an embedded web server or do you expect to run them under an standalone web server (like Apache)? Again just for the sake of understanding what options to recommend to you, the choices you outlined in your links all appear to be fairly common, ordinary web server add-ons that really rely more on what the CGI tolls calls (external process or a daemon) than something more exotic (like a DB server or transaction-based gateway). Finally, give the advance from CGI based web apps to Web 2.0 (Javascript running in the browser) is there a design rational for running code on the server instead of in the web browser. If you want to see a few examples of this kind of web app check out Google Gears. Its just one of several web app frameworks that have become more stable and production ready in the past few years. Zend (which is PHP, not Javascript) is also an alternative. On Mon, Mar 2, 2009 at 12:06 PM, Travis Siegel wrote: > Not fpc related, but irie pascal (http://www.irietools.com) has a pascal > that is cross platform, and does handle web support quite well. > My attempts to get him to support osx has fallen flat, but dos, windows, > bsd, solaris (I think) and other distributions are supported, so it may do > what you want. > If something like irie pascal could be built using fpc though, it would be > a great help, since I'd really like to build some web apps, but w/o irie for > osx, it puts a serious crimp in my ability to make cross-platform apps. > Fpc is cross platform I know, but as far as I know, it's not optomized for > cgi execution like irie pascal is. > I suppose I could build a stripped-down version of fpc specifically for > cgi-type work, if anyone is interested in such, but i like the approach irie > took in that you could use the same compiled source on any of it's supported > platforms. > I've thought about cloning irie pascal virtual machines and writing that in > fpc, but I don't know if i want to do that much work just to get something > that out to be simple to create if Mr.Stewart would pull his head out of his > nether regions and allow somebody to make anyhow. > > > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Creating FPC enabled websites
In our previous episode, Travis Siegel said: > Fpc is cross platform I know, but as far as I know, it's not optomized > for cgi execution like irie pascal is. Interesting. Could you share your evaluation/comparison details? Maybe the people working on fpweb could learn something from it. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Creating FPC enabled websites
What is fpweb? On Monday 02 March 2009 12:37:36 pm Marco van de Voort wrote: > In our previous episode, Travis Siegel said: > > Fpc is cross platform I know, but as far as I know, it's not optomized > > for cgi execution like irie pascal is. > > Interesting. Could you share your evaluation/comparison details? Maybe the > people working on fpweb could learn something from it. > > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Creating FPC enabled websites
In our previous episode, Mark Emerson said: > What is fpweb? Sorry, old name, nowadays it is fcl-web. See packages/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Creating FPC enabled websites
Travis Siegel writes: Not fpc related, but irie pascal (http://www.irietools.com) has a pascal that is cross platform, and does handle web support quite well. No Postgresql support listed... still seems pretty interesting. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Creating FPC enabled websites
Prince Riley writes: Finally, give the advance from CGI based web apps to Web 2.0 (Javascript running in the browser) is there a design rational for running code on the server instead of in the web browser. I think that is almost a religious war type of discussion... Short answer (as it applies to me at least) If all I am doing is getting data from a DB and displaying it in the browser, there is little reason to do Javascript. past few years. Zend (which is PHP, not Javascript) is also an alternative. Personally my preference would be 1- Pascal 2- Python 3- PHP PHP can do absolutely everything I need/want; the difference is that I want something which lends itself more easily to well organized and structured coding. Also When I work on php it always feels like work.. even if it something I am doing for fun. It is one of those subjective things... the reason why there are so many languages and tools out there. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Creating FPC enabled websites
Marco van de Voort writes: Sorry, old name, nowadays it is fcl-web. See packages/ Don't see it at http://www.freepascal.org/packages Is there where I should look? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Creating FPC enabled websites
In our previous episode, Francisco Reyes said: > Marco van de Voort writes: > > > Sorry, old name, nowadays it is fcl-web. See packages/ > > Don't see it at > http://www.freepascal.org/packages > Is there where I should look? In the source. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Creating FPC enabled websites
I'm interested to know why no one mentioned powtils yet (other than the original poster). I also am looking into writing a fairly complex CGI program and powtils seems very promising. And comments? Marco van de Voort wrote: In our previous episode, Francisco Reyes said: Marco van de Voort writes: Sorry, old name, nowadays it is fcl-web. See packages/ Don't see it at http://www.freepascal.org/packages Is there where I should look? In the source. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Creating FPC enabled websites
> > So far I found > embeddable webserver > http://www.eilers.net/pascal > Site doesn't have much info Never use custom embedded web server though it's not hard to build one. > Synapse > http://www.ararat.cz/synapse/doku.php > Seems very low level. It looks more a TCP/IP suite classes to me. Powtils > http://z505.com/powtils/idx.shtml > This one has a number of examples and seems the most promissing. > This a pascal CGI unit. Despite Powtils looks quite mature, especially the v1.6, the development is halted. It stopped at v.1.7 which IMO not too stable. I've been using it and produced some fairly complex CGI-based web apps. It does the job very well. Another alternative is ExtPascal project (http://extpascal.googlecode.com). It offers a FCGI class and wrap ExtJS into Pascal language. You may build a RIA using it. I've been playing around with it for a while and already built an application based on it in production. So far, it performs very well. -- -Bee- has Bee.ography at: http://beeography.wordpress.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Creating FPC enabled websites
> > Not fpc related, but irie pascal (http://www.irietools.com) has a pascal > that is cross platform, and does handle web support quite well. It's more or less similar to Powtils. I don't see any good reasons to use it while there are many CGI units available for FPC. Using Powtils, you don't need to worry about database support since FPC had support for almost any common databases out there. You don't need to worry about platform support either since FPC run on almost any common platforms out there. Plus, you get them all for free. > If something like irie pascal could be built using fpc though, it would be > a great help, since I'd really like to build some web apps, but w/o irie for > osx, it puts a serious crimp in my ability to make cross-platform apps. FPC offers lot more. You want pascal scripting? You may use Pascal Script from RemObject. You want database support? You may use fcl-db (sql-db) or Zeos. You want CGI units? There are many, the most famous is Powtils. Etc. Plus, you can share your code with desktop application or may re-use code from your legacy desktop into a web based app without or with minor modifications. > Fpc is cross platform I know, but as far as I know, it's not optomized for > cgi execution like irie pascal is. Define "optimized for CGI execution". Most CGI units are just a handler for web requests that come from web server. Not much optimization you can do there. If you want more robust performance, go to FastCGI. FPC also has one for this: FCGI class from ExtPascal project. > I suppose I could build a stripped-down version of fpc specifically for > cgi-type work, if anyone is interested in such, but i like the approach irie > took in that you could use the same compiled source on any of it's supported > platforms. FPC is a general purpose compiler. What you need is a CGI or web framework that can be compiled by FPC. You don't need to do anything particular to FPC. -Bee- has Bee.ography at: http://beeography.wordpress.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal