Been playing with WasmPascal and redid an older toy of mine in #pascal - nofuss.co.za/toys/pascal_... - compiled to wasm and with some hand-rolled JavaScript.

Been playing with WasmPascal and redid an older toy of mine in #pascal - nofuss.co.za/toys/pascal_... - compiled to wasm and with some hand-rolled JavaScript.
Two errors:
one, to take everything literally;
two, to take everything spiritually.
- #Pascal
nofuss.co.za/blog/wasm_pa... - Turns out that handling files in #webassembly in #pascal is not as simple as when running locally. Fortunately, it's not that difficult either. The trick is to let the browser do the work, whether it's input or output. As per usual, linear memory comes into play.
The post at nofuss.co.za/blog/wasm_pa... shows how to compile a simple #Pascal function to a Wasm module, using just your browser. I really should have started with this tutorial, but I was way too excited to get things going!
LB on higher conciousness ;)
Join the Beebs! :D
Our author Andrew Oram examines the rise and decline of languages such as #Pascal, Objective-C, #Ruby, #Ada, and #Tcl, and explores what it takes for a language to succeed 👇
https://lpi.org/iey4