frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Miri: Practical Undefined Behavior Detection for Rust [pdf]

https://research.ralfj.de/papers/2026-popl-miri.pdf
39•ingve•4d ago

Comments

nu11ptr•1h ago
Thank you to those who continue to develop Miri. It is a great tool for those of us that have crates that need to use unsafe. While nothing will give 100% confidence in the lack of UB, Miri is a great start.
sleeplessworld•56m ago
I have just been subjected to a Paradox Exception caused by reading that the memory safe Rust language has and can cause undefined behaviour. My spatial location code in the Universe has been marked with a Time-Space::Paradox violation and is awaiting debugging by celestial dev-ops. Luckily I am currently a live process, so my space and memory will not at this time be reclaimed by the Global-Universal Operating System.
nu11ptr•51m ago
> by reading that the memory safe Rust language has and can cause undefined behaviour

Only unsafe blocks can cause undefined behavior. The memory safe portion of Rust that most program in cannot cause UB. If you use "forbid unsafe" then you can be assured your program is free from UB (assuming all the crates and stdlib you use are as well).

sleeplessworld•15m ago
It still leaves me lingering in a space-time-continuum where I search for the safety of rational completeness, while inadvertently living on a Möbious strip.
landr0id•29m ago
If you have a codebase that uses unsafe, I highly recommend running your tests through Miri (cargo miri nextest) and seeing what spills out.

I ran tests for a codebase at work through Miri a while ago and found a couple of distinct classes of UB: https://github.com/rust-lang/miri/issues/1807#issuecomment-8...

These can be summarized as:

1. Converting a reference to the first field of a struct to a pointer of its parents struct type

2. Functions with signature (&self) -> &mut self_inner_field_type

3. Having a mut pointer to the data inside of a Box<T>

#1 and #3 were somewhat surprising to me. #2 seems to be common enough that there's even a clippy lint for it.

A lot of C and C++ developers understand that undefined behavior is bad, but in practice observe its impact less. From my own experience, Rust's optimizations are pretty aggressive and tend to surface UB in way more observable ways than in C or C++.

mmastrac•26m ago
I used Miri for some key deno libraries and spent a fair bit of time cleaning up the violations. Many of them were real unsoundness bugs due to reference aliasing.

Unsafe code absolutely needs Miri if the code paths are testable. If not all code is Miri-compatible, it's worth restructuring it so you can Miri test as much as possible.

Note that Miri, Valgrid and the LLVM sanitizers all compliment each other and it's really worth adding all of them to a project if you can.

Fighting Fire with Fire: Scalable Oral Exams

https://www.behind-the-enemy-lines.com/2025/12/fighting-fire-with-fire-scalable-oral.html
42•sethbannon•1h ago•32 comments

Ask HN: Who is hiring? (January 2026)

175•whoishiring•3h ago•86 comments

Clicks Communicator

https://www.clicksphone.com/en/communicator
130•microflash•2h ago•87 comments

FracturedJson

https://github.com/j-brooke/FracturedJson/wiki
407•PretzelFisch•7h ago•105 comments

4th Edition Unix in the Browser

https://unixv4.dev/
14•pjmlp•34m ago•3 comments

10 years of personal finances in plain text files

https://sgoel.dev/posts/10-years-of-personal-finances-in-plain-text-files/
344•wrxd•8h ago•144 comments

TinyTinyTPU: 2×2 systolic-array TPU-style matrix-multiply unit deployed on FPGA

https://github.com/Alanma23/tinytinyTPU-co
14•Xenograph•39m ago•4 comments

IPv6 just turned 30 and still hasn't taken over the world

https://www.theregister.com/2025/12/31/ipv6_at_30/
83•Brajeshwar•4h ago•117 comments

What you need to know before touching a video file

https://gist.github.com/arch1t3cht/b5b9552633567fa7658deee5aec60453/
187•qbow883•6d ago•122 comments

Punkt. Unveils MC03 Smartphone

https://www.punkt.ch/blogs/news/punkt-unveils-mc03
67•ChrisArchitect•3h ago•62 comments

Publish (On Your) Own Site, Syndicate Elsewhere

https://indieweb.org/POSSE#
4•47thpresident•4m ago•0 comments

Ask HN: Who wants to be hired? (January 2026)

55•whoishiring•3h ago•88 comments

Standard Ebooks: Public Domain Day 2026 in Literature

https://standardebooks.org/blog/public-domain-day-2026
292•WithinReason•11h ago•44 comments

Accounting for Computer Scientists (2011)

https://martin.kleppmann.com/2011/03/07/accounting-for-computer-scientists.html
8•tosh•1h ago•0 comments

Assorted less(1) tips

https://blog.thechases.com/posts/assorted-less-tips/
122•todsacerdoti•7h ago•27 comments

39th Chaos Communication Congress Videos

https://media.ccc.de/b/congress/2025
302•Jommi•6h ago•45 comments

Miri: Practical Undefined Behavior Detection for Rust [pdf]

https://research.ralfj.de/papers/2026-popl-miri.pdf
39•ingve•4d ago•6 comments

C –> Java != Java –> LLM

http://www.observationalhazard.com/2025/12/c-java-java-llm.html
9•WoodenChair•5d ago•8 comments

HPV vaccination reduces oncogenic HPV16/18 prevalence from 16% to <1% in Denmark

https://www.eurosurveillance.org/content/10.2807/1560-7917.ES.2025.30.27.2400820
411•stared•9h ago•216 comments

ThingsBoard: Open-Source IoT Platform

https://github.com/thingsboard/thingsboard
35•pretext•5d ago•4 comments

Why users cannot create Issues directly

https://github.com/ghostty-org/ghostty/issues/3558
675•xpe•18h ago•244 comments

Happy Public Domain Day 2026

https://publicdomainreview.org/blog/2026/01/public-domain-day-2026/
404•apetresc•18h ago•81 comments

Parental controls aren't for parents

https://beasthacker.com/til/parental-controls-arent-for-parents.html
241•beasthacker•6h ago•228 comments

The rsync algorithm (1996) [pdf]

https://www.andrew.cmu.edu/course/15-749/READINGS/required/cas/tridgell96.pdf
11•vortex_ape•2h ago•0 comments

One Number I Trust: Plain-Text Accounting for a Multi-Currency Household

https://lalitm.com/post/one-number-i-trust/
101•ayi•9h ago•64 comments

A small collection of text-only websites

https://shkspr.mobi/blog/2025/12/a-small-collection-of-text-only-websites/
85•danielfalbo•8h ago•37 comments

A website to destroy all websites

https://henry.codes/writing/a-website-to-destroy-all-websites/
714•g0xA52A2A•23h ago•347 comments

Show HN: Dealta – A game-theoretic decentralized trading protocol

https://github.com/orgs/Dealta-Foundation/repositories
47•kalenvale•7h ago•17 comments

Matz 2/2: The trajectory of Ruby's growth, Open-Source Software today etc.

https://en.kaigaiiju.ch/episodes/matz2
92•kibitan•1w ago•47 comments

Going immutable on macOS, using Nix-Darwin

https://carette.xyz/posts/going_immutable_macos/
94•weird_trousers•11h ago•63 comments