[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: FlatBuffers.png (25 KB, 768x432)
25 KB PNG
let's talk about flatbuffers
I think they're neat and underutilized
>>
>>109604885
I literally wrote this for C++ two decades ago.
Still using it till this day in C# and Nim.
And honestly, I think 90% of all developers did the same at some point.
Google just trying to stay relevant in 2026, nothing more nothing less.
>>
>>109604885
never used this
as far as i know its just a codegenerator basically

but i prefer hand crafting my parser thank you.
>>
>>109604885
explain for the retards
>>
>>109604885
it's a really interesting trade-off. You get fast zero-copy reads at the expense of slower writes and bloated network packets compared to other serialization formats like Protobuf. If I'm writing a networked app, though, I generally prioritize smaller packets so I'm not sure I'd ever reach for FlatBuffers
>>
>>109605073
int abc = (int*)bytes

That's literally the whole magic.
>>
>>109605073
it's like json but less gay
>>
>>109604885
You're not Google.
Every API you ever develop fares better with JSON. Every client can easily read it, every developer can understand it, everyone can easily debug it in the tools they know.
Modern SIMD JSON libraries can parse gigabytes of JSON a second.

The boring solution is usually the better one.
When I was a young developer, I also wanted to use all the new, shiny stuff I read about. It was a mistake.
>>
>>109605154
I'm not gonna use json for inter-process communication
>>
>>109605128
c devs have been doing this for years thoughever?
>>
File: GyMfiYHXQAADs1D.jpg (37 KB, 417x286)
37 KB JPG
>>109604885
It's cool that a format similar to Cap'n Proto is somewhat adopted. They seem to be focussing on Cap'n Web nowadays (a format for the web using json)



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.