Re: [fpc-pascal] Servlet server for Fpc apps

2009-03-30 Thread Michael Van Canneyt
On Mon, 30 Mar 2009, Dariusz Mazur wrote: > > > What about issue tracker. Its rather simple application, very small database > and for me work slow. > > > > > > > And what about transfer tons on JS to browser? > > > > > > > Ah, morfik has a nice thing for this: you can preload forms

Re: [fpc-pascal] Servlet server for Fpc apps

2009-03-30 Thread Eduardo Morras
At 23:05 30/03/2009, you wrote: I'll chime in, I did a haxe servlet server called hxServlet, it's available on libs.haxe.org. I'm thinking of doing something similar for distinction with a VM in a scripting language, but for something I have to compile anyway i'm not convinced of the wi

Re: [fpc-pascal] Servlet server for Fpc apps

2009-03-30 Thread Dariusz Mazur
Michael Van Canneyt pisze: On Mon, 30 Mar 2009, Dariusz Mazur wrote: Michael Van Canneyt pisze: I just want to make them in pascal and keep the codebase and know-how I have in my team. As I. I want (i;ve done succesfully) reuse 90% of desktop code in webbased. But

Re: [fpc-pascal] Servlet server for Fpc apps

2009-03-30 Thread ritchie turner
I'll chime in, I did a haxe servlet server called hxServlet, it's available on libs.haxe.org. I'm thinking of doing something similar for fpc. First, hxServlet is like ruby on rails mongrel, indeed it uses the http header parser from mongrel, however it uses haXe's neko vm as the server, and it's

Re: [fpc-pascal] Servlet server for Fpc apps

2009-03-30 Thread Dariusz Mazur
Adrian Veith pisze: Dariusz Mazur schrieb: Marco van de Voort pisze: In our previous episode, Michael Van Canneyt said: But maybe I dont understand your need. You think about counterpart of LCL level, or computation wide consist in event (form.onclick, form.onedit) function in

Re: [fpc-pascal] Servlet server for Fpc apps

2009-03-30 Thread Michael Van Canneyt
On Mon, 30 Mar 2009, Dariusz Mazur wrote: > Michael Van Canneyt pisze: > > > > > > I just want to make them in pascal and keep the codebase and know-how I > > > > have > > > > in my team. > > > > > > > > > > > As I. I want (i;ve done succesfully) reuse 90% of desktop code in > > > webb

Re: [fpc-pascal] Servlet server for Fpc apps

