阅读更多

15顶
1踩

编程语言

原创新闻 Groovy 1.5发布了

2007-12-09 00:07 by 见习编辑 robbin 评论(3) 有6615人浏览
Groovy是Java平台的动态脚本语言,语法非常近似Java的语法,但是借鉴了来自smalltalk,python和ruby的语法,让你能够在利用Java平台所有类库,使用熟悉的Java语法的情况下,充分享受动态语言带来的各种便利。Groovy可以被嵌入到Java应用服务器当中,也可以被像spring和hibernate这样的开源框架用来描述配置信息,另外groovy特别适合于在企业应用系统当中用来描述业务规则,创建相应的领域专用语言(Domain-Specific Languages)。

Groovy 1.5版本主要提供了很多来自Java 5.0新的语法特性的支持,例如groovy支持annotation,泛型,静态导入和枚举类型,所以像一些使用了Java 5.0新语法的框架例如Spring2.5和JBoss Seam也可以扩展groovy支持,来处理带有类型定义的集合。

groovy 1.5的其他新特性还包括:

一、支持元编程的能力,这一功能是Grails项目组贡献的代码

二、增强了Java/Groovy编译器,让你能够把groovy代码和Java的class混合和匹配在同一编译步骤当中。

三、提供了类似Javadoc的GroovyDoc工具,让你可以方便的读取groovy代码生成Groovy API文档。

四、重写过的交互式shell工具能够提供命令补齐功能。

五、Groovy的Swing console功能也得到了增强。

除此之外,各个Java IDE也正在提供对于Groovy的良好支持,其中IDEA最棒,已经可以提供如下编辑支持:

1、语法高亮
2、代码自动补齐
3、脚本和单元测试集成运行环境
4、调试器
5、语法重构功能!

除此之外,Eclipse的Groovy插件和NetBeans的Groovy插件也在开发过程当中。

总体来说,Groovy的前景还是比较看好的,原生的java平台脚本语言,良好的IDE支持,开源框架支持都是它的优势,当然Groovy背后不光有一个开发团队,还有一家商业公司G2One的支持,也会让Groovy的开发获得良好的推动力
15
1
评论 共 3 条 请登录后发表评论
3 楼 shiren1118 2007-12-10 08:40
Several well-known companies have put great efforts in helping us making Groovy what it is today:

* IBM: Eclipse plugin improvements and upgrade to support this latest version of the language,
* Oracle: JMX support improvements to call remote beans as if they were local,
* Sun: Rooms for our developer meetings, and a wonderful 8-core 8-CPU machine for our high-load concurrency testing,
* JetBrains: for the joint java/groovy compiler & their awesome plugin,
* JBoss: for their help on ironing out our support for annotations and generics.

2 楼 shiren1118 2007-12-10 08:40
release of Groovy 1.5.

Groovy is a dynamic language for the JVM that integrates seamlessly with the Java platform. It offers a Java-like syntax, with language features inspired by Smalltalk, Python or Ruby, and lets your reuse all your Java libraries and protect the investment you made in Java skills, tools or application servers. Groovy can be used for various purposes, from adhoc shell scripting leveraging Java APIs, to full-blown web applications built on Spring and Hibernate through the Grails web framework. It can also be integrated very easily in your applications to externalize business logic, create Domain-Specific Languages, or to provide templating, XML parsing capabilities, and much more.

This major release integrates features offered by Java 5: annotations, generics, static imports and enums, making Groovy the sole alternative dynamic language for the JVM that lets you leverage frameworks that use annotations like Spring's @Transactional or JBoss SEAM which both provide extended Groovy support, or generics to help JPA or Hibernate properly handle typed collections.

In this release, new meta-programming capabilities have been contributed thanks to the work of the Grails project developers, pursueing our symbiotic relationship. A few syntax enhancements have also found their way into it to help ease the development of Domain-Specific Languages. A great attention to performance improvements made this new version much snappier than before, as witnessed by a reports we had by teams working on mission-critical applications using Groovy as a business language.

