Cormac Relf
Cormac Relf
@lawliet89 that's closer, but you could reuse existing APIs by making the trait give you an Iterator instead. Just abstract ` &str::char_indices().map(|(i, _)| i)` and create an `index++` version for...
One more reason to get rid of `config_aliases` is that it doesn't work without Cargo, because it relies on all the `CARGO_CFG_TARGET_FAMILY ` (etc) flags being set. I was writing...
Here it is with just ```rust let ptr = self.0; ``` https://play.rust-lang.org/?version=stable&mode=release&edition=2018&gist=e6d56b0b8587b398020085b9ec9c5130 You can see that because we never wrote null into self.0, the Drop implementation deallocates the pointer we...
Although it does generate very slightly worse code, because the NonNull constructor checks its invariant. If you're optimizing away a big memcpy that's not a huge problem. ```diff @@ -3,6...
A more standard use case is building a skip list. Each node has a tower of links, up to a (typically constant bounded) random height. You can make an adapter...
Here's my report on using intrusive linked lists to implement a skip list. I got it to work with some changes. You can't easily build a skip list using `intrusive_collections::LinkedList`...
I know you've already merged the solution, but FWIW, this is what DAWs do when recording audio, so that if the program crashes, you have something. A while back I...
Also while you’re here, I recently made a ton of improvements to a fork of fuzzy-projectionist that you should check out! Aside from the FZF integration, it turns globs into...
Thanks for your detailed response! > Personally, I think that slow updates/modifications to toolchain containers are by far the biggest hindrance with existing RBE setups. Too right. The equivalent of...
> "one container per build with better lazy fetching of toolchains outside of the Bazel build graph with eviction etc handled by NativeLink (please correct me if I'm wrong). :heavy_check_mark:...