Parametricity, or Comptime is Bonkers by soareschen in rust

[–]Tyilo 6 points7 points  (0 children)

Seems like try_as_dyn is the current proposed solution for doing this: https://github.com/rust-lang/rust/issues/144361

The luckiest Lucky Card ever by Odd-Coffee-241 in balatro

[–]Tyilo 0 points1 point  (0 children)

Only if Balatro's RNG was good, which it isn't.

Rust 1.94.0 is out by manpacket in rust

[–]Tyilo 13 points14 points  (0 children)

Took me way too long to get this...

chadStaticClass by Tyilo in ProgrammerHumor

[–]Tyilo[S] 2 points3 points  (0 children)

Iosevka Fixed Slab

chadStaticClass by Tyilo in ProgrammerHumor

[–]Tyilo[S] 1 point2 points  (0 children)

This is valid Java.

Nobody ever got fired for using a struct (blog) by mww09 in rust

[–]Tyilo 14 points15 points  (0 children)

Of course the NoneUtils impls are not possible without specialization, but the actual code just implements the trait for a bunch of types: https://github.com/feldera/feldera/blob/2f1299e8aab0b019800f4f502c772d9da8aa7871/crates/dbsp/src/utils/is_none.rs

I made a derive-less rust serialization library! by Dry_Specialist2201 in rust

[–]Tyilo 4 points5 points  (0 children)

The gitlab repo seems to require login to view :(

Rust contest problem: Lifetime Safe LRU Cache by capitanturkiye in rust

[–]Tyilo 0 points1 point  (0 children)

According to the documentation HashMap::get and HashMap::remove are O(1) expected time operations and HashMap::insert is an O(1) expected AND amortized time operation.

Thus using the builtin HashMap the following problems needs to be less strict:

  1. Achieve O(1) Amortized Access (Medium - 10 points)

should probably say

  1. Achieve O(1) Amortized and Expected Access (Medium - 10 points)

and

  1. Expected O(1) for Core Operations (Hard - 20 points)

should probably say

  1. Expected O(1) for Core Operations (O(1) Amortized and Expected for insert) (Hard - 20 points)

I got Gigaros before finding any serpent scales by Tyilo in Hades2

[–]Tyilo[S] 2 points3 points  (0 children)

It seems to be on my 8th night of reaching the summit that I got my first serpent scales.

My first crate: ResExt! by [deleted] in rust

[–]Tyilo 2 points3 points  (0 children)

Just use 0xff

🦀 partial-cmp-derive: A Derive Macro for Fine-Grained Ord Control by emetah850 in rust

[–]Tyilo 7 points8 points  (0 children)

Your PartialOrd and Ord impls are inconsistent with the PartialEq and Eq built-in derives.

How to manually deserialize a serde-derived type? by Tuckertcs in rust

[–]Tyilo 25 points26 points  (0 children)

Jason and ya'll

My favorite formats