frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: I wrote a BASIC interpreter that boots on UEFI machines

https://tarjan.itch.io/thoreaubasic
22•Gorsefound•1d ago
I started writing Thoreau BASIC because I wanted a small, old-fashioned BASIC interpreter: line numbers, immediate mode, simple graphics, strings, arrays, the sort of environment where the computer starts with a "Ready" prompt and you can immediately make it do something.

Then I wondered: why should it need an operating system?

So I made it boot directly on x64 machines using UEFI.

The UEFI version uses the Graphics Output Protocol for its framebuffer and gets its keyboard input directly from the firmware. There is no Windows or Linux underneath it. The machine boots into BASIC.

It supports the usual BASIC machinery plus graphics primitives, 32-bit colour, floating point, file operations and other features I've been adding as I encounter programs that need them. There is now also a Windows version, which makes it considerably easier to try.

One of my goals is compatibility with the style and behaviour of old Microsoft BASICs rather than creating a modern language that merely happens to use BASIC syntax.

I'm currently porting my text adventure Pixel Prose to Thoreau BASIC. That's becoming a much better test suite than artificial tests because every missing feature or subtly wrong behaviour eventually gets exposed by an actual program.

The project is deliberately small. The UEFI version greets you with:

"I make myself rich by making my wants few." — Henry David Thoreau

followed, somewhat ironically on a modern PC, by something like:

27,340,685,312 bytes free

I'd be interested in hearing from people who wrote BASIC in the 80s/90s, interpreter/compiler people, and anyone sufficiently strange to still find a Ready prompt inviting.

Comments

dlcarrier•1d ago
I learned to program on the Commodore 64 and in QBASIC in th 90's. I'll give it a try.

Considering how much it supports, if it could chainload a full operating system, it would make a great replacement for GRUB or rEFIt.

glimshe•1d ago
This is a great project. How do you handle saving/loading data? You mentioned file operations but you need some sort of file system - perhaps FAT32 - to support that. I'd need that to consider using it on UEFI.

One thing you could use for more test cases is the book 101 BASIC Computers Games by David Ahl. Games always encouraged people to use computers and that's as classic as it gets!

WalterGR•1d ago
> How do you handle saving/loading data?

The linked page has this to say:

"Disk I/O — SAVE, LOAD, MERGE, FILES, KILL, running directly on the UEFI Simple File System."

Gorsefound•1d ago
That's right. It uses UEFI's FAT32.
jonjacky•11h ago
Very nice! I am curious how you built your BASIC as an EFI application. I didn't find any source code or build instructions in the downloads.

I am investigating whether it would be feasible to do something similar for Python.

iCloud+ Hide My Email addresses will remain on icloud.com

https://developer.apple.com/news/?id=1ptvdtcm
322•K7PJP•6h ago•78 comments

Xiaomi: New CPU matches Apple cores single threaded, much faster multithreaded

https://twitter.com/lemire/status/2091894299289874926
782•tosh•13h ago•529 comments

MS Paint and Photos inivisibly watermark even locally generated output with GUID

https://xusheng.dev/posts/reversing/mspaint_invisible_watermark/main/
618•ComputerGuru•13h ago•243 comments

Headlong: A Microharness for Persistent Agents

https://www.laude.org/updates/headlong-a-microharness-for-persistent-agents
12•lbw1215•56m ago•4 comments

How Universities Should Prepare Founders

https://paulgraham.com/prepare.html
54•gmays•3h ago•52 comments

Moon (2024)

https://ciechanow.ski/moon/
127•simonebrunozzi•6h ago•20 comments

How Europe is killing makers and micro-entrepreneurs

https://lectronz.com/u/lectronz/articles/how-europe-is-killing-makers-and-micro-entrepreneurs
1140•l-one-lone•15h ago•679 comments

The entire city of San Francisco as a video game

https://sf.thijs.gg/
395•centrosphere•11h ago•130 comments

Bookshelf – Self-hosted eBook library that runs on object storage

https://github.com/murerkinn/bookshelf
63•arbayi•5h ago•24 comments

Was modern art a CIA psy-op? (2020)

https://daily.jstor.org/was-modern-art-really-a-cia-psy-op/
43•neom•3h ago•44 comments

Nostr is an inclusive communication commons

https://nostr.org/
47•Bluestein•2d ago•4 comments

Where did all the public bathrooms go?

https://daily.jstor.org/where-did-all-the-public-bathrooms-go/
192•herbertl•11h ago•409 comments

Show HN: I wrote a BASIC interpreter that boots on UEFI machines

https://tarjan.itch.io/thoreaubasic
22•Gorsefound•1d ago•7 comments

Ox-Alpha Is GLM?

https://dejan.ai/blog/ox-alpha/
35•jitbit•12h ago•11 comments

Crafting QR Codes: A deep dive into QR code art (2024)

https://kylezhe.ng/writes/crafting-qr-codes
32•subset•14h ago•0 comments

Training AI to Paint with Code

https://surya.website/rling-qwen-to-paint-with-code
47•Tiberium•1d ago•5 comments

Jabber/XMPP: 25 Years of Digital Independence

https://gultsch.de/posts/25-years-of-digital-independence/
196•inputmice•12h ago•91 comments

What's new in Emacs 31.1

https://www.masteringemacs.org/article/whats-new-in-emacs-311
60•geospeck•15h ago•9 comments

Vintage Artificial Intelligence: Before It Got Awkward

https://blog.archive.org/2026/08/16/vintage-artificial-intelligence-before-it-got-awkward/
70•signor_bosco•7h ago•16 comments

Walgit – a Git server that is one binary in front of an object store

https://github.com/tobi/walgit
45•matallo•14h ago•6 comments

Show HN: A Modern GUI Library for Ada: CSS Styling, XML UI, SDL3

https://github.com/ovenpasta/adi2
32•ovenpasta•12h ago•14 comments

Thomson Reuters Launches Its Own Frontier Model

https://www.thomsonreuters.com/en/press-releases/2026/august/thomson-reuters-leverages-its-world-...
49•giuliomagnifico•2h ago•15 comments

Octopus intelligence may be related to never-before-seen mutation

https://www.smithsonianmag.com/smart-news/why-are-some-octopuses-so-smart-the-answer-might-lie-in...
111•bookofjoe•10h ago•86 comments

Ask HN: Good large format (>20 inches) touchscreen E-Paper display options?

10•foota•1h ago•2 comments

LLMs could control their host machines by exploiting inference engines

https://boydkane.com/essays/llms-could-control-their-host-machines-by-exploiting-inference-engines
113•zdw•9h ago•58 comments

Peppermint oil reduces blood pressure by 8.48 mmHg in small study

https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0344538
113•brandonb•14h ago•68 comments

Autostep (YC P26) Is Hiring AI/Fullstack Engineers and a Chief of Staff

https://app.dover.com/Autostep/careers/e9510e3b-a854-4e48-9e5d-c89796acaed4
1•adawg4•10h ago

Oceans hit highest temperature on record

https://www.bbc.com/news/articles/c62m4gpnp78o
464•tcp_handshaker•9h ago•376 comments

SeL4 security proofs now complete on AArch64

https://proofcraft.systems/news-2026/#2026-08-21
176•snvzz•17h ago•38 comments

Could we dredge the Netherlands without fossil fuels? (2018)

https://solar.lowtechmagazine.com/2018/08/could-we-dredge-the-netherlands-without-fossil-fuels
43•at1as•13h ago•48 comments