Jump to content

Bare-Metal Rust: Safety Below the OS: Revision history

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

17 November 2025

  • curprev 07:5107:51, 17 November 2025 PC talk contribs 13,110 bytes +35 No edit summary undo
  • curprev 07:4907:49, 17 November 2025 PC talk contribs 13,075 bytes +13,075 Created page with "I spent six hours fighting the borrow checker over an interrupt handler. Six hours. The compiler kept rejecting my code, insisting I couldn’t share mutable state between the main loop and the ISR. I was convinced Rust was being pedantic about something that worked fine in C for decades. When I finally compiled a workaround using unsafe, I stress-tested it. Race condition at 847 interrupts per second. The borrow checker had been right. The bug would’ve shipped. In C,..."