# Projects that shouldn't work: doomcr

**URL:** <https://forum.crystal-lang.org/t/projects-that-shouldnt-work-doomcr/8740>\
**Category:** Offtopic\
**Created:** [February 28, 2026, 3:32am UTC](https://forum.crystal-lang.org/t/projects-that-shouldnt-work-doomcr/8740 "2026-02-28T03:32:11Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![omarluq](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/omarluq/32/3074_2.png) [@omarluq](https://forum.crystal-lang.org/u/omarluq)\
**Post date:** [February 28, 2026, 3:32am UTC](https://forum.crystal-lang.org/t/projects-that-shouldnt-work-doomcr/8740/1 "2026-02-28T03:32:11Z")

</div>

I did a fun and useless thing: put Doom in the terminal with Crystal.  
Why did I do this? Because why not.  
Honestly I fully expected this to explode. It did not.

> **[Watch vid | Streamable](https://streamable.com/0stz7m)**
>
> Watch "vid" on Streamable.

Repo: [omarluq/doomcr](https://github.com/omarluq/doomcr)

It can run either:

- shareware `doom1.wad` (default)
- Freedoom (`DOOM_WAD_SOURCE=freedoom`)

```bash
docker run --rm -it doomcr:latest
docker run --rm -it -e DOOM_WAD_SOURCE=freedoom doomcr:latest

```

You can also mount your own IWAD if you already have one.

If anyone wants to try it and roast the terminal rendering/input handling, I’m all ears.

---

<div class="post-metadata">

**Author:** ![hahwul](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/hahwul/32/2209_2.png) [@hahwul](https://forum.crystal-lang.org/u/hahwul)\
**Post date:** [February 28, 2026, 8:22am UTC](https://forum.crystal-lang.org/t/projects-that-shouldnt-work-doomcr/8740/2 "2026-02-28T08:22:24Z")

</div>

Wow, this is so cool!!

---

<div class="post-metadata">

**Author:** ![zw963](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/zw963/32/1623_2.png) [@zw963](https://forum.crystal-lang.org/u/zw963)\
**Post date:** [February 28, 2026, 12:33pm UTC](https://forum.crystal-lang.org/t/projects-that-shouldnt-work-doomcr/8740/3 "2026-02-28T12:33:41Z")

</div>

Can I run it directly on my x86\_64 linux laptop without docker?

I tried with podman, but failed, I guess it caused by some incompatible by runc/crun

---

<div class="post-metadata">

**Author:** ![zw963](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/zw963/32/1623_2.png) [@zw963](https://forum.crystal-lang.org/u/zw963)\
**Post date:** [February 28, 2026, 1:33pm UTC](https://forum.crystal-lang.org/t/projects-that-shouldnt-work-doomcr/8740/4 "2026-02-28T13:33:13Z")

</div>

I do some hack for Dockerfile support podman, but still build failed.

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/crystal_lang/original/2X/9/950c0c414fefc9cb67c82553698440412d7cb182.png)

STEP 12/20: RUN crystal build src/main.cr -o /app/bin/doomcr --release  
/usr/bin/ld: /app/src/doomcr/../../build/native/libdoomgeneric.a(doomcr\_bridge.o): warning: relocation against `DG_ScreenBuffer' in read-only section `.text’  
/usr/bin/ld: \_main.o3.o: in function `create': /app/src/doomcr/native.cr:31:(.text+0x569f): undefined reference to `doomgeneric\_Create’  
/usr/bin/ld: \_main.o3.o: in function `tick': /app/src/doomcr/native.cr:35:(.text+0x56b1): undefined reference to `doomgeneric\_Tick’  
/usr/bin/ld: /app/src/doomcr/../../build/native/libdoomgeneric.a(doomcr\_bridge.o): in function `doomcr_get_screenbuffer': doomcr_bridge.c:(.text+0x67): undefined reference to `DG\_ScreenBuffer’  
/usr/bin/ld: /app/src/doomcr/../../build/native/libdoomgeneric.a(doomcr\_bridge.o): in function `DG_DrawFrame': doomcr_bridge.c:(.text+0xa3): undefined reference to `DG\_ScreenBuffer’  
/usr/bin/ld: warning: creating DT\_TEXTREL in a PIE  
collect2: error: ld returned 1 exit status

---

<div class="post-metadata">

**Author:** ![ralsina](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/ralsina/32/2139_2.png) [@ralsina](https://forum.crystal-lang.org/u/ralsina)\
**Post date:** [February 28, 2026, 1:54pm UTC](https://forum.crystal-lang.org/t/projects-that-shouldnt-work-doomcr/8740/5 "2026-02-28T13:54:34Z")

</div>

Neat! Omar, maybe we can make the niche for crystal be “doing weird shit”

Not sure if there is a business case but it’s fun ;-)

---

<div class="post-metadata">

**Author:** ![omarluq](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/omarluq/32/3074_2.png) [@omarluq](https://forum.crystal-lang.org/u/omarluq)\
**Post date:** [February 28, 2026, 10:54pm UTC](https://forum.crystal-lang.org/t/projects-that-shouldnt-work-doomcr/8740/6 "2026-02-28T22:54:30Z")

</div>

> [@zw963](#):
>
> STEP 12/20: RUN crystal build src/main.cr -o /app/bin/doomcr --release  
> /usr/bin/ld: /app/src/doomcr/../../build/native/libdoomgeneric.a(doomcr\_bridge.o): warning: relocation against `DG_ScreenBuffer' in read-only section `.text’  
> /usr/bin/ld: \_main.o3.o: in function `create': /app/src/doomcr/native.cr:31:(.text+0x569f): undefined reference to `doomgeneric\_Create’  
> /usr/bin/ld: \_main.o3.o: in function `tick': /app/src/doomcr/native.cr:35:(.text+0x56b1): undefined reference to `doomgeneric\_Tick’  
> /usr/bin/ld: /app/src/doomcr/../../build/native/libdoomgeneric.a(doomcr\_bridge.o): in function `doomcr_get_screenbuffer': doomcr_bridge.c:(.text+0x67): undefined reference to `DG\_ScreenBuffer’  
> /usr/bin/ld: /app/src/doomcr/../../build/native/libdoomgeneric.a(doomcr\_bridge.o): in function `DG_DrawFrame': doomcr_bridge.c:(.text+0xa3): undefined reference to `DG\_ScreenBuffer’  
> /usr/bin/ld: warning: creating DT\_TEXTREL in a PIE  
> collect2: error: ld returned 1 exit status

@zw963 Seems that the Podman build ended up with a `libdoomgeneric.a` that’s missing a few Doom symbols (`doomgeneric_Create`, `doomgeneric_Tick`, `DG_ScreenBuffer`), so the final Crystal link step fails.

I pushed a fix it will use the vendored doomgeneric instead, if it still failing maybe try to build it without the cache

```auto
 podman build --no-cache -t doomcr:latest .

```

---

<div class="post-metadata">

**Author:** ![zw963](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/zw963/32/1623_2.png) [@zw963](https://forum.crystal-lang.org/u/zw963)\
**Post date:** [March 1, 2026, 6:21am UTC](https://forum.crystal-lang.org/t/projects-that-shouldnt-work-doomcr/8740/7 "2026-03-01T06:21:08Z")

</div>

Tested, works on my arch linux with podman now, thanks!

---

<div class="post-metadata">

**Author:** ![paulocoghi](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/paulocoghi/32/1429_2.png) [@paulocoghi](https://forum.crystal-lang.org/u/paulocoghi)\
**Post date:** [March 6, 2026, 10:02am UTC](https://forum.crystal-lang.org/t/projects-that-shouldnt-work-doomcr/8740/8 "2026-03-06T10:02:58Z")

</div>

This is another case demonstrating that Crystal is a lot more capable than people realize.

It proves, time and again, a rare combination of understandable syntax, low-level programming, efficiency, and high performance.

The name Crystal is excellent, not only because of the “bridge” with Ruby, but because it is indeed a very valuable programming language.

Yeah, I have to admit, I really like Crystal.
