[問卦] 能駕御Brainfuck語言的人是不是很屌?
如題,現在一大堆程式語言,只要基礎概念掌握好,要從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'
----- - . print 'l'
----- --- . print 'd'
> + . print '!'
> . print '\n'
簡單來說就是輸出HelloWorld的程式,不過比起其他高階語言,這Brainfuck實在是有夠骨骼精奇的,這貨比Assembly還屌,好奇真的會有人能掌握嗎?
還好大多公司都是用高階語言,如果真的用這個語言,肯定會fuck聲連連,有卦否?
--
Sent from PTT for Linux.
--
五樓喜歡被dick fuck還會fuck聲連連
左邊那些符號是幹嘛用的? 本體?
蓋蓋蓋
你看過cow語言嗎
蓋
寫組合語言的:
圖靈機
還真的brainfuck我頭腦
靠夭左邊那堆符號真的是本體 右邊是註解
這是古老的Turing completeness語言而已啊
〓〓
dayend大這麼強喔
看完清楚很多
每個符號都是動作
34
[請益] 該用什麼心態面對 Web開發?小弟今年 26y,國立中段大學非相關科系碩畢, 在學期時無意間發現對程式有興趣,因此有修/旁聽下列課程: 程設(c++)、OO programming、data structure、operating system、computer networks, 另外自己也做過幾個小專案(用 Qt畫 3D地形圖、network programming...)。 目前在純軟公司工作半年多,期間稍微摸過 ML(python)、windows driver(c)、34
[閒聊] mavis請進笑死 你被語言哥針對了欸 他很氣他曾經說你的圖很棒 結果他問說有沒有人可以幫他破處的時候你叫他要提升自我價值 你要不要回應一下啊27
[問卦] 寫程式只要會用套件就好了吧?現在高階語言都很方便 Python R那些一堆屌套件可以用 分析、資料視覺化、機械學習 真正用到的 只需要幾行套件呼叫就解決 不用像學C Java 一樣在那邊土方煉鋼22
[問卦] Python是怎麼突然爆紅的?在2015年左右以前 程式語言的霸主要嘛以偏底層可以控制記憶體的C/C++為主 要嘛是物件導向能力強大的Java、C# 或者是網頁在使用的html、php、JavaScript 即使是資料科學分析也有R 工程科學也有matlab 結果就是Python在這幾年迅速竄起 直追Java和C的龍頭寶座18
Re: [分享] F-22猛禽機的飛航控制系統雖然回自己的文章有點奇怪 但突然想到一些原文與電腦科學和程式語言的事想跟大家 分享一下。我會盡量寫跟軍事相關的部分 如偏題太多再麻煩版主提醒一下(抖 : : : 推 OpenGoodHate: 何時史塔克工業要改用C#/Java 記得叫我 07/13 09:5013
Re: [問卦] 學會 RISC-V 之後能做什麼工作?這要看你學會RISC-V的定義是什麼 就像是練功一樣,端看你練到第幾重天 第一重大概就是會用RV64/32指令集寫寫組語 這個就像是剛剛出新手村的勇者,可能只可以打打史萊姆 當當新手村掃地工7
Re: [問卦] 現在程設入門還是C嗎?我是一個半路出家的程式設計師,我覺得對本科生來說,或是有興趣了解高階語言底層實 作的還是需要點一下C, 說白一點,從高階語言進入開發的,都有點被寵壞了,很多高階語言已經實作了,各種資 料結構,甚至是已經有幫你包好幾種類型演算法的物件可以用了, 從c開始,你可以一步一步的知道說,5
Re: [問卦] 現在程式語言的鄙視鏈長怎樣?說到這個 都嘛都些低端碼農在cow 背啦 每個語言都有它自己應用的地方 比如說要搞演算法 畫圖 就用matlab 跑起來超級慢 但語法簡單 畫圖方便 所以符合研究性質
爆
[問卦] 英國網紅挑戰印度路邊攤奶茶?48
Re: [問卦] 英國網紅挑戰印度路邊攤奶茶?爆
[問卦] 給三立 民視65億 有沒有圖利的問題?爆
[問卦] Netflix又被炎上了29
[問卦] 所以現在就開始準備要打仗了嗎?93
[爆卦] 李文宗 朱亞虎 收押禁見26
[問卦] 越南妹配合度很高怎辦30
[問卦] 台灣夜市是不是要亡?8
[問卦] 我對烏龍派出所很熟 儘管問22
[問卦] 奶超大又超瘦是怎麼做到的!!!==?22
[問卦] 現在小孩是不是越來越少說台語了?92
[問卦] 八方雲集兩岸一家親慘遭抵制?20
[問卦] 健身房要怎麼去才回本==?47
[問卦] 德國有什麼可以代購的14
[問卦] 現在開始 不准說環島 懂嗎?94
[問卦] 親人 癌症/中風/失智 哪個慘?43
[問卦] PTT窮途末路囉?14
[問卦] 我認識潘威倫不太認得周思齊,人氣卻較18
[問卦] 貓貓堅持要躺在我手臂上怎麼辦?39
[問卦] 以色列把真主黨高層全滅耶!!!22
[問卦] 酸菜魚 肉夾饃 梅花糕 為何只想吃一次?15
[問卦] Dcard要逛哪個版37
[問卦] 桃園這幾年毫無進步?28
[問卦] 喝熱湯會致癌是認真的?X
[問卦] 統一後生活會變得多方便?13
[問卦] 大橋怎麼被炒起來的?14
Re: [爆卦] 李文宗 朱亞虎 收押禁見7
[問卦] 有人討厭某個瞎子歌手嗎31
Re: [問卦] 奶超大又超瘦是怎麼做到的!!!==?12
[問卦] 中國14億人口 找不到11個踢足球??