Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

I have some hoot related questions:

Is it possible to load multiple wasm modules in the game.js file? It would be helpful for reducing the compile times (and maybe used for hot reloading if possible, reloading the hoot module from javascript). I could not figure out how to use  load_extension.

I also tried the repl (works great with the geiser hoot extension for Emacs)  but, since it can't reload functions, I did not figure out how to use it effectively, could you share some tips?

Yes, it is possible to load multiple wasm modules but there are some caveats that make it an advanced topic. I have done this before, though. One issue is that record type descriptors are not canonicalized between wasm modules, so if you had record type <foo> in modules A and B they would be completely different types.

Whole program compilation is just kind of a slow thing in general. We are trying to make compilation less frequent during development by improving the tools for live hacking. We're not there yet, of course, but it's getting better.

I don't understand what you mean by "it can't reload functions"?