Since Groovy 1.0, the team also worked on improving the tool chain by creating a joint Java / Groovy compiler to let you mix and match Groovy and Java classes in the same compilation step. A GroovyDoc equivalent to JavaDoc lets you document your Groovy classes. The rewritten interactive shell is now really interactive and provides useful command completions for making you more productive, and the Groovy Swing console has also been improved thanks to our talented Swing team and the help of Swing expert Romain Guy.

Apart from improvements or the creation of these new tools, you should have a look at JetBrains' JetGroovy, a fantastic Groovy and Grails plugin which provides advanced coding capabilities to IntelliJ IDEA:

    * syntax highlighting,
    * code completion,
    * scripts and unit tests running ability,
    * debugging capabilities,
    * and even refactorings!

Of course, if you're an Eclipse user, you can still use the Groovy Eclipse plugin, or Sun's work in progress NetBeans plugin for Groovy and Grails.

An upcoming article on InfoQ that will be published in the following days will detail the novelties of this new version in more depth. So, please stay tuned!
In the meantime, you can listen to the interview of Groovy Project Manager and G2One VP Technology Guillaume Laforge that was recorded at QCon 2007, in March, in London, or read G2One's team interview at JavaLobby.

I would like to thank everybody who was involved in this release in a way or another: the Groovy developers for their hard work, patch and documentation contributors, users reporting bugs or requesting new features or improvements, book authors.

Several well-known companies have put great efforts in helping us making Groovy what it is today:

    * IBM: Eclipse plugin improvements and upgrade to support this latest version of the language,
    * Oracle: JMX support improvements to call remote beans as if they were local,
    * Sun: Rooms for our developer meetings, and a wonderful 8-core 8-CPU machine for our high-load concurrency testing,
    * JetBrains: for the joint java/groovy compiler & their awesome plugin,
    * JBoss: for their help on ironing out our support for annotations and generics.

It would be impossible to list everybody, but you're all part of this effort, and you made the success of Groovy and the quality of this new milestone. Thanks and well done to you all!

You can read the detailed JIRA release notes of the changes since the last release candidate.

And now, just download Groovy 1.5 and give it a try: http://groovy.codehaus.org/Download

-
Guillaume Laforge
Groovy Project Manager
Vice-President Technology at G2One, Inc.
1 楼 LostJava 2007-12-09 18:53
此版刚下载简单跑了一下,感觉速度反而更慢了,大家可自行测试看一下

发表评论

您还没有登录,请您登录后再发表评论

