4 ms·
> Specifically, I do not think I'm smart enough to violate the Chrome team's Rule of 2 I simply don't write only C, or these days much C at all. What I write m
by m3047 4y ago
> Specifically, I do not think I'm smart enough to violate the Chrome team's Rule of 2
I simply don't write only C, or these days much C at all. What I write mostly is Python, and if I can't optimize that enough then I write C; or call C. Of course when you're calling somebody else's libs, all bets are off; and I don't think it matters what language the lib is written in.
The last time I needed a serde that "went to eleven" I wrote it in Rust using PyO3. I'm not saying it was good Rust. I wouldn't know. The compiler is a bitch. It's too hard to reason about the machine. Luckily, I wasn't asking it to do much except some byte hacking in a buffer.
Reasoning about the machine is becoming more problematic as exotic architectures proliferate and compilers unceasingly do increasingly weirder optimizing shit. Dunno if it matters what the language is.