3 ms·
I appreciate the effort, but this is a misguided idea. This is not the first Embedded <LANG> attempted. For example, Embedded C++ [1] has been around for a cou
by cjensen 2y ago
I appreciate the effort, but this is a misguided idea.
This is not the first Embedded <LANG> attempted. For example, Embedded C++ [1] has been around for a couple of decades and is only used in a few weird places like Apple Device Drivers.
The problem is that if you are so very constrained that you can't afford to have dynamic memory that is reference counted, then you probably have so little memory and functionality that you may as well just use C as an advanced assembly language for the processor.
[1] https://en.wikipedia.org/wiki/Embedded_C%2B%2B https://en.wikipedia.org/wiki/Embedded_C%2B%2B
- saagarjha 2y agoIt’s not just places where you can’t take the performance hit of allocation: some code cannot allocate for correctness reasons.