Re: FFI arg_types for C array

2020-03-12 Thread Nala Ginrut
Hi Myles! In your case, you've announced int array in your C code, so you shouldn't use u8vector, the correct one is (u32vector 0 1 2 3 4 5 6 7 8 9) Please notice that 0 is the placeholder since your array starts from 1. On Thu, Mar 12, 2020 at 4:22 AM Myles English wrote: > Hi Nala, > > On Tue,

Re: FFI arg_types for C array

2020-03-12 Thread Nala Ginrut
BTW, you may realize that the FFI type is platform-dependent, so u32vector is assuming your platform is x86. Please take care of these issues when you write product code. Best regards. On Thu, Mar 12, 2020 at 4:06 PM Nala Ginrut wrote: > Hi Myles! > In your case, you've announced int array in

Re: guile-gi: In procedure dynamic-link: file: "libguile-gi", message: "file not found"

2020-03-12 Thread sirgazil
On Wed, 11 Mar 2020 22:29:19 -0500 Mike Gran wrote > On Wed, Mar 11, 2020 at 06:15:28PM -0500, sirgazil wrote: > > Hi, > > > > I'm trying out guile-gi 0.2.2 on the Guix System by running the empty > > window example in > > https://spk121.github.io/guile-gi/Empty-Window.html#Emp

Re: emulate "sum type" pattern matching?

2020-03-12 Thread Chris Vine
On Wed, 11 Mar 2020 19:58:04 + Sam Halliday wrote: > Hi all, > > I have read the Guile manual as my introduction to Guile. I am very > impressed at how mature this project is and was overwhelmed by the > feature set, which seems to be on-par with heavily invested technologies > like Java and

Re: emulate "sum type" pattern matching?

2020-03-12 Thread Ricardo Wurmus
Chris Vine writes: > On Wed, 11 Mar 2020 19:58:04 + > Sam Halliday wrote: >> Hi all, >> >> I have read the Guile manual as my introduction to Guile. I am very >> impressed at how mature this project is and was overwhelmed by the >> feature set, which seems to be on-par with heavily invest

Re: Incomplete backtrace

2020-03-12 Thread Ludovic Courtès
Hi, Jan Synacek skribis: > On Wed, Mar 11, 2020 at 7:07 PM Jan Synacek wrote: [...] >> $ guile -s test.scm >> Backtrace: >> In ice-9/boot-9.scm: >> 1736:10 8 (with-exception-handler _ _ #:unwind? _ # _) >> In unknown file: >>7 (apply-smob/0 #) >> In ice-9/boot-9.scm: >> 718

Re: emacs lisp compatible names

2020-03-12 Thread Ludovic Courtès
Hi! Sam Halliday skribis: > I read in the Guile manual's section on the Emacs lisp frontend that > there is special falsey treatment for nil and empty lists, etc etc. > > But I was left wondering if all the other language constructs of emacs > lisp are implemented, e.g. optional parameters, its

Re: emulate "sum type" pattern matching?

2020-03-12 Thread Chris Vine
On Thu, 12 Mar 2020 15:56:47 +0100 Ricardo Wurmus wrote: > Chris Vine writes: > > On Wed, 11 Mar 2020 19:58:04 + > > Sam Halliday wrote: > >> Hi all, > >> > >> I have read the Guile manual as my introduction to Guile. I am very > >> impressed at how mature this project is and was overwhelme

Re: guile-gi: In procedure dynamic-link: file: "libguile-gi", message: "file not found"

2020-03-12 Thread Arne Babenhauserheide
Mike Gran writes: > I had wanted to wait until I scrubbed the docs to push a new release, > but, I could push one out pretty quickly to pick up those bug fixes. That would be great! I also got stuck on this … > If you want a workaround in the meantime, try setting the > GUILE_SYSTEM_EXTENSIONS