Re: Bytestructures 1.0.1

2018-01-07 Thread Amirouche Boubekki
On 2018-01-08 00:45, taylanbayi...@gmail.com wrote: Amazingly, a bug that existed for months has been coincidentally discovered hours after I made the release. :-)) The alignment of vectors and unions within structs was not being calculated correctly. Fortunately, it was a quick fix. So here's

Re: Bytestructures 1.0.1

2018-01-07 Thread Alex Vong
taylanbayi...@gmail.com (Taylan Ulrich "Bayırlı/Kammer") writes: > Amazingly, a bug that existed for months has been coincidentally > discovered hours after I made the release. :-)) > > The alignment of vectors and unions within structs was not being > calculated correctly. Fortunately, it was a

Bytestructures 1.0.1

2018-01-07 Thread Taylan Ulrich Bayırlı/Kammer
Amazingly, a bug that existed for months has been coincidentally discovered hours after I made the release. :-)) The alignment of vectors and unions within structs was not being calculated correctly. Fortunately, it was a quick fix. So here's 1.0.1 already! https://github.com/TaylanUB/scheme-by

Re: Wrong guile-bytestructures description for gnunet progress-info struct with unions

2018-01-07 Thread Taylan Ulrich Bayırlı/Kammer
Amirouche Boubekki writes: >> If both of those are correct, further possibilities would be: >> >> - Some or all of the structs in the C code are "packed". >> >> - There's a bug in bytestructures. >> >> To rule out these two, you can use a simple test case: write a tiny C >> lib with a function th

Re: ffi-help: documentation

2018-01-07 Thread Matt Wette
> On Jan 7, 2018, at 1:19 PM, Thien-Thi Nguyen wrote: > > > () Matt Wette > () Wed, 6 Dec 2017 18:46:59 -0800 > > Currently, I'm working on documentation. I like manuals that > start out with simple demos to show what's going on. That is > my approach here. Enjoy ... > > Cool. Exam

Re: ffi-help: documentation

2018-01-07 Thread Thien-Thi Nguyen
() Matt Wette () Wed, 6 Dec 2017 18:46:59 -0800 Currently, I'm working on documentation. I like manuals that start out with simple demos to show what's going on. That is my approach here. Enjoy ... Cool. Examples are great. I suggest only one tweak, small but pervasive, that would

Re: Wrong guile-bytestructures description for gnunet progress-info struct with unions

2018-01-07 Thread Amirouche Boubekki
Thanks for the reply. On 2018-01-07 19:39, taylanbayi...@gmail.com wrote: Amirouche Boubekki writes: Here are some possibilities I can think of, wildly speculatively. - %time-relative is defined wrong (I couldn't find the corresponding GNUNET_TIME_Relative definition to compare) Here is t

Bytestructures 1.0.0

2018-01-07 Thread Taylan Ulrich Bayırlı/Kammer
I'm proud to make the first official release of Bytestructures, which is long overdue. The release brings no new features since the void pointers feature that was pushed to the git repo on September 29, but I've since added support for GNU Autotools, making it easy to package bytestructures on mos

Re: Wrong guile-bytestructures description for gnunet progress-info struct with unions

2018-01-07 Thread Taylan Ulrich Bayırlı/Kammer
Amirouche Boubekki writes: > I triple checked the %fs-progress-info definition, it's correct, > but I still get incorrect value for status field, see download.scm > line 13. Wow, GNUNET_FS_ProgressInfo is hell of a struct. :-) I also checked the bytestructure definition just in case but yes it

Wrong guile-bytestructures description for gnunet progress-info struct with unions

2018-01-07 Thread Amirouche Boubekki
I am trying to rewrite the guile bindings for gnunet to guile-bytestructures and I face an issue for two days regarding `struct GNUNET_FS_ProgressInfo`. I attached to this mail the relevant files. In particular, download.scm try to download a file over gnunet, if the file is in gnunet it should