0924

{done}GTD190026:【翻译】The Cell Programming Language

http://cell-lang.net/

 

Cell is a domain-specific programming language designed to integrate with your language of choice in order to provide a number of features that have no equivalent in more conventional languages.

It offers, among other things, a very flexible, entirely structural type system; deterministic, repeatable execution; support for reactive programming; the ability to use relations to store data; transactions and propagation of undefined values for error handling; and ortogonal persistence.

Cell's most important new language construct is automata, which come in two flavors: static automata and reactive ones. For a high-level description of them, head to the overview section.

Altough Cell is, in and of itself, a general-purpose language, that can be used to write entire applications (the Cell compiler, for example, is entirely written in Cell), that's not what it is designed for. It is, instead, meant to be used as a domain-specific language, much like, for example, tools like Lex and Yacc (or their more modern alternatives) are used for parsing: from Cell source code you can generate a set of classes in your language of choice, and use them in your existing projects. The only target language that is currently available is C++, but Java and C# are coming soon, and other languages will follow.

If you have any question, there's the cell-lang Google Group. For announcements, there's cell_lang on Twitter.

The Cell compiler is open source software, and all source code is available on github.

 

 

Cell是一种特定于领域的编程语言,旨在与您选择的语言进行集成,以提供许多在更传统的语言中没有等同的功能。

除其他外,它提供了一个非常灵活的完全结构型的系统;确定性的,可重复的执行;支持响应式编程;使用关系来存储数据的能力;未定义值的事务和传播以用于错误处理;和正交持久性。

Cell最重要的新语言结构是自动机,它有两种类型:静态自动机和被动机。有关它们的高级描述,请前往概述部分。

Altough Cell本身是一种通用语言,可用于编写整个应用程序(例如,Cell编译器完全是用Cell编写的),但这不是它的设计目的。相反,它是用来作为特定于领域的语言,就像Lex和Yacc这样的工具(或者他们更现代的替代品)用于解析:从Cell源代码中,您可以生成一组类用你选择的语言,并在现有的项目中使用它们。目前唯一可用的目标语言是C ++,但Java和C#即将推出,其他语言将随之而来。

如果您有任何问题,请联系Google单元格。对于通知,Twitter上有cell_lang。

Cell编译器是开源软件,所有源代码都可以在github上找到。

posted on 2017-11-29 10:55  0924  阅读(195)  评论(0编辑  收藏  举报

导航