[問卦] 能駕御Brainfuck語言的人是不是很屌?

作者: jobintan (Robin Artemstein)   2022-12-23 13:34:37
如題,現在一大堆程式語言,只要基礎概念掌握好,要從A語言轉換到B語言,基本上難度
不會很大,因為都是人類讀得懂的高階語言,問題不大。
不過,最近看Fireship.io的Youtube頻道,得知有個程試語言叫做Brainfuck,稍微看了下
一小段代碼片段,大概是這副德性。
+++++ +++++ initialize counter (cell #0) to 10
[ use loop to set the next four cells to 70/100/30/10
> +++++ ++ add 7 to cell #1
> +++++ +++++ add 10 to cell #2
> +++ add 3 to cell #3
> + add 1 to cell #4
<<<< - decrement counter (cell #0)
]
> ++ . print 'H'
> + . print 'e'
+++++ ++ . print 'l'
. print 'l'
+++ . print 'o'
> ++ . print ' '
<< +++++ +++++ +++++ . print 'W'
> . print 'o'
+++ . print 'r'

Links booklink

Contact Us: admin [ a t ] ucptt.com