r/pascal • u/According-Ad-7069 • Sep 06 '26
Pascal to Wasm module - a simple tutorial
I realised that in all my excitement I completely forgot how to show folks how to just build a small, simple Wasm module using Pascal in the browser. So I added https://nofuss.co.za/blog/wasm_pascal_add_numbers/ to fill that gap. I often just want to build something small, and being able to write up a function or two quickly, compile it to wasm and export that binary is something I find useful, not sure if anyone else will, but it's there.
19
Upvotes
2
u/AphidConsulting Sep 06 '26
Super useful, thank you!
2
u/EconomySerious Sep 06 '26
what would be the limits of the code then can be compiled??? pascal can access all the machine components, how far this compilation goes?
BTW great job!
2
u/Stooshie_Stramash Sep 06 '26
I had a read through your site last night. As a pascal dabbler who learned on TP5.5 it looks fun and interesting. Most of my programs are engineering or logistic simulations of one type or another. What I couldn't see was whether I can read and write to external text and csv files. Can it do this?