frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Leaving Google has actively improved my life

https://pseudosingleton.com/leaving-google-improved-my-life/
161•speckx•2h ago•98 comments

OpenAI raises $110B on $730B pre-money valuation

https://techcrunch.com/2026/02/27/openai-raises-110b-in-one-of-the-largest-private-funding-rounds...
169•zlatkov•6h ago•287 comments

The Robotic Dexterity Deadlock

https://www.origami-robotics.com/blog/dexterity-deadlocks.html
47•shmublu•1h ago•26 comments

NASA announces overhaul of Artemis program amid safety concerns, delays

https://www.cbsnews.com/news/nasa-artemis-moon-program-overhaul/
128•voxadam•4h ago•133 comments

A better streams API is possible for JavaScript

https://blog.cloudflare.com/a-better-web-streams-api/
318•nnx•7h ago•107 comments

Let's discuss sandbox isolation

https://www.shayon.dev/post/2026/52/lets-discuss-sandbox-isolation/
48•shayonj•2h ago•12 comments

A Chinese official’s use of ChatGPT revealed an intimidation operation

https://www.cnn.com/2026/02/25/politics/chatgpt-china-intimidation-operation
48•cwwc•5h ago•23 comments

Dan Simmons, author of Hyperion, has died

https://www.dignitymemorial.com/obituaries/longmont-co/daniel-simmons-12758871
302•throw0101a•3h ago•128 comments

Writing a Guide to SDF Fonts

https://www.redblobgames.com/blog/2026-02-26-writing-a-guide-to-sdf-fonts/
41•chunkles•3h ago•3 comments

A new California law says all operating systems need to have age verification

https://www.pcgamer.com/software/operating-systems/a-new-california-law-says-all-operating-system...
121•WalterSobchak•6h ago•124 comments

Allocating on the Stack

https://go.dev/blog/allocation-optimizations
92•spacey•4h ago•38 comments

Kyber (YC W23) Is Hiring an Enterprise Account Executive

https://www.ycombinator.com/companies/kyber/jobs/59yPaCs-enterprise-account-executive-ae
1•asontha•2h ago

Modeling cycles of grift with evolutionary game theory

https://www.oranlooney.com/post/grifters-skeptics-marks/
60•ibobev•3d ago•24 comments

"Just a little detail that wouldn't sell anything"

https://unsung.aresluna.org/just-a-little-detail-that-wouldnt-sell-anything/
63•bobbiechen•3d ago•12 comments

We Built Secure, Scalable Agent Sandbox Infrastructure

https://browser-use.com/posts/two-ways-to-sandbox-agents
30•gregpr07•6h ago•6 comments

PCB Tracer

https://pcbtracer.com
9•Luc•3d ago•2 comments

Court finds Fourth Amendment doesn’t support broad search of protesters’ devices

https://www.eff.org/deeplinks/2026/02/victory-tenth-circuit-finds-fourth-amendment-doesnt-support...
396•hn_acker•6h ago•63 comments

Get free Claude max 20x for open-source maintainers

https://claude.com/contact-sales/claude-for-oss
329•zhisme•12h ago•162 comments

Open source calculator firmware DB48X forbids CA/CO use due to age verification

https://github.com/c3d/db48x/commit/7819972b641ac808d46c54d3f5d1df70d706d286
73•iamnothere•5h ago•33 comments

Reading English from 1000 AD

https://lewiscampbell.tech/blog/260224.html
81•LAC-Tech•3d ago•30 comments

Implementing a Z80 / ZX Spectrum emulator with Claude Code

https://antirez.com/news/160
102•antirez•2d ago•52 comments

Can you reverse engineer our neural network?

https://blog.janestreet.com/can-you-reverse-engineer-our-neural-network/
236•jsomers•2d ago•170 comments

Tell HN: MitID, Denmark's digital ID, was down

98•mousepad12•10h ago•144 comments

Show HN: RetroTick – Run classic Windows EXEs in the browser

https://retrotick.com/
154•lqs_•8h ago•45 comments

Rob Grant, creator of Red Dwarf, has died

https://www.beyondthejoke.co.uk/content/17193/red-dwarf-rob-grant
137•nephihaha•2h ago•36 comments

We gave terabytes of CI logs to an LLM

https://www.mendral.com/blog/llms-are-good-at-sql
127•shad42•5h ago•80 comments

Sprites on the Web

https://www.joshwcomeau.com/animation/sprites/
89•vinhnx•3d ago•16 comments

Statement from Dario Amodei on our discussions with the Department of War

https://www.anthropic.com/news/statement-department-of-war
2796•qwertox•22h ago•1482 comments

