42

Free Pascal has now a WebAssembly back end

 4 years ago
source link: https://www.tuicool.com/articles/3qaeyun
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

[fpc-pascal] It's alive !

Michael Van Canneyt michael at freepascal.org

Sat Sep 21 15:22:54 CEST 2019
Hello,

Finally, the moment has come:

<a href="https://www.youtube.com/watch?v=xos2MnVxe-c">https://www.youtube.com/watch?v=xos2MnVxe-c</a>

Following up on a bounty offered, Dmitry Boyarintsev has accomplished milestone one 
in the implementation of FPC's webassembly backend.

And: It's alive ! :-)

The first result can be seen here:

<a href="https://www.freepascal.org/~michael/lyff/">https://www.freepascal.org/~michael/lyff/</a>

Conway's game of life written using FPC:

- FPC itself for the WebAssembly Backend library.
- pas2js for the necessary Javascript front end and GUI code.

Although I can't imagine why you would want to, you can also load the
webassembly from plain Javascript:

<a href="https://www.freepascal.org/~michael/lyff/lyffjs.html">https://www.freepascal.org/~michael/lyff/lyffjs.html</a>

Whoever thought Pascal is dead, should now think otherwise.
It's very much alive !

Enjoy,

Michael.

PS. More info about the webassembly efforts will be assembled here:
<a href="https://wiki.freepascal.org/WebAssembly">https://wiki.freepascal.org/WebAssembly</a>
It's a bit cursory at the moment, but will be improved as things evolve -
once it's alive, it tries to stay alive ;)
More information about the fpc-pascal mailing list

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK