frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: I built a PHP-to-native compiler (written in Rust); now it runs DOOM

https://github.com/illegalstudio/elephc
2•nahime•1h ago
Because obviously the first logical step after compiling PHP to ARM64 was rendering DOOM with it.

It renders DOOM E1M1 in real-time. BSP traversal, perspective projection, distance fog, sector lighting, collision detection, step climbing - all PHP, compiled to native, running at 15+ FPS. You walk around the actual shareware WAD.

I can hear you: "but does it run DOOM?". No, it renders DOOM. There's a difference. The imps are safe. For now.

Why PHP? PHP has a simple, approachable syntax that millions of developers worldwide already know. That makes it an ideal bridge to bring web developers closer to systems programming, native binaries, and understanding what happens under the hood, without forcing them to learn an entirely new language first.

Of course, PHP was never designed to parse WAD files or traverse BSP trees. To get here, elephc had to grow beyond standard PHP with compiler extensions: packed class for flat POD records (all the DOOM geometry - vertices, linedefs, sectors, segs - lives in these), buffer<T> for contiguous typed arrays (the hot-path storage that makes real-time rendering possible), ptr for raw memory access, and extern for calling SDL2 directly via FFI. You write PHP, but the data structures "perform" like C (not really yet ;)). You can find everything that's been added on top of standard PHP syntax here: https://github.com/illegalstudio/elephc/tree/main/docs/beyon...

PHP vs DOOM (Video): https://media.nahi.me/illegalstudio/elephc/elephc-doom-3d-mo...

GitHub: https://github.com/illegalstudio/elephc

If this made you smile, exhale sharply through your nose, or question my life choices, consider dropping a on the repo. It's how people find the project, and it makes me mass echo dopamine.

Comments

gosingk•1h ago
Stared, what tool you use to generate the intro video on the .dev site?
nahime•1h ago
The doom video is a recording from my screen, the other one has been generated completely by Perplexity Computer ;)
nahime•1h ago
Oh, and obviously thank you very much for the star!

A case study in testing with 100 of Claude agents in parallel

https://imbue.com/product/mngr_part_2/
1•thejash•1m ago•0 comments

GitMindPro – Scan any GitHub repo for AI-injected security risks

https://gitmindpro.com
1•DevToday•1m ago•0 comments

Raytheon generalized modular toolchains for Hidden Communication Systems

https://github.com/raytheonbbn/maude-hcs
1•uticus•2m ago•1 comments

Gstack pull request – "no seriously, accept it. it fixes everything"

https://github.com/garrytan/gstack/pull/681
2•Topfi•3m ago•0 comments

Linkhut: A Social Bookmarking Site

https://ln.ht
1•Imustaskforhelp•4m ago•0 comments

Ghostty, but with Vertical tabs, lightweight and native

https://github.com/muxy-app/muxy
1•543310•5m ago•0 comments

iNaturalist

https://www.inaturalist.org/
2•bookofjoe•6m ago•0 comments

AI Governance

https://medium.com/@paul.bernard_80815/the-ai-highground-8a438dfd18c5
1•paulbernard•8m ago•0 comments

Revision Demoscene Festival 3-6 April

https://2026.revision-party.net/
1•thinkingemote•9m ago•0 comments

Half of NASA's pool of active astronauts served in the Middle East

https://www.stripes.com/theaters/us/2026-04-01/artemis-2-military-involvement-iraq-veterans-21250...
1•ThrowawayGuy1•9m ago•0 comments

Artemis II Looking Back at Earth

https://images.nasa.gov/details/art002e000191
1•DarmokJalad1701•10m ago•0 comments

Getting Claude to QA its own work

https://www.skyvern.com/blog/getting-claude-to-qa-its-own-work/
3•suchintan•10m ago•0 comments

Are web apps really slower than native?

https://atfzl.com/are-web-apps-really-slower-than-native/
1•atfzl•12m ago•0 comments

A Visual Guide to Gemma 4

https://newsletter.maartengrootendorst.com/p/a-visual-guide-to-gemma-4
1•mariuz•13m ago•0 comments

Code-review-graphv 2.1.0, 8× fewer tokens for code reviews via structural graph

https://github.com/tirth8205/code-review-graph
1•tirthkanani•15m ago•0 comments

Pharmaceuticals face 100% tariffs in US – unless firms strike a deal

https://www.bbc.com/news/articles/cx29kke01gpo
10•geox•18m ago•3 comments

Ask HN: Cool Websites to Stop Doomscrolling?

2•karakoram•18m ago•1 comments

Artemis II astronaut: 'I have two Microsoft Outlooks, and neither are working'

https://www.theregister.com/2026/04/02/artemis_astronauts_microsoft_outlook_broken/
3•Bender•21m ago•1 comments

AI-Generated Interview with One Piece Actor Published by Esquire

https://kotaku.com/one-piece-netflix-live-action-mackenyu-interview-esquire-ai-singapore-2000684648
2•pavel_lishin•21m ago•0 comments

US Military contractor open sources tool for validating hidden communications

https://www.theregister.com/2026/04/02/maude_hcs_rtx_raytheon_hcn/
1•Bender•21m ago•0 comments

'Uncle Larry's biggest fan' cut by email in early morning Oracle layoff spree

https://www.theregister.com/2026/04/01/laidoff_oracle_workers/
3•Bender•22m ago•0 comments

Police officer top dream job for boys in Japan, cake shop worker for girls

https://mainichi.jp/english/articles/20260403/p2g/00m/0na/014000c
3•rawgabbit•23m ago•0 comments

A micro-processor built large. Very large (2016)

https://www.megaprocessor.com/stepping-stones.html
2•uticus•23m ago•0 comments

Show HN: Cynical Sally Sidekick Right in the Browser as a Chrome Extension

https://chromewebstore.google.com/detail/cynical-sally/hjcdmhmkhfdfcekpmlnbocncjhnkocni
1•thomasgeelens•24m ago•0 comments

Unlocking LoRA Moe RL for Qwen3.5

https://osmosis.ai/blogs/unlocking-lora-moe-rl-for-qwen3-5
3•WorldPeas•24m ago•0 comments

New Garmin Training Features (2026): Nutrition Tracking, Lifestyle Logging, and

https://www.wired.com/story/garmin-training-features-2026/
1•joozio•26m ago•0 comments

NASA 3D Eyes on the Solar System

https://eyes.nasa.gov/apps/solar-system/
2•uticus•26m ago•0 comments

Melon|One-Click Machine Learning Solutions

https://melon.asapi.ai/
1•aidandeepleads•26m ago•1 comments

The Cathedral, the Bazaar, and the Winchester Mystery House

https://www.oreilly.com/radar/the-cathedral-the-bazaar-and-the-winchester-mystery-house/
1•dbreunig•27m ago•0 comments

Why stdout is faster than stderr? (2024)

https://blog.orhun.dev/stdout-vs-stderr/
2•zdw•28m ago•0 comments