Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. I built non-autoregressive decision models with RL a year ago(convaiinnovations.com ↗)
    177comments
  2. AI-generated posters don’t have to be horrible(john.hartnup.uk ↗)
    564comments
  3. Human brain is two separate organs, Stanford Medicine-led research finds(stanford.edu ↗)
    200comments
  4. Btrfs/ZFS/bcachefs under workloads classic benchmarks skip(bartosz.fenski.pl ↗)
    4comments
  5. A graphical desktop for the ZX Spectrum(github.com/mindbox77 ↗)
    86comments
  6. Tin: full-text search for Postgres(planetscale.com ↗)
    57comments
  7. “The Secret Life of Circuits” is here(coredump.cx ↗)
    60comments
  8. Android 17 is the first since 3.x to add new APIs without releasing to the AOSP(grapheneos.social ↗)
    599comments
  9. Black Holes or Black Hole Stars? Astronomers Spar over 'Little Red Dots'(quantamagazine.org ↗)
    23comments
  10. Supabase (YC S20) Is Hiring for OrioleDB(supabase.link ↗)
    discuss
  11. Show HN: CUA-S1 – A System One Model for Computer Use(github.com/trycua ↗)
    discuss
  12. New evidence for hidden chambers beyond Tutankhamun's tomb(nature.com ↗)
    13comments
  13. Suzanne Ciani's Buchla Cookbook(echo.orpheusinstituut.be ↗)
    1comments
  14. GPT-6 Astra Solves a WWI German Radio Cipher(prinzai.com ↗)
    147comments
  15. San Francisco Onion Futures Company(onionfutures.com ↗)
    134comments
  16. People who know the most often sound the least certain(vrash.substack.com ↗)
    9comments
  17. Cloudflare Quick Tunnels(cloudflare.com ↗)
    303comments
  18. How to Write with an LLM(sockpuppet.org ↗)
    365comments
  19. If math is more than proof, we need to better celebrate the rest of it(terrytao.wordpress.com ↗)
    210comments
  20. Almost Never Use AI to Write Anything Substantive(erichgrunewald.substack.com ↗)
    42comments
  21. What Zig felt like, coming from Rust(besok.github.io ↗)
    150comments
  22. You can run Git on object storage if you re-make packfiles(tigrisdata.com ↗)
    29comments
  23. Saving another 100TB of RAM(cloudflare.com ↗)
    93comments
  24. Communication by means of modulated Johnson noise(pnas.org ↗)
    23comments
  25. Asking Authors About Their Own Papers(medium.com/tmlrorg ↗)
    51comments
  26. SDCC – Small Device C Compiler(sourceforge.net ↗)
    26comments
  27. How OpenAI Used Its Own LLMs to Design Its Jalapeño Chip(ieee.org ↗)
    124comments
  28. Science Is Open Software(jepedersen.dk ↗)
    58comments
  29. Adventures in Microcontroller Circuit Debugging(bigmessowires.com ↗)
    1comments
  30. Why building a Rust LSP is hard(rust-glancer.github.io ↗)
    55comments

Show HN: I wrote a custom assembler for CHIP-8 in C++

24 pointsby 2d agogithub.com
4 comments
I'm writing a custom assembler for CHIP-8 and just finished adding support for the DB/.byte directive so I can embed sprites in the ROM and finally get something drawn on the screen. It SHOULD support all OG CHIP-8 instructions, but still a ton of rough edges that I'm ironing out.

This is my first ever C++ project, just like the CHIP-8 emulator was my first ever C (and emudev) project. It's so satisfying to write assembly and have your program spit out a ROM that actually runs in the emulator you wrote.

All code is written by me (a lot of it livestreaming) as evident by the quality, no AI.

5h agoHN ↗

Awesome milestone! As someone diving into C and C++ right now, what was the steepest part of the learning curve for you when structuring the assembler compared to writing the emulator in C?

5h agoHN ↗

Nice, chip8 is a lot of fun. I looked at your emulator implementation too, and it looks like you have an OOB access bug in the "I" register (it can be incremented beyond the RAM array bounds). This is a very common chip8 emulator bug, which can (in some cases) be exploited to allow a malicious ROM to escape the emulator. I wrote about this here: https://www.da.vidbuchanan.co.uk/blog/bggp3.html

4h agoHN ↗

Really cool project. How much harder did the assembler feel compared to writing the emulator?