Hey folks! I just barely got this working, but wanted to share it anyway. ![]()
I just managed to compile the whole inform7 compiler, including inform6 and inblorb, so that I can convert an inform7 source file into a working gblorb game, and play it, fully in the browser with no installation or server-side processing!
You can test out a very minimal demo here:
https://zicklag.github.io/inform7-wasm/
The source code is on GitHub:
It required a very straight-forward patch to change the return types of indirect function calls to return int instead of void because WASM is stricter about the function call types.
There was a small shim added for some system functions that aren’t actually called I think, but otherwise there wasn’t really much actual porting to do.
I did this over the last couple days with a lot of AI help, but I think it’s pretty close to a very useful state.
I’m thinking I might experiment with a custom web-based IDE for inform. I’m hoping it might be able to make Inform a little easier for people to experiment with and get into. Not having to install anything could be pretty sweet. And I think being able to share web examples that can be tested and modified, and shared with just a link, would be pretty cool!
