Another look at Groovy (Latest java based scripting language) Otra mirada a Groovy (Últimas basado en Java un lenguaje de script)
I was recently pulled into Hace poco estuve tirado en Groovy , a new Java based scripting language. You can read a , Un nuevo basado en Java un lenguaje de script. Puede leer un good article highlighting groovy in onjava.com buen artículo resaltando groovy en onjava.com .
Groovy adds several syntactic sugar to Java. Groovy varios añade azúcar sintáctico para Java. By itself it should be nice. Por sí sola debería ser agradable. However considering that most Groovy developers are originally Java developers, it might promote habit development which they cannot bring back to Java. Sin embargo teniendo en cuenta que la mayoría de los desarrolladores son Groovy originalmente desarrolladores de Java, que pueda promover el hábito de desarrollo que no pueden traer de vuelta a Java. Also some of scripting niceties are good for scripting languages, yet feel out of place for an oo development language. Además, algunas de las sutilezas de secuencias de comandos son buenos para lenguajes de scripting, aún se sienten fuera de lugar oo para un lenguaje de desarrollo. Just bad habit forming is what I think. Just mala costumbre que forman es lo que pienso.
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. Personalmente he visto que cuando me veo obligado a hacer algunos códigos en javascript, tengo que ser extremadamente cuidadoso cuando estoy de vuelta en Java, para evitar las páginas de errores de compilación. In that sense I am more comfortable using BeanShell as it much more closely mimics Java. En ese sentido me siento más cómodo usando BeanShell, ya que mucho más de cerca imita Java.
With autoboxing, enhanced for loops and other jdk1.5 syntactic sugars Java is much easier to code with. Con autoboxing, el aumento de bucles y otros azúcares jdk1.5 sintáctica Java es mucho más fácil con el código. My main gripe is public static void main Mi principal queja es 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(?). Algunos de los elementos de scripting en groovy son counterintuitive, más probablemente, porque no se han iniciado en el culto a Ruby (?).
Groovy is a decent language as scripting languages go, however the target audience is what makes me uncomfortable. Groovy es un lenguaje decente, como lenguajes de scripting ir, sin embargo el público objetivo es lo que me hace incómodo.
Somehow I don’t feel the need to learn yet another scripting language. De alguna manera no me siento la necesidad de aprender un nuevo lenguaje de scripting.
Beanshell is slow as it is interpreted. Beanshell es lento, ya que se interpreta. So what we need is a compiled beanshell to get best of both the worlds. Así que lo que necesitamos es un compilado beanshell para obtener lo mejor de los mundos. I think I just might have a solution. Creo que sólo podría tener una solución. More on it later. Más sobre ella más adelante.
Looking forward for your comments. De cara al futuro para sus comentarios.
PS. Yes JPython is good, but then I am not much of Python & Perl fan either. Sí JPython es buena, pero luego no estoy mucho de Perl y Python, ya sea fan. 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). Ellos son buenos para la piratería informática, yo cringe a desarrollar y mantener aplicaciones empresariales en ellos (que no es imposible o no se ha hecho).
Filed under Filed under Java Software El software de Java | |
| |
RSS 2.0 RSS 2,0 | |
Email this Article Enviar artículo
You may also like to read También puede leer |