相关推荐

  • 科威php防火墙 v1.1 beta

    科威PHP防火墙集成了DDos拦截、SQL注入拦截、文件上传拦截等功能,对用户请求进行过滤,全方位保护网站安全,系统收集了上百种木马特征,对整站文件进行扫描,准确识别Web木马,让

  • 新秀企业网站系统PHP版版本1.1 beta1

    新秀企业网站系统PHP版 1.1 beta1说明:  一、新秀企业网站系统PHP版是一款简洁易用、方便二次开发的PHP企业网站系统。系统安装时有Mysql和Access两种数据库可供选择;后台功能齐全,操作简便,可扩展性良好,具有较...

  • 黑群晖自动化引导制作工具arpl-1.1-beta2a

    黑群晖自动化引导制作工具arpl-1.1-beta2a,

  • Erlang MQTT消息服务器 v1.1 beta for Ubuntu

    Erlang MQTT消息服务器

  • jaxen-1.1-beta-7.zip

    XML解析工具包

  • 轻量级企业网站管理系统 DouPHP v1.1 Beta1 20140520

    轻量级企业网站管理系统 v1.1 Beta1 20140520 更新日志: 1,修正恢复备份页面分卷分卷显示样式修正 2,修正删除数据备份时未将分卷删除 3,新增文章、产品、自定义导航无限极分类功能 4,修正后台自定义导航编辑...

  • 计算器1.1beta版

    这是一个计算器的beta版本,适合一些会开发的人,如果你觉得这个程序好用,请多多关照

  • 新秀企业网站系统PHP版 v1.1 beta5.rar

    1.sinsiu PHP 1.1 beta4的用户可以通过升级程序方便地升级到sinsiu PHP 1.1 beta5,不须要重新安装程序,原有数据不会丢失; 2.如果您是sinsiu PHP 1.1 beta4用户,请把upgrade文件夹整个上传到网站根目录下,在...

  • 新秀PHP企业网站系统 v1.1 Beta.rar

    新秀PHP企业网站系统是一套开源系统,由红头船“RHSCMS”系统合并而来,是一套专门开发的应用于PHP环境的企业、公司网站建设程序,前台界面设计漂亮,后台功能完全满足一个企业站的需求,功能模块主要有:网站基本...

  • 新秀开源企业网站系统sinsiu 1.1 beta5

    4.如果您目前正在使用1.1beta3或更低版本,想要在保留原有数据的前提下升级到1.1beta4,请使用升级程序。 5.在本地测试时,IIS必须开启父路径。 新秀免费企业网站系统sinsiuv1.1beta5更新情况: 1.后台产品、文章...

  • ant-antunit-1.1beta1.jar.zip

    标签:ant-antunit-1.1beta1.jar.zip,ant,antunit,1.1beta1,jar.zip包下载,依赖包

  • 新秀免费企业网站系统 1.1 beta7

    4.如果您目前正在使用1.1beta5或更低版本,想要在保留原有数据的前提下升级到1.1beta6,请使用升级程序。 5.在本地测试时,IIS必须开启父路径。 新秀免费企业网站系统sinsiu升级说明 1.1.1beta5的用户可以通过升级...

  • JavaEE源代码 jaxen-1.1-beta-7

    JavaEE源代码 jaxen-1.1-beta-7JavaEE源代码 jaxen-1.1-beta-7JavaEE源代码 jaxen-1.1-beta-7JavaEE源代码 jaxen-1.1-beta-7JavaEE源代码 jaxen-1.1-beta-7JavaEE源代码 jaxen-1.1-beta-7JavaEE源代码 jaxen-1.1-...

  • 绿叶社区博客系统 v1.1 beta

    绿叶社区博客v1.1beta使用C#语言编写,合理使用缓存机制,部分页面生成静态,全站使用bootstrap风格,自适应栅格布局,兼容PC及移动端自适应展示,注重SEO优化,风格简约,安装方便,适合个人发布内容。程序包含了...

  • X2CMS v1.1 Beta.zip

    其功能简介,只有文章发布和单页功能。理论实现无限分级。在单页中亦可发布文章。遵循GPL协议开源。内附宁波工程学院材料所网站皮肤。   一些系统常量请在config.asp修改。 默认管理路径:manager 默认管理员...

  • 夏日ASP留言本官方版下载 v1.1 Beta

    一款不错的夏日ASP留言本官方版下载 v1.1 Beta,该源码实现了重新测试正常,未发现乱码,使用的是中文GBK编码,请确认是否在页面不对(例如UTF8)的情况下查看的编码。夏日ASP留言本V1.1 Beta 由夏日博客独立开发完成...

  • 无人机图像处理工具beta1.1.rar

    无人机图像处理工具beta1.1

  • maven-xradar-plugin-1.1-beta-1.jar

    maven-xradar-plugin-1.1-beta-1.jar

  • 夏日ASP留言本 v1.1 Beta

    夏日ASP留言本V1.1 Beta 由夏日博客独立打造,是一款漂亮精致的网络留言本,界面美观,使用方便,采用asp+access技术,源码开源免费,可以随意进行二次修改,如果要进行商业用途,出现的一切后果由使用者负责。...

  • Webod v1.1 Beta

    3. 送货言论发布时间,“1秒前”、 “10分钟前”,让时间清晰可见 4. 搜索功能,“按标题”、“按内容”、“按时间” 5. 新增黑名单IP功能, “你的IP被管理员加入黑名单啦,你不能访问” 6. 快捷回复, 管理员...

Global site tag (gtag.js) - Google Analytics