by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    vyzo
    @vyzo
    I am also exporting the exception predicate now
    will push shortly
    updating the documentation
    so that you can catch the exception
    and do something meaningful in the no values case
    alright, pushed
    is it just me or is github acting up for everyone today?
    so for the emacs detection
    vyzo
    @vyzo
    1) I have set .ss files to default to gerbil mode
    2) I also use the modline, all gerbil code has -*- Gerbil -*- in it
    so handling the no values case:
    (try do-some-amb-stuff-and-collect (catch (amb-exhausted? e) []))
    vyzo
    @vyzo
    also note that all-of still works outside the amb expression
    this works:
    (begin-amb-random (all-of (let ((x (amb 1 2 3)) (y (amb 1 2 3))) (required (> x y)) (cons x y))))
    so we are backwards compatible
    and if the constraint is not satisfied, it will return the empty list
    vyzo
    @vyzo
    alright, merged
    vyzo
    @vyzo
    and I am off to bed
    night fellas!
    François-René Rideau
    @fare
    I would like two infix operators so I can wrap a form on the left or right within another form.
    e.g. x #> y(y x) and f #< x(f x) or some such
    looking at the srfi 1 thing... there might be an issue with wrong dependencies in the spec
    François-René Rideau
    @fare
    oops, I forgot some srfi/ prefixes in extra dependency paths
    François-René Rideau
    @fare
    ^ fixed in #532
    vyzo
    @vyzo
    ah, that explains it
    vyzo
    @vyzo
    so for the infix operators, they have to be supported by the reader first and foremost
    Jeffrey M. Young
    @doyougnu
    @fare I got it working, I was tyring to get a local build of gerbil to run in nix-shell, like nix-shell shell.nix --run "cd src && ./build.sh" not a build from nixpkgs or your branch. I got it working thanks to @thibran.
    François-René Rideau
    @fare
    If the wiki page is incomplete or unclear, please update it. I also accept patches to the scripts in gerbil-utils.
    Oberheim
    @ober
    is there a libnix.so?
    as a form to link to it in gerbil, and provide an alternative to guixsd :P
    François-René Rideau
    @fare
    Not so far as I know. Could be a fun project.
    Oberheim
    @ober
    given it's popularity, and providing a scheme that is better as well
    François-René Rideau
    @fare
    hi
    François-René Rideau
    @fare
    Aha. I thought I was defining a symbol-macro, but actually I was defining a macro that doesn't distinguish between foo and (foo . args)
    François-René Rideau
    @fare
    Is there already a definition for something like that?
    (defrule (let-syntax-id ((id val) ...) body ...)
      (let-syntax ((id (syntax-rules () ((_ . a) (val . a)) (_ val))) ...) body ...))
    François-René Rideau
    @fare
    should I add it to std/sugar ?
    Oberheim
    @ober
    @eraserhd do you build anything on osx using static? say gxpkg install github.com/ober/slack does that take you 90 minutes to build with your fomula?
    Oberheim
    @ober
    I see, --enable-single-host on osx with clang is very painful
    fare @fare finds a bug in the JSON parser... PR coming.
    Oberheim
    @ober
    o|O
    time to upgrade production
    François-René Rideau
    @fare
    François-René Rideau
    @fare
    Is there a portable (endianwise) double->bytes function?
    fare @fare finds u8vector-double-ref in std/misc/bytes
    François-René Rideau
    @fare
    ouch, how do I define extensions to match, already?
    vyzo
    @vyzo
    @fare for symbol macros, look at identifier-rules
    for match extensios, look at defsyntax-for-match
    めゆんおげらく
    @Mokritsakh_twitter

    Hello, may I ask a question?
    I'm using Arch Linux x86_64 and using the 0.16 release of gerbil But when I run build.sh, I get the following error.
    However, when I run build.sh, I get the following error.

    >>> preparing /home/mokritsakh/workspace/gerbil/bootstrap
    >>> compiling runtime
    building gerbil/runtime in /home/mokritsakh/workspace/gerbil/bootstrap/lib
    ... compile gx-gambc.scm
    *** ERROR IN ##thread-deadlock-action! -- Deadlock detected
    >>> preparing bootstrap
    >>> compiling gerbil core
    ... compile /home/mokritsakh/workspace/gerbil/bootstrap/lib/gerbil/core$_MOP_$_MOP_2___rt.scm
    *** ERROR IN ##thread-deadlock-action! -- Deadlock detected
    *** ERROR; build failed

    I have installed gambit-c, openssl, zlib and sqlite for the build.
    I'd appreciate any help I can get.

    • gambit-c 4.9.3-1
    • zlib 1:1.2.11-4
    • openssl 1.1.1.g-2
    • sqlite 3.32.2-1
    $ uname -r
    Linux mokritsakh 5.6.15-arch1-1 #1 SMP PREEMPT Wed, 27 May 2020 23:42:26 +0000 x86_64 GNU/Linux
    François-René Rideau
    @fare
    Interesting. What if you export GERBIL_BUILD_CORES=0 ?