Ceylon 1.1 进度报告,基于 JVM 的编程语言

简介:

Ceylon 1.1 已经开发6个月了,是时候给大家交待一下开发的进度了。这在 6 个月内我们处理并关闭了超过 650 个 issue,关于编译器和语言模块方面,其中 IDE 方面的问题有 300 个。

目前 Ceylon 1.1 优先级最高的是:

  • 语言模块 API 的最终确认
  • 清理和最小化使用 Java 和 JavaScript 代码
  • 处理影响 Java 互操作的遗留问题
  • 性能提升
  • IDE 构建的性能

当然,也包括很多 bug 修复。

语言方面的变化

语言方面的变化比较少,基本上 1.0 后我们认为比较稳定,而 1.1 主要新特性有::

支持 use-site variance.

因为 Byte 类专门为 JVM 的编译器中的 byte 优化

其他值得关注的变化:

  • Allow comprehensions to begin with anifclause.
  • Newsealedannotation to prevent extension or instantiation of a type outside the module in which it is defined.
  • Introduction ofdynamicinterfaces, designed for wrapping native JavaScript APIs.
  • Redefined-operator to work for anyInvertible.
  • Allow metamodel references toobjects and members ofobjects.
  • try (x)was changed to distinguish between the lifecycles ofObtainableandDestroyableresources.
  • The type of the expression{}is now{Nothing*}instead of[].
  • Allow refinement of multiple overloaded versions of a Java supertype method.
  • Added ability tocatchinstances ofThrowable.

最后两项变化比较大,但多数程序不受影响。

语言模块的变化

在 1.1 中我们引入很多思想和开发的效果在语言模块上,并非常小心的评审这些设计和范围,降低原生代码的使用、优化性能等等。

因此语言模块包含很多不兼容以前的变化,这些都会影响到现有的程序。但 1.1 之后就会稳定下来,不会再有大变化。

  • Addition of a raft of new methods and functions for working with streams.
  • Optimization of the performance ofArray, along with some minor improvements to interop with Java native arrays.
  • Removal of theCloneableinterface, and addition of aclone()method toCollection.
  • Addition ofThrowable.
  • Replacement ofCloseablewithObtainableandDestroyable.
  • Minor changes to the operations ofIterable,List, andMap.
  • ArraySequenceis nowsealedand may be instantiated via thesequence()function.
  • Substantial redesign ofEnumerableandRange.
  • Several changes to the type hierarchy for numeric types.
  • Removal ofSequenceBuilderand move ofStringBuildertoceylon.collection.
  • Removal ofLazyList,LazySetandLazyMap`.

Modularity

主要是提升易用性

  • Ceylon.cararchives now include automatically generated OSGi and Maven metadata, and can execute in an OSGi container.
  • New API for cross-platform resource loading.
  • Support for deploying Ceylon modules to Vert.x.

SDK

主要包括:

  • Introduction ofceylon.locale,ceylon.logging, andceylon.promise.
  • Many enhancements toceylon.collection, including addition ofArrayList,TreeSet,TreeMap, andPriorityQueueclasses, along withStackandQueueinterfaces.
  • Various improvements toceylon.dbc.
  • Many improvements toceylon.test.
  • 目前 collections 模块已经稳定。

IDE

IDE 的开发非常活跃,包含很多新特性和性能的提升:

  • Complete rework of build process, for much improved performance.
  • New refactorings: Move Out, Make Receiver, Move to Unit, Extract Parameter, Collect Parameters, Invert Boolean, Safe Delete.
  • Major enhancements to the Change Parameters refactoring.
  • Inline refactoring now works for shared class/interface members.
  • Brand new high quality code formatter.
  • Rewritten Ceylon Explorer with much better presentation of modules and modular dependencies.
  • New navigation actions: Open in Type Hierarchy View, Go to Refined Declaration.
  • Popup Quick Find References and Recently Edited Files.
  • Graphical Visualize Modular Dependencies.
  • Further integration of "linked mode" with refactorings and quick assists.
  • Useful Format Block source action.
  • Auto-escape special characters when pasting into string literals.
  • Synchronization of all keyboard accelerators with JDT equivalents (by popular request).
  • Save actions in Ceylon Editor preferences.
  • IntelliJ-style "chain completion" (hit ctrl-space twice).
  • Propose toplevel functions applying to a type alongside members of the type.
  • Several new options for customizing autocompletion and appearance in Ceylon Editor preferences.
  • New quick fixes/assists: convert between string interpolation and concatenation, convert to/from verbatim string, add satisfied interfaces, add type parameter, change named argument list to positional, fill in argument names, export module, convert to verbose form refinement, print expression, fix refining method signature, change toif (exists), change module version, assign tofor/try/if (exists)/if (nonempty)/if (is).
  • Run As Ceylon Test on node.js.
  • New default color scheme for syntax highlighting and many other aesthetic improvements.
相关文章
|
15天前
|
Java
JVM之本地内存以及元空间,直接内存的详细解析
JVM之本地内存以及元空间,直接内存的详细解析
28 0
|
存储 安全 算法
深入剖析JVM内存管理与对象创建原理
JVM内存管理,JVM运行时区域,直接内存,对象创建原理。
45 2
|
2月前
|
存储 算法 安全
【JVM】深入理解JVM对象内存分配方式
【JVM】深入理解JVM对象内存分配方式
30 0
|
2月前
|
存储 缓存 Java
金石原创 |【JVM盲点补漏系列】「并发编程的难题和挑战」深入理解JMM及JVM内存模型知识体系机制(1)
金石原创 |【JVM盲点补漏系列】「并发编程的难题和挑战」深入理解JMM及JVM内存模型知识体系机制(1)
40 1
|
7天前
|
存储 Java
深入理解Java虚拟机:JVM内存模型
【4月更文挑战第30天】本文将详细解析Java虚拟机(JVM)的内存模型,包括堆、栈、方法区等部分,并探讨它们在Java程序运行过程中的作用。通过对JVM内存模型的深入理解,可以帮助我们更好地编写高效的Java代码,避免内存溢出等问题。
|
2月前
|
缓存 算法 安全
【JVM故障问题排查心得】「Java技术体系方向」Java虚拟机内存优化之虚拟机参数调优原理介绍(二)
【JVM故障问题排查心得】「Java技术体系方向」Java虚拟机内存优化之虚拟机参数调优原理介绍
19 0
|
2月前
|
缓存 Java C#
【JVM故障问题排查心得】「Java技术体系方向」Java虚拟机内存优化之虚拟机参数调优原理介绍(一)
【JVM故障问题排查心得】「Java技术体系方向」Java虚拟机内存优化之虚拟机参数调优原理介绍
86 0
|
8天前
|
存储 机器学习/深度学习 Java
【Java探索之旅】数组使用 初探JVM内存布局
【Java探索之旅】数组使用 初探JVM内存布局
20 0
|
12天前
|
存储 自然语言处理 算法
【JVM】内存模型全面解读
【JVM】内存模型全面解读
13 0