News for hackers. Stuff that matters.

billpg

Re:RFC8950: Announce IPv4 with an IPv6 next-hop on Friday October 16, 2026 @05:52PM (#50125243)
Shameless plug: https://billpg.com/sixgate/

(Short version: IPv6-only networks can provide a gateway for IPv4-only clients and advertise it via reverse DNS.)

SixGate has an interesting contrast with this RFC. RFC8950 removes IPv4 from the network core while preserving IPv4 reachability, whereas SixGate removes IPv4 from the service side while preserving reachability for IPv4-only clients.

In both cases, IPv4 survives as a compatibility layer rather than a fundamental requirement. The difference is that RFC8950 is aimed at network operators, while SixGate is aimed at the last remaining IPv4-only users.

In both cases, the goal is the same. Turn IPv4 from a requirement into an optional compatibility feature.

Re:Ask HN: Who wants to be hired? (October 2026) on Tuesday October 06, 2026 @09:04AM (#49977801)
Thank you. Always nice to hear comments like that.
Re:Ask HN: Who wants to be hired? (October 2026) on Friday October 02, 2026 @11:46AM (#49934830)

  Location: Daventry, UK
  Remote: Preferred.
  Willing to relocate: Yes
  Technologies: C#, ,NET 10, Python, SQL, Distributed Systems
  CV: See https://cv.billpg.com/ and contact form.
I'm a Senior Software Engineer who takes fragile, tangled systems and turns them into ones that are simple and built to last, mainly in C# and .NET, with a particular interest in distributed systems and protocol design. Outside of client work, I write and tinker on independent projects like HashBack and SixGate.

You may know from my popular HN submissions...

  8086 Segmented Memory was a good idea. https://news.ycombinator.com/item?id=48619125
  The Road Not Taken: A World Where IPv4 Evolved. https://news.ycombinator.com/item?id=47352236
  Data-Mining Wikipedia for Fun and Profit. https://news.ycombinator.com/item?id=28234122

Ask HN: Redirect-to-www on a dot-dev domain?

I've just purchased a dot-dev domain from Namecheap who I've used before and been very happy with.I set my domain up to use "www" as a CNAME to a static-file web service and the apex domain as a redirector to that "www" site. Done it before, works great!But then it didn't work so well. The "www" site was working fine exactly as I wanted, but that apex domain redirect wasn't working. I kept...

( Read More... | no comments | on HN )
Re:8086 Segmented Memory was a good idea on Tuesday June 23, 2026 @01:03PM (#48647956)
I once developed for PC-GEOS, which wanted all memory in exactly 8K sized blocks. I wrote a set of C macros that presented an array-of-arrays as a single collection by using mod/divide operations on the index.
Re:8086 Segmented Memory was a good idea on Tuesday June 23, 2026 @12:54PM (#48647808)
shrug

I've reviewed what I originally wrote and I prefer the text I published. Sure, I could review it all myself (indeed I used to) but that takes time and it was becoming a barrier to actually publishing stuff. Maybe I'd have got around to finishing it in a few months.

I don't use AI to write for me. I hate people who do that.

Re:8086 Segmented Memory was a good idea on Tuesday June 23, 2026 @10:53AM (#48645973)
I kinda wish they had. 64k windows with no overlap would make segment registers a slightly inconvenient 32-bit address register.

I get why hey didn't. Someone might want to run two processes each with its own segment, but the whole machine might only have 64k in total.

Re:8086 Segmented Memory was a good idea on Tuesday June 23, 2026 @10:50AM (#48645909)
Hi. I wrote it, and I'm a human. (Or at least I think I am.)

I did use an AI for spell-checking, punctuation, generally making it flow, but its all my text.

You think a machine is going to come up with "near pointers, far pointers, wherever-you-are pointers"?

Re:8086 Segmented Memory was a good idea on Tuesday June 23, 2026 @09:34AM (#48644748)
1992-author (me) is wondering if he'll ever get a girlfriend.

(And I completely agree.)

Re:8086 Segmented Memory was a good idea on Tuesday June 23, 2026 @09:30AM (#48644681)
Why would you ever want a single 64k object? That's like an entire machine's worth of memory!
Re:8086 Segmented Memory was a good idea on Sunday June 21, 2026 @10:46AM (#48619422)
Indeed, I say as much at the end.

But what should Intel have done? They needed a CPU that can run 8080 code but with more memory. Also it's the year ~1980 and we're limited to the technology of the age.

A system with 64k sized windows seems unavoidable.

If you extend the size of the address registers, 8080 code will only run in the first 64k, or require some kind of current window register.

An 8080 mode might have worked but that would have been expensive.

Re:Let's Standardize the 1970 Epoch on Friday May 29, 2026 @01:02PM (#48326001)
Thanks, and that POSIX link is exactly the one I expected someone to bring up.

The key point is that POSIX does not actually define a real, physical epoch, and it explicitly avoids doing so. POSIX says every day is exactly 86400 seconds, leap seconds are ignored, the relationship between POSIX time and UTC is unspecified. In other words, POSIX defines how the "time()" API behaves, not what the underlying timeline is. It’s an OS level contract, not a timekeeping standard.

The problem I’m addressing is that POSIX retroactively assumes a form of UTC that didn’t exist in 1970–1971 and it provides no authoritative mapping between POSIX time and actual UTC. That’s why you can’t use POSIX as a normative reference for "seconds since 1970". It’s not a definition of time, it’s a behavioural model for system clocks.

This document is trying to define the actual timeline that people implicitly assume when they say "Unix timestamp", in a way that’s historically honest and citable. When I was looking at a number of RFCs that use these timestamps they didn't cite this reference, but went with the wooly "Number of seconds since 1970".

Re:Bijou64: A variable-length integer encoding on Friday May 29, 2026 @12:21PM (#48325332)
I forget where I encountered it, but I've seen similar encodings that eliminated the possibility of many possible encodings for the same number by making the length part of the value.

Values 0-127 are a single byte, but if that first byte has the continuation bit set, not only does that indicate the next byte has 7 more bits to contribute, it also moves the base up to the next window.

10000000 00000000 is the only way to represent 128.

10000000 10000000 00000000 is the only way to represent 16512.

Does this encoding have a name?

Re:Make ZIP files smaller with ZIP Shrinker on Tuesday May 19, 2026 @07:06AM (#48191776)
Do any formats using ZIP as the underlying format use ZIP comments for metadata? Unless there's a lot of compressors leaving "Zip file generated by MySuperZipper™" then I imagine any comments left were probably done for a good reason.
Re:Let's Measure Gravity on Wednesday April 22, 2026 @04:35AM (#47860762)
True, but I wanted this to be something anyone could do with equipment they might already have lying around and also get a feel for what gravity is actually doing.

Switching on a machine that displays "9.8m/s²" isn't that much removed from looking it up in a book.

I had a similar reaction when learning 8086 assembly and finding the correct way to do `if x==y` was a CMP instruction which performed a subtraction and set only the flags. (The book had a section with all the branch instructions to use for a variety of comparison operators.) I think I spent a few minutes experimenting with XOR to see if I could fashion a compare-two-values-and-branch macro that avoided any subtraction.

Older »