3 ms·
>In short, programming with automatic memory management has been a part of Unix from Bell Labs onward. Not sure what this post is about. Automatic memory manag
by coldtea 4y ago
>In short, programming with automatic memory management has been a part of Unix from Bell Labs onward.
Not sure what this post is about. Automatic memory management is a property of the language, not the operating system. UNIX has had languages with AMM since forever, and those existed way before UNIX too.
- iainmerrick 4y agoIt's about a) this: UNIX has had languages with AMM since forever and b) the fact that those languages are core parts of UNIX. It isn't just a kernel, it's also tools like bash and awk. I think it's a decent rebuttal to people saying, e.g., "Java isn't UNIX-y because it needs a garbage collector". Which I don't think I've heard recently, but I have heard in the past.
- flohofwoe 4y agoIn a way, UNIX does have automatic resource managament: when a process is killed, its memory is returned to the system, file descriptors are closed, etc... In contrast, (IIRC) on the Amiga the OS didn't have per-process resource tracking, e.g. memory leaks would persist after a program was closed or had crashed.
- icedchai 4y agoI learned C on the Amiga, and this was one of the most annoying things about it. That and the lack of memory protection. It did make me pretty careful though!