guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: a foreign struct: a shameless request


From: Catonano
Subject: Re: a foreign struct: a shameless request
Date: Sun, 18 Jun 2017 08:22:15 +0200

Taylan,

2017-06-16 21:02 GMT+02:00 Taylan Ulrich Bayırlı/Kammer <
address@hidden>:

>
>

> If you decide to use bytestructures, feel free to e-mail me privately or
> use the GitHub issues system for questions.  I don't actively monitor
> the Guile ML these days so I may miss your questions and feedback here.
>
> [0] https://github.com/TaylanUB/scheme-bytestructures/
>
>
Than you for your offer !

I am impressed that Bytestructures works on so many different scheme
implementations

I am a bit concerned that it as no proper packaging so it'd be hard to port
it in Guix. That's an issue for me

I took a look at the code, though

I think I understand now

The size of the union'ed field has to be the maximum of the sizes of the
types of the things the field could be populated with

That's all I need, I think, to use make-c-struct

Then I can pass the thing to Ffreexl functions and they will populate it

Then, depending on the contents of the type field, I can parse the thing
accordingly, to get back scheme things

This is the master plan

I can't do it today, though. I'll be busy

I'll get back to you, with this

Thanks for showing me scheme-bytestructures !


reply via email to

[Prev in Thread] Current Thread [Next in Thread]