artyom-poptsov / guile-dbus

GNU Guile bindings to DBus.
GNU General Public License v3.0
5 stars 2 forks source link

Why custom c library and not guile FFI to the dbus C library #6

Open ieugen opened 7 months ago

ieugen commented 7 months ago

Hello,

I am new to guile and tying my luck to build a project with dbus functionality. I am trying to understand why you built this project with a C library and did not build guile FFI bindings to dbus C library directly?

https://www.gnu.org/software/guile/manual/html_node/Foreign-Function-Interface.html

Thank you, Eugen

artyom-poptsov commented 7 months ago

Hello Eugen!

I'm not actively maintain this project anymore as there are seems to be better options for working with D-Bus in Scheme:

I am trying to understand why you built this project with a C library and did not build guile FFI bindings to dbus C library directly?

Well, FFI seems to be a better option indeed to wrap C libraries. But when I started to build libraries for Guile in ~2013 I didn't know much about this FFI stuff (and maybe back in the days it wasn't so developed anyways.) In the meantime I'm writing C code for more than 15 years already and get quite good at it so C was my first choice.

Personally I like how Guile allows to blend C and Scheme code: you can have low-level stuff with pointers, bits and manual memory management on the bottom level and the shiny Scheme world build on top of it.

-avp

ieugen commented 7 months ago

Thank you @artyom-poptsov .

If you are not maintain this project, maybe you could add a notice and recommend the two projects above - for people like me who don't know any better.

Github also has the option to Archive projects if you like.