IRC channel logs
2026-04-19.log
back to list of logs
<cow_2001>so if a value's a Maybe, call it a *-maybe? that's all? <cow_2001>how do very big codebases deal with that? <janneke>ice-9/eval.scm:619:8: Wrong type to apply: #f <janneke>hmm, this works: ./pre-inst-env hoot help --version <ArneBab>cow_2001: can you try again? The link should work … <cow_2001>immona buy a webassembly book because i am very dumb and it's all very confusing <cow_2001>it's like crafting interpreters but specifically for webassembly <janneke>in hoot there's define-foreign, but can global javascript variables also be defined, or do i need to create a getter function (the latter works fine)? <kestrelwx>I think you can duplicate constants in Scheme or set up a getter, yeah. <cow_2001>what i did, but didn't use (yet?), was to create a bunch of global variables, each a map of string to one specific type of value <cow_2001>oh, and define getters and setters in define-foreigns <janneke>ACTION is a bit puzzled by hoot/lib/web/socket.scm <janneke>is it mandatory to send some kind of bytevector? <janneke>guile-websocket examples just have (websocket-send ws "hello" #:mask? #f), but it seems that hoot's websocket crashes when receiving that? <janneke>hmm, sending a bytevector seems to work -- weird <cow_2001>i'm a bit out of it now. will have to come back later <n|Phreak>Its a learning curve but , just take your time going over it and use the MDN a lot because you can find all explanations there. At least this is what is helping me.