红联Linux门户
Linux帮助

Hy 0.10.1发布,嵌入Python的Lisp方言

发布时间:2014-10-11 09:05:34来源:红联作者:empast
Hy 是非常棒的,嵌入 Python 的 Lisp 方言。

Hy 可以转换 Lisp 代码为 Python 抽象语法树,你可以使用 Lisp 的形式在 Python 的世界里自由发挥。

Hy 0.10.1 发布,此版本现已提供下载,使用 Dockerized 作为官方库镜像,使用:

$ docker run -it --rm hylang

hy 0.10.1 在 Linux 上使用 CPython(default) 3.4.1 => ((lambda [] (print "Hello, World!")))

更新内容如下:

[ 语言改进 ]
* Implement raise :from, Python 3 only.
* defmain macro
* name & keyword functions added to core
* (read) added to core
* shadow added to core
* New functions interleave interpose zip_longest added to core
* nth returns default value when out of bounds
* merge-with added
* doto macro added
* keyword? to findout keywords
* setv no longer allows "." in names

[内部改进 ]
* Builtins reimplemented in terms of python stdlib
* gensyms (defmacro/g!) handles non-string types better

[工具]
* Added hy2py to installed scripts

[ Misc. Fixes ]
* Symbols like true, false, none can't be assigned
* Set sys.argv default to [''] like Python does
* REPL displays the the python version and platform at startup
* Dockerfile added for https://registry.hub.docker.com/_/hylang/

[ Contrib changes ]
* Fix ap-first and ap-last for failure conditions

软件详情:https://github.com/hylang/hy/blob/master/NEWS

下载地址:https://github.com/hylang/hy/releases/tag/0.10.1

来自:开源中国社区
文章评论

共有 0 条评论