foreign objects and the garbage collector

2021-09-04 Thread Tim Meehan
I was looking at writing something to interact with gpsd. There is a shared memory interface, and a Unix socket interface. The protocol spoken by gpsd is JSON, so I figured that I would just open up a socket and start talking ... however ... really early on in the man page, it says "it is a bad ide

Re: foreign objects and the garbage collector

2021-09-04 Thread Vivien Kraus via General Guile related discussions
Hello, Le samedi 04 septembre 2021 à 07:41 -0500, Tim Meehan a écrit : > I'd rather not compile anything in C, and just use the tools in Guile to > interact with libgps. Is there a way to get Guile's garbage collector to > call "gps_close" on the opaque structure returned by "gps_open"? I think it

macro syntax-error works in prefix but not curly-infix

2021-09-04 Thread Damien Mattei
hi, i have this macro: (define-syntax <+ (syntax-rules () ((_ var expr) (define var expr)) ((_ err ...) (syntax-error "Bad <- form")) ;; does not work in infix ! )) why my syntax-error pattern never reach in infix: scheme@(guile-user)> {x <+ 7 8} While compiling expression: Syntax

Re: foreign objects and the garbage collector

2021-09-04 Thread Tim Meehan
Thanks Vivien, I had not considered dynamic-wind. I'll look into that a bit more. Cheers, Tim On Sat, Sep 4, 2021 at 8:35 AM Vivien Kraus wrote: > Hello, > > Le samedi 04 septembre 2021 à 07:41 -0500, Tim Meehan a écrit : > > I'd rather not compile anything in C, and just use the tools in Guile

Difficulty integrating with Swift/Objective-C

2021-09-04 Thread paul
Good day, I have an existing app which is written in Swift and runs on macOS 10.15. I would like to provide users a way of customising the app (initially just simple things like modifying keybindings for example, later hopefully more) and as a keen Emacs user, i'm inspired by the idea of pro