Red language 0.5.1 发布,此版本包括大量的新特性,改进和一些 bug 修复,使得 Red 可用性更高,特别是对新用户更友好。此版本最初目的是替换现有的工作台实现,但是最后完成了目标,并且完全支持常用错误处理。
新工作台引擎
removing the dependency to libreadline and libhistory, they were creating too many issues on the different Unix platforms, so became troublesome for many newcomers.
having a finer-grained control over keystrokes on text input, in order to implement convenient features like word completion.
having a bigger platform-independent part, so that we can add any kind of backends, like GUI ones, without duplicating too much code.
所以新工作台代码不需要第三方库,可以直接在 OS 提供的环境运行,新特性如下:
built-in history, accessible from system/console/history
customizable prompt from system/console/prompt
word and object path completion using TAB key
ESC key support for interrupting a multi-line input
其他工作台相关的改进:
about function now returns also the build timestamp.
what function has now a more readable output.
Console output speed on Windows is now very fast, thanks to the patch provided by Oldes for buffered output.
其他改进
Red 0.5.1 版本其他改进包括:支持排序,可以进行 SORT action;添加了新的数据类型;新增运行时类型检测;Red/System 改进;等等。
未来计划
下一个版本会引入 Redbin 格式,用来计算二进制形式的序列化 Red 值。
Enjoy this new release! :-)
更多内容请看发行说明。
Red language 是一个本地代码编译功能、象征性的和homoiconic的编程语言,重新使用REBOL的语法和语义。静态和JIT编译支持计划。一个强烈的重点是对并 发任务和数据并行使用一个演员般的抽象和并行集合(斯卡拉类)的支持。从低层次的系统编程(内置Red/System C级DSL),最多一个可选的REPL控制台,高层次的脚本和嵌入式系统的使用利差的目标范围。
软件详情:http://www.red-lang.org/2015/03/051-new-console-and-errors-support.html
下载地址:https://github.com/red/red
来自:开源中国社区

