News for hackers. Stuff that matters.
Re:Introduction to Compilers and Language Design (2021) by programmer_dude on Wednesday May 18, 2022 @09:31AM (#31422536)
Manual memory management is optional. IIRC some version of the D compiler was written assuming an infinite virtual address space (basically they just did not bother calling free() ever)!
Re:Introduction to Compilers and Language Design (2021) by duped on Wednesday May 18, 2022 @11:12AM (#31423797)
There's a chapter in the book dedicated to memory layout of programs that discusses program segments, paging, implementation of malloc/free, etc that is more or less required before getting to the assembler and codegen stages.

Even if you can write a compiler assuming infinite memory that generates programs that also assume it, it would be a disservice to readers to ignore that for brevity. It's an important part of understanding how programs are created.

Re:Introduction to Compilers and Language Design (2021) by melony on Wednesday May 18, 2022 @11:06AM (#31423721)
Is that why D is so prevalent among (some) quant shops?