|
|
|
|
|
by madiathomas
2496 days ago
|
|
Curly braces, for loops, while loops, if statements, case statements, variable declaration and initialisation etc. All those things were carbon copied from C/C++, not Lisp. The features you mentioned aren't part of the Java language, they are tools used by Java language. JVM isn't part of Java as a language, they are part of the Java platform. Most people confuse the language with the platform. JVM is a tool used by the language. Even Javac isn't part of Java. It is a tool used to compile Java [1]. I doubt any Java Programmer was dragged halfway to Lisp. If it was the case, we were going to see at least 10% of those Developers finishing the trip to Lisp but we didn't. That's why Lisp remains an obscure language used by 100 people on a good day. [1] http://sheikyerbouti.developpez.com/tmp/j2se5.gif |
|
That's all minor stuff. But, even the very invention of conditional statements are originally from Lisp. http://www-formal.stanford.edu/jmc/recursive/node1.html John McCarthy proposed if/then/else and recursion to the Algol (the grandfather of C) community in 59.
> JVM isn't part of Java as a language
Historically there is no independent invention of the Java language. The Java language was developed together for and with the platform -> the JVM. Thus Java assumed on day one that it runs on a garbage collected platform.
> I doubt any Java Programmer was dragged halfway to Lisp.
There are a bunch of Java developers which struggle with Lisp-derived languages (like Clojure).
> If it was the case, we were going to see at least 10% of those Developers finishing the trip to Lisp but we didn't.
You didn't know where many of the features of the Java runtime come from or where they originated from. The originally first garbage collected language implementation was Lisp 1 in the end 50s. Here on Hackernews you can learn about it. Java (originally called oak) was explicitly designed to be garbage collected. The Java developers (Gosling) explicitly didn't want C++ like memory management.
> That's why Lisp remains an obscure language used by 100 people on a good day.
I have no idea where you get your numbers from.