IRC channel logs

2026-06-10.log

back to list of logs

<samplet>Are there known problems with the ‘hz’ argument to ‘statprof’? It doesn’t seem to do anything for me.
<rogerfarrell>Can someone please explain why guile's evaluation requires that procedure definitions including ~string-match~ use the ~(define proc (lambda (arg) ...))~ syntax? I thought there was no difference between that and the ~(define (proc arg) ...)~ syntax.
<rlb>rogerfarrell: not sure I understand the requirement you're describing.
<rogerfarrell> https://crafterbin.glennstack.dev/sB3K
<rogerfarrell>It works if I wrap the body in a lambda.
<rlb>Oh, that's not a valid syntax. It's either (define (test s) ...) or (define test (lambda (s) ...). i.e. it's not like common-lisp, elisp or clojure.
<rlb>Scheme is different --- the syntactic sugar definitions mirror the syntax of invocations.
<rlb>e.g. (foo x y z) can be defined by (define (foo x y z) ...)
<rogerfarrell>🤦
<rogerfarrell>I definitely knew that.
<rogerfarrell>I guess this is the price of working with scheme and elisp side-by-side.
<rogerfarrell>Thank you rlb.
<rlb>Oh, certainly --- and the elisp syntax ought to work fine with that dialect, of course.
<rlb>I imagine that's what you're doing, i.e. via ,language elisp, etc.
<rogerfarrell>Nothing so fancy as of yet. I am just familiarizing myself with Guile's regex tooling. I thought I had stumbled onto some idiosyncracy of subbing the actual parsing to C.