Zig is neat! Yes, you'll want to write a schema compiler plugin, and will also need to write some code to handle non-schema-specific details of the format; I would start by reading the encoding docs and build some support for reading "untyped" structs/lists/etc.
You'll want to decide what language to write the schema compiler plugin in. Using something other than Zig might be easier since that way you don't have to deal with the bootstrapping issues; If you choose zig, you'll have to write wrappers for the types in schema.capnp by hand in order to bootstrap. If you have more specific questions, I'll gladly field them. Keep us posted. -Ian Quoting q...@daurnimator.com (2019-11-29 05:44:58) > As https://capnproto.org/otherlang.html says: > > If you�d like to own the implementation of Cap�n Proto in some > particular language, [1]let us know! > I'm looking into playing with capnp and zig (https://ziglang.org/). > Zig is a relatively new language that aims to one day replace C. > Principles include: > � - No hidden control flow (which means that there can be e.g. no > hidden allocations) > � - Unified compiletime and runtime syntax and semantics: no separate > language for compile like you have with the C preprocessor or C++ > templates > � - Extensive self-reflection capabilities > � - Easy cross-compilation for non-native targets > As an ahead-of-time compiled languages, it seems like the recommended > path forward would be to implement a `capnp` plugin. > Daurn > > -- > You received this message because you are subscribed to the Google > Groups "Cap'n Proto" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to [2]capnproto+unsubscr...@googlegroups.com. > To view this discussion on the web visit > [3]https://groups.google.com/d/msgid/capnproto/f6c9d668-d1a0-4415-8366- > b49cd1cbe36b%40googlegroups.com. > > Verweise > > 1. https://groups.google.com/group/capnproto > 2. mailto:capnproto+unsubscr...@googlegroups.com > 3. > https://groups.google.com/d/msgid/capnproto/f6c9d668-d1a0-4415-8366-b49cd1cbe36b%40googlegroups.com?utm_medium=email&utm_source=footer -- You received this message because you are subscribed to the Google Groups "Cap'n Proto" group. To unsubscribe from this group and stop receiving emails from it, send an email to capnproto+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/capnproto/157505104614.2183.15829197305750898430%40localhost.localdomain.