r/brainfuck • • Dec 05 '19

Doom in BF?

Has doom been made here yet?

10 Upvotes

29 comments sorted by

1

u/[deleted] Dec 06 '19

I/Someone could port it to my brainfuck assembly or the C compiler (deadly slow though) in spare time

1

u/Significant-Whole460 Jul 31 '26

Yes, me and my team did it. We compiled doom from C to risc-v using gcc compiler, and then compiled risc-v assembly to brainfuck by our python-written compiler. And we created a very fast bf interpreter, that can run on a huge tape with more a than million cells. And it reads a compressed bf file, because doom in extracted format weights more than 3 terabytes! I made operations with memory in my risc-v to bf compiler too huge. I could make it shorter, but running time will be slower. Anyway, doom is working.

Repository (readme is in russian, sorry): https://github.com/sit-itmo/DoomBF

1

u/lil_doggo_078 Dec 24 '21

It would be so cool to see doom programmed in brainfuck actually running although you would probably have to do a lot of optimizations and compile it for it to print at least 1 frame in one week XD

1

u/[deleted] Jan 26 '24

i am on it

1

u/JJL8521 Feb 15 '24

any updates?

1

u/[deleted] Feb 16 '24

I will finish in 1/2 months (already working since September) it’s basically a transpiler, but more powerful than c2bf or asm2bf

1

u/EveTheNobody Mar 08 '24

Any updates now?

1

u/[deleted] Mar 09 '24

still working on it. the deadline hasn’t changed, although, now, it’s more like 2months from my initial message, due to my work taking lots of my time lately.

1

u/Truff1e Apr 22 '24

Still going?

1

u/[deleted] Apr 23 '24

Glad someone is still interested. Yes, the whole project has already been thought out, and it is clear how every aspect will work. The only thing I'm missing is time.. but I am slowly finishing it)

1

u/WIFWA May 04 '24

you can do it!!!

1

u/[deleted] May 04 '24

thanks <3

→ More replies

0

u/[deleted] Dec 05 '19

[deleted] — view deleted comment

3

u/realestLink Dec 06 '19

How would you get graphics to work though?

4

u/BadBoy6767 Dec 06 '19

Make the IO functions perform graphics and input instead of text.

3

u/BadBoy6767 Dec 06 '19

If compiled from some higher level language, then it would be much easier.

1

u/[deleted] Dec 13 '19

What is the reliability of compiling python into BF? like if i wanted to write flappy bird in BF, could i do it in raw python and then compile to BF

1

u/BadBoy6767 Dec 13 '19 edited Dec 13 '19

Practically none, unfortunately. Even the best C compiler we have, C2BF, practically emulates an entire stack and heap on the tape and it's absurdly complicated the way it works.

I'd recommend a language that was specifically made to support something like Brainfuck.

1

u/[deleted] Dec 13 '19

And brainfuck to python?

1

u/BadBoy6767 Dec 13 '19

Now, you can find Python to BF compilers on GitHub in 5 minutes.

1

u/BadBoy6767 Dec 14 '19

FUCK, I MISWROTE.

1

u/[deleted] Dec 14 '19

Nice