IRC channel logs

2026-01-17.log

back to list of logs

<binarydi`>Hi everyone, I'm trying to use Hoot, and can't figure out how to pass arrays of data from javascript to guile, and how to send a #f32 vector to javascript as a Float32Array, would you guys have any experience with that?
<binarydi`>One of the ways i can think of doing this (I believe this to be slow) is to create an array in javascript and manually append every number. I did find some more complex ways, which consided of creating views, but i think copying data like this is fine for now
<binarydi`>*consisted of creating views into wasm's linear memory
<ArneBab>binarydi`: I didn’t yet go so deep on interaction, but others here did, I think. It may need a few days for them to see this, though ⇒ needs a bit of patience.
<binarydi`>thanks ArneBab! I've posted the above question at the forums as well: https://community.spritely.institute/t/in-guile-hoot-how-to-pass-arrays-between-js-runtime-and-guile/794 , for others reading who would have an answer please post your solution over there!