Lurker News

Comments (761) 320 threads

Show all comments

Showing thread 56 of 320

kunai2 replies#
I'm working on a POSIX-ish OS in Brainfuck.

I'm working on it because brainfuck is awesome and writing a kernel in it is even moar awesome. I'm currently trying to figure out how to port several basic GNU coreutils to the system.
The kernel boots and hangs in QEMU. That's good for now; at least it boots. Now, the important thing is actually getting it to run bash, and a few basic coreutils, specifically cat, mkdir, echo, ls, and cd.
Once it's done, I'm pushing to github (commented extensively, of course ;)

pholes#
I had a fun little project with brainfuck, wrote a rather slow interpreter in it. Was implementing BF natively in ruby before I was caught up with other projects.. Would love to have your project implemented!!

https://github.com/Pholey/BrainRuck

AsmMAn1 reply#
What compiler are you using? and will this be open source?
kunai#
I wrote my own in C++. It's intermediary, so it first translates BF code to C and then uses gcc to compile the intermediary C code.

I'm working on getting it to compile straight to assembly. Yeah, yeah, I could have used https://github.com/ahorn/bf-compiler/blob/master/bfc.c, but eh, what the hell. It's supposed to be a hobby project.