frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

OpenCiv3: Open-source, cross-platform reimagining of Civilization III

https://openciv3.org/
546•klaussilveira•9h ago•153 comments

The Waymo World Model

https://waymo.com/blog/2026/02/the-waymo-world-model-a-new-frontier-for-autonomous-driving-simula...
871•xnx•15h ago•527 comments

How we made geo joins 400× faster with H3 indexes

https://floedb.ai/blog/how-we-made-geo-joins-400-faster-with-h3-indexes
77•matheusalmeida•1d ago•16 comments

Show HN: Look Ma, No Linux: Shell, App Installer, Vi, Cc on ESP32-S3 / BreezyBox

https://github.com/valdanylchuk/breezydemo
186•isitcontent•10h ago•23 comments

Monty: A minimal, secure Python interpreter written in Rust for use by AI

https://github.com/pydantic/monty
189•dmpetrov•10h ago•84 comments

Unseen Footage of Atari Battlezone Arcade Cabinet Production

https://arcadeblogger.com/2026/02/02/unseen-footage-of-atari-battlezone-cabinet-production/
10•videotopia•3d ago•0 comments

Show HN: I spent 4 years building a UI design tool with only the features I use

https://vecti.com
298•vecti•12h ago•133 comments

Microsoft open-sources LiteBox, a security-focused library OS

https://github.com/microsoft/litebox
347•aktau•16h ago•169 comments

Dark Alley Mathematics

https://blog.szczepan.org/blog/three-points/
73•quibono•4d ago•16 comments

Sheldon Brown's Bicycle Technical Info

https://www.sheldonbrown.com/
343•ostacke•16h ago•90 comments

Hackers (1995) Animated Experience

https://hackers-1995.vercel.app/
441•todsacerdoti•18h ago•226 comments

Delimited Continuations vs. Lwt for Threads

https://mirageos.org/blog/delimcc-vs-lwt
16•romes•4d ago•2 comments

Show HN: If you lose your memory, how to regain access to your computer?

https://eljojo.github.io/rememory/
240•eljojo•12h ago•148 comments

PC Floppy Copy Protection: Vault Prolok

https://martypc.blogspot.com/2024/09/pc-floppy-copy-protection-vault-prolok.html
44•kmm•4d ago•3 comments

An Update on Heroku

https://www.heroku.com/blog/an-update-on-heroku/
378•lstoll•16h ago•256 comments

What Is Ruliology?

https://writings.stephenwolfram.com/2026/01/what-is-ruliology/
5•helloplanets•4d ago•1 comments

How to effectively write quality code with AI

https://heidenstedt.org/posts/2026/how-to-effectively-write-quality-code-with-ai/
222•i5heu•13h ago•168 comments

Why I Joined OpenAI

https://www.brendangregg.com/blog/2026-02-07/why-i-joined-openai.html
97•SerCe•6h ago•78 comments

Show HN: ARM64 Android Dev Kit

https://github.com/denuoweb/ARM64-ADK
14•denuoweb•1d ago•2 comments

Female Asian Elephant Calf Born at the Smithsonian National Zoo

https://www.si.edu/newsdesk/releases/female-asian-elephant-calf-born-smithsonians-national-zoo-an...
20•gmays•5h ago•3 comments

Learning from context is harder than we thought

https://hy.tencent.com/research/100025?langVersion=en
162•limoce•3d ago•83 comments

Show HN: R3forth, a ColorForth-inspired language with a tiny VM

https://github.com/phreda4/r3
63•phreda4•9h ago•11 comments

I spent 5 years in DevOps – Solutions engineering gave me what I was missing

https://infisical.com/blog/devops-to-solutions-engineering
129•vmatsiiako•15h ago•56 comments

Introducing the Developer Knowledge API and MCP Server

https://developers.googleblog.com/introducing-the-developer-knowledge-api-and-mcp-server/
40•gfortaine•7h ago•11 comments

Understanding Neural Network, Visually

https://visualrambling.space/neural-network/
261•surprisetalk•3d ago•35 comments

I now assume that all ads on Apple news are scams

https://kirkville.com/i-now-assume-that-all-ads-on-apple-news-are-scams/
1031•cdrnsf•19h ago•428 comments

Zlob.h 100% POSIX and glibc compatible globbing lib that is faste and better

https://github.com/dmtrKovalenko/zlob
6•neogoose•2h ago•3 comments

FORTH? Really!?

https://rescrv.net/w/2026/02/06/associative
56•rescrv•17h ago•19 comments

Show HN: Smooth CLI – Token-efficient browser for AI agents

https://docs.smooth.sh/cli/overview
85•antves•1d ago•61 comments

WebView performance significantly slower than PWA

https://issues.chromium.org/issues/40817676
20•denysonique•6h ago•3 comments
Open in hackernews

