4 ms·
Producing a crappy interpreter for a toy C-like language is about the same as producing a crappy interpreter for a toy Lisp language. C did turned into a Tower
by kazinator 11y ago
Producing a crappy interpreter for a toy C-like language is about the same as producing a crappy interpreter for a toy Lisp language.
C did turned into a Tower of Babel: in the libraries. For instance Win32 is essentially one language, POSIX another. Portability among Unix systems alone used to be a mess of #ifdef directives through the 1980's and 1990's.
- lisper 11y ago>Producing a crappy interpreter for a toy C-like language is about the same as producing a crappy interpreter for a toy Lisp language. Ab-initio perhaps (and even that isn't clear because parsing sexprs is a lot easier than parsing C). But producing a production-compiler for a non-toy Lisp-like language given a compiler for Lisp is a heck of a lot easier than producing a production-quality compiler for a non-toy C-like language given a compiler for C. > C did turned into a Tower of Babel: in the libraries. Sure, and for the same reason: it's easy to write library code in C. In fact, that's the only thing that's easy to do in C. So that's what C programmers do: they write library code. They don't, as a general rule, write compilers. So the compilers stay stable and the libraries don't.