5 ms·
No, it's actually very hard to give large examples. You're not going to replace a million lines of C with a 1000 lines of Lisp, unless something crazy is going
by kazinator 7y ago
No, it's actually very hard to give large examples. You're not going to replace a million lines of C with a 1000 lines of Lisp, unless something crazy is going on, like most of that million lines is completely the wrong code for the requirements at hand. Or it solves a huge problem X, which includes small subproblem Y; and in the Lisp program we only care about Y.
Small examples are easy: for instance, some one-liner in Lisp based on hashing, compared to a five-liner in C, plus 1000 lines of infrastructure: hash implementation, dynamic strings, ...
Big C programs that have the Greenspunned architecture don't need a lot of additional lines to add new functionality.
- lisper 7y ago> You're not going to replace a million lines of C with a 1000 lines of Lisp Maybe not, but it's quite plausible to replace a million lines of VHDL with 1000 lines of a DSL embedded in Lisp. But 1000x win is unusual. Usually it's closer to 10x. But that's still a bigger win than you're going to get by learning to type faster.