frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Musashi: Motorola 680x0 emulator written in C

https://github.com/kstenerud/Musashi
122•doener•1d ago

Comments

kazinator•23h ago
I made one a 68010 emulator in C in 1994.

For the opcode dispatch, I made a file which consisted of regex and name pairs. The regexes matched strings of 0s and 1s: the bit patterns of the opcode space. The names mapped these to C functions. A script processed the file, generating the dispatch switch.

I seem to remember that on a 66 MHz 486 DX2 box running Linux, the thing was emulating about half a million instructions per second.

Code: totally lost to the sands of time.

self_awareness•20h ago
FYI: MIT licensed
self_awareness•16h ago
Is it wrong? Who the heck downvotes this?
debo_•11h ago
username checks out
self_awareness•8h ago
I felt bad after reading your comment.
rcarmo•19h ago
I took a look at this during my holiday break (where I was hacking BasiliskII to do JIT emulation on ARM), and it’s quite neat but, IIRC, wasn’t enough of a speed up over the existing emulator.
dukoid•13h ago
I'd expect the main advantages to be portability and maintainability?
rcarmo•10h ago
I was looking for more speed on ARM devices.
kstenerud•18h ago
Wow! Wasn't expecting this to be on HN.

So here's the backstory:

I'd just graduated from BCIT a year before. A friend invited me to visit Japan, so I got a working holiday visa, hopped on a plane, and there I was in a 1K apartment with 2 other people. I had one whole square meter of floor space for my computer (which I'd packed with me) and a donated monitor.

While looking for tech work, I fiddled around with MAME, doing small fixes to drivers and such, but I'd always had a love for the 68000 chip (from my Amiga days), so I looked at what MAME was doing and saw that its 68k emulator was written in assembler.

So I set a goal: Can I outperform the current assembler core with one written in portable C? Spoiler: Yes.

