| ▲ | brabel 16 hours ago | |
Lisp minimalism is very different. It assumes a runtime with automatic memory management for example, even if the language concepts themselves are minimal, especially in Scheme, it has almost no syntax and just a few core facilities on top of which everything else is built, which are closely related to the Lambda calculus, kind of ignoring completely what real computers actually look like. In C the minimalism comes from providing only the minimal set of things that are available in most (maybe all) architectures (the Von Neumann paradigm), like linear memory, a simple function calling convention, close mapping to Assembly operations etc. But C syntax is not very minimalist compared to Lisp , let alone Forth. The fact that C syntax became prevalent in the programming world seems to be mostly an accident to me, it’s not objectively better than those minimalist languages’ or Pascal’s, Prolog, ML families. | ||
| ▲ | WalterBright 7 hours ago | parent | next [-] | |
> providing only the minimal set of things that are available in most (maybe all) architectures The rise of C in the 1980s induced CPU makers to design instructions that cater to C semantics. | ||
| ▲ | rramadass 4 hours ago | parent | prev | next [-] | |
> In C the minimalism comes from providing only the minimal set of things that are available in most (maybe all) architectures (the Von Neumann paradigm), like linear memory, a simple function calling convention, close mapping to Assembly operations etc. This is beautifully illustrated in the old classic The C Companion by Allen Holub which overviews a simple abstract demo architecture and code generated for it. This is a small book (in the vein of K&R C) but contains enough illuminating info. for a programmer. | ||
| ▲ | Ygg2 13 hours ago | parent | prev [-] | |
> In C the minimalism comes from providing only the minimal set of things that are available in most (maybe all) architectures By that logic Brainfuck is even more minimal. Again. I'm saying minimalism isn't the goal. It's a good quality but not most important one. | ||