4 ms·
Lots of articles like this out there about Lisp. To quote Linus Thorvalds: > Talk is cheap, show me the code If you think you can write better code in Lisp, w
by continuational 6y ago
Lots of articles like this out there about Lisp. To quote Linus Thorvalds:
> Talk is cheap, show me the code
If you think you can write better code in Lisp, well, show us some examples of that.
- yawaramin 6y agoOK, here's an example: https://cs.brown.edu/~sk/Publications/Papers/Published/fkt-teach-scope-mut/paper.pdf https://cs.brown.edu/~sk/Publications/Papers/Published/fkt-t... In this paper the authors describe how students actually grasped fundamental concepts better in Schema than in Java, despite being taught both throughout the course of the semester.
- username90 6y agoIf they wrote java with closures people would understand it as well. Instead they used more complicated examples for java which skews the results. Example if you translate their lisp example directly. Their original lisp: ( let ([ x 3]) ( let ([ f ( lambda (y ) (+ x y ))]) ( let ([ x 5]) (f 10)))) Java: { int x = 3; { Function<Integer,Integer> f = y -> y + x; { int x = 5; { return f.apply(10); }}}} They argued that Java is less concise so they couldn't have as many examples, but I feel that example gets the point across just as well and it has comparable number of characters.
- mbrodersen 6y agoAny examples of successful large scale production code in LISP? There are many examples of those in Java/C++/...
- yawaramin 6y agoWalmart's transaction processing system in Clojure. Every single sale in at least North America goes through that system.