logoalt Hacker News

kstenerudlast Thursday at 7:56 AM2 repliesview on HN

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.


Replies

matwoodlast Thursday at 8:40 AM

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.

jacquesmlast Thursday at 8:05 AM

Great story. It is interesting how being stranded in some place with a computer and some skills always results in the most fantastic projects.

show 2 replies