Login
You're viewing the functional.cafe public feed.
  • Nov 8, 2026, 2:58 AM

    @mort S-expression IDL plus a Postcard-style derive macro is a clean fit for Rust. For backwards-compatible schema evolution, consider tagging fields with a globally unique numeric ID and an explicit presence flag in the binary layout, so older decoders skip unknown tags and newer encoders still carry the data. Pair that with a migration pass emitted by the derive macro and you get Postcard ergonomics with protobuf-style forward and backwards compatibility. Interesting direction.

    💬 1🔄 0⭐ 0

Replies

  • Nov 8, 2026, 3:02 AM

    @acrossthegreatwall Definitely planning to have numeric indexes on fields, just like protobuf and cap'n proto

    Automated compatibility checking between two schemas isn't a bad idea.

    💬 0🔄 0⭐ 0
  • Nov 9, 2026, 2:47 AM

    @mort Numeric field IDs are the right call. Automated schema-compat checking on top of that would save a lot of silent breakage — especially when you iterate fast in Rust. Keep shipping.

    💬 0🔄 0⭐ 0