Sign in Join

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

Mailing lists / fpc-pascal / 2019-09

It's alive !

12 messages · 7 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,

Finally, the moment has come:

https://www.youtube.com/watch?v=xos2MnVxe-c

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:

https://www.freepascal.org/~michael/lyff/

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:

https://www.freepascal.org/~michael/lyff/lyffjs.html

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: https://wiki.freepascal.org/WebAssembly
It's a bit cursory at the moment, but will be improved as things evolve - once it's alive, it tries to stay alive ;)

Reply by email

Karoly Balogh (Charlie/SGR
to Michael Van Canneyt

Hi,

Michael Van Canneyt wrote 6 lines
Finally, the moment has come: Following up on a bounty offered, Dmitry Boyarintsev has accomplished milestone one in the implementation of FPC's webassembly backend. And: It's alive ! :-)

Very cool! I'm so sorry I couldn't tackle this, as I even started working on it at some point, but when finally it was time to do it, life steered me elsewhere. I'm very happy someone else picked up the idea and brought it to first forward to contribute to the backend (independent from any bounty) and help with the trunk integration if you need it.

Charlie

Reply by email

Michael Van Canneyt
to Karoly Balogh (Charlie/SGR
Karoly Balogh wrote 15 lines
Hi, On Sat, 21 Sep 2019, Michael Van Canneyt wrote: > Finally, the moment has come: > > Following up on a bounty offered, Dmitry Boyarintsev has accomplished > milestone one in the implementation of FPC's webassembly backend. > > And: It's alive ! :-) Very cool! I'm so sorry I couldn't tackle this, as I even started working on it at some point, but when finally it was time to do it, life steered me elsewhere. I'm very happy someone else picked up the idea and brought it to first am I :)

And as I understood it, Dmitry continued your initial work.

Show quoted text 5 lines
Looking forward to contribute to the backend (independent from any bounty) and help with the trunk integration if you need it. From my point of view, this should be integrated as soon as possible/allowed in

trunk, and any help (from anyone) is welcome, but I think it is better to discuss this on the core mailinglist. I don't know the requirements to integrate a first version in trunk.

Michael.

Reply by email

Sven Barth
to Michael Van Canneyt: Finally, the moment has come: https://www.youtube.com/watch?v=xos2MnVxe-c Following up on…
Michael Van Canneyt wrote 37 lines
Hello, Finally, the moment has come: https://www.youtube.com/watch?v=xos2MnVxe-c 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: https://www.freepascal.org/~michael/lyff/ 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: https://www.freepascal.org/~michael/lyff/lyffjs.html 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: https://wiki.freepascal.org/WebAssembly It's a bit cursory at the moment, but will be improved as things evolve - once it's alive, it tries to stay alive ;)

Awesome! Kudos to Dmitry. :)

I'm looking forward to see this integrated into trunk. Implementing the RTL (at least as much as is possible within the constraints of the WebAssembly environment) will probably be quite some effort as well. ;)

Regards,
Sven

Reply by email

Mattias Gaertner
to Michael Van Canneyt
Show quoted text 13 lines
On Sun, 29 Sep 2019, Joao Schuler wrote: > I would like to give a try to WebAssembly as a target in my own > project ( https://github.com/joaopauloschuler/neural-api ). From > where can I get this compiler? > The link to the wiki page in my mail gives you the needed instructions: https://wiki.freepascal.org/WebAssembly/Compiler We're working on integrating it in the trunk compiler.

It suggest to rename it to "ppwasm". Why not "ppcwasm"?

Mattias

Reply by email

Michael Van Canneyt
to Mattias Gaertner
Mattias Gaertner wrote 18 lines
On Sun, 29 Sep 2019 08:01:18 +0200 (CEST) Michael Van Canneyt wrote: > On Sun, 29 Sep 2019, Joao Schuler wrote: > > > I would like to give a try to WebAssembly as a target in my own > > project ( https://github.com/joaopauloschuler/neural-api ). From > > where can I get this compiler? > > > > The link to the wiki page in my mail gives you the needed > instructions: > > https://wiki.freepascal.org/WebAssembly/Compiler > > We're working on integrating it in the trunk compiler. It suggest to rename it to "ppwasm". Why not "ppcwasm"?

shorter, I suppose. You should ask Dmitry :)

The name is not yet settled.

Michael.

Reply by email

Marco van de Voort
to Michael Van Canneyt

Op 2019-09-29 om 11:55 schreef Michael Van Canneyt:

Show quoted text 7 lines
> It suggest to rename it to "ppwasm". Why not "ppcwasm"? shorter, I suppose. You should ask Dmitry :) The name is not yet settled.

If it is to be used via the "fpc" frontend binary, ppc* would be better I guess.

Reply by email

Michael Van Canneyt
to Marco van de Voort
Marco van de Voort wrote 11 lines
Op 2019-09-29 om 11:55 schreef Michael Van Canneyt: > >> It suggest to rename it to "ppwasm". Why not "ppcwasm"? > > shorter, I suppose. You should ask Dmitry :) > > The name is not yet settled. > If it is to be used via the "fpc" frontend binary, ppc* would be better I guess.

I thought so but was not sure. Thanks for confirming that :)

Michael.

Reply by email