I spent 2 months sitting Buddha-like on the tiny square of floor in between job interviews, writing (and leveraging MAME's debugger). My proudest moment was when I finally saw the title screen for Rastan Saga pop up! (of course it crashed on launch, but still)

I named it Musashi, after Shinmen Musashi-no-Kami Fujiwara no Harunobu (新免武蔵守藤原玄信), commonly known as Miyamoto Musashi, who wrote the Book of Five Rings - a book that had a huge effect on me.

jacquesm•18h ago
Great story. It is interesting how being stranded in some place with a computer and some skills always results in the most fantastic projects.
lelanthran•12h ago
> Great story. It is interesting how being stranded in some place with a computer and some skills always results in the most fantastic projects.

TLDR: IME, solitude is required for clear thinking.

-----------------------------------

Long ago, I used to drive 600km (one-way) twice a month . Kept it up for 4 years or so. As I drive with the radio off, I had much time alone with my thoughts.

Now, I wonder if always reading is having a negative effect: we're constantly bombarded with content all the time, and even though I never doomscroll (no tiktok account, no FB account, no instagram, etc), I think sometimes that enforced solitude might do wonders for my problem-solving.

I wonder how people who are on all those social networks ever find time to just ruminate.

jacquesm•9h ago
Heh, that's a very timely comment. I just drove up and down to Berlin through absolutely crap weather and still figured something out I'd been struggling with for weeks.
ale42•9h ago
Very true. Had a somewhat similar experience while being offline in trains for some hours at a time.
matwood•17h ago
Also the book simply named “Musashi” is amazing and tells the ‘story’ of his life. It has arguably the best ending of any book I’ve ever read where the lead up builds for 1000+ pages ending in a crescendo.

Why I Left iNaturalist

https://kueda.net/blog/2026/01/06/why-i-left-inat/
40•erutuon•1h ago•3 comments

Embassy: Modern embedded framework, using Rust and async

https://github.com/embassy-rs/embassy
104•birdculture•3h ago•37 comments

How to Code Claude Code in 200 Lines of Code

https://www.mihaileric.com/The-Emperor-Has-No-Clothes/
338•nutellalover•6h ago•148 comments

Sopro TTS: A 169M model with zero-shot voice cloning that runs on the CPU

https://github.com/samuel-vitorino/sopro
139•sammyyyyyyy•5h ago•69 comments

Bose has released API docs and opened the API for its EoL SoundTouch speakers

https://arstechnica.com/gadgets/2026/01/bose-open-sources-its-soundtouch-home-theater-smart-speak...
2114•rayrey•11h ago•316 comments

Richard D. James aka Aphex Twin speaks to Tatsuya Takahashi (2017)

https://web.archive.org/web/20180719052026/http://item.warp.net/interview/aphex-twin-speaks-to-ta...
85•lelandfe•5h ago•24 comments

The Unreasonable Effectiveness of the Fourier Transform

https://joshuawise.com/resources/ofdm/
143•voxadam•7h ago•65 comments

The Jeff Dean Facts

https://github.com/LRitzdorf/TheJeffDeanFacts
406•ravenical•13h ago•149 comments

Google AI Studio is now sponsoring Tailwind CSS

https://twitter.com/OfficialLoganK/status/2009339263251566902
484•qwertyforce•7h ago•165 comments

AI coding assistants are getting worse?

https://spectrum.ieee.org/ai-coding-degrades
230•voxadam•11h ago•363 comments

Show HN: macOS menu bar app to track Claude usage in real time

https://github.com/richhickson/claudecodeusage
86•RichHickson•8h ago•35 comments

Show HN: A geofence-based social network app 6 years in development

https://www.localvideoapp.com
37•Adrian-ChatLocl•5h ago•20 comments

Ushikuvirus: Newly discovered virus may offer clues to the origin of eukaryotes

https://www.tus.ac.jp/en/mediarelations/archive/20251219_9539.html
71•rustoo•21h ago•13 comments

Fixing a Buffer Overflow in Unix v4 Like It's 1973

https://sigma-star.at/blog/2025/12/unix-v4-buffer-overflow/
83•vzaliva•7h ago•25 comments

Pole of Inaccessibility

https://en.wikipedia.org/wiki/Pole_of_inaccessibility
30•benbreen•5d ago•9 comments

Flint Confirms Biodegradable Paper Batteries Are Now in Production

https://audioxpress.com/news/flint-confirms-biodegradable-paper-batteries-are-now-in-production
21•rmason•4h ago•2 comments

Mux (YC W16) is hiring a platform engineer that cares about (internal) DX

https://www.mux.com/jobs
1•mmcclure•5h ago

Systematically Improving Espresso: Mathematical Modeling and Experiment (2020)

https://www.cell.com/matter/fulltext/S2590-2385(19)30410-2
5•austinallegro•6d ago•0 comments

Making Magic Leap past Nvidia's secure bootchain and breaking Tesla Autopilots

https://fahrplan.events.ccc.de/congress/2025/fahrplan/event/making-the-magic-leap-past-nvidia-s-s...
31•rguiscard•1w ago•11 comments

Lights and Shadows (2020)

https://ciechanow.ski/lights-and-shadows/
223•kg•6d ago•30 comments

Digital Red Queen: Adversarial Program Evolution in Core War with LLMs

https://sakana.ai/drq/
101•hardmaru•10h ago•10 comments

Dell admits consumers don't care about AI PCs

https://www.pcgamer.com/hardware/dells-ces-2026-chat-was-the-most-pleasingly-un-ai-briefing-ive-h...
420•mossTechnician•1d ago•316 comments

He was called a 'terrorist sympathizer.' Now his AI company is valued at $3B

https://sfstandard.com/2026/01/07/called-terrorist-sympathizer-now-ai-company-valued-3b/
89•newusertoday•8h ago•93 comments

PgX – Debug Postgres performance in the context of your application code

https://docs.base14.io/blog/introducing-pgx/
20•rshetty•1d ago•4 comments

Recent Optimizations in Python's Reference Counting

https://rushter.com/blog/python-refcount/
9•f311a•4d ago•4 comments

Task-free intelligence testing of LLMs

https://www.marble.onl/posts/tapping/index.html
44•amarble•6h ago•12 comments

Learning to Play Tic-Tac-Toe with Jax

https://joe-antognini.github.io/ml/jax-tic-tac-toe
30•antognini•4d ago•5 comments

I used Lego to design a farm for people who are blind – like me

https://www.bbc.co.uk/news/articles/c4g4zlyqnr0o
100•ColinWright•3d ago•40 comments

Intellectual Junkyards

https://www.forester-notes.org/QHXS/index.xml
43•ysangkok•3d ago•15 comments

IBM AI ('Bob') Downloads and Executes Malware

https://www.promptarmor.com/resources/ibm-ai-(-bob-)-downloads-and-executes-malware
231•takira•8h ago•111 comments