@sima@chaos.social i once sort-of-interrupted a talk at an embedded conference (i was friendly with the talk-giver, and it was a pretty casual sort of event) to demonstrate with some live coding that it is actually completely reasonable to implement and use malloc() on a tightly constrained embedded device... as long as you don't need to implement free()
which, as it turns out, is frequently a valid strategy for a wide variety of embedded devices, either because they genuinely never need to free memory, or because if the need arises it is quicker and easier to just reset the chip
Conversation
Notices
-
Embed this notice
linear cannon (linear@nya.social)'s status on Monday, 28-Apr-2025 23:45:13 JST linear cannon
- Haelwenn /элвэн/ :triskell: likes this.
-
Embed this notice
🐧sima🐧 (sima@chaos.social)'s status on Monday, 28-Apr-2025 23:45:15 JST 🐧sima🐧
Monday after spring break right back getting dragged into (gpu) memory management fun. I guess time to re-drop my tongue-in-cheek take on this:
memory management is trivial, right until you add reclaim
then it becomes impossible