Float Bloat: vector serialization gone wrong

3 points by binarymax


mqudsi

The rust example is forced, apparently just for the sake of saying rust suffers from this too. You don’t use json!() to serialize, you use it to convert a json string into a dynamic/un-typed serde_json::Value.

You can see for yourself: https://play.rust-lang.org/?version=stable&mode=debug&edition=2024&gist=aff4db184f4615d8ce2bc58f6d2026e5

(I’m on a phone so I had an llm produce the sample I could copy-and-paste. It sucks, but it gets the point across.)

Edit:

I think the whole post and examples are all llm-generated, the description of the rust json macros is just plain wrong and the C# code sample is completely bogus. What is this magic Serialize() function called standalone without a class?