[fpc-pascal] Servlet server for Fpc apps

Michael Van Canneyt michael at freepascal.org
Sun Mar 29 15:47:31 CEST 2009

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 :-)

(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 ;) )

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

This is why I think Morfik has the right approach: They allow you to code
both server and client-side in Pascal (or VB). The server code is compiled
to a super-fast server binary, the client code is sent to the browser as 
Javascript. Google does something similar with GWT, only they use Java.
(but Morfik was the first to do it, and they hold the patent on this technique).

My (long-term) plan is to make this possible in Lazarus. The server-side
is more or less covered, the basic blocks are in place. The client-side
needs still some work, of course.


More information about the fpc-pascal mailing list