2009-03-30 Thread Dariusz Mazur
Michael Van Canneyt pisze: I just want to make them in pascal and keep the codebase and know-how I have in my team. As I. I want (i;ve done succesfully) reuse 90% of desktop code in webbased. But you want to rewrite quite huge part to JS. Why? What for. Because some of the (ra

Re: [fpc-pascal] Servlet server for Fpc apps

2009-03-30 Thread Michael Van Canneyt
On Mon, 30 Mar 2009, Dariusz Mazur wrote: > Michael Van Canneyt pisze: > > On Mon, 30 Mar 2009, Dariusz Mazur wrote: > > > > > > > Michael Van Canneyt pisze: > > > > > > > On Mon, 30 Mar 2009, Dariusz Mazur wrote: > > > > > > > > > > > > > > > > > > I want to write my client-si

Re: [fpc-pascal] Servlet server for Fpc apps

2009-03-30 Thread Michael Van Canneyt
On Mon, 30 Mar 2009, Doug Chamberlin wrote: > Michael Van Canneyt wrote: > > What I want doesn't matter. Our clients want rich web 2.0 webapps. > > I just want to make them in pascal and keep the codebase and know-how I have > > in my team. > > > > If it was up to me, client/server would do th

Re: [fpc-pascal] Servlet server for Fpc apps

2009-03-30 Thread Dariusz Mazur
Marco van de Voort pisze: In our previous episode, Michael Van Canneyt said: But maybe I dont understand your need. You think about counterpart of LCL level, or computation wide consist in event (form.onclick, form.onedit) function in Delphi ? All events and almost any class I need sh

Re: [fpc-pascal] Servlet server for Fpc apps

2009-03-30 Thread Doug Chamberlin
Michael Van Canneyt wrote: What I want doesn't matter. Our clients want rich web 2.0 webapps. I just want to make them in pascal and keep the codebase and know-how I have in my team. If it was up to me, client/server would do the job just fine. But I cannot ask all parents of all pupils of al

Re: [fpc-pascal] Servlet server for Fpc apps

2009-03-30 Thread Dariusz Mazur
Michael Van Canneyt pisze: On Mon, 30 Mar 2009, Dariusz Mazur wrote: Michael Van Canneyt pisze: On Mon, 30 Mar 2009, Dariusz Mazur wrote: I want to write my client-side GUI code in pascal. I have no wish to learn Javascript. All extensive computation (mostly queries and dat

Re: [fpc-pascal] Servlet server for Fpc apps

2009-03-30 Thread Adrian Veith
Dariusz Mazur schrieb: > Marco van de Voort pisze: >> In our previous episode, Michael Van Canneyt said: >> But maybe I dont understand your need. You think about counterpart of LCL level, or computation wide consist in event (form.onclick, form.onedit) function in Delphi ? >

Re: [fpc-pascal] Servlet server for Fpc apps

2009-03-30 Thread Michael Van Canneyt
On Mon, 30 Mar 2009, Marco van de Voort wrote: > In our previous episode, Michael Van Canneyt said: > > > But maybe I dont understand your need. > > > You think about counterpart of LCL level, or computation wide consist in > > > event > > > (form.onclick, form.onedit) function in Delphi ? > >

Re: [fpc-pascal] Servlet server for Fpc apps

2009-03-30 Thread Michael Van Canneyt
On Mon, 30 Mar 2009, Dariusz Mazur wrote: > Michael Van Canneyt pisze: > > On Mon, 30 Mar 2009, Dariusz Mazur wrote: > > > > > > > > > > > > I want to write my client-side GUI code in pascal. I have no wish to > > > > learn > > > > Javascript. All extensive computation (mostly queries and dat

Re: [fpc-pascal] Servlet server for Fpc apps

2009-03-30 Thread Marco van de Voort
In our previous episode, Michael Van Canneyt said: > > But maybe I dont understand your need. > > You think about counterpart of LCL level, or computation wide consist in > > event > > (form.onclick, form.onedit) function in Delphi ? > > All events and almost any class I need should be available

Re: [fpc-pascal] Servlet server for Fpc apps

2009-03-30 Thread Dariusz Mazur
Bee pisze: May I ask when do You need write ordinal code parallel on browser and server side? What kind of computation? For me 99% of code should be on server. As You write we have very fast (because compiled) application on server. Fast is relative. You may have a very good and fast algor

Re: [fpc-pascal] Servlet server for Fpc apps

2009-03-30 Thread Dariusz Mazur
Michael Van Canneyt pisze: On Mon, 30 Mar 2009, Dariusz Mazur wrote: I want to write my client-side GUI code in pascal. I have no wish to learn Javascript. All extensive computation (mostly queries and database stuff) happens on the server, but the GUI must be programmed in Javascript becau

Re: [fpc-pascal] Servlet server for Fpc apps

2009-03-30 Thread Michael Van Canneyt
On Mon, 30 Mar 2009, Dariusz Mazur wrote: > Michael Van Canneyt pisze: > > On Sun, 29 Mar 2009, Dariusz Mazur wrote: > > > > > > > > > Why does one need to translate from Pascal to Java ? > > > > > > > > > > > > > > Not from pascal to Java, but to Javascript: The browsers only

Re: [fpc-pascal] Servlet server for Fpc apps

2009-03-30 Thread Dariusz Mazur
Michael Van Canneyt pisze: On Sun, 29 Mar 2009, Dariusz Mazur wrote: Why does one need to translate from Pascal to Java ? Not from pascal to Java, but to Javascript: The browsers only understand javascript. Translating pascal to Javascript means you can write browser-side cod

Re: [fpc-pascal] Servlet server for Fpc apps

2009-03-30 Thread Michael Van Canneyt
On Mon, 30 Mar 2009, Bee wrote: > > I want to write my client-side GUI code in pascal. I have no wish to learn > > Javascript. > > But, writing a pascal-to-js compiler obligates you to master JS as > well. Otherwise, you won't be able to generate correct and optimized > JS codes. If you can't k

Re: [fpc-pascal] Servlet server for Fpc apps

2009-03-30 Thread Bee
> I want to write my client-side GUI code in pascal. I have no wish to learn > Javascript. But, writing a pascal-to-js compiler obligates you to master JS as well. Otherwise, you won't be able to generate correct and optimized JS codes. If you can't keep the motivation up, you'll end up writing JS

Re: [fpc-pascal] Servlet server for Fpc apps

2009-03-30 Thread Michael Van Canneyt
On Sun, 29 Mar 2009, Dariusz Mazur wrote: > > > > Why does one need to translate from Pascal to Java ? > > > > > > > Not from pascal to Java, but to Javascript: The browsers only understand > > javascript. Translating pascal to Javascript means you can write > > browser-side code in pasca

Re: [fpc-pascal] Servlet server for Fpc apps

2009-03-29 Thread Jürgen Hestermann
Most clients would never care whether you put the code in server or in browser, the just want to use your application with acceptable and reasonable performance. I do care because for security reasons I have switched off scripting at all (with FireFox NoScript plugin). I ignore all web page

Re: [fpc-pascal] Servlet server for Fpc apps

2009-03-29 Thread Bee
> May I ask when do You need write ordinal code parallel on browser and server > side? What kind of computation? For me 99% of code should be on server. As > You write we have very fast (because compiled) application on server. Fast is relative. You may have a very good and fast algorithm on serve

Re: [fpc-pascal] Servlet server for Fpc apps

2009-03-29 Thread Dariusz Mazur
Why does one need to translate from Pascal to Java ? Not from pascal to Java, but to Javascript: The browsers only understand javascript. Translating pascal to Javascript means you can write browser-side code in pascal, and then send it to the browser. May I ask when do You need writ

Re: [fpc-pascal] Servlet server for Fpc apps

2009-03-29 Thread Michael Van Canneyt
On Sun, 29 Mar 2009, Bee wrote: > > (in fact, I don't think Java is fit to create any application, but > > that is another discussion, which is not on it's place here ;) ) > > Hahahaha... unfortunately, there are more Java frameworks out there > than Pascal which became very handy for anyone to

Re: [fpc-pascal] Servlet server for Fpc apps

2009-03-29 Thread Bee
> (in fact, I don't think Java is fit to create any application, but > that is another discussion, which is not on it's place here ;) ) Hahahaha... unfortunately, there are more Java frameworks out there than Pascal which became very handy for anyone to build complex applications. Performance and

Re: [fpc-pascal] Servlet server for Fpc apps

2009-03-29 Thread Bee
> why is Java fit to create a web application and Pascal is not ? Who did say (in this thread) that Pascal doesn't fit to create web applications? I've been making tens of web application using Pascal. Since first time I made my own CGI wrapper unit, then migrated to Powtils because it has more us

Re: [fpc-pascal] Servlet server for Fpc apps

2009-03-29 Thread Michael Van Canneyt
On Sun, 29 Mar 2009, duilio foschi wrote: > please excuse my ignorance, but I have a question I need to ask from long > time: > > why is Java fit to create a web application and Pascal is not ? There is no inherent reason why Java is fit to create a web-application and pascal is not :-) (i

Re: [fpc-pascal] Servlet server for Fpc apps

2009-03-29 Thread duilio foschi
please excuse my ignorance, but I have a question I need to ask from long time: why is Java fit to create a web application and Pascal is not ? Why does one need to translate from Pascal to Java ? Thank you Duilio Foschi ___ fpc-pascal maillist -

Re: [fpc-pascal] Servlet server for Fpc apps

2009-03-29 Thread Bee
> I have seen ExtPascal and looked at the ExtJS library which seemed > interesting, but if I am right the license is not LGPL or something > similar. If you understand the parser code which generate the wrapper units, you may able to enhance it to be able to parse other JS UI frameworks. Qooxdoo s

Re: [fpc-pascal] Servlet server for Fpc apps

2009-03-29 Thread Bee
> And this is why I need the pascal-to-javascript converter... :-) Don't you have access to Morfik's JST technology? ;) Anyway, glad to hear you interested to PasJS, you may get the source code from Powtils' SVN (at googlecode). I hope you can continue the effort, or better, join also with ExtPasc

