Hello,

I'm glad to anncounce that FPC now covers working with webassembly in the
browser.

Because pictures say more than a thousand words, 3 demos:

A modest "hello, world" variation:

https://www.freepascal.org/~michael/pas2js-demos/wasienv/simple/

A (limited) terminal emulation:

https://www.freepascal.org/~michael/pas2js-demos/wasienv/terminal/

And yes, we can do graphics too:

https://www.freepascal.org/~michael/pas2js-demos/wasienv/terminal/

In all 3 cases: - The webassembly program was created with the FPC webassembly target.

- The hosting environment is created using pas2js.

This is just initial hosting support, there is lots of work to be done.

The webassembly compiler works very well, and is integrated in the compiler 
testsuite.

More info can be found in:
https://wiki.freepascal.org/WebAssembly/Compiler
https://wiki.freepascal.org/WebAssembly/Roadmap

Our little contribution to a Merry Christmas for everyone...

Michael.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to