IRC channel logs
2026-06-29.log
back to list of logs
<pukkamustard>are there any examples of how to compile goblins with hoot? I'm not finding anything directly in the documentation. <dthompson>pukkamustard: we haven't written anything official because it's not the best process right now <dthompson>hoot-ffi/imports.js gives you a starting point for the requisite js code you need to boot a goblins program <dthompson>you'll want to copy/paste that into your project and tweak as necessary <pukkamustard>say I have a WASM module exporting some function and some Scheme code using the exported function. Anyway of linking the WASM module to the Hoot generated WASM? <pukkamustard>without going trough something like imports.js and instantiating two WASM modules <dthompson>I think I might need some more info. are you talking about having a non-hoot wasm module that you want to use? <dthompson>what's the issue with instantiating two modules? <pukkamustard>yep, one WASM contains cryptographic functions compiles from C (or Zig) the other is Hoot generated. <pukkamustard>no issue with instatiating two modules, just feels nicer to me to link it into one WASM module. <dthompson>combining them is possible, generally speaking, but we don't have a tool to do this automagically <pukkamustard>but doesnt instantiating two wasm modules, means calls go: WASM -> JS -> WASM with lot of copying stuff around? <dthompson>if you import a wasm function into another wasm module that's going to be wasm->wasm <dthompson>pukkamustard: lemme know how it goes and if you need any additional help!