by zem · 11y ago · 0 comments
static void* address = &address;
This is helpful for things that take void* context pointers that you want to match with logical equality.
To be fair, I've seen code like this exactly once.
In my practice these exceptions are ubiquitous. Multiple tiny interpreted DSLs (which cannot be compiled more efficiently for the latency reasons), efficient protocols, all that stuff. System programming, in other words, and it's exactly the stuff Rust was supposed to be designed for.
> But it's definitely not the rule and the speed difference between the one and the other is so small
2-4 times difference is not "small" in system-level programming.