Techcable

Results 134 comments of Techcable

Idiomatic rust projects typically one of those things as a substitute for garbage collection: 1. Reference counting: [`Rc`](https://doc.rust-lang.org/std/rc/struct.Rc.html) (or `Arc`) 2. arena allocation (primarily `bumpalo` and `typed-arena` 3. Typed indices...

Enabling nested-values and serde support by default was part of the hypothetical changes mentioned for [slog v3](https://github.com/slog-rs/slog/wiki/Things-to-make-different-next-time-around-(slog-v3%3F)) I would consider these feature flags experimental features for now. I agree these...

I 100% agree, this is part of the reason tests were broken with `feature="dynamic-keys"` (until I fixed them) Unfortunately, making this change would break backward compatibility :(

> Eeehhhh... I bolted on this feature and now I regret it. :D > > The problem is that dynamic keys are an opt-in and probably less used feature here,...

> I was thinking about this for a while and the only somewhat reasonable approach I could figure out is: > > * For each method taking key add another...

> Looking at it, [`non_exhaustive` was stabilized in 1.40](https://blog.rust-lang.org/2019/12/19/Rust-1.40.0.html). That's almost as new as Debian oldstable. I will probably go with methods instead but I'd rather not forward one to...

Hi! I did three things here: 1. Merged branch `master` to update this PR 2. Added a `BytesKind` enum 3. Changed the default formatting Old formatting for `i32::to_le_bytes(-1)` would be...

Generally logging latency always seems to be way too high for me to use in super-hot code like my VM's interpreter loop. I always have to hide it behind a...

Whew, this took me down quite the rabbit hole! I've created a simple regression test and managed to reproduce the issue not only on 2.2.2 but also on 2.2.1 and...

As a workaround, we could add a nightly-only feature that has a `default impl` when T is Debug or Display.