***jonsger1 is now known as jonsger
***jonsger1 is now known as jonsger
<chrislck>is (apply fn args) known to have performance issues with big args? <chrislck>hmmm no: (define lst (iota 10000000)); ,time (apply + lst) = 0.3s and (fold + 0 lst) = 0.5s <montxero>I've written a small library, how do I load it in the repl? <RhodiumToad>,use (whatever) is a shorthand for (use-modules (whatever)) for the repl <RhodiumToad>you may also need to add the current dir or whatever dir your module is relative to to the load-path, there's a function for that <montxero>was killing my self with ,import (whatever) <RhodiumToad>(add-to-load-path ".") is more likely what you wanted unless your dir is named "pwd" <montxero>Hmmm, do I need to do someting special to call funtions defined in the library? <RhodiumToad>ok, so the docs say the r6rs definition is actually expanded to a guile-style (define-module), so it should be fine to load it with ,use <RhodiumToad>the (add-to-load-path) part needs to be done in the repl, not the module <montxero>RhodiumToad: I can't call functions exported in the library <montxero>I did the (add-to-load-path) in the repl as well <montxero>it does. the file name is interpreter.scm <RhodiumToad>hm, it works when I try a trivial module using the same style <RhodiumToad>I put (library (interpreter) (export foo) (import (rnrs)) (define (foo x) (+ 1 x))) into interpreter.scm, <RhodiumToad>and did (add-to-load-path ".") and ,use (interpreter) in the repl <RhodiumToad>ok, I just tested that with the exact same as above and it also worked <montxero>but my original library is not working yet <montxero>Does it matter that I compiled it first? <montxero>with `guile interpreter.scm ` in a terminal? <dale`>I have had patches in the database #40719 for some time now to introduce an improved (ice-9 getopt-long) module. I realize it's a bit of an elephant-bomb compared to most patches, but was wondering if someone might be able to review it sometime soon? ***terpri__ is now known as terpri
<jackhill>I have a geiser problem: when using M-x geiser-connect, it takes a long time to connect, and the prompt in the repl looks like: contains many ^A^B <jackhill>everything seems to work fine with M-x run-geiser. I suspect I've done something wrong with my enviornment, but where should I start looking?