Hacker News new | ask | show | jobs
by londons_explore 661 days ago
When you're designing something that sells for a dollar to retailers, eg. a birthday card that sings, your boss won't let you spend more than about 5 cents on the microcontroller, and probably wants you to spend 1-2 cents if you can.
4 comments

Perhaps a singing birthday card doesn't need to format strings.
How else would you get nice looking logs for debugging it?
Using log4c
I kind of get where you're coming from but at what point do we admit that such use cases are the fringe and not the main?
> When you're designing something that sells for a dollar to retailers

Then you shouldn't prioritize compatibility with 1980s Unix code, which is what C++ is for.

Sure, but such extreme use cases are rare and don't need to be constantly brought up.
Even on larger microcontrollers you often have to write a bootloader...
Ok but most of these use cases don't link to the standard libs anyway, even if you're writing a C program.
Very occasionally I guess. They're almost always bare metal.
You still want a bootloader to support firmware updates, typically in the first 8 kB of flash or something like that.
Good point. I guess don't use `fmt` for that...