IRC channel logs

2026-05-18.log

back to list of logs

<pukkamustard>are there any public prelay peers that one could use for testing?
<kestrelwx>dthompson: Hi! Is there a way around thunking a module(or at least the code would need it) in order to get its reflector object? Right now I have to eval everything inside an init procedure, like I did last autumn. Using `SchemeModule.fetch_and_instantiate()` seems impossible, because fields such as `ffi_handler` are only set in `Scheme.#init_module()`. Maybe I'm missing something.
<dthompson>kestrelwx: if I'm understanding you correctly then that's still the way to do it. there's a chicken-and-egg problem here in that you have to instantiate before you can get a reflector
<dthompson>this is usually something you only have to worry about when working on hoot internals, so I'm curious how it's bubbled up into your project
<kestrelwx>dthompson: Oh, I'm needing it for passing data to WebGL.
<dthompson>might you be able to invert the relationship somehow, and have Scheme drive this?
<dthompson>like, if you are copying a Scheme bytevector to a Uint8Array from JS, you could do it from Scheme instead
<kestrelwx>Yeah, I have an idea. I'll try tomorrow.
<kestrelwx>I can pass an iterator over a Scheme bytevector and then in JS I wouldn't need reflection, right?
<kestrelwx>Good night!