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.

I wrote an LLVM-powered trace-based JIT for Brainfuck

64 pointsby Halienjaover 14 years ago

6 comments

resistorover 14 years ago
Hey folks, I'm the actual author of this.<p>I actually work on LLVM-proper during my day job. This was just a fun exercise to demonstrate that it was possible. I also have plans to write a tutorial based on it.
评论 #1646583 未加载
评论 #1646646 未加载
评论 #1646771 未加载
danieldkover 14 years ago
Nice work!<p>Let me make a tiny plug for a short Sunday project as well... Brainf*ck in Prolog:<p><a href="http://github.com/danieldk/brainfuck-pl/" rel="nofollow">http://github.com/danieldk/brainfuck-pl/</a><p>One nice thing is that unit testing is really simple:<p><a href="http://github.com/danieldk/brainfuck-pl/blob/master/unittests.pl" rel="nofollow">http://github.com/danieldk/brainfuck-pl/blob/master/unittest...</a><p>And for some very trivial outputs, it can generate the program to create that output.<p><pre><code> ?- brainfuck:interpret([A,B],[],[0],[0],[1,0]). A = &#60;, B = + ? </code></pre> Ps. Yes, it's easy to improve generation...
mathgladiatorover 14 years ago
Is anyone else oddly inspired to make an OCaml to Brainf<i></i>k translator just to build a staggeringly awesome rube goldberg machine?
评论 #1646723 未加载
VMGover 14 years ago
Nice work - can you give us some data on how it is?
评论 #1649049 未加载
udzinariover 14 years ago
I wish I had free time too! brainfuck is boring though.. why not some stack based language with lisp like syntax or something like that.
davidwover 14 years ago
I don't know... "neat hack", but it seems there is so much out there that could actually have some kind of practical application that it's a bit of a waste to work on "silly" projects. I love to hack on things that don't have any immediately evident business model or real world application, but I think purposefully working on something that never will is perhaps a bit unfortunate. Yeah, he learned something for sure, but that's pretty much all it can be.<p>To expand on that: if he'd written his own toy language, say, odds are it would never go anywhere, but, who knows... maybe it will find a niche. Using "brainfuck" pretty much guarantees that the code will never find a practical use.
评论 #1645912 未加载
评论 #1646043 未加载
评论 #1645902 未加载
评论 #1646577 未加载
评论 #1645936 未加载
评论 #1647193 未加载
评论 #1645927 未加载