787
STOP WRITING C (lemmy.world)
submitted 10 months ago by Maven@lemmy.world to c/programmerhumor@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] Jordan_U@lemmy.ml 2 points 10 months ago

Yes: https://github.com/avr-rust

When you're writing code involving global state and interrupts, and any access to an integer larger than a u8 needs to be surrounded by cli() and sei() just for guaranteed atomicity, then you will truly come to value rust's statically enforced thread / memory safety.

this post was submitted on 21 Jan 2024
787 points (93.4% liked)

Programmer Humor

32572 readers
105 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS