Another look at Groovy (Latest java based scripting language)別のを見て格好いい(最新Javaベースのスクリプト言語)
I was recently pulled into私は最近駆り出される Groovyグルーヴィー , a new Java based scripting language. You can read aは、新しいJavaベースのスクリプト言語です。を読むことができる good article highlighting groovy in onjava.com良い記事を強調グルーヴィーonjava.com .です。
Groovy adds several syntactic sugar to Java.ジャワのいくつかの統語的に砂糖をグルーヴィーに追加します。 By itself it should be nice.を単独ではニースばならない。 However considering that most Groovy developers are originally Java developers, it might promote habit development which they cannot bring back to Java.しかしほとんどのグルーヴィー考慮して開発者には、もともとジャワの開発者は、習慣の開発を促進することかもしれないが省略してジャワもたらすことはできません。 Also some of scripting niceties are good for scripting languages, yet feel out of place for an oo development language.また、いくつかのスクリプティングの常識が適しているスクリプト言語、疎外感を抱くのはまだありませんはい開発言語です。 Just bad habit forming is what I think.悪い習慣を形成だけは何だと思います。
Personally I have seen that when I am forced to do some coding in javascript, I have to be extra careful when I am back in Java, to avoid pages of compilation errors.個人的に私は私は強制で見たことがあるときにこれを行うにいくつかの符号化ではJavaScript 、余分な慎重に行かなければならないときに私は戻ってジャワ、コンパイルエラーを回避するためのページです。 In that sense I am more comfortable using BeanShell as it much more closely mimics Java.その意味で私はより快適に使用してbeanshellジャワはるかに密接にまねたものです。
With autoboxing, enhanced for loops and other jdk1.5 syntactic sugars Java is much easier to code with.とのautoboxing 、拡張forループやその他のJDK1.5は統語糖分のコードをJavaは格段に容易にします。 My main gripe is public static void main私のメインのグリップは、 公共の静的な無効メイン ![]()
Some of the scripting elements in groovy are counterintuitive, more so probably because I haven’t been initiated in Ruby cult(?).スクリプティング要素をいくつかの直観に反したグルーヴィーは、おそらく他のために開始されていないため、私はルビー色の教団( ? )です。
Groovy is a decent language as scripting languages go, however the target audience is what makes me uncomfortable.グルーヴィーは、まともな言語としてのスクリプト言語に、しかし、ターゲットとするユーザーは、どのような僕を不愉快にします。
Somehow I don’t feel the need to learn yet another scripting language.焦る必要はないのか私はまだありません別のスクリプト言語を学ぶ必要があります。
Beanshell is slow as it is interpreted. beanshellが遅いとして解釈することがあります。 So what we need is a compiled beanshell to get best of both the worlds.つまり、私たちは、コンパイルに必要なのは最高のbeanshellの両方の世界を取得します。 I think I just might have a solution.僕はただの解決策かもしれない。 More on it later.ほかのことへ。
Looking forward for your comments.あなたのご意見をお待ちします。
PS. psのです。 Yes JPython is good, but then I am not much of Python & Perl fan either.はいjpythonものは良いが、私は多くのPythonを入力し& Perlのファンのどちらかです。 They are good for hacking, I would cringe to develop and maintain enterprise applications in them (not that it is impossible or it hasn’t been done).彼らは良いのためハッキングの、私は身がすくむことで、エンタープライズアプリケーションを開発し、維持して(またはそれをすることは不可能完了されていない) 。
Filed under提出されて Java Software Javaソフトウェア | |
| |
RSS 2.0 RSS 2.0を | |
Email this Article電子メールこの記事
You may also like to readを読むようにすることも可能 |




November 3rd, 2004 at 7:44 pm 2004年11月3日7:44 pmの
man, i’ll never understood why every body seems so scared to introduce new tools in their bags.男は、もう二度と理解なぜすべてのボディはあまりに怖がって、その袋を導入する新しいツールです。 groovy is just another great language with the same potential as java (which, by the way, wasn’ta very developer-friendly one) and the software built with it will be as good as the developer team.グルーヴィーは、別の大きな言語と同じだけの可能性としてのJava (これは、ところで、非常に開発者に優しいwasn'ta 1つ)と、ソフトウェアとして構築される開発チームとして良いです。 so don’t worry at all… if you’ve done nice applications with java now you got a way to make the new ones even better.心配しないですべての…の場合にJavaアプリケーションを簡単に行うことニースする方法は今すぐに新しいものを作るのも良いです。 just drop your prejudices and embrace the new wave偏見と抱擁だけドロップして新しい波
November 4th, 2004 at 12:28 am 2004年11月4日の12:28時
You know you want to try Ruby, it’ll make you feel goodって知ってることを試したいとルビー、それをあなたのFeel Good
November 4th, 2004 at 2:39 am 2004年11月4日2:39アム
Based on your comments above, Janino seems like a reasonable match to your constraints.上記のあなたのご意見に基づいて、合理的な試合のように思わjaninoの制約をしています。
November 4th, 2004 at 4:43 am 2004年11月4日は4:43アム
Groovy is pretty nice.ニースはかなりグルーヴィーです。 I was skeptical too at first, but then I caught Dion Almaer’s prez at the No Fluff Just Stuff tour in Boston a couple weeks ago.私は懐疑的なあまりにも最初は、その後のプレ捉えましたディオンalmaerせりふをとちるだけのものは、ボストンのツアーをカップル週前です。 The amount of syntactic sugar is dizzying.砂糖の量を統語は、目のくらむようです。 It is significantly different from Java, enough to make it just another programming language.それが大幅に異なるジャワ、十分な他のプログラミング言語を作ることだけです。 I mean, what you said about switching between languages for Java and Groovy you could just as well say about Java and Ruby or PERL.つまり、あなたが言ったことについては、 Javaとグルーヴィー言語を切り替えるには、 Javaと同じようによく言ってやるがルビーやPerlについてです。 They’re just different (although, sure, you could code Java in Groovy, but why?).彼らはただの異なる(とはいえ、確かに、あなたがコードのJavaでグルーヴィー、しかし、なぜですか? )です。
The main things I like about Groovy are the support for XML, Ant, Web services, closures, the ability to code Strings without worrying about concatenation, the execute() method added to the String object, and the fact that you can compile Groovy scripts to Java class files, which implies, for example, you can now compile Ant builds into class files and deliver a jar instead of an XML file for a productized Ant script.主要なものは、私のようなグルーヴィーXMLのサポートについては、アリ、 Webサービス、閉鎖は、能力をコードの文字列の連結を気にせずに、実行( )メソッドを追加された文字列オブジェクト、およびという事実グルーヴィースクリプトをコンパイルすることができます。 Javaクラスファイルを、これが示すように、たとえば、今すぐコンパイルすることができます。 Antビルドを提供するクラスファイルとJARファイルの代わりにするXMLファイルは、通常のproductized Antのスクリプトです。 Plus, Groovy is in progress to be supported by the JCP as the first language other than Java to be standardized on the Java platform.加えて、グルーヴィーでサポートされるの進行を第一としては、 JCPのJava以外の言語のJavaプラットフォームを標準化しています。 That will ensure strong support for Groovy users/programmers for the future.グルーヴィーの強い支持を確保することがユーザ/プログラマは、将来のです。
November 4th, 2004 at 10:18 pm 2004年11月4日は10:18 pmの
join the ruby cult we grant you happynessルビー色の助成金を教団に参加する私たちhappyness
Emh.. emh .. sorry..申し訳ありません.. I meant..んじゃなくて.. Maybe what you want is a type inferencer for java.多分何をしたいのタイプは、 inferencer for Javaのです。
In that case I suggest you take a look at Nice.その場合は私を見ておくことをおすすめするニースです。 It is basically a better java featuring real closures, multimethod dispatch and type inference.ジャワのは、基本的に良いことが本当の閉鎖、 multimethod派遣と入力し推論します。
Nice seems quite strange at a first look, but indeed it is very powerful and pleasant language, and compiles to bytecode withouth great performance losses (au contraire that groovy)ニースは非常に奇妙に最初に見て、しかし、確かにそれは非常に強力で快適な言語、およびバイトコードをコンパイルしwithouth素晴らしいパフォーマンスを敗(反対にグルーヴィー)
November 23rd, 2004 at 11:17 pm 2004年11月23日は11:17 pmの
Thanks everyone for your helpful comments and suggestions.すべての人に感謝してhelpful意見やご提案をします。
It is your participation that makes the effort worthwhile.これはご参加の努力により、やりがいのあることです。
January 16th, 2005 at 8:55 am 2005年1月16日8:55アム
I don’t think we needed another scripting language…必要に応じてではなかったと思う別のスクリプト言語…
Javascript perfectly combines with java (if only people were able to understand that javascript is not only for building a web page) and mozilla Rhino has proved it. JavaScriptを組み合わせた完全にJava (場合にのみJavaScriptの人々を理解することができただけではないWebページを構築するため)とMozillaサイが証明してください。
And now finally we are beginning to see technology built upon it.最後に私たちは初めとする技術を構築することを確認します。 How about seppia ?方法についてはseppiaですか? http://www.seppia.org
Seppia is combines ecmascript (javascript) into java and allows you to build any application from its constituent parts. seppiaはECMAScriptの融合する( JavaScript )を、 Javaとを使用するとその構成部品から任意のアプリケーションをビルドします。
March 23rd, 2006 at 9:08 am 2006年3月23日9:08アム
I have the same issue and I quote :私は、同じ問題と私引用:
“Beanshell is slow as it is interpreted. " beanshellが遅いとして解釈することがあります。 So what we need is a compiled beanshell to get best of both the worlds.つまり、私たちは、コンパイルに必要なのは最高のbeanshellの両方の世界を取得します。 I think I just might have a solution.僕はただの解決策かもしれない。 More on it later.”ほかのことへ。 "
Enlighten us please,what is this solution?啓発問い合わせてください、この解決策は何ですか?
did you find anything that works like beanshell but is faster ?作品のようなものを見つけることは参考にbeanshellが速いですか?
thanksありがとう