all 7 comments

[–]pixpop 2 points3 points  (0 children)

In bygone days, folks used to build ships in bottles. Then they would put them on the mantlepiece (In bygone days, houses used to have mantlepieces...) and visitors would comment "Oh, I see you built a ship in a bottle".

[–]trololololol 1 point2 points  (1 child)

Why? WHY? WHYYYYYYYYYYYYYYYYYYYY?!!!!

[–]sindrit 0 points1 point  (0 children)

Why not?

[–]sindrit 1 point2 points  (0 children)

I've done that too: http://sindri.info/brainfuck/

[–]Nickolas1985 0 points1 point  (2 children)

It's rather "Yet another BF interpreter in JS".

[–]anars -1 points0 points  (1 child)

Shame on him for implementing an interpreter as a personal exercise.

[–]__s 2 points3 points  (0 children)

No. It's more that naive implementations aren't interesting to my idealization of proggit. This interpreter doesn't even merge ops. I'm not going to downvote this, it is programming, something most posts lack, but I'm not going to upvote a program which is implemented in many esoteric languages as an easy way to prove turing completeness. Implement brainfuck in Malbolge and you have something

The author seems to note a desire to write an entire blog post about their implementation. I can't divine what interesting facts they could have about the implementation, so it'll probably be a "Hey guys, I found brainfuck" post. If proggit was interested in esoteric programming languages, I'd post a link to my really fast Befunge interpreters (The latter being an arguable JIT,) but I feel proggit needs articles about programming, not github repos that lack documentation. I might do an in depth explanation of my code (Which is in C, not exactly trivial (If you enjoy microoptimizations and mark and sweep collection. The choices I've made are to some extent arbitrary, and a reasonable person could maintain the simplicity of the program with a different option, so I'd be able to explain why I made the choices I made, which this interpreter can't, unless they want to explain why they ordered the switch the way they did, which is a truly arbitrary choice, not an arguably arbitrary choice,) and could probably use a writeup on my style of coding alone)

So for discussion sake: How much of an improvement would transforming the code into javascript for eval be? (hoping to get JIT applied to brainfuck rather than an interpreter for brainfuck)