News for hackers. Stuff that matters.
Re:Tiny Emulators by Lerc on Sunday July 12, 2026 @05:26PM (#48884980)
I love the pin level emulation model of this. The self contained modular behaviour of components has real flexibility.

For a long time I have wondered if extremely thin but explicitly defined interfaces are an under-explored domain for interoperability.

Beyond simple chip emulation, any set of values that are sampled on each side of the interface at defined times, and a small set of signals to provided temporal access. Be it pins, a small set of registers, or a memory mapped region, it seems like an excellent target for conformance testing.

Perhaps in a world of AI generated code, modular components with explicit conformance requirements would allow people to not care what happens inside the black box, provided it cannot be made to violate it's behaviour requirements.

Re:Tiny Emulators by jagged-chisel on Sunday July 12, 2026 @09:32PM (#48886789)
Things (hardware, software) have been designed since the epoch to be treated as black boxes. Not all things, mind you, but most things do strive for modularity. I find it amusing that this idea is being realized by more people in an effort to satisfy the AIs.
Re:Tiny Emulators by Lerc on Sunday July 12, 2026 @10:06PM (#48887012)
I have been aware of this for some time, I come from an age before frameworks.

This isn't something realised, so much as seeing a further supporting argument.

Re:Tiny Emulators by ikari_pl on Monday July 13, 2026 @01:27AM (#48888276)
I was able to get my Amstrad CPC emulator to pin-level for all chips... but then in this mode it does run at full speed... if you have a M2 or faster CPU :') so I also added a "soldered" mode that speeds things up a little by being less modular (no taking the CRTC out!), and a fast mode after all. Pin-level, however, gave me an excellent oracle to verify correctness at all times, which is a benefit on it's own. Now I'm tempted to make a USB-connected extension port so you could use all real hardware with it :)

(did not release the pin-level code yet, wait a week)

Re:Tiny Emulators by flohofwoe on Monday July 13, 2026 @03:59AM (#48889322)
> modular components with explicit conformance requirements would allow people to not care what happens inside the black box

That's the whole idea of software libraries, no AI needed for that ;)

It just takes some disciplines and not listening to the DRY crowd too much to create actually self-contained libraries.

Re:Tiny Emulators by Lerc on Monday July 13, 2026 @04:42AM (#48889653)
Libraries rypicly have an interface of function calls.

That is different from an interface of set of polled values with a few signals.

Any library that can write to memory through provided pointers, or can return non primitive data has a potentially unlimited interface.

Re:Tiny Emulators by Lerc on Monday July 13, 2026 @09:05AM (#48892075)
that mangled word is 'typically' btw.

but while I'm here I should point out I wasn't thinking you need AI for this. I was thinking maybe you need this for AI. As a testable way to insulate yourself from AI overreach.

Re:Tiny Emulators by infinite_spin on Sunday July 12, 2026 @05:19PM (#48884921)
just want to mention that some of these have the volume turned up a bit higher than I expected, which you don't notice until you click on the game
Re:Tiny Emulators by gabrielsroka on Sunday July 12, 2026 @05:55PM (#48885208)
Re:Tiny Emulators by naikrovek on Sunday July 12, 2026 @09:29PM (#48886773)
Oh no.
Re:Tiny Emulators by djmips on Sunday July 12, 2026 @09:58PM (#48886953)
Hacker NEWS

Maybe at least include the date

Re:Tiny Emulators by MomsAVoxell on Sunday July 12, 2026 @09:04PM (#48886630)
Needs more Oric:

https://oric.games/

Re:Tiny Emulators by keyle on Sunday July 12, 2026 @09:36PM (#48886814)
Extremely cool. Loading up these games in a split seconds used to take eons as a kid with the tapes.

Bruce Lee on ZX spectrum was my jam!

Re:Tiny Emulators by ChrisArchitect on Sunday July 12, 2026 @10:56PM (#48887314)
Please update the url to https://floooh.github.io/tiny8bit/ (as is linked officially and in previous submissions, noted last year by the dev even https://news.ycombinator.com/item?id=43821756)

where'd you get this preview one from OP? linked somewhere?

Re:Tiny Emulators by Papirola on Monday July 13, 2026 @12:37AM (#48887964)
C=64 !!!
Re:Tiny Emulators by jdw64 on Monday July 13, 2026 @02:23AM (#48888621)
It would be nice if there were a UI feature on the site to adjust the volume. Some of the game sounds are way too loud.
Re:Tiny Emulators by Folcon on Monday July 13, 2026 @03:40AM (#48889172)
I don't know about anyone else, but this really reminds me of 0x10c [0]

I'm still fascinated by the idea of a setting with virtual mini computers, I've designed a couple as thought exercises based on it/space travel as well as cyberpunk mixing in a little Zach like flavour for some of the chip design, even figured out a fantasy variant

Not sure why, but I've not been able to convince myself that it's anything other than ultra niche, so if you're interested in this and want to talk about it, chime in here or drop me an email (in profile)

-[0]: https://en.wikipedia.org/wiki/0x10c

Re:Tiny Emulators by 20k on Monday July 13, 2026 @04:11AM (#48889401)
I wrote a basic zachtronics style puzzler based around 0x10c, its one of my favourite concepts that's always stuck with me. I also strongly feel like it'd have a player base (at least initially, while everyone's coding) of maybe a few hundred people worldwide, which makes it a terrible decision financially

I feel like you're stuck between a rock and a hard place with that game. Do people really want to build their whole own OS just to interact with the hardware of their spaceship? Should it be a game where you have an ingame software market, for people to buy/sell software to use in your spaceship controls? Is a player REALLY going to build windows 3.1 for the DCPU for free?

I'd love to make it work, there was an open source game that was going for a while, but it went all the way down to the BIOS level which is just.. way too technical for most people. Who wants to get involved with an API/ABI for just making their spaceship move?

Re:Tiny Emulators by Folcon on Monday July 13, 2026 @04:37AM (#48889615)
Would you mind sending me an email, I'd genuinely be interested in collaborating in this if you're interested, even if it's only brainstorming / discussing

I've been looking at a new fun thing to focus on for a bit and this could be a great contender

No worries if you don't feel like it, this is still a positive indicator :)

Re:Tiny Emulators by Hugsbox on Wednesday July 15, 2026 @09:05AM (#48920265)
Aw man, that sounds REALLY cool, sucks it never came to fruition :(
Re:Tiny Emulators by flohofwoe on Monday July 13, 2026 @03:52AM (#48889280)
FWIW this is a heavily outdated URL (the one with '-preview' in it, last updated in 2021) which had created at some point to test some things.

The proper and uptodate URL is:

https://floooh.github.io/tiny8bit/

Apart from the 'pin-emulation' the other interesting feature is that the CPUs are 'cycle stepped', e.g. the CPU no longer has a special 'controller role' in the system but is just 'ticked along' with all the other chips. This blog post describes how that works for the Z80 emulation (the instruction decoder is still a big switch-case, but with one case-prong per instruction cycle instead one prong per whole instruction: https://floooh.github.io/2021/12/17/cycle-stepped-z80.html)

I didn't really get around to work on the project since 2023 though (and before that I worked on it mainly as a 'vacation project' over the Christmas breaks), I mostly just updated the sokol and Dear ImGui dependencies since then, and sometimes added new scene demos appeating on https://www.pouet.net/ and https://csdb.dk/.

Re:Tiny Emulators by RetroTechie on Monday July 13, 2026 @04:59AM (#48889752)
Browsing the repo linked on the page: https://github.com/floooh/chips-test

I see references to files in a "chips" directory. For example "chips/m6502.h". But those are missing? Where can they be found?

Like the concept! Reminds me somewhat of simulating a design in a hardware description language (eg. Verilator). Or the concept of 'drivers' in MAME (dunno if those emulate cycle-by-cycle btw).

So I'd welcome the opportunity to dive into how it's done on a code level.

Re:Tiny Emulators by flohofwoe on Monday July 13, 2026 @05:10AM (#48889827)
The actual emulator code lives here (all in STB-style headers):

https://github.com/floooh/chips

The chips-test repo has the 'integration' code which assembles the headers into executables:

https://github.com/floooh/chips-test

There's also a similar project in Zig (but less complete, it's more like an experiment what the same implementation ideas would look like in Zig) that might be a bit more readable and with everything in one place:

https://github.com/floooh/chipz

E.g. start reading the top-level emulator executables:

https://github.com/floooh/chipz/tree/main/emus

...and then move your way down to the system implementations:

https://github.com/floooh/chipz/tree/main/src/systems

...and finally to the chip emulators:

https://github.com/floooh/chipz/tree/main/src/chips

Re:Tiny Emulators by RetroTechie on Monday July 13, 2026 @06:16AM (#48890414)
Thx for those links!
Re:Tiny Emulators by YoshiRulz on Monday July 13, 2026 @08:50AM (#48891913)
Unrelated, but thanks for your chips project! We've used it in BizHawk as part of our CPC emulator core.
Re:Tiny Emulators by kkukshtel on Monday July 13, 2026 @02:57PM (#48897154)
Sokol is the best, thank you for your ongoing work :) And please open a patreon or something!
Re:Tiny Emulators by kerm1t72 on Monday July 13, 2026 @04:37AM (#48889616)
nice!
Re:Tiny Emulators by apples_oranges on Monday July 13, 2026 @10:24AM (#48893224)
How do I play Boulderdash on C64? Stuck at the title screen..
Re:Tiny Emulators by flohofwoe on Monday July 13, 2026 @12:14PM (#48894858)
See bottom of help page:

https://floooh.github.io/tiny8bit/help.html

TL;DR: first press F1, then Space.

Re:Tiny Emulators by apples_oranges on Tuesday July 14, 2026 @03:36AM (#48903376)
Ah thank you!
Re:Tiny Emulators by kreddor on Monday July 13, 2026 @11:41AM (#48894402)
I hit a bunch of random keys until it loaded ¯\_(ツ)_/¯
Re:Tiny Emulators by apples_oranges on Tuesday July 14, 2026 @03:37AM (#48903380)
Good strategy, I tried that, too, but unfortunately on my laptop I need to press Fn+F1 to get F1 and that I did not hit randomly :D
Re:Tiny Emulators by renaudg on Tuesday July 14, 2026 @11:59AM (#48908852)
Thank you for demonstrating how great and underrated the Amstrad CPC is (and the comparatively undeserved strength of the British nostalgia distortion field towards the ZX Spectrum ;) )

My favourite demo in the list : https://floooh.github.io/tiny8bit/cpc.html?file=cpc/phx.dsk&...