TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

A Brainfuck interpreter written in PostScript

117 pointsby romacover 1 year ago

14 comments

krylonover 1 year ago
This has got to be peak &lt;something&gt;. I don&#x27;t know what exactly, but it&#x27;s something. Self-inflicted torment and&#x2F;or eccentric fountain of joy. Probably both.<p>I cannot, for the life of me, see myself investing the time needed into something so futile. But I love that there are people out there who do this kind of thing out of pure joy.
评论 #38532818 未加载
评论 #38537783 未加载
评论 #38533459 未加载
评论 #38536085 未加载
评论 #38536269 未加载
评论 #38539935 未加载
评论 #38537536 未加载
评论 #38534674 未加载
lynx23over 1 year ago
The most awesome random submission I ever received was a BrainFuck compiler written in BrainFuck, by hand. Short story: I wrote a bf compiler in Emacs Lisp many many years ago. As a small testcase, I included a BrainFuck compiler in BrainFuck, which was written by a guy who wrote a C-alike to BrainFuck compiler so that he could implement his BF compiler in BF. That was a strange piece of code, about 6 pages of plain BF. A few years later, suddenly, I have this mail in my INBOX: A norwegian guy sent me a BF compiler in BF, written by hand. He was unsatisfied by the existing BF compiler, as it was generated. His implementation was about 6 lines of BF code. And it was a magnitude faster. Hats off to that guy!
评论 #38533343 未加载
toast0over 1 year ago
Just a helpful resume tip. If you work on something in Brainfuck, put it on your resume as BF. And don&#x27;t mention the name of your multi-threaded BF environment.
评论 #38533925 未加载
评论 #38534988 未加载
jraphover 1 year ago
This is what I&#x27;ve seen others qualify as &quot;quite cursed&quot;.
评论 #38531418 未加载
planedeover 1 year ago
Postscript is actually surprisingly approachable. It&#x27;s quite easy to implement logo-like &quot;turtle graphics&quot; and draw fractals in it.
评论 #38540758 未加载
nevirover 1 year ago
The description is glorious:<p>---<p>A Brainfuck interpreter written in PostScript<p>This program aims at being accurate, readable and minimal.
kevindammover 1 year ago
----[----&gt;+&lt;]&gt;++.+[---&gt;++&lt;]&gt;-.+.------------.--[-&gt;++++&lt;]&gt;-.[-&gt;+++&lt;]&gt;.+++++++..[++&gt;---&lt;]&gt;--.+[-&gt;+++&lt;]&gt;+.+++++++++++.-.---------.--[---&gt;+&lt;]&gt;.-..---[-&gt;+++&lt;]&gt;.+++[-&gt;++++&lt;]&gt;+.+++++++++++.------------.--[---&gt;+&lt;]&gt;--.[-&gt;+++&lt;]&gt;+.-[-&gt;+++&lt;]&gt;.+[-&gt;+++&lt;]&gt;+.+.---.[---&gt;+&lt;]&gt;-.++[-&gt;+++&lt;]&gt;++.-[---&gt;+&lt;]&gt;--.+[-&gt;+++&lt;]&gt;++.+++++++++.++++++++.[------&gt;+&lt;]&gt;.+++++++++.---.-.-.--------.+++++++++.++++++.[----&gt;+&lt;]&gt;+++.[-&gt;+++&lt;]&gt;+.+++++++++++++.----------.-[---&gt;+&lt;]&gt;-.---[-&gt;++++&lt;]&gt;+.-------.-----.+++++++++++.[----&gt;+&lt;]&gt;+++.---[-&gt;++++&lt;]&gt;.+++[-&gt;+++&lt;]&gt;.[---&gt;+&lt;]&gt;----.+.[----&gt;+&lt;]&gt;+++.-[---&gt;++&lt;]&gt;--.-------.--[---&gt;+&lt;]&gt;---.----.---------.[---&gt;+&lt;]&gt;----..+[++&gt;---&lt;]&gt;.++[---&gt;++&lt;]&gt;..&gt;-[---&gt;+&lt;]&gt;--.[---&gt;+&lt;]&gt;-.----.-------.+++++++++.----------.+++++.-----.[-&gt;+++&lt;]&gt;.------------.-[---&gt;++&lt;]&gt;-.+++++.----------.+..-.-[---&gt;+&lt;]&gt;..
评论 #38533405 未加载
Log_out_over 1 year ago
The inventor of brain fuck also gave us the Sauerbraten engine with its octree geometry storage as maps.
评论 #38537604 未加载
评论 #38540578 未加载
segmondyover 1 year ago
Now, do the inverse and implement postscript in BF
cjayboover 1 year ago
Some people just love pain it seems
评论 #38531500 未加载
foucover 1 year ago
Code looks good! Postscript is a pretty sweet alternative to forth.
评论 #38537738 未加载
leonheldover 1 year ago
I hate it in the best way possible.
dxtrousover 1 year ago
Would it work on a printer?
评论 #38530941 未加载
bryancoxwellover 1 year ago
What is wrong with you people
评论 #38532813 未加载