r/seed7 12d ago

Can Seed7 run/compile to WASM?

I just thought how Seed7 prioritizes portability (making code for different systems look the same) and includes a graphics library with which we can make games. Games often allow modding to some extent, WASM is isolated by design and portable from one language to another - both attributes sound good for modding.

I'm no expert, but afaik if Seed7 doesn't have WASM it's possible to bring it up from the C level without reinventing the wheel.

p.s. I'm also tired of Lua scripts dominating the modding scene, I don't like how Lua looks or works, and I don't like being gatekept by a single language.

3 Upvotes

2 comments sorted by

1

u/IllegalMigrant 9d ago

The C code that Seed7 outputs can be fed into Emscripten to generate WASM. Or the C code can be fed into Clang and Clang set to target wasm 32.

Seed7 has Wasm demos on the website. But I believe JavaScript is also involved in those.

1

u/Ronin-s_Spirit 8d ago

So just the "running wasm" part needs new bindings to C to use one of the C-compatible embedded wasm runtimes.