Sergey "Shnatsel" Davidoff

Results 943 comments of Sergey "Shnatsel" Davidoff

I tried a bunch more things and couldn't get it to autovectorize: https://godbolt.org/z/7Kd8v4vPG We might need something like bytemuck here to view a `Complex` as a `&[T; 2]` or even...

I've taken a look at the Godbolt version. Wow, that is some aggressive loop unrolling! It looks good to me though. One more thing to try: we need to benchmark...

Performance tip: always use `chunks_exact` + [`remainder`](https://doc.rust-lang.org/stable/std/slice/struct.ChunksExact.html#method.remainder) instead of `chunks`. And yes, it should be possible to vectorize the heck out of this.

Thank you for reporting this! Treating this as `Some(String::new())` for consistency with JSON sounds good to me. I'm not familiar with XML parsing myself, but I'd be happy to merge...

Thank you for reaching out! Yes, this is interesting. I have also been looking into the [krates](https://crates.io/crates/krates) crate, which also lets one write custom traversal functions over the crate graph...

Regarding cargo-auditable vs cargo-cyclonedx: I've worked on both tools. "both have benefits and costs" just about sums it up.

Curiously, Cargo itself is in the process of migrating to PubGrub to speed things up, and also make the dependency resolver a standalone crate: https://rust-lang.github.io/rust-project-goals/2024h2/pubgrub-in-cargo.html The tracking issue is [here](https://github.com/rust-lang/rust-project-goals/issues/110),...

I may be very wrong here! Let me ask the person working on PubGrub in Cargo.

Indeed, the bits to be exposed by Cargo are [not sufficient](https://rust-lang.zulipchat.com/#narrow/channel/260232-t-cargo.2FPubGrub/topic/Progress.20report/near/490339607) for the task. Then `guppy` is clearly the best option, at least until Cargo adds [native SBOM precursors](https://github.com/rust-lang/cargo/pull/13709) and...