frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: I built a RISC-V emulator that runs DOOM

https://github.com/lalitshankarch/rvcore
3•Flex247A•1h ago
Demo: https://www.youtube.com/watch?v=f5uygzEmdLw

Hi HN,

I built a RISC-V emulator that implements the RV32IM instruction set and a minimal syscall interface to run DOOM. A few weeks ago, I got my first output with a simple hello world assembly program.

Since then I have been working tirelessly to get DOOM to run.

I needed to figure out how to run C programs first, and came across newlib, which allows the underlying environment to implement the syscall stubs one by one until the programs run.

I have also added ELF loading, but currently only a single `PT_LOAD` segment is supported.

To port DOOM, I used doomgeneric, which was quite convenient to get working once the required stubs were in place.

DOOM renders to a fixed area in memory (0x705FDD = VRAM_START):

  0x7FFFFF  +-------------------------------------+
            |                                     |
            |        QUEUE_SIZE (32 bytes)        |
            |                                     |
  0x7FFFDF  +-------------------------------------+ <-- QUEUE_START
  0x7FFFDE  |          QUEUE_READ_IDX             |
  0x7FFFDD  |          QUEUE_WRITE_IDX            |
            +-------------------------------------+
            |                                     |
            |                                     |
            |       VRAM (1,024,000 bytes)        |
            |                                     |
            |                                     |
  0x705FDD  +-------------------------------------+ <-- STACK_START
            |                Stack                |
            |                  |                  |
            |                  v                  |
            |                                     |
            |                  ^                  |
            |                  |                  |
            |         Program data + Heap         |
            |                                     |
  0x000000  +-------------------------------------+
I made a small linker script so that the entry point of a C program is at _start and virtual address is always 0. That kept the ELF loader code simple.

Inputs are written to the queue by rvcore which are then intercepted by DOOM running inside it.

Sandwich Theorem

https://en.wikipedia.org/wiki/Squeeze_theorem
1•_Microft•1m ago•0 comments

Pipelight

https://pipelight.dev/
1•fulafel•2m ago•0 comments

After giving away $26B MacKenzie Scott's wealth remains largely unchanged

https://timesofindia.indiatimes.com/world/us/after-giving-away-26-billion-in-philanthropy-mackenz...
1•gscott•3m ago•0 comments

The Lobster in the Hot Pot – OpenTentacle

https://opententacle.com/article/2026-04-05/
1•birdculture•3m ago•0 comments

Dogs' brains began to shrink at least 5k years ago

https://www.theguardian.com/science/2026/apr/29/dogs-brains-shrink-5000-years-ago
1•gmays•4m ago•0 comments

What are the chances a hurricane will hit my home?

https://www.noaa.gov/stories/what-are-chances-hurricane-will-hit-my-home
1•bilsbie•6m ago•0 comments

How the JVM Optimizes Generic Code – A Deep Dive [pdf]

https://cr.openjdk.org/~jrose/pres/202603-SpecializedGeneric.pdf
1•Tomte•7m ago•0 comments

I rebuilt my blog's cache. Bots are the audience now

https://hoeijmakers.net/thirty-years-of-caching-sorted-in-an-afternoon/
2•robhoeijmakers•8m ago•0 comments

Robotics startups are losing to slow feedback loops

https://www.simbiotic.dev/blog/robotics-startup-development-speed
1•nikhilol•8m ago•0 comments

I completed 100 Days of Java over 5 years and mapped the journey as a graph

https://mohibulsblog.netlify.app/java/100daysofjava/graph/
1•celurian92•15m ago•1 comments

Learn concurrency – a deep dive into multithreading with Python

https://blog.geekuni.com/2026/04/python-concurrency.html
2•aquastorm•16m ago•0 comments

StackGraveyard.dev – Live mortality scores for NPM packages

https://www.stackgraveyard.dev/
1•tlseternal•17m ago•0 comments

What If Your Boss Monitored Your Emotions?

https://www.theatlantic.com/culture/2026/05/worker-surveillance-emotion-ai/687029/
2•Brajeshwar•17m ago•1 comments

1984 Called: It predicted our AI-obsessed reality

https://medium.com/@tk512/the-ai-predictions-in-the-movie-electric-dreams-1984-0c6a47a6326e
1•sgt•18m ago•0 comments

What Makes Art Great

https://nabeelqu.substack.com/p/what-makes-art-great
1•jger15•20m ago•0 comments

OpenAI delays ChatGPT "adult mode"

https://www.axios.com/2026/03/06/openai-delays-chatgpt-adult-mode
1•embedding-shape•21m ago•0 comments

Benchmarking local LLMs against coding agent harnesses [WIP]

https://neuralnoise.com///2026/harness-bench-wip/
1•Terretta•23m ago•0 comments

Virtual violin produces realistic sounds

https://news.mit.edu/2026/mit-engineers-virtual-violin-produces-realistic-sounds-0429
1•gmays•24m ago•0 comments

How vLLM Works

https://avkcode.github.io/blog/how-vllm-works.html
2•IngessLabs•25m ago•1 comments

Gerry Conway, creator of the Punisher in Spider-Man comics, dies at 73

https://www.theguardian.com/culture/2026/may/01/gerry-conway-punisher-spider-man-comics
1•bookofjoe•26m ago•0 comments

Show HN: Next-gen music visualization in the browser

https://vizz.fm/
2•lowtecky•28m ago•2 comments

Why you're more likely to buy something for $4.99 than $5.00

https://thehustle.co/originals/why-youre-more-likely-to-buy-something-for-499-than-500
1•Anon84•28m ago•0 comments

Koch Brothers' covert operations (2010)

https://www.newyorker.com/magazine/2010/08/30/covert-operations
2•simonebrunozzi•30m ago•0 comments

VSCode now adds Copilot as a co-author of all your commits

https://bsky.app/profile/majormcdoom.bsky.social/post/3mkvqyjtlqc25
2•doener•32m ago•0 comments

Meditations on Moloch (2014)

https://slatestarcodex.com/2014/07/30/meditations-on-moloch/
1•simonebrunozzi•35m ago•0 comments

iOS [$59.99/Yr 1 Year Free] SwiftBillInvoice and Small Business CRM 1 Year Free

https://apps.apple.com/redeem/?ctx=offercodes&id=6760855924&code=SWIFTBILL1STYEAR
1•sheboftek•35m ago•0 comments

Running official Arch Linux on Arm (not to be confused ArchLinuxARM)

https://charon.konekopi.com/posts/archlinux_on_arm/
1•Charon77•37m ago•0 comments

Dermatology is wrong about the sun

https://twitter.com/MattZirwas/status/2050586857868591306
3•bilsbie•37m ago•0 comments

'Feed a cold': eating primes immune cells for action

https://www.nature.com/articles/d41586-026-01362-6
1•XzetaU8•38m ago•1 comments

New post: The Markdown Link no. 27

https://md-handbook.com/markdown-link-no-27
1•wordius•40m ago•1 comments