November 3rd, 2004 at 7:44 pm 3 de Noviembre, 2004 a las 7:44 pm
man, i’ll never understood why every body seems so scared to introduce new tools in their bags. hombre, yo nunca entendí por qué cada cuerpo parece mucho miedo de introducir nuevas herramientas en sus bolsas. 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. groovy es sólo otro gran lenguaje con el mismo potencial como java (que, por cierto, no era muy favorable al desarrollador de uno) y el software construido con él será tan bueno como el equipo de desarrolladores. 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. lo que no se preocupe en absoluto… si lo has hecho agradable aplicaciones con java ahora usted tiene una forma de hacer que los nuevos aún mejor. just drop your prejudices and embrace the new wave acaba de dejar su prejuicios y abrazar la nueva ola
November 4th, 2004 at 12:28 am 4 de Noviembre, 2004 a las 12:28 am
You know you want to try Ruby, it’ll make you feel good Usted sabe que quiere probar Ruby, lo más fácil es que te hacen sentir bien
November 4th, 2004 at 2:39 am 4 de Noviembre, 2004 a las 2:39 am
Based on your comments above, Janino seems like a reasonable match to your constraints. A partir de sus observaciones anteriores, Janino parece razonable como un partido a su limitaciones.
November 4th, 2004 at 4:43 am 4 de Noviembre, 2004 a las 4:43 am
Groovy is pretty nice. Groovy es bastante agradable. 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. Yo estaba muy escéptico al principio, pero luego Cogí Dion Almaer la Prez en el n º Fluff Just Stuff gira en Boston un par de semanas atrás. The amount of syntactic sugar is dizzying. La cantidad de azúcar sintáctica es vertiginoso. It is significantly different from Java, enough to make it just another programming language. Es muy diferente de Java, lo suficiente para que sea simplemente otro lenguaje de programación. 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. Quiero decir, lo que ha dicho sobre el cambio de idioma para Java y Groovy puede muy bien decir acerca de Java y Ruby o Perl. They’re just different (although, sure, you could code Java in Groovy, but why?). Son sólo diferentes (aunque, por supuesto, usted podría código Java en Groovy, pero ¿por qué?).
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. Los elementos principales que me gusta de Groovy son el apoyo para XML, Ant, servicios Web, los cierres, la capacidad de Cuerdas código sin preocuparse por la concatenación, ejecutar el () método añadido a la cadena objeto, y el hecho de que usted puede compilar los scripts Groovy a los archivos de clase Java, lo que implica, por ejemplo, ahora puede compilar Ant se basa en la clase de archivos y entregar un tarro en lugar de un archivo XML para un script 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. Además, Groovy está en marcha para el apoyo de la JCP como el primer idioma que no sea Java a ser normalizados en la plataforma Java. That will ensure strong support for Groovy users/programmers for the future. Eso garantizará un fuerte apoyo para Groovy usuarios / programadores para el futuro.
November 4th, 2004 at 10:18 pm 4 de Noviembre, 2004 a las 10:18 pm
join the ruby cult we grant you happyness unirse al culto de rubí que le otorga happyness
Emh.. EMH .. sorry.. lo siento .. I meant.. Quise decir .. Maybe what you want is a type inferencer for java. Tal vez lo que quieres es un tipo inferencer para java.
In that case I suggest you take a look at Nice. En ese caso, le sugiero que eche un vistazo a Niza. It is basically a better java featuring real closures, multimethod dispatch and type inference. Es básicamente un mejor java real con los cierres, multimethod envío y el tipo de inferencia.
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) Niza parece bastante extraño en un primer vistazo, pero en verdad es muy agradable y potente lenguaje, y compila a bytecode withouth grandes pérdidas de rendimiento (au contrario que groovy)
November 23rd, 2004 at 11:17 pm 23 de noviembre de 2004 a las 11:17 pm
Thanks everyone for your helpful comments and suggestions. Gracias a todos por sus útiles comentarios y sugerencias.
It is your participation that makes the effort worthwhile. Es su participación hace que el esfuerzo valga la pena.
January 16th, 2005 at 8:55 am 16 de enero de 2005, a las 8:55 am
I don’t think we needed another scripting language… Yo creo que no necesita otro lenguaje de script…
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 combina perfectamente con java (sólo si las personas fueron capaces de entender que es javascript, no sólo para la construcción de una página web) y Mozilla Rhino ha demostrado.
And now finally we are beginning to see technology built upon it. Y ahora por fin estamos empezando a ver la tecnología basada en ella. How about seppia ? ¿Qué le seppia? http://www.seppia.org
Seppia is combines ecmascript (javascript) into java and allows you to build any application from its constituent parts. Seppia se combina ECMAScript (JavaScript) en java y permite crear cualquier aplicación de sus partes constitutivas.
March 23rd, 2006 at 9:08 am Marzo 23 de 2006, a las 9:08 am
I have the same issue and I quote : Tengo el mismo problema y cito textualmente:
“Beanshell is slow as it is interpreted. "Beanshell es lento, ya que se interpreta. So what we need is a compiled beanshell to get best of both the worlds. Así que lo que necesitamos es un compilado beanshell para obtener lo mejor de los mundos. I think I just might have a solution. Creo que sólo podría tener una solución. More on it later.” Más sobre ella más adelante. "
Enlighten us please,what is this solution? Nos ilumine por favor, ¿cuál es esta solución?
did you find anything that works like beanshell but is faster ? has encontrado algo que funciona como beanshell pero es más rápido?
thanks gracias