Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

According to Carmack subroutine calls are also disallowed. See https://web.archive.org/web/20210226152857/http://lambda-the...

This sounds very much like programming a traditional Programmable Logic Controller (PLC).



Seems curious to ban functions. If you ban function-pointers then you can statically ensure there's no recursion (including mutual recursion). At that point, all function calls are in principle able to be inlined, so any backtracking is merely a compiler-level implementation detail.

iirc, OpenCL C does something similar, banning function pointers and recursion (including mutual recursion), although it does so for different reasons than this pattern.


Well, a flight control computer is not too different from a PLC.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: