Minggu, 03 Mei 2026

New top story on Hacker News: Show HN: I built a RISC-V emulator that runs DOOM

Show HN: I built a RISC-V emulator that runs DOOM
15 by Flex247A | 0 comments on Hacker News.
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.

🍌 Savannah Bananas remain as big a hit as ever

The Bananas filled Texas A&M's football field to capacity in their game against the Texas Tailgaters.

from www.espn.com - TOP https://ift.tt/GWt3ajQ

Sabtu, 02 Mei 2026

New top story on Hacker News: Ask HN: Is the Job Market Actually Bad?

Ask HN: Is the Job Market Actually Bad?
10 by idontwantthis | 15 comments on Hacker News.
I’m not trying to brag, I am just genuinely confused. I got laid off recently and I had a new job within a week because I constantly get contacted by recruiters both through LinkedIn and directly by email. I’ve never sent an application to anyone and I’ve had dozens of interviews in the past year while I was looking for a new job before getting laid off. I would have had a new one earlier except I was aiming for fully remote and a big raise, and I failed their correspondingly difficult evaluations. Never got ghosted, never had to deal with AI, never had to fill out an application. I took a local, in office offer that I would have ignored if I were still employed. Currently I’m waiting for a final decision from another fully remote company and I’m in midstage with 2 more. I’m not a super genius engineer, and I don’t have any fancy companies on my resume. How unusual is this experience?

New top story on Hacker News: Santa Cruz restaurant changes logo after flurry of negative reviews for AI art

Santa Cruz restaurant changes logo after flurry of negative reviews for AI art
29 by randycupertino | 39 comments on Hacker News.


Flyers' Cam York meets fan who caught stick after ...

Flyers defenseman Cam York hurled his stick into the crowd after his game-winning goal against the Penguins.

from www.espn.com - TOP https://ift.tt/g5VaK4p