由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - javascript 真的来自于java上的script?
相关主题
动态脚本适合做glue code, 静态语言适合做heavy liftingIs Javascript the new PERL?
想写个简单的 JVM- 用C++还是Java把Java和浏览器整合可以成为很大的热点
Re: 大妈问一下JAVA的编程平台就是需要安装上JAVA就行了?蜥蜴和好虫掐起来了
aspx网页现在到底流行不? (转载)jvm 能变成 vmware 那种东西吗?
Java必然败在oracle身上[bssd]周末乱侃
古狗研究新出炉:C++ Is The Best Performing Language不管你愿意不愿意,java正在prevailing
Sun当年设计Java的败笔我来尽量客观地谈谈GC/ref count,还有RAII
zhaoce同学啊Java真的不能disable GC么?
相关话题的讨论汇总
话题: java话题: scripting话题: javascript话题: jsr话题: nashorn
进入Programming版参与讨论
1 (共1页)
n******7
发帖数: 12463
1
一直以为javascript本来跟java没关系
当年为了伴大腿才这么叫的
但是看java官方对script的支持,又困惑了
先是说
Although scripting languages are usually interpreted at runtime, they can be
compiled into Java bytecode that can then be executed on the Java Virtual
Machine (JVM). Scripting languages can be faster and easier to use for
certain problems, so it is sometimes chosen by developers of Java
applications. However, if you write your Java application in a scripting
language, then you lose the benefits of the Java language (such as type
safety and access to the class library).
Java Specification Request (JSR) 223: Scripting for the Java Platform
addresses the issue of integrating Java and scripting languages. It defines
a standard framework and application programming interface (API) to embed
scripts in your Java applications and access Java objects from scripts. You
can find more information about JSR 223 on the Java Community Process (JCP)
website at http://jcp.org/en/jsr/detail?id=223
以上我感兴趣的,结果第二页又说:
The Nashorn engine is the default ECMAScript (JavaScript) engine bundled
with the Java SE Development Kit (JDK). The Nashorn engine was developed
fully in Java by Oracle as part of an OpenJDK project
Although Nashorn is the default ECMAScript engine used by the Java Scripting
API, you can use any script engine compliant with JSR 223, or you can
implement your own.
这意思是说ECMAScript (JavaScript) 就是官方默认的JVM script language 了?
n******7
发帖数: 12463
1 (共1页)
进入Programming版参与讨论
相关主题
Java真的不能disable GC么?Java必然败在oracle身上
java8 lambda 就是语法糖古狗研究新出炉:C++ Is The Best Performing Language
java vs javascriptSun当年设计Java的败笔
Java 9 and beyondzhaoce同学啊
动态脚本适合做glue code, 静态语言适合做heavy liftingIs Javascript the new PERL?
想写个简单的 JVM- 用C++还是Java把Java和浏览器整合可以成为很大的热点
Re: 大妈问一下JAVA的编程平台就是需要安装上JAVA就行了?蜥蜴和好虫掐起来了
aspx网页现在到底流行不? (转载)jvm 能变成 vmware 那种东西吗?
相关话题的讨论汇总
话题: java话题: scripting话题: javascript话题: jsr话题: nashorn