comex

Results 109 comments of comex

Hmm... As far as I can tell, the only way to mutate data within a constant *without* aliasing-UB is with interior mutability. But that requires `UnsafeCell`, and you can't pattern...

Okay, after being confused for a while, I think I understand the situation better. The example in the first post is *not* UB due to aliasing, assuming the const is...

For reference, C++ approaches this by *requiring* pointer/reference-typed const generic parameters to point to (its equivalent of) statics, and then respecting pointer identity. So `Foo` and `Foo` are different types...

Hello! What exactly do you need help with? The primary 'documentation' for the format is the code in the `Security` project on opensource.apple.com; `xnu` also contains a barebones parser that...

> > worth investigating directly bridging between Rust and Swift instead of relying on an Objective-C middle layer > > Definitely interesting, though I think there's merit in having both...

> Unrestricted XOR-list - XORing pointers to make an even more jacked up linked list > * You must allocate all your nodes in a Vec/Arena to be able to...

> So honestly I am just **deeply** frustrated by of course, a former lang and compiler dev responding with "no we should just do something magic instead" even when I...

I'm benchmarking some code that interacts heavily with the filesystem and OS, and sorely missing this functionality. Instantaneous load spikes are one thing, since they can be removed by outlier...

True. But if it's, say, an SSD's internal SLC cache, I don't think there's any way to clear it other than just waiting. Even if you do wait, both the...

Huh, seems very similar to [an MSVC ABI issue](https://github.com/rust-lang/rust/issues/38258). And here I thought the madness of changing ABI based on the presence of methods was Windows-specific...