F-Droid Board of Directors nominations 2026

https://f-droid.org/2026/02/26/board-of-directors-nominations.html
151•edent•11h ago•104 comments

Show HN: Claude-File-Recovery, recover files from your ~/.claude sessions

https://github.com/hjtenklooster/claude-file-recovery
5•rikk3rt•5h ago•0 comments
Open in hackernews

Programmers Guide to the AMIBIOS (1993) [pdf]

http://bitsavers.org/pdf/americanMegatrends/Programmers_Guide_to_the_AMIBIOS_1993.pdf
69•1vuio0pswjnm7•9mo ago

Comments

bluedino•9mo ago
I should know the answer to this, but was using the BIOS the only way to interact with hardware like disks, mice, and keyboard?

I remember copying code to make wrappers for those in C from books but can't remember if that was the only option or...

I know with VGA you had to use the BIOS to set modes but you could just write to the memory which was mapped at a certain address

userbinator•9mo ago
No, you could always access the hardware directly.
analog31•9mo ago
Sounds like you lived through this, but for the younger generation...

I think the way to compare this with a modern machine is that the the early machines had no memory management or protection, meaning that any program could access any byte of memory, or any i/o address. Whether it was a good idea or not was up to the programmer.

There were BIOS and OS calls for interacting with display memory, that were supposed to make code more portable across machines. Devs almost immediately started writing to hard-coded address regions directly, which pinned those addresses down. Use of "unofficial" addresses and entry points made it phenomenally difficult to update the hardware or BIOS. This was true in the Apple ][, but also on PC's. For instance it's what created the infamous 640k memory limit.

I had an MS-DOS machine but its memory mapping was not identical to the IBM PC. Thus it was not "PC compatible." Apps that used the official MS-DOS calls worked just fine. Thankfully, two of those apps were Word Perfect and Turbo Pascal. I didn't need much else.

It was the wild west. Today, you try POKEing around where you don't belong, and you get a protection fault.

akoboldfrying•9mo ago
I mostly agree with all this -- I remember the glee with which people would discover and report "undocumented" BIOS or DOS interrupt calls, and the feeling that Microsoft were holding back on documenting these calls for selfish reasons -- but I can't see how they caused the 640k limit. That limit was built into the segmented memory architecture of real mode 8086 and successor CPUs.
analog31•9mo ago
The limit wasn't insurmountable. With segmentation, the CPU had an address space of 1M, but video memory was in the middle of it somewhere, limiting the possible size of the contiguous address space usable by programs. There were some work-arounds, including machines that added a few more k, IIRC 786k.

Improving matters would have required some coordination among software vendors, or authority from the OS vendor, neither of which existed. Part of the reason for the "closed box" approach of the Apple Mac was to prevent this from happening. My friend described it thus: "If you break our rules, we will break you in the next OS release."

Today it seems like such a tiny amount of memory to squabble over. We waste that much memory without batting an eye.

pjmlp•9mo ago
No, there were MS-DOS interrupts for those as well.

BIOS became more relevant for graphics programming as MS-DOS did not do graphics, only text mode.

These became my bibles of the time,

"PC assembly language step-by-step"

https://archive.org/details/pcassemblylangua0000hoff

"Advanced assembly language on the IBM PC"

https://archive.org/details/advancedassembly0000holz

"PC intern system programming : the encyclopedia of DOS programming know how"

https://archive.org/details/pcinternsystempr0000tisc

Last one is great, it has examples on Quick Basic, Turbo Pascal, Turbo C and C++, Microsoft C and C++, TASM and NASM.

jbverschoor•9mo ago
The interrupts were used to call bios commands.

The whole DOS was only a tiiiny line between the bios. In fact, I think it really was only “DISK” os.

Edit: https://mrszeto.net/CIT/interrupts.htm

DOS only did file system operations and a few date/time calls

pjmlp•9mo ago
And since I listed all the books I used routinely I didn't know that.

Parent,

> I should know the answer to this, but was using the BIOS the only way to interact with hardware like disks, mice, and keyboard?

First link from your URL

> READ CHARACTER FROM STANDARD INPUT, WITH ECHO

Also drivers loaded via config.sys would extend MS-DOS, and be exposed via additional interrupts, e.g 0x33h for mices.

Now is interrupt 0x33h populated by MS-DOS, after loading a mouse driver configured in config.sys, still MS-DOS API or not?

_mlbt•9mo ago
Another great resource for DOS and BIOS programming is Ralph Brown’s interrupt list…

http://www.cs.cmu.edu/~ralf/files.html

invalidator•9mo ago
The BIOS was an abstraction layer. In the old days, not everything was 100% IBM PC compatible. There were lots of weird graphics cards. Some systems had incompatible disk and keyboard controllers.

There was no memory protection in Real Mode, so you could always poke the hardware yourself, but something written on a Tandy wasn't going to work on a Zenith unless you supported both, or ran everything through the BIOS.

Over time, the OS took over the HAL role, with the BIOS only being used until the OS could load native drivers. Now it's UEFI... same idea with a higher greater level of abstraction and modularity.

jchw•9mo ago
You can always ignore the BIOS routines and directly touch hardware registers/etc. so as long as you know precisely what hardware you are dealing with. Of course, this is what modern OSes do for most hardware after bootstrapping since calling back into BIOS isn't really an option.

BIOS routines are purely an abstraction layer, though the abstraction is somewhat leaky and my understanding is that most hardware was trying to be IBM compatible even when software skips the BIOS routines and directly touches hardware interfaces.

e.g. you can see documentation for the VGA card here: https://wiki.osdev.org/VGA_Hardware

The thing is, as far as I know you do not need to use the video BIOS routines even to set the video mode. After all, the video BIOS routines are also just routines that run on the CPU, the only advantage they really have is that of any abstraction, the fact that using it allows you to be compatible with any card that implements that software interface even if it doesn't implement the same exact hardware interface. But as far as I know, if you know you're dealing with a VGA compatible card, you can set the mode by directly flipping around CRTC registers and it should work just fine.

Same for disk controllers and etc.

userbinator•9mo ago
However, since GPUs tended to vary widely when going beyond VGA modes (although I believe even the original VGA controller was capable of 800x600x4 with a suitably lenient autosync monitor), VESA VBE was introduced to make that much easier again.

Windows actually runs the VBIOS in an emulator / VM for switching modes with the default GPU driver.

jchw•9mo ago
You know, I thought UEFI actually was doing the same thing, but I am mistaken, at least for anything resembling modern UEFI.

Apparently, modern UEFI just doesn't bother supporting classic Video BIOS option ROMs at all, only supporting UEFI option ROMs. Then for those... you either need to hope your GPU has one for your host CPU architecture, or you can use X86EmulatorDxe, a Qemu-based LGPL module that can run AMD64 drivers on AArch64, which hasn't been updated in a few years, or Intel's MultiArchUefiPkg, a more modern solution using Unicorn Engine that supports both AArch64 and RISC-V. Which is also LGPL, but.. Unicorn Engine itself is GPL, which is obviously a potential licensing issue for any would-be users. And, Intel archived it (probably alongside tons of their other open source projects) earlier this year, so it is no longer being maintained by them. Or, finally, you can have an option ROM containing machine-independent EFI Byte Code... which is no longer required by the UEFI spec, was never really used (apparently, the primary toolchain was a proprietary Intel C compiler that is no longer updated.) So who knows how many UEFI implementations still support it. It was removed from EDK2 in 2023, so presumably newer firmwares won't handle it at all.

I'm sure most people don't care about the trainwreck that is UEFI, but I found this tangent to be surprisingly interesting. At this point, treating AMD64 as a lingua franca of PC-based computers might just be the best way forward rather than trying to invent virtual machines. If they wanted to go the VM route, they should've committed fully and only supported OpROMs that were architecture-independent from the gitgo.

All of this just so we can initialize the video card and display some messages at boot, huh.

sim7c00•9mo ago
you could use IO which BIOS also uses. BIOs provided basically some library or api to make it easier, and did some init of platform.

you can also program the vga outside of bios if its PCI. not sure about agp and older stuff tho as i never really got to play with it.

bios essentially is just some software running in CPL 0. it doesnt have special access or privileges.

userbinator•9mo ago
I have the Phoenix version of this already. The Ralf Brown Interrupt List is also very relevant and vendor-neutral, as well as including some normally-undocumented stuff, if you're interested in low-level PC programming.
1vuio0pswjnm7•9mo ago
Phoenix CBIOS:

https://bitsavers.org/pdf/ibm/pc/ps2/bios/CBIOS_for_IBM_PS2_...

Phoenix ABIOS:

https://bitsavers.org/pdf/ibm/pc/ps2/bios/ABIOS_for_IBM_PS2_...

akoboldfrying•9mo ago
Back in the day, there was a website called amihotornot.com, where people could post photos of themselves and others could vote on how good they look.

This spawned a variety of copycat sites, all using the amiXornot name template. My favourite was amibiosornot.com, which showed you a photo of a PC motherboard, and asked: AMI BIOS or not?

Razengan•9mo ago
I thought this was something to do with the Amiga