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.

Show HN: Visual Brainfuck Interpreter

60 pointsby frpzzdabout 5 years ago

4 comments

mawekiabout 5 years ago
I did some visualization of brainfuck quite a few years ago. I do an interpretation and generate a pov-ray script that generates frames that generate a video.<p>Multiplication here: <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=6PIZTFrkl0w" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=6PIZTFrkl0w</a> , repo here: <a href="https:&#x2F;&#x2F;github.com&#x2F;maweki&#x2F;brainfuck2video" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;maweki&#x2F;brainfuck2video</a><p>The problem I find with basically every brainfuck visualization (mine included): it&#x27;s only useful with a few memory cells as the tape becomes full. You can&#x27;t skip over or fast forward specific &quot;widgets&quot; (I&#x27;ve seen multiplication, now move along). At that point, you could find other levels of abstraction and try to allow for some macros that should always take x seconds, independent of the number of actual operations.<p>And I think most projects would be well-served using some simple termination arguments to prevent some simple not so well-behaved programs (of course, this is in general undecidable). But this shown interpreter for example, just does nothing on &quot;+[]&quot; but whether some program in some state is quiescent is easily decidable.
frpzzdabout 5 years ago
A Brainfuck interpreter that shows how the cellular automaton behaves as your code runs. A description of the language and some challenging puzzles can be found below.
评论 #23209057 未加载
huhtenbergabout 5 years ago
There&#x27;s something wrong with the status (?) widget at the top of the screen. Here&#x27;s what I get trying to run a sample .b script - <a href="https:&#x2F;&#x2F;imgur.com&#x2F;EEcZDym.png" rel="nofollow">https:&#x2F;&#x2F;imgur.com&#x2F;EEcZDym.png</a>
评论 #23211409 未加载
russfinkabout 5 years ago
I wish the name wasn&#x27;t NSFW. OR not safe for teaching kids about programming in mimimalist environments.
评论 #23211441 未加载
评论 #23210663 未加载
评论 #23211456 未加载
评论 #23211040 未加载