Goal
Generate zero-copy "view" types for all XDR types that read fields directly from raw wire bytes lazily — no allocation, no copying, just pointer arithmetic over the wire format. Instead of fully decoding XDR into Go structs, view types only decode the fields you actually access, resulting in significant speedups for selective access patterns.
Background
Inspired by FlatBuffers, Cap'n Proto, and @dmkozh's C++ visitor pattern proof of concept, the approach generates view types alongside the existing Go types.
Tasks
Goal
Generate zero-copy "view" types for all XDR types that read fields directly from raw wire bytes lazily — no allocation, no copying, just pointer arithmetic over the wire format. Instead of fully decoding XDR into Go structs, view types only decode the fields you actually access, resulting in significant speedups for selective access patterns.
Background
Inspired by FlatBuffers, Cap'n Proto, and @dmkozh's C++ visitor pattern proof of concept, the approach generates view types alongside the existing Go types.
Tasks