Skip to content
TILens What matters today in tech v0.3.2
Theme

Topic - Edition

Rust

4 items on 16 Oct 2026
Rust

Inline specialization

Warning: This is a half-baked idea. There are many soundness issues with specialization in its current form. I would like to propose an alternative. While it may not be as powerful, it should be sound due to its…

Source: Rust Internals Forum ds84182
Rust

Pass small structs by value or reference?

I have a struct: struct DocPos { block: Uuid, offset: usize, flags: u32 } And lots of functions around it, for example: fn doc_pos_to_utf16_index(pos: DocPos) -> Utf16Index fn compare_positions(&self, a: &DocPos, b:…

Source: Rust Users Forum RobertN
Rust

Buffer initialization does not get optimized out

I have the following snippet (minimization of a similar problem encountered in real code): const N: usize = 32; fn read(block: &[u8; 8 * N]) -> [u64; N] { let (chunks, tail) = block.as_chunks();…

Source: Rust Users Forum newpavlov