Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> locking, reference counting and mandatory initialisation

Don’t need any of this crap for a garage door opener. Most firmware is incredibly simple.

    pthread_mutex_lock(&mutex);
    setBit(&gpioCtx, bitPosition, 1);
    pthread_mutex_unlock(&mutex);
Compiled with -Wall is fine and infinitely more readable that the Rust puke above, but you probably won’t need the lock or the warnings in your typical embedded project. The main issue with Rust appears to be that it invites masturbators that invent problem scenarios in their head and then overengineer every std lib API and crate available for consumption. Setting a bit on a dev board should simple. It should not be a chained mess full of operator soup.


Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: