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

I have some firmware that runs an event loop. There is no malloc anywhere. But I do have an area which gets reset event handler after each call. Useful for passing objects up the call stack.

One other thing I tend to do anything that needs to live longer than the current call stack gets copied into a queue of some sort. I feel it's kinda doing manually what rusts borrow checker tries to enforce.





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

Search: