查看原文
其他

鸡年的年度编程语言,非它莫属

2017-01-27 技术最前线 技术最前线

(点击上方公众号,可快速关注)


2017 的年度编程语言,是 Java、C、C++ 么?还是 PHP?


主页君觉得,农历鸡年的年度编程语言,非 Chicken 莫属了 😂


Chicken 不仅是该语言的名字,也是该语言允许的唯一关键字。关键字重复的次数和换行决定执行的具体操作。


🐔语言官网:http://torso.me/chicken

🐔语言之父:Torbjörn Söderstedt


esolangs 上关于🐔语言的介绍


A chicken program consists of the tokens "chicken", " " and "\n". Every line has a number of chickens separated by spaces. The number of chickens corresponds to an opcode. Trailing newlines are significant, as an empty line will produce a "0" opcode.


Instructions are loaded onto the stack and executed there directly, which allows for injecting arbitrary code and executing it through a jump. Self-modifying code is also possible because the program stack is not bounded.


The user is able to supply an input value before executing the program. This input is stored in one of the two registers.


下面是用 Chicken 写的 Hello World


(截图来自🐔语言首页)


最后祝大家鸡年大吉,编程 Bug Free!



觉得本文有意思?请分享给更多人

关注「程序员的那些事」,鸡年内容更精彩


您可能也对以下帖子感兴趣

文章有问题?点此查看未经处理的缓存