Re: [fpc-pascal] Servlet server for Fpc apps

2009-03-29 Thread Adrian Veith
Bee schrieb: >> Using haxe for web applications is very effective, because you use the >> same language for back-end and front-end. With pascal4neko you can use >> your existing pascal code or use pascal for low level tasks. >> > > Have you heard about ExtPascal? It wraps ExtJS library into P

Re: [fpc-pascal] Servlet server for Fpc apps

2009-03-29 Thread Michael Van Canneyt
On Sun, 29 Mar 2009, Bee wrote: > > Using haxe for web applications is very effective, because you use the > > same language for back-end and front-end. With pascal4neko you can use > > your existing pascal code or use pascal for low level tasks. > > Have you heard about ExtPascal? It wraps Ext

Re: [fpc-pascal] Servlet server for Fpc apps

2009-03-28 Thread Bee
> Using haxe for web applications is very effective, because you use the > same language for back-end and front-end. With pascal4neko you can use > your existing pascal code or use pascal for low level tasks. Have you heard about ExtPascal? It wraps ExtJS library into Pascal unit so you can use Ex

Re: [fpc-pascal] Servlet server for Fpc apps

2009-03-28 Thread Adrian Veith
Eduardo Morras schrieb: > I want to ask (and know) if i can use apache-tomcat to serve servlets > developed with freepascal. If not, is there a similar server for fpc? > Note that i want/need servlet like in java and other languages, not a > propetary format or cgi or anyother. > > Maybe you want

