[fpc-pascal] WebAssembly Target

Michael Van Canneyt michael at freepascal.org
Fri Mar 17 18:54:33 CET 2017

On Fri, 17 Mar 2017, Daniel Gaspary wrote:

> On Fri, Mar 17, 2017 at 5:16 AM, Michael Van Canneyt
> <michael at freepascal.org> wrote:
>> In fact, there is an alternate approach, transpiling pascal to Javascript.
>> It's much farther ahead than the webassembly target, already produces
>> programs running in the browser and the first web-based components are
>> already being developed using this approach.
> What is the role of those components ?

You'll design a web app in the lazarus IDE (or Delphi IDE, for that matter).
The app will be compiled to Javascript.

Current thinking is that that there will be 2 "modes":
- "Free" Mode, where the CSS will determine the actual runtime look.
   The IDE will just create the DOM structure.
- "Exact" mode, where the app will look in the browser as it looks in the IDE.
   the necessary CSS will be generated for this. 
In both modes of course the IDE and object inspector will be used to create
event handlers and whatnot in Pascal...

But this is all still under heavy development.


More information about the fpc-pascal mailing list