News for hackers. Stuff that matters.
Re:Applying NASA coding standards to JavaScript by Matthias247 on Thursday January 08, 2015 @01:26PM (#8857913)
Avoiding dynamic memory allocation and recursion are typical rules for embedded scenarios, where programs run in safety critical contexts on tiny microcontrollers. These rules are not for easy static analyzation but for having a deterministic memory usage. In the best case one where you can proof that your application will in no state exceed the available memory. Similar rules are also enforced in automotive scenarios.

Allowing recursion allows to blow the stack. Allowing malloc/free might blow the heap. Even when it does not do it immediatly it might do it over time due to heap fragmentation.

There are no comments on this comment yet.