IRC channel logs
2025-04-10.log
back to list of logs
<cow_2001>so i wanna get ready for the lispy jam and finally, after several jams i joined but did not submit, actually submit something sorta maybe okay. so i want to really learn hoot. i've seen people talk about interactive development in guile, but i do not know how to really do that with hoot. the biggest thing i wrote was this dumb https://kaka.farm/dabbling/forest-fire/ and that is very small <dthompson>interactive development in hoot is not really possible at the moment <dthompson>it's something we're working on but there isn't a ready-to-use solution <cow_2001>i remember maybe hearing about interactive development in the last systemcrafters news announcement about spritely, but i do not remember what was said about it <dthompson>so the essential stuff is there, but there's no repl, for instance <cow_2001>you cannot do canvas.getContext() from within hoot? only by defining an FFI that does that? <cow_2001>you do not get all the methods within the object <cow_2001>do you have a better way of copying hoot stuff than command in a Makefile? guix shell coreutils guile-hoot -- bash -c 'cp -fv "$${GUIX_ENVIRONMENT}"/share/guile-hoot/*/{reflect-js/reflect.js,reflect-wasm/*.wasm} build/' <dthompson>cow_2001: we have plans to improve the tooling to copy these things. it's not ideal right now. <dthompson>setting up the makefile to copy them is the best approach for right now <cow_2001>there must be a way to do that from within guix with gexps or whatever <dthompson>cow_2001: regarding the ffi, it's important to understand that a wasm module is a secure sandbox. you cannot just call canvas.getContext() directly. for one thing, wasm modules run on many host systems, not just js ones. but also, the security model prevents access to things that aren't explicitly granted by the host upon instantiation. <dthompson>cow_2001: guix is not very relevant here as it's part of the build system. guix is higher in the tower of abstractions <cow_2001>explicit capability granting is very good <dthompson>'guild compile-wasm' should simply have an option that builds a binary and bundles with it the runtime libraries. <dthompson>there's a number of tooling related improvements we have backlogged but haven't gotten to yet