JSR 274で仕様の標準化が進められているBeanShellは、JavaVM上で動作するスクリプト言語である。文法がJavaのそれとほとんど同じという点が大きな特徴といえる。もちろん、動的な型付けに対応しているなど、スクリプト言語としての利点も兼ね揃えている。
「BeanShell」というスクリプトとしてJavaコードを実行できるシェルで遊んでみましょう。 「あれ?int x = 100;じゃないか?」と思った人。もちろん、Javaならそうです。が、BeanShellはあくまで「スクリプト処理環境」です。Javaの言語仕様にそって書かれたコード ...
現在、Javaプラットフォームではスクリプト言語のサポートが急速に進められている。同時に、Java VM上で動作するさまざまなスクリプト言語の実装が登場しており、JavaプラットフォームはすでにJava言語という枠を飛び越え、マルチ言語環境に進化しようとし ...
「BeanShell」というスクリプトとしてJavaコードを実行できるシェルで遊んでみましょう。 先に、Java 6でスクリプト言語が使えるようになったという記事を掲載しましたが「Java 6でスクリプト言語を使おう」参照)、これはあくまで「既にJavaをバリバリ使い ...
Project Jigsaw introduced modules and the access issues that come with them. Things changed again in Java 16 as strongly encapsulated internals became the default. Interfaces can be accessed from a ...
Richard Monson-Haefel posted a blog entry recently called "Groovy: The Sleeping Giant". In it, he says that "dynamic programming" is the wave of the future, and that Groovy has the most potential ...
2.1.0 This release formalizes the merge of 2.0b6 with suitable backports from the development (HEAD) version of BeanShell (3). Also included are are some ALv2 contributions to the BeanShell2 fork that ...