Writing a DOS Clone in 2019

https://medium.com/@andrewimm/writing-a-dos-clone-in-2019-70eac97ec3e1
70•shakna•3mo ago

Comments

lloydatkinson•2mo ago
I feel like the article is just too short for the given topic. So much more detail could have been added.
forgotpwd16•2mo ago
There's a follow up post and there was supposed to be another one too but apparently was never written. Regarding code:

>Once I return to work and get approval to open up the source code, I’ll make the repo public as well.

Guess approval wasn't given?

lloydatkinson•2mo ago
Crazy his job allegedly owned his hobby project code
btrettel•2mo ago
Unfortunately, this is not uncommon. Check the agreements you signed with your current employer. You might be surprised.
skywal_l•2mo ago
If you want more detail, may I suggest "The MS-DOS Encyclopedia" by Ray Duncan [0].

[0]: https://archive.org/details/The_MS-DOS_Encyclopedia_Ray_Dunc...

jmmv•2mo ago
Yep, I thought so too! It’s a very interesting and fun topic.

So… I cannot resist redirecting you to a set of articles I wrote about two years ago on DOS and memory management, which I think covers some of the basic parts. The first one is https://open.substack.com/pub/blogsystem5/p/from-0-to-1-mb-i...

tombert•2mo ago
I have thought about doing this. I have no idea what would be involved, but given how many DOS-compatible OS’s were around in the 1980’s it must be comparatively easy to build than other operating systems.

I remember playing with Caldara OpenDOS and Concurrent DOS years ago, and it always seemed like it might be fun to make my own.

PeaceTed•2mo ago
I mean DOS is essentially just the frame work between the software and the BIOS/hardware. Once code is running the OS isn't doing too much.

In that sense DOS programs run without any guard rails. Video memory is just a memory address where you can throw data in and it shows up on screen, but it also means that any kind of memory pointer issue can write over almost anything in RAM. It was trial and error to ensure everything worked and seeing as machines were not always online, there was a much smaller risk of security issues being leveraged.

cout•2mo ago
Risk was minimized with the use of segmented memory. A bad pointer would generally only clobber something in the same (data) segment of memory. But there were no segfaults; a program crash means a reboot, which is why so many people optimized config.sys abs autoexec.bat for fast boot.

Come to think of it, maybe things aren't so different today -- if something goes wrong in your container/vm, many teams just wipe it and start from a clean snapshot

pimlottc•2mo ago
I suspect it’s 80% straightforward and 20% bug compatibility
stevekemp•2mo ago
Very much so. If programs are well-behaved, and call "int 21", etc all is well. But a lot of programs would use undocumented things, such as the list-of-lists and they'd directly peek and poke into the operating systems code.

I've had fun updating the shell, and code, of CP/M, in assembly, and writing emulators of it. But as always there is no shortage of programs making specific assumptions that make everything more complex than they should be.

ssrc•2mo ago
I remember the books on undocumented functionality like

https://archive.org/details/Undocumented_DOS

cout•2mo ago
I remember that book! I wanted to get a copy but made do with the DOS Programmer's Reference, 3rd ed., which was also very good since beej's interrupt list wasn't available yet or I didn't know about it.
rzzzt•2mo ago
Was it Ralf Brown? beej has C and networking tutorials: https://beej.us/guide/
cout•2mo ago
Yes, Ralf Brown. I guess I'm getting old.
rzzzt•2mo ago
I found a copy of the PC Game Programmer's Encyclopedia (PCGPE) back then but couldn't really wrap my head around most of the articles (especially the 3D stuff and Mode X).
rwmj•2mo ago
I'd start by writing a simple Disk Operating System, and forget MS-DOS compatibility (which isn't exactly necessary today).

The basic idea (which I think originated from FLEX[1]?) is that you have something that accepts typed commands, like "DIR A:", splits on spaces, takes the first part and loads the disk program called "DIR" (or "DIR.COM" etc) into memory and runs it, passing the rest of the parameters on the stack.

From that you can see you'll need a very basic filesystem (to load the command from), and a few system calls (eg. print a character, input a character, open a file, list the directory). The earlier DOSes like CP/M didn't have subdirectories, and only had a handful of system calls, so it was all very simple - by necessity because the hardware was limited.

You can expand on the idea endlessly, eg. writing lots of utilities, your own compiler and assembler, editor, etc.

Presto, you've got your own Disk Operating System!

There's a guy on YouTube you runs all these early proto-DOSes[2] on original hardware so you can get a sense of the extreme limitations of these early home computers.

[1] https://en.wikipedia.org/wiki/FLEX_(operating_system)

[2] https://www.youtube.com/user/deramp5113/videos

ErroneousBosh•2mo ago
You've got all the BIOS calls you need to actually shunt sectors on and off disk, read keystrokes, and display characters, right?

