设为首页收藏本站

LUPA开源社区

 找回密码
 注册
文章 帖子 博客
LUPA开源社区 首页 业界资讯 软件追踪 查看内容

Crystal 0.8.0发布,编译型的编程语言

2015-9-21 22:48| 发布者: joejoe0332| 查看: 672| 评论: 0|原作者: oschina|来自: oschina

摘要: Crystal 0.8.0 发布,此版本主要改进:枚举定义问题方法;大大改进调试器支持;shards 成为官方依赖安装方法等等。更新内容如下:(breaking change) Renamed a couple of types: ChannelClosed - Channel::ClosedErr ...

Crystal 0.8.0 发布,此版本主要改进:枚举定义问题方法;大大改进调试器支持;shards 成为官方依赖安装方法等等。

更新内容如下:

  • (breaking change) Renamed a couple of types: ChannelClosed -> Channel::ClosedError,UnbufferedChannel -> Channel::Unbuffered, BufferedChannel -> Channel::Buffered,DayOfWeek -> Time::DayOfWeek, MonthSpan -> Time::MonthSpan, TimeSpan -> Time::Span,TimeFormat -> Time::Format, EmptyEnumerable -> Enumerable::EmptyError, SocketError -> Socket::Error,MatchData -> Regex::MatchData, SignedInt -> Int::Signed, UnsignedInt -> Int::Unsigned,FileDescriptorIO -> IO::FileDescriptor, BufferedIO -> IO::Buffered, CharReader -> Char::Reader,PointerAppender -> Pointer::Appender.

  • (breaking change) All places that raised DomainError raise ArgumentError now.

  • (breaking change) Renamed Type.cast to Type.new (for example, Int32.new instead of Int32.cast)

  • (breaking change) Removed all macro instance variables except @type

  • (breaking change) Removed undef

  • (breaking change) Removed length() and count() methods from collections. The only method for this is now size.

  • (breaking change) Removed the ability to invoke methods on a union class

  • Improved debugger support

  • crystal deps now delegates to shards. Removed Projecfile support.

  • Automatically convert numeric types when invoking C functions

  • Automatically define questions methods for enum members

  • Support quotes inside quoted symbols (thanks @wolflee)

  • Allow marking initialize as private

  • Added method_added macro hook (thanks @MakeNowJust)

  • Added ArrayLiteral#includes?(obj) in macros

  • Added ASTNode#symbolize in macros (thanks @kirbyfan64)

  • Added experimental yaml_mapping

  • Added nilable variants to Enumerable#max, Enumerable#min, and others (thanks @technorama)

  • Added Iterator#flatten (thanks @jpellerin)

  • Added setting a read timeout to HTTP::Client (thanks @benoist)

  • Added Array#delete_at(index, count) and Array#delete_at(range) (thanks @tebakane)

  • Added HTTP::Cookies (thanks @netfeed)

  • Added Tuple#reverse (thanks @jhass)

  • Added Number#clamp (thanks @technorama)

  • Added serveral socket options (thanks @technorama)

  • Added WebSocket.open (thanks @kumpelblase2)

  • Added Enum.flags macro

  • Added support for sending chunked content in HTTP server (thanks @bcardiff)

  • Added future, lazy and delay concurrency methods (thanks @technorama)

  • fork now returns a Process (thanks @technorama)

  • Documented Set, and added a couple of methods (thanks @will)

  • Nicer formatting in Benchmark.ips, and interactive mode (thanks @will)

  • The -f format output is now honored in compiler errors (thanks @kirbyfan64)

  • Fixed an ambiguity with the crystal build command (thanks @MakeNowJust)

  • Cast exceptions now raise TypeCastError instead of Exception (thanks @will)

  • Many bugs fixes

下载:

Crystal 是一个编译型的编程语言。特性:

  • 语法类似 Ruby Ruby-inspired syntax.

  • 无需指定变量类型和方法参数类型 Never have to specify the type of a variable or method argument.

  • 可以调用 C 代码 Be able to call C code by writing bindings to it in Crystal.

  • 编译时代码模拟和生成 Have compile-time evaluation and generation of code, to avoid boilerplate code.

  • 编译成高效的本机代码 Compile to efficient native code.


酷毙

雷人
1

鲜花

鸡蛋

漂亮

刚表态过的朋友 (1 人)

  • 快毕业了,没工作经验,
    找份工作好难啊?
    赶紧去人才芯片公司磨练吧!!

最新评论

关于LUPA|人才芯片工程|人才招聘|LUPA认证|LUPA教育|LUPA开源社区 ( 浙B2-20090187 浙公网安备 33010602006705号   

返回顶部