frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Show HN: Bedrock – An 8-bit computing system for running programs anywhere

https://benbridle.com/projects/bedrock.html
77•benbridle•4d ago
Hey everyone, this is my latest project.

Bedrock is a lightweight program runtime: programs assemble down to a few kilobytes of bytecode that can run on any computer, console, or handheld. The runtime is tiny, it can be implemented from scratch in a few hours, and the I/O devices for accessing the keyboard, screen, networking, etc. can be added on as needed.

I designed Bedrock to make it easier to maintain programs as a solo developer. It's deeply inspired by Uxn and PICO-8, but it makes significant departures from Uxn to provide more capabilities to programs and to be easier to implement.

Let me know if you try it out or have any questions.

Comments

treetalker•4h ago
I'm not steeped in computer science, so please pardon me if the following are dumb questions.

> Programs written for Bedrock can run on any computer system, so long as a Bedrock emulator has been implemented for that system.

Isn't that true of any program? As long as the language that the program is written in is implemented on the system, any (valid?) program in that language will run on that system?

Wowfunhappy•1h ago
Based on the OP, I think the idea is that it's very easy to port this emulator to a new system.
untech•3h ago
Love it, I think it's very cool! I am not sold on its "everlasting" promise yet, but as an addition to the family of "fantasy" platforms seems very solid.
nxobject•3h ago
This is fantastic! As someone who's used PICO-8 in after-school STEM enrichment classes (and has evaluated uxn), one of the frustrations that my students have always had is easy I/O and persisting state -- for saving/loading game progress and settings, of course. The clipboard and registry devices seem like a good fit.

I hope you stick with this!

behrlich•3h ago
> I designed Bedrock to make it easier to maintain programs as a solo developer.

Can you say more? I really love this idea but can’t think of any practical use case with 65k of memory. What programs are you now more easily maintaining with Bedrock? To what end?

durakot•3h ago
Check out Uxn for some "practical" use cases: https://github.com/hundredrabbits/awesome-uxn
lastdong•3h ago
The demos are surprisingly fun!
vincent-manis•3h ago
This is the latest in a very honourable tradition. My first encounter with it was with Martin Richards's BCPL system in 1972. The compiler generated a hypothetical ISA called OCODE, from which backends generated pretty good native code for Titan-2 and System/360, among others. One of those backends generated INTCODE, which was an extremely reduced ISA, for which an interpreter could be easily written (I wrote one in Fortran). Richards also provided the BCPL compiler and runtime library in INTCODE, so you could quickly have BCPL running interpretively. Then you could use this interpretive version to bootstrap a native-code backend implementation. Put this all together, and you now have a very easy compiler port.

Wirth's Pascal-P compiler of 1974(?) used the same idea, also in aid of a highly portable compiler. I have never been able to find out whether this was an independent invention, or whether Wirth was influenced by Richards's work.

Of course, the JVM and CLR are descendents of this, but they build a very complex structure on the basic idea. Writing an implementation of one of these virtual machines is not for the faint of heart.

So I think Bedrock can be very useful as a compiler target, if nothing else. However, I must agree with some of the other commenters that the 64KiB address space makes it very much of a niche tool. Come up with a 32-bit variant that's not much more complicated, and I think you have a winner.

ripe•2h ago
Regarding the 64kB limit: I notice that an implementation can provide the programmer an optional memory block of up to 64MB, IIUC:

https://benbridle.com/projects/bedrock/user-manual/memory-de...

mikestaas•22m ago
Wouldn't the 32-bit variant just be WebAssembly?
willguest•2h ago
I made a bedrock onion of death: https://paste.pictures/FgqbwUTCY8.png

Couldn't have done it without you

great_psy•2h ago
I have not delved to deep in the code, but is there any functional differences it has over Java other than the size ?

Presumably Java would also be pretty tiny if we wrote it in bytecode instead of higher lever Java.

teraflop•1h ago
The Java bytecode instruction set actually has a quite complicated specification: https://docs.oracle.com/javase/specs/jvms/se8/html/

Which means implementations also have to be correspondingly complicated. You have to handle quite a few different primitive data types each with their own opcodes, class hierarchies, method resolution (including overloading), a "constant pool" per class, garbage collection, exception handling, ...

I would expect a minimal JVM that can actually run real code generated by a Java compiler to require at least 10x as much code as a minimal Bedrock VM, and probably closer to 100x.

kosmavision•2h ago
For people curious about the differences between this and Uxn (as I was): https://benbridle.com/articles/bedrock-differences-from-uxn....
tines•2h ago
Why 8 bit?
WantonQuantum•52m ago
Love this! Takes me back to the literal 8-bit computers of the 80s when it was much easier to learn to program with, for example, BASIC built into the operating system.

Apple's MLX adding CUDA support

https://github.com/ml-explore/mlx/pull/1983
166•nsagent•4h ago•66 comments

LIGO detects most massive black hole merger to date

