Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    vyzo
    @vyzo
    Marc posted some code
    that can wrap a closure around a procedure and attach meta data to the closure's first free variable
    we can use this for docstrings
    which is a common discussion topic
    Marc-André Bélanger
    @belmarca
    interesting
    where did he post it? ML?
    Jason Felice
    @eraserhd
    nice
    vyzo
    @vyzo
    My concern is what the perf effect would be if we turn all these top level procedures into closures
    maybe we can do the wrapping at runtime when we load in the interpreter
    also docstrings are useless in static executables
    Marc-André Bélanger
    @belmarca
    I thought it would be optional
    Jason Felice
    @eraserhd
    What is an ssi? I assume it's a gambit header type thing, but why would one use (ssi: module) in a build spec?
    vyzo
    @vyzo
    that's for modules implemented in pure gambit
    the .ssi file is what the compiler generates normally for the module interface
    to be loaded by the expander
    but you can do that manually for special cases
    vyzo
    @vyzo
    or just base64 it if it is not a proper string
    Jason Felice
    @eraserhd
    Anybody have decent syntax files for gerbil, for inspiration? Just use Scheme?
    eraserhd @eraserhd is currently converting some shell scripts to gerbil.
    Jason Felice
    @eraserhd
    Back in the day, Bigloo was a wonderful, batteries included environment. Nothing has really compared to it, but gerbil is pretty close.
    vyzo
    @vyzo
    syntax files? you mean syntax highlighting?
    take a look at gerbil-mode
    in etc/gerbil.el
    eraserhd @eraserhd wonders if there is something like erb, except for scheme.
    vyzo
    @vyzo
    not that i know of
    maybe we can write something :)
    Oberheim
    @ober
    we have an erb work alike
    @eraserhd ^^
    Marc-André Bélanger
    @belmarca
    what's erb?
    Oberheim
    @ober
    yeah the #{hello} expansion
    Marc-André Bélanger
    @belmarca
    ah
    Oberheim
    @ober
    just working on the web interface now, and could use help
    Marc-André Bélanger
    @belmarca
    yeah we have that, just not merged into core
    Oberheim
    @ober
    Thinatra port
    https://github.com/ober/oberlib/blob/master/oberlib.ss#L251 right now it's crude and expands env vars in templates. but I know @belmarca had something better
    Oberheim
    @ober
    @belmarca has a quasiquote
    Jason Felice
    @eraserhd
    announcing "gitout", a collection of missing git/github cli tools, in gerbil: https://github.com/eraserhd/gitout . Notably "git browse-link" which takes a filename and selection coordinates and figures out how to make a link to github.com showing that code.
    and also clojerbil, which I'll be adding to since I write a lot of Clojure. Right now, it only has ->, if-let, and when-let macros. https://github.com/eraserhd/clojerbil
    (for clojerbil, I hope to port immutable data structures one of these days)
    Oberheim
    @ober
    nice
    it would have been nice to have that at my last job. clojure shop, but no real way to use it in devops
    Gambit can compile to Java... that would be an interesting circle
    vyzo
    @vyzo
    @eraserhd do you want to add them to the gerbil directory?
    Jason Felice
    @eraserhd
    sure!
    Oberheim
    @ober
    is gxpkg gerbil-directory aware?
    Marc-André Bélanger
    @belmarca
    @eraserhd w
    Marc-André Bélanger
    @belmarca
    Dumb phone, I was trying to visit the links 🤣