google/flatbuffers ? reverse-engineered prompt

Reverse engineered prompt

Build me a cross platform serialization library called FlatBuffers. I want people to define their data in a simple schema file, run a command line compiler, and get generated code for languages like C++, Rust, Go, Java, Python, JavaScript, TypeScript, Swift, Kotlin, C sharp, Dart, PHP, Lua, and Nim. The important part is that saved data can be read directly from memory without unpacking everything first, so it stays fast and uses very little memory.

Please include a C++ core, the flatc style compiler, basic runtime support for the main languages, examples with a simple monster schema, and tests that prove data written in one language can be read in another. It should work on Windows, macOS, Linux, and Android with normal build steps using CMake. Add clear docs showing how to build the compiler, write a schema, generate code, serialize data, save or send the buffer, and read it later. Look up current docs online if you need to.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab