IRC channel logs

2026-06-11.log

back to list of logs

<probie>Is there a way to make guile automatically run with `--language wisp` if I call it on a file with a `.w` extension (alternatively, is there some sort of comment I can add to the top of a wisp file)?
<mwette>probie: `guile --language=wisp' should work I think.
<mwette>I have an old patch to add the `.w' kind of capability. Not sure it works on 3.0.11: https://github.com/mwette/guile-contrib/blob/main/patch/3.0.9/load-lang.patch
<identity>probie: if you are executing the file as a script, you can do the shebang described in (info "(guile) Guile Scripting") + --language wisp
<identity>assuming #! shebang-style block comments !# work in wisp files, which they probably do
<probie>(completely unrelated) If I want to submit a trivial PR, I need a codeberg account don't I
<identity>probie: you can also pester somebody with commit access over e-mail, if they ignore it then they did not deserve your patch :3
<identity>works every time 50% of the time
<identity>if you are planning on doing more than one or two drive-bys, though, you probably should make an account
<probie>I don't suppose someone has a macro like `(define-simple-record foo f1 f2 f3)` => `(define-record-type <foo> (foo f1 f2 f3) foo? (f1 foo-f1) (f2 foo-f2) (f3 foo-f3))`
<ft>probie: Not quite, but similar: https://codeberg.org/ft/guile-tap/src/branch/main/scheme/test/tap-harness.scm#L70
<probie>ft: thanks