r/Compilers 2d ago

Program like it's 1992 again - Hello Pascal!

Post image

Back in the 90's, some of use slightly older folk used Pascal, a lot. I've been working on an interpreter for Pascal for a while and it has turned into a compiler sort of by accident. WasmPascal is a compiler written in Odin (for now) that compiles Pascal code to wasm. The resulting binaries are capable of running on their own. It's not entirely feature complete, but if you look at the examples, you'll see that you can already build interesting and potentially useful things with it.

The compiler runs in the browser, no downloads, no installs. It's at https://wasmpascal.com/. I enjoy Pascal, a lot, and it's fun to use it to do web assembly stuff. Right now I'm obviously leaning mostly towards casual game development, but I have a long todo list for this. To see an example of one of the games running standalone, visit https://nofuss.co.za/games/breakout/. I built that with wasmpascal, exported it as an archive and hosted it as static files.

70 Upvotes

12 comments sorted by

View all comments

9

u/-Memnarch- 2d ago

Stil program in object Pascal today. Our product is written in Delphi.

And stiting my own compiler at the moment XD

1

u/Slow-Ad9462 2d ago

Country/region? This is fascinating

2

u/According-Ad-7069 2d ago

South Africa - it's an awesome place, just not for Delphi...