New WIP zig-syrup library, and libsyrup C API

I have been working on a library for syrup, which is the OCapN wire protocol. The Zig library lets you work with syrup from Zig, and libsyrup can be used for any project that can interop with C.

I will try to remember to update this thread with progress!

4 Likes

I’ve made a lot of progress, and almost all Zig types can be loaded to and from a syrup string now. There’s also a bunch of customization.

I have also begun work on an OCapN/CapTP core library which I’ve pushed here: zig-ocapn

Currently it only has the models, but it should be able to write (and soon read) to/from Syrup into the models. Excited to go further with this.

4 Likes

Hello @vivi, I have also been working on a zig syrup implementation, but it is is a part of a larger full OCapN implementation in zig. My problem is that I am very much using AI assistance. I started the project about 5 months ago, and within that time developed it privately while learning how to utilize AI, OCapN, and Zig all at the same time. It wasn’t until the last couple months that the entire FLOSS community all came out with separate but basically aligned terms of contributions with AI. I know it has been said that your own implementations can use AI, but I would also just like an implementation of OCapN to not be considered a harm to the community for any reason, so I am being very careful. So all this being said, I would be happy to share what I have if interested.

I should also say, I have been working on an entire ocapn emperimental stack with zig at the core, but with multiple language bindings, multiple netlayers, a couple test apps, and even an ocapn topology visualizer.

1 Like