Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / pas2js / 2021-12

FPC and WebAssembly

4 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Michael Van Canneyt

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.

Unknown author
to Michael Van Canneyt

Congratulations!

and

Frohe Weihnachten

Markus

Earlier message 33 lines
--- original message --- On December 24, 2021, 2:16 PM GMT+1 wrote: >> And yes, we can do graphics too: >> >> https://www.freepascal.org/~michael/pas2js-demos/wasienv/terminal/ > That should obviously be: > https://www.freepascal.org/~michael/pas2js-demos/wasienv/canvas/ > My apologies for the mistake. > Michael. > _______________________________________________ > fpc-pascal maillist - > https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal --- end of original message --- -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.freepascal.org/pipermail/pas2js/attachments/20211224/1c23769b/attachment.htm>