[fpc-pascal] First pas2js public release

Reimar Grabowski reimgrab at web.de
Fri Dec 22 15:12:18 CET 2017

On Fri, 22 Dec 2017 08:53:03 +0100 (CET)
Michael Van Canneyt <michael at freepascal.org> wrote:

> That is one of the points of pas2js. To allow you to program the browser [in pascal].
Fixed that for you.
And yes, that's what most transpilers to javascript are meant for.

> There is no need for a server. You can make e.g. a chess application that runs
> 100% in the browser, using a single HTML file. You can embed the JS and
> images in the HTML itself, and thus your HTML file is the 'executable'.
Really, that's amazing?
> See the browser as a desktop. Your program runs in that desktop.
> If need be, this program can contact a server - the classical 
> client/server model, using HTTP as the protocol - but this is by no means a necessity.
If you say so.
> In that sense, the demo demonstrates this. The server is just there for you
> to be able to download the "program"...
<!DOCTYPE html>
<title>Mighty web app</title>
  alert("I am such a mighty web application");

Ok, if this is nowadays a 'web application' I seriously get old.
But whatever, every HTML page with a script is a web app now. Lesson learned.


More information about the fpc-pascal mailing list