IRC channel logs

2026-01-31.log

back to list of logs

<n|phreak>So playing around with hoot , and if I create a simple function like square do I need to export that function like in javascript or asm.js? I see the body example from dthompson but how would you call a function using javascript from a scm file?
<n|phreak>Also the example if you just use "Hello, world!" has hello.scm and try to compile , it errors out saying you need (use-modules) so I tried that but not getting the hello, world string to render from the guile web server
<n|phreak> https://files.spritely.institute/docs/guile-hoot/0.6.1/Tutorial.html
<dthompson>n|phreak: evaling just a string isn't going to print anything when you run it in the web browser. only if you use `guild compile-wasm --run`
<sneek>Welcome back dthompson, you have 1 message!
<sneek>dthompson, ArneBab says: mandy sounds very interesting! I’ll have to see whether I manage to integrate it with wispwot to get activitypub with stronger and scaling automatic spam-protection and content discovery that’s still fully controlled by whom you follow.
<dthompson>the missing use-modules thing is a bit of out-of-date documentation. thanks for letting me know I will fix it!
<dthompson>ah okay, nvm you are referring to the bit after "Hello, world!" where you load it in the browser. re-reading the tutorial now...
<dthompson>I *would* expect the variable 'message' to contain the string "Hello, world!" in this case
<dthompson>I just tested that part out again and it works for me