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
<pukkamustard>ACTION looking at brassica-chat
<dthompson>but I can help you
<pukkamustard>cool! i'm just trying to get a hello world running
<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>aha, ok
<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>I think that's what you're saying
<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.
<pukkamustard>dunno about performance
<dthompson>combining them is possible, generally speaking, but we don't have a tool to do this automagically
<dthompson>wasm->wasm calls are cheap
<pukkamustard>but doesnt instantiating two wasm modules, means calls go: WASM -> JS -> WASM with lot of copying stuff around?
<dthompson>no
<dthompson>if you import a wasm function into another wasm module that's going to be wasm->wasm
<pukkamustard>aha, nice
<dthompson>pukkamustard: lemme know how it goes and if you need any additional help!