当前位置:网站首页>世界上最难的5种编程语言

世界上最难的5种编程语言

2020-11-28 15:06:02 InfoQ

{"type":"doc","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"我们平时都在谈论c、c ++、Java、Python等编程语言,其实还有些语言不仅对于大多数软件开发人员来说都很难,而且几乎是不可理解的。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"这些语言被称为深奥难懂的编程语言(或晦涩语言)。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"blockquote","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"晦涩语言并不是为普通的软件开发而设计的。它们的设计目的是作为概念证明,或只是开个玩笑。"}]}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"这里列出五种最难懂的晦涩语言的清单。我尝试用每种语言执行了“"},{"type":"text","marks":[{"type":"italic"}],"text":"Hello World!"},{"type":"text","text":"”程序,非常有趣。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"italic"}],"text":"本文最初发布于Medium("},{"type":"link","attrs":{"href":"https:\/\/levelup.gitconnected.com\/5-most-difficult-programming-languages-in-the-world-549c3cf91b23","title":"xxx","type":null},"content":[{"type":"text","marks":[{"type":"italic"}],"text":"《5 Most Difficult Programming Languages in the World》"}],"marks":[{"type":"italic"}]},{"type":"text","marks":[{"type":"italic"}],"text":"),经InfoQ翻译并分享。"}]},{"type":"heading","attrs":{"align":null,"level":1},"content":[{"type":"text","text":"Malbolge"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"Malbolge由"},{"type":"text","marks":[{"type":"italic"}],"text":"Ben Olmstead"},{"type":"text","text":"于1998年发明。这种晦涩语言被认为是最复杂的编程语言。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"据说Malbolge编程语言的作者从未使用该语言编写任何程序。Olmstead发明该语言近两年后,Malbolge中的"},{"type":"text","marks":[{"type":"italic"}],"text":"hello world"},{"type":"text","text":"代码才出现。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"这是在Malbolge中打印“"},{"type":"text","marks":[{"type":"italic"}],"text":"Hello World!"},{"type":"text","text":"”的代码段。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"image","attrs":{"src":"https:\/\/static001.infoq.cn\/resource\/image\/35\/5b\/35cbe432d3399182406629dyyf49a35b.png","alt":null,"title":"","style":[{"key":"width","value":"75%"},{"key":"bordertype","value":"none"}],"href":"","fromPaste":false,"pastePass":false}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"这是输出:"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"image","attrs":{"src":"https:\/\/static001.infoq.cn\/resource\/image\/4b\/5c\/4bc2d81426ae6e51bb867f9d94c97b5c.jpg","alt":null,"title":"","style":[{"key":"width","value":"75%"},{"key":"bordertype","value":"none"}],"href":"","fromPaste":false,"pastePass":false}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":"center","origin":null},"content":[{"type":"text","text":"由作者提供—代码在tio.run执行"}]},{"type":"heading","attrs":{"align":null,"level":2},"content":[{"type":"text","text":"INTERCAL"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"italic"}],"text":"Jim Lyon"},{"type":"text","text":"和"},{"type":"text","marks":[{"type":"italic"}],"text":"Don Woods"},{"type":"text","text":"于1972年开发了INTERCAL,它是一种诙谐"},{"type":"text","text":"有趣"},{"type":"text","text":"的编程语言。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"它刚开始的名称是“"},{"type":"text","marks":[{"type":"italic"}],"text":"没有可发音首字母缩略词的编程语言"},{"type":"text","text":"”。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"INTERCAL设计了许多让程序员感到沮丧的特性。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"blockquote","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"例如:它使用修饰符“PLEASE”。如果代码中不经常使用“PLEASE”,则编译器可以拒绝该代码。它将程序视为“不够礼貌”。如果修饰符“PLEASE”被使用了太多次,则编译器也将拒绝该代码,认为其“过于礼貌”。"}]}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"这是在"},{"type":"text","marks":[{"type":"italic"}],"text":"INTERCAL"},{"type":"text","text":"中打印“"},{"type":"text","marks":[{"type":"italic"}],"text":"Hello,World!"},{"type":"text","text":"”的代码段。"}]},{"type":"image","attrs":{"src":"https:\/\/static001.infoq.cn\/resource\/image\/a9\/4f\/a932d35e7ee1b42c7bdd29f2ea84e54f.png","alt":null,"title":"","style":[{"key":"width","value":"75%"},{"key":"bordertype","value":"none"}],"href":"","fromPaste":false,"pastePass":false}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"这是输出:"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"image","attrs":{"src":"https:\/\/static001.infoq.cn\/resource\/image\/ce\/93\/ce5790943e9209c23ba14657fb8ed893.jpg","alt":null,"title":"","style":[{"key":"width","value":"75%"},{"key":"bordertype","value":"none"}],"href":"","fromPaste":false,"pastePass":false}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":"center","origin":null},"content":[{"type":"text","text":"由作者提供—代码在tio.run执行"}]},{"type":"heading","attrs":{"align":null,"level":2},"content":[{"type":"text","text":"Brainfuck"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"Brainfuck由"},{"type":"text","marks":[{"type":"italic"}],"text":"Urban Muller"},{"type":"text","text":"于1993年开发。该语言是为了让程序员消遣娱乐而发明的。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"该名称本身暗示着该编程语言对于任何程序员而言都非常难以理解。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"整个编程语言仅有"},{"type":"text","marks":[{"type":"italic"}],"text":"八个不同的字符"},{"type":"text","text":",该语言用这八个字符编写所有代码。Muller开发的原始编译器仅使用296个字节。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"这是在"},{"type":"text","marks":[{"type":"italic"}],"text":"brainfuck"},{"type":"text","text":"中打印“"},{"type":"text","marks":[{"type":"italic"}],"text":"Hello,World!"},{"type":"text","text":"”的代码段。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"image","attrs":{"src":"https:\/\/static001.infoq.cn\/resource\/image\/1f\/e3\/1f33f2586abf7728e220eb691472f3e3.png","alt":null,"title":"","style":[{"key":"width","value":"75%"},{"key":"bordertype","value":"none"}],"href":"","fromPaste":false,"pastePass":false}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"这是输出:"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"image","attrs":{"src":"https:\/\/static001.infoq.cn\/resource\/image\/10\/10\/10f81ae28a0c368d78e632c4435c7610.jpg","alt":null,"title":"","style":[{"key":"width","value":"75%"},{"key":"bordertype","value":"none"}],"href":"","fromPaste":false,"pastePass":false}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":"center","origin":null},"content":[{"type":"text","text":"由作者提供—代码在tio.run执行"}]},{"type":"heading","attrs":{"align":null,"level":2},"content":[{"type":"text","text":"COW"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"COW由"},{"type":"text","marks":[{"type":"italic"}],"text":"Sean Heber"},{"type":"text","text":"于2003年开发。看到其hello world代码后,您将了解为什么这种语言叫做“ COW”。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"在难度级别上,COW与Brainfuck相当。与Brainfuck相比,它还"},{"type":"text","text":"多了"},{"type":"text","text":"四个命令,即整个语言中有12个命令。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"这是在"},{"type":"text","marks":[{"type":"italic"}],"text":"COW"},{"type":"text","text":"中打印“"},{"type":"text","marks":[{"type":"italic"}],"text":"Hello,World!"},{"type":"text","text":"”的代码段。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"image","attrs":{"src":"https:\/\/static001.infoq.cn\/resource\/image\/bd\/a7\/bdb1684yyd8f21b073970e6ab83322a7.png","alt":null,"title":"","style":[{"key":"width","value":"75%"},{"key":"bordertype","value":"none"}],"href":"","fromPaste":false,"pastePass":false}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"这是输出:"}]},{"type":"image","attrs":{"src":"https:\/\/static001.infoq.cn\/resource\/image\/61\/c6\/61183a8790c61a7282465da8e4de36c6.jpg","alt":null,"title":"","style":[{"key":"width","value":"75%"},{"key":"bordertype","value":"none"}],"href":"","fromPaste":false,"pastePass":false}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":"center","origin":null},"content":[{"type":"text","text":"由作者提供—代码在tio.run执行"}]},{"type":"heading","attrs":{"align":null,"level":1},"content":[{"type":"text","text":"Whitespace"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"Whitespace由"},{"type":"text","marks":[{"type":"italic"}],"text":"Chris Morris"},{"type":"text","text":"和"},{"type":"text","marks":[{"type":"italic"}],"text":"Edwin Brady"},{"type":"text","text":"在杜伦大学开发。该语言发布于2003年愚人节。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"使用该语言编写任何程序都依赖于"},{"type":"text","marks":[{"type":"italic"}],"text":"空格、制表符"},{"type":"text","text":"和"},{"type":"text","marks":[{"type":"italic"}],"text":"换行符"},{"type":"text","text":"。Whitespace的解释器将忽略非空格字符,并将其视为代码注释。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"这是在"},{"type":"text","marks":[{"type":"italic"}],"text":"Whitespace"},{"type":"text","text":"中打印“"},{"type":"text","marks":[{"type":"italic"}],"text":"Hello,World!"},{"type":"text","text":"”的代码段。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"在下面的代码中,每个"},{"type":"text","marks":[{"type":"italic"}],"text":"空格、制表符"},{"type":"text","text":"或"},{"type":"text","marks":[{"type":"italic"}],"text":"换行符"},{"type":"text","text":"前面都带有注释“S”、“T”或“L”。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"image","attrs":{"src":"https:\/\/static001.infoq.cn\/resource\/image\/1d\/3c\/1dc5740b4da4c9165ee177a416e9c33c.png","alt":null,"title":"","style":[{"key":"width","value":"75%"},{"key":"bordertype","value":"none"}],"href":"","fromPaste":false,"pastePass":false}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"这是输出:"}]},{"type":"image","attrs":{"src":"https:\/\/static001.infoq.cn\/resource\/image\/1c\/a7\/1c68f26278b09e5f38835424deaca4a7.jpg","alt":null,"title":"","style":[{"key":"width","value":"75%"},{"key":"bordertype","value":"none"}],"href":"","fromPaste":false,"pastePass":false}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":"center","origin":null},"content":[{"type":"text","text":"由作者提供—代码在tio.run执行"}]},{"type":"heading","attrs":{"align":null,"level":2},"content":[{"type":"text","text":"更多"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"还有很多类似的"},{"type":"text","marks":[{"type":"italic"}],"text":"晦涩语言"},{"type":"text","text":",你可以访问本文的参考部来探索一番。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"可以使用"},{"type":"link","attrs":{"href":"https:\/\/tio.run\/","title":"","type":null},"content":[{"type":"text","text":"这个网站"}]},{"type":"text","text":",该网站提供几乎所有语言的编译器和解释器。复制参考页中的代码,并在该站点中快乐的使用它们。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"strong"}],"text":"参考资料:"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"Esolang wiki: "},{"type":"link","attrs":{"href":"https:\/\/en.wikipedia.org\/wiki\/Esoteric_programming_language","title":"","type":null},"content":[{"type":"text","text":"https:\/\/esolangs.org\/wiki"}]}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"Malbolge: "},{"type":"link","attrs":{"href":"https:\/\/esolangs.org\/wiki\/malbolge","title":"","type":null},"content":[{"type":"text","text":"https:\/\/esolangs.org\/wiki\/malbolge"}]}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"INTERCAL: "},{"type":"link","attrs":{"href":"https:\/\/en.wikipedia.org\/wiki\/INTERCAL","title":"","type":null},"content":[{"type":"text","text":"https:\/\/en.wikipedia.org\/wiki\/INTERCAL"}]}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"Brainfuck: "},{"type":"link","attrs":{"href":"https:\/\/en.wikipedia.org\/wiki\/Brainfuck","title":"","type":null},"content":[{"type":"text","text":"https:\/\/en.wikipedia.org\/wiki\/Brainfuck"}]}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"COW: "},{"type":"link","attrs":{"href":"https:\/\/esolangs.org\/wiki\/COW","title":"","type":null},"content":[{"type":"text","text":"https:\/\/esolangs.org\/wiki\/COW"}]}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"Whitespace: "},{"type":"link","attrs":{"href":"https:\/\/en.wikipedia.org\/wiki\/Whitespace_(programming_language)","title":"","type":null},"content":[{"type":"text","text":"https:\/\/esolanga.org\/wiki\/whitespace"}]}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"strong"}],"text":"英文原文链接: "}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"https:\/\/levelup.gitconnected.com\/5-most-difficult-programming-languages-in-the-world-549c3cf91b23"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}}]}

版权声明
本文为[InfoQ]所创,转载请带上原文链接,感谢
https://www.infoq.cn/article/psp53Xp5Dm1QqP66Xuke?utm_source=rss&utm_medium=article

随机推荐