So with some code simple enough to hand-assemble you could write the bare bones of a Forth "inner interpreter", and from there the Forth compiler, which necessarily has a command line interpreter (or at least, a thing that breaks a text buffer down into words).

Then a simple "DOS" would have a command like "dir" which would read the directory sector into a block, format it, and print it, and so on.

Using a normal Forth-style "block editor" on a system with files wouldn't have to be complicated, you'd just be working on a 1kB (two sectors) block at a time, starting from the first block referenced by the filename.

You'd get to a point where you could read, edit, and compile Forth definitions or even just cope with text files in MS-DOS formatted disks pretty quickly.

userbinator•2mo ago
Very easy indeed, especially if you're not concerned with 100% compatibility with existing MS-DOS API. It's closer to a library of routines that serve as a thin layer on top of the BIOS that just provides a filesystem and program loader. No (preemptive) multitasking (although TSRs are still possible), dynamic linking, virtual memory, etc.

If you want nothing more than a filesystem and program loader, you can fit everything in 512 bytes: https://news.ycombinator.com/item?id=20569438

trollbridge•2mo ago
It's easy now because plenty of documentation exists of how to do it and there are plenty of open source examples, and there widely available, inexpensive or free, easy-to-use development environments and emulators and debuggers.

The original DOS boot sector was also a "filesystem and program loader", albeit one that wasn't able to do much other than find IO.SYS, load it, and run it.

tracker1•2mo ago
There's also the fact that a modern emulator (assuming you're running as an emulator, instead of real/raw) is that you aren't constrained by memory the way real hardware implementations were either.

I keep thinking it would be cool to emulate enough of DOS and earlier x86 to just run BBS Doors directly and connections over ws(s) to make authentication and program selection a bit easier. Even if no classic BBS terminals (currently) support connecting over WebSockets, which are easy enough to bridge.

guerrilla•2mo ago
What I wanted to do is make a "DOS" that's actually just a bootloader for a UNIX-like OS, but it's actually structured and works like DOS, just for launching kernels and minimal file management.

I think the real hard thing would be writing a full BIOS for an 8086 from scratch, capable of running a real DOS. I also wanted to do that, but...

oso2k•2mo ago
There were loadlin and grub4dos back in the day. A more recent development is doslinux (https://github.com/lpsantil/doslinux) but it is far less complete. But more hackable if you just want to see something work.
mobilio•2mo ago
Russians built their own clone of DOS https://en.wikipedia.org/wiki/PTS-DOS

And i've seen it 1998/1999 as i remember.

cout•2mo ago
If I were to write an OS for a system of that era, I think I would target a game console. Compatibility is a rabbit hole (as I discovered when writing a JIT for Ruby). If you don't have to worry about whether other software runs, there is a lot of room for creativity.
BirAdam•2mo ago
See: Dissecting DOS

https://www.amazon.com/Dissecting-DOS-Code-Level-Operating-S...

marttt•2mo ago
See also: PDOS (Public Domain Operating System) https://www.pdos.org/ -- a single-person project with a remarkably stream-of-concsiousness-style webpage. Not sure how well 'geniuine' DOS software works on this system, though.
lproven•2mo ago
> Concurrent DOS

This is the real deal here.

CDOS was a multitasking, eventually x86-32 native, OS that could multitask DOS apps even on a 286.

Back in the 20th century the limitations on a multitasking DOS were largely around hardware compatibility: could it talk to your network card, sound card, CD drive, and let multiple DOS apps access them?

But now, DOS networking is largely irrelevant: it didn't natively talk TCP/IP and nobody cares about IPX/SPX or NetBEUI. Few have a CD-ROM any more. You probably need a driver shim to emulate a Soundblaster anyway.

However all those 10s of thousands of DOS apps are still there and still work.

For DOS there's FreeDOS, SvarDOS, PDOS, and others, including this project.

A modern FOSS CDOS clone would be great fun.

immibis•2mo ago
A disk-operating system is a system for operating disks, and doesn't concern itself too much with other hardware - that came later.
amypetrik8•2mo ago
I knew y'all techies we're fancy but just, what ?!?!

>Recently I was lucky enough to take a one-month sabbatical away from work. While I spent much of that (sabbatical period) time traveling and staying away from a computer,

I had no idea it was now en vogue to take a nice one month sabbatical from your big tech FAANG job to go time traveling. It raises so many questions. First of all, why the one month period. If he has a time machine couldn't the sabbatical be forever? Second, which tech company has, it seems, secretly developed time travel and time displacement science, produced a time machine, and offered it only to employees going on sabbatical? It seems like a google kind of thing but maybe it's a move from amazon's business, long shot netflix or valve out of left field with a new entertainment tech.

In any case I for one welcome our new time traveling tech overlords and look forward to the time wars as the natural evolution to the space rocket wars