History
The Java Virtual Machine currently has no built-in support for dynamically typed languages:
- The existing JVM instruction set is statically typed.
- JVM has limited support for dynamically modifying existing classes and methods. It currently works only in a debugging environment.
JSR 292 (Supporting Dynamically Typed Languages on the Java Platform) proposes to:
- add a new
invokedynamicinstruction at the JVM level, to allow method invocation relying on dynamic type checking, - to be able to change classes and methods at runtime dynamically in a production environment.
Following the success of the JRuby Java implementation, the Da Vinci project was started at the end of January 2008. The capabilities experimented by Da Vinci are planned to be added to Java 7. It aims to prototype this JSR, but also other lower-priority extensions. The first working prototype, developed as a patch on OpenJDK, was announced and made available on end of August 2008.
Since then, the JRuby team has successfully wired dynamic invocation in their codebase. Dynamic invocation shipped with the 1.1.5 release, and will be disabled on JVMs without invokedynamic capabilities.
Since then, part of the project has already been integrated in the upcoming JDK 7 codebase. and integrated in the Java 7 release.
Read more about this topic: Da Vinci Machine
Famous quotes containing the word history:
“History does nothing; it does not possess immense riches, it does not fight battles. It is men, real, living, who do all this.... It is not history which uses men as a means of achievingas if it were an individual personits own ends. History is nothing but the activity of men in pursuit of their ends.”
—Karl Marx (18181883)
“The one duty we owe to history is to rewrite it.”
—Oscar Wilde (18541900)
“There has never been in history another such culture as the Western civilization M a culture which has practiced the belief that the physical and social environment of man is subject to rational manipulation and that history is subject to the will and action of man; whereas central to the traditional cultures of the rivals of Western civilization, those of Africa and Asia, is a belief that it is environment that dominates man.”
—Ishmael Reed (b. 1938)