3 ms·
> Why use one of the trashiest languages This isn't about C++. ECMAScript has garbage collection.
by msla 8y ago
> Why use one of the trashiest languages
This isn't about C++.
ECMAScript has garbage collection.
- EugeneOZ 8y agoFunny joke, but I have doubts about garbage collector in the world of Embedded Software.
- jononor 8y agoEmbedded spans a lot of different usecases and requirements. For lots of things a garbage collector is a non-issue. Not everything has hard realtime requirements.
- andrius4669 8y agoFlawed one, it failed to collect itself.
- partycoder 8y agoThe most significant form of garbage collection in the ECMAScript community is called npm.
- monocasa 8y agoWhat's the worse case latency of said garbage collection and how many embedded use cases does that preclude?
- msla 8y agoWell, the worst case of not having garbage collection is crashing due to memory leaks. So tell me... is predictable latency worse than a hard crash?
- EugeneOZ 8y agoThen why Java programms still have memory leaks?
- monocasa 8y agoHard real time stuff generally doesn't leak because they statically allocate the at rest data and stack allocate the intermediate data. Hard real time stuff also is, by definition, broken code if you can't reason about worse case latency.