https://www.caltech.edu/about/news/ligo-detects-most-massive-black-hole-merger-to-date
180•Eduard•5h ago•85 comments

Protecting My Attention at the Dopamine Carnival

https://www.amirsharif.com/protecting-my-attention-at-the-dopamine-carnival
12•overload119•1h ago•3 comments

RFC: PHP license update

https://wiki.php.net/rfc/php_license_update
137•josephwegner•4h ago•32 comments

Kiro: A new agentic IDE

https://kiro.dev/blog/introducing-kiro/
689•QuinnyPig•11h ago•312 comments

Dog Walk: Blender Studio's official game project

https://blenderstudio.itch.io/dogwalk
68•doener•4h ago•9 comments

NeuralOS: An operating system powered by neural networks

https://neural-os.com/
89•yuntian•6h ago•26 comments

DEWLine Museum – The Distant Early Warning Radar Line

https://dewlinemuseum.com/
31•reaperducer•3h ago•5 comments

Context Rot: How increasing input tokens impacts LLM performance

https://research.trychroma.com/context-rot
94•kellyhongsn•6h ago•15 comments

I Solved the Century-Old Mystery of a Miraculous Shipwreck Survivor

https://thewalrus.ca/empress-of-ireland-survivor-mystery/
20•Thevet•2d ago•5 comments

Show HN: Bedrock – An 8-bit computing system for running programs anywhere

https://benbridle.com/projects/bedrock.html
77•benbridle•4d ago•16 comments

Doge Denizen Marko Elez Leaked API Key for XAI

https://krebsonsecurity.com/2025/07/doge-denizen-marko-elez-leaked-api-key-for-xai/
26•todsacerdoti•42m ago•8 comments

SQLite async connection pool for high-performance

https://github.com/slaily/aiosqlitepool
56•slaily•3d ago•28 comments

Replicube: 3D shader puzzle game, online demo

https://replicube.xyz/staging/
85•inktype•3d ago•16 comments

Cognition (Devin AI) to Acquire Windsurf

https://cognition.ai/blog/windsurf
362•alazsengul•7h ago•284 comments

Anthropic, Google, OpenAI and XAI Granted Up to $200M from Defense Department

https://www.cnbc.com/2025/07/14/anthropic-google-openai-xai-granted-up-to-200-million-from-dod.html
127•ChrisArchitect•4h ago•82 comments

Building Modular Rails Applications: A Deep Dive into Rails Engines

https://www.panasiti.me/blog/modular-rails-applications-rails-engines-active-storage-dashboard/
127•giovapanasiti•10h ago•27 comments

Cidco MailStation as a Z80 Development Platform (2019)

https://jcs.org/2019/05/03/mailstation
46•robin_reala•7h ago•6 comments

Embedding user-defined indexes in Apache Parquet

https://datafusion.apache.org/blog/2025/07/14/user-defined-parquet-indexes/
95•jasim•9h ago•13 comments

Strategies for Fast Lexers

https://xnacly.me/posts/2025/fast-lexer-strategies/
125•xnacly•11h ago•43 comments

Japanese grandparents create life-size Totoro with bus stop for grandkids (2020)

https://mymodernmet.com/totoro-sculpture-bus-stop/
248•NaOH•9h ago•62 comments

Show HN: The HTML Maze – Escape an eerie labyrinth built with HTML pages

https://htmlmaze.com/
30•kyrylo•5h ago•4 comments

Lightning Detector Circuits

https://techlib.com/electronics/lightningnew.htm
74•nateb2022•10h ago•36 comments

Meticulous (YC S21) is hiring in UK to redefine software dev

https://tinyurl.com/join-meticulous
1•Gabriel_h•9h ago

Predicting Competitive Pokémon VGC Leads Using Latent Semantic Analysis

https://jgeekstudies.org/2025/07/11/predicting-competitive-pokemon-vgc-leads-using-latent-semantic-analysis-a-data-driven-approach-to-team-matchups/
9•zdw•2d ago•3 comments

East Asian aerosol cleanup has likely contributed to global warming

https://www.nature.com/articles/s43247-025-02527-3
163•defrost•16h ago•178 comments

Transition to using 16 KB page sizes for Android apps and games

https://android-developers.googleblog.com/2025/07/transition-to-16-kb-page-sizes-android-apps-games-android-studio.html
5•ingve•3d ago•3 comments

Data brokers are selling flight information to CBP and ICE

https://www.eff.org/deeplinks/2025/07/data-brokers-are-selling-your-flight-information-cbp-and-ice
437•exiguus•10h ago•231 comments

The Collapse of the FDA

https://www.nytimes.com/2025/07/08/magazine/fda-collapse-rfk-kennedy.html
25•littlexsparkee•1h ago•8 comments

Tandy Corporation, Part 3

https://www.abortretry.fail/p/tandy-corporation-part-3
56•klelatti•3d ago•14 comments