[fpc-pascal] Running FPC in the browser...

Michael Van Canneyt michael at freepascal.org
Sun Oct 22 12:20:47 CEST 2023


Hello,

Thanks to the efforts of Nikolay Nikolov, the FPC compiler can now recompile
itself to webassembly (the support for the goto statement made this possible).

As a consequence, this means FPC can now be run in a browser. 
See the screenshot at

https://wiki.freepascal.org/WebAssembly#Running_in_Web_Browsers

There are still some steps to do before FPC will actually compile and link a
program, but this is in the works as well.

If you think this is just a cute geeky achievement, it is not.

Think about the possibilities: being able to work without the need for an 
installation. Just go to a webpage and start developing as you would on your 
desktop.

For teaching programming, a teacher does not need to provide anything except a
browser and still have all the possibilities he would have when using a 
desktop.
No heavy server infrastructure is needed, everything happens in the browser.

No doubt, other possibilities will come to mind.

Stay tuned for more goodies from the FPC team :-)

Michael.


More information about the fpc-pascal mailing list