Re: [fpc-pascal] Servlet server for Fpc apps

2009-03-27 Thread Leonardo M . Ramé
al] Servlet server for Fpc apps > To: "FPC-Pascal users discussions" > Date: Friday, March 27, 2009, 7:37 PM > At 22:00 27/03/2009, you wrote: > > > Eduardo, the short answer is no, it wouldn't work. > Tomcat doesn't understand binary files, it only &q

Re: [fpc-pascal] Servlet server for Fpc apps

2009-03-27 Thread Eduardo Morras
At 22:00 27/03/2009, you wrote: Eduardo, the short answer is no, it wouldn't work. Tomcat doesn't understand binary files, it only "executes" Java classes. Your options are: 1) CGI. 2) Apache Modules. 3) Your own web server. I will opt for the 3rd. then. All in pascal of course and free...

Re: [fpc-pascal] Servlet server for Fpc apps

2009-03-27 Thread Leonardo M . Ramé
duardo Morras wrote: > From: Eduardo Morras > Subject: [fpc-pascal] Servlet server for Fpc apps > To: fpc-pascal@lists.freepascal.org > Date: Friday, March 27, 2009, 5:38 PM > Hello: > > I want to ask (and know) if i can use apache-tomcat to > serve servlets developed with fre

[fpc-pascal] Servlet server for Fpc apps

2009-03-27 Thread Eduardo Morras
Hello: I want to ask (and know) if i can use apache-tomcat to serve servlets developed with freepascal. If not, is there a similar server for fpc? Note that i want/need servlet like in java and other languages, not a propetary format or cgi or anyother. P.S. Yes, i have googled but for servl