Re:Why I rewrote my Rust keyboard firmware in Zig: consisten...
by AndrewDucker on Sunday March 07, 2021 @04:43AM
(#26374537)
I thought this was really interesting. Would love to know whether he had made mistakes or if these are necessary Rust pain points.
[ Parent
| on HN ]
Re:Why I rewrote my Rust keyboard firmware in Zig: consisten...
by tal8d on Sunday March 07, 2021 @05:31AM
(#26374750)
He was pretty upfront with the the possibility that his problems with rust were of his own making. The places he tried to leverage conditional compilation could be charitably described as "creative", and would raise eyebrows even in a language like C - where the preprocessor is relatively unconstrained. I'm not familiar with his project beyond the snippets he shared, so he may have had good reason to effectively ifdef inside a function call instead of any of the more traditional locations.