3 ms·
To me 5000 lines of C code is a LOT of code. Linus's first release of Linux was only 10,000 lines of code. Given much higher expressiveness of Lisp, I think 500
by sytelus 13y ago
To me 5000 lines of C code is a LOT of code. Linus's first release of Linux was only 10,000 lines of code. Given much higher expressiveness of Lisp, I think 5000 lines of List code is not all that to boast about. I can't pull a reference here but according to one of the studies, the productivity of some of the well known programmers was measured at 10K LOC/year (yes, it's very loose measure of "productivity"). So writing 5000 lines of good code may require ~6 months, i.e., not a trivial amount of work. Although I agree it is cool to have X server in Lisp.
- varjag 13y ago5000 lines isn't really a lot for a real-life project in any language. Besides, a lot of the code here seems to be in the data. E.g. https://github.com/pyb/zen/blob/master/data/request-specs.lisp https://github.com/pyb/zen/blob/master/data/request-specs.li... describes X spec request syntax, accounts alone for nearly 1000 lines, and it's not really possible to trim down.
- dmytrish 13y agoAgreed, I was surprised how many code Slime implementation has, there are source files about several kloc in size. From what I saw I can say that "lisp expressiveness" did not helped much there.
- qbrass 13y agoHere's Xorg's nested X server if you want to see how much C code it takes. http://cgit.freedesktop.org/xorg/xserver/tree/hw/kdrive/ephyr http://cgit.freedesktop.org/xorg/xserver/tree/hw/kdrive/ephy...