πŸ” Search
Sign in to post
Making A Mutex from Scratch in Rust to Understand Thread Safetyhttps://www.reddit.com/r/programming/comments/1xav3jo/making_a_mutex_from_scratch_in_rust_to_understand

Hey r/programming ! I wrote a comprehensive article on constructing a mutex from scratch. It covers: - Data races: what happens at the register level, and how parallel access can go wrong - Atomics & Memory Ordering: why atomics work and what each memory ordering does (Aq/Rel/AqRel/SeqCst) - Spin lock & Guards: Building a simple mutual exclusion lock via an AtomicBool, and providing safe access to the protected data - And finally, Mutexes: A more complex mutual exclusion primitive that can achieve better performance via thread::park/::unpark The article benchmarks and compares the performance…

2026 is an exciting year for the Rust compiler (and me)https://yoyo-code.com/2026-is-exciting-year-for-rust-compiler-and-me

Article URL: https://yoyo-code.com/2026-is-exciting-year-for-rust-compiler-and-me/ Comments URL: https://news.ycombinator.com/item?id=50166502 Points: 18 # Comments: 3

Tsrs: A Port of TypeScript to Rusthttps://blog.cloudflare.com/typescript-rust-port

Article URL: https://blog.cloudflare.com/typescript-rust-port/ Comments URL: https://news.ycombinator.com/item?id=50165953 Points: 12 # Comments: 0

β†—

0trust.social media

Loading your media...

Pick a GIF β€” Giphy

Loading GIFs...