HNHacker News
TopNewBestAskShowJobs

JdeBP

9,053 karma · joined September 29, 2014

http://jdebp.info
submissionscomments
JdeBP··on Google Hits 50% IPv6
Just to add to the 'but the ISPs do not' anecdotes, it has been six months since someone last commented so it is probably time to mention this again on Hacker News:

* https://havevirginmediaenabledipv6yet.co.uk/

A major ISP in the U.K., that said in a public statement on World IPv6 Day in 2011 that

> As well as our core and access networks being capable of supporting IPv6, we're rigorously testing our entire network to ensure that all customers have a smooth and simple transition when the time comes to flick the switch and turn IPv6 on. We're really pleased with how our tests are advancing and are happy to say that by the end of 2012, we'll be able to fully support customers looking to switch to IPv6.

has not managed to actually flick that switch in 15 years.

* https://ispreview.co.uk/story/2011/06/08/uk-isp-fluidata-hai...

JdeBP··on Linux eliminates the strncpy API after six years of work, 360 patches
In Unix Seventh Edition, ls and others read directory entries with fread() and parsed the struct direct themselves in application-mode code. The C library and application mode matter, here.

On the gripping hand, there is no strncpy in the Spinellis 7th Edition source code; 4.2BSD was using strncpy() inside readdir() in 1982, though.

JdeBP··on Linux eliminates the strncpy API after six years of work, 360 patches
A more accurate re-phrased version of the original is that they are the biggest mistake in the C language.

* https://news.ycombinator.com/item?id=48614913

* https://news.ycombinator.com/item?id=24454369

* https://news.ycombinator.com/item?id=1014533

JdeBP··on Lobsters Bug Allows Unauthorized Email Access
No. The poster didn't communicate the bug per the posted instructions at https://github.com/lobsters/lobsters/blob/main/SECURITY.md ; the poster actually exploited the flaw to scrape personal data of users which xe then threatened to post; and the company being promoted was nothing to do with Hacker News at all, but was a company that sells software security stuff, with which which two lobste.rs accounts were connected.
JdeBP··on SMPTE Makes Its Standards Freely Accessible
No. In such organizations the money goes towards all of the usual things such as tax, building rental, utilities, and licences, as well as employee salaries and social security contributions.

BSI Group, for example, paid 26.1% tax (25% corporation tax plus some other stuff) according to its 2025 financial statement.

In my direct experience, the people who write the standard texts get a room to sit in, power for laptops, a whiteboard, and tea/coffee and biscuits, a few days per year.

JdeBP··on To study how chips work, MIT researchers built their own operating system
The headlined article is a press release. The actual paper, with the explanation, is hyperlinked in a box on the right.

Also: https://news.ycombinator.com/item?id=48594724

JdeBP··on To study how chips work, MIT researchers built their own operating system
No. As I said, that's really a secondary niggle with the paper itself misrepresenting its reference, which as you can see already provides patches to paper over such stuff, as through the problem with XNU were redaction, which it isn't per that reference.

The primary reason not to use XNU is what the paper goes into in detail; which is the architecture of XNU simply getting in the way, just as the architecture of NetBSD would for the same reasons. If XNU being incomplete were the primary problem, NetBSD, a complete operating system that supports loadable kernel modules and provides a coherent development toolchain out of the box, would be the answer. But it is not.

JdeBP··on About ASCII art and Jgs font (2023)
The design of the font is quite interesting, but it's not universally applicable for text art work of course. Making ordinary punctuation and alphanumeric characters have the same connection properties as the line drawing and box characters comes at the expense of distorting text art that relies on conventional glyph shapes to make sub-cell slopes and whatnot work. There's stuff out there that relies on (say) the symmetry of opening and closing single quotes or the visual similarity of the dollar symbol and the capital letter S.
JdeBP··on About ASCII art and Jgs font (2023)
You might enjoy https://int10h.org/oldschool-pc-fonts/ .
JdeBP··on To study how chips work, MIT researchers built their own operating system
The paper's reference to https://github.com/blacktop/darwin-xnu-build does not support the statement made by the paper. It's not redaction or obfuscation that makes building XNU difficult. It's having the right toolchain; modifying makefiles and code to accommodate a slightly different toolchain; and needing a load of extra stuff that isn't pre-supplied with XNU. A lot of the patches and issues there are about compiler differences, language standard differences, and plain missing stuff.

This is a secondary niggle in the larger scheme of things, though. Not using something like XNU in the first place is the way, for the reasons that the paper goes into. (Whilst 'of course it runs NetBSD' applies to the M1, one wouldn't use NetBSD for this for the same reasons that one wouldn't use XNU.) People experienced in this sort of thing likely nodded along at decisions like coöperative rather than preëmptive multitasking.

I wonder whether they considered the Watanabe shell rather than the Debian Almquist shell. They picked vim instead of nvi2, after all.

JdeBP··on Curl will not accept vulnerability reports during July 2026
Rusted Cu surely makes that, rather, verdigrURL. (-:
JdeBP··on Building a serial and VGA "everything console"
The terminal firmware is VT132 from TheHighNibble. It claims to support more than a VT100, but from looking at the reference doco that is not very much actually added (a handful of SCO and XTerm control sequences, and colour), and nowhere near what one had with the later DEC VT models.

* https://thehighnibble.com/vt132/

* https://thehighnibble.com/vt132/operation/vt100/programmer/

JdeBP··on The adder at the heart of Intel's 8087 floating-point chip
That's not really an explanation of why the people who have made synthesizable 8086/8086 processors haven't done the same thing for the 8087, because modern FPGAs aren't limited by the cutting edge of 1980 technology. (-:

My educated guess is that primarily simply no-one has needed this, and secondarily it's hard. They're running softwares that can do all of their floating point in software anyway and they just don't need an 8087 on an FPGA. And floating point on an FPGA uses a lot of area, if one is taking the easy route of just emulating the external behaviour rather than the much harder task of emulating the clever microarchitecture that reduces it all to just 1 adder.

JdeBP··on The adder at the heart of Intel's 8087 floating-point chip
And largely irrelevant if the goal is synthesizing something that can be put onto an FPGA to be a workalike for the 8087. It's almost never about synthesizing the exact original hardware to be fabricated. See CPU86 and Zet, for examples:

* https://github.com/nsauzede/cpu86/wiki

* https://github.com/marmolejo/zet

JdeBP··on The adder at the heart of Intel's 8087 floating-point chip
The adder is not clocked. You can see from the diagrams that there are no clock inputs. The clock cycles comment is more an expression of the length of time that it takes before all of the carry rippling and whatnot settles down.
JdeBP··on The adder at the heart of Intel's 8087 floating-point chip
It is interesting that over the years people have produced synthesizable RTL HDL for the 8086/8088 and later, with varying degrees of fidelity, but no-one seems to have produced similar for the 8087.
JdeBP··on Lies we tell ourselves about email addresses
Yes there should, and the maximum size of what fits into a 512-octet DNS/UDP query packet, less header and EDNS0 and whatnot, is going to be that limit, ultimately. Because SMTP-based Internet MTSes that do not look up MX resource record sets in the DNS, and do not begin at DNS/UDP, do not currently exist. (-:

Even if they magically all switched to starting at DNS/TCP, that is still only 64KiB less header and EDNS0 and whatnot. And in that case one also has to allow space for sending the actual resource record set back in the response, DNS/TCP not having DNS/UDP's luxury of truncation, so it's not even as large as that.

JdeBP··on I Hate (Most) Keyboard 'Fn' Keys
Actually, there are a number of full-screen editors that pre-dated vi. They were for mainframe operating systems, or were confined to some university or other, or were commercial products for something like CP/M made by some tiny company somewhere, and are largely forgotten; with the last magtapes or floppy discs that had copies of them long since thrown away. Unix and vi, and what escaped UCB, got remembered. But there was other stuff around.
JdeBP··on I Hate (Most) Keyboard 'Fn' Keys
I tend to go for keyboards that don't need all of that messing about with the Fn key, too.

By the way: It's a lot more than 100 keys. People tend to accept that because they have what is called a '105-key' keyboard that it actually has 105 keys. One of my '105-key' keyboards has 124 physical keys. For approaching a decade now, I've wanted a 127-key keyboard from Brazil. Formally, that's a '107-key' keyboard.

* https://news.ycombinator.com/item?id=24499899

JdeBP··on I Hate (Most) Keyboard 'Fn' Keys
I agree about the special keys. There are so many HID usages on the Consumer page for keyboards covering so many things, from application launchers to extra editing functions, and it is absurd how often almost none of them are used in favour of vendor-private usage numbers that then require vendor-specific software support.
JdeBP··on Lies we tell ourselves about email addresses
I'm surprised that this has not triggered all of the reminiscences of sitting running mailq at intervals for hours to watch mail that hasn't even left the local sending machine yet.
JdeBP··on Lies we tell ourselves about email addresses
Realistically, the length of the domain part is likely ultimately constrained by how large a domain name can fit into a DNS/UDP query packet (alongside EDNS0).
JdeBP··on Lies we tell ourselves about email addresses
Even that's not the true length limit of a label in the Domain Name System. (RFC 1034 § 3, for the curious.) So someone is likely going to be fixing that, years down the line. Then of course there's the fact, as called out earlier, that there can be more than 2 labels in a domain name.
JdeBP··on Microsoft's open source tools were hacked to steal passwords of AI developers
These seem related:

* https://news.ycombinator.com/item?id=48418318 (The Blight Reaches Microsoft: 73 Repos Disabled in 105 Seconds)

* https://news.ycombinator.com/item?id=48450543 (Miasma Worm Hits Microsoft Again: Azure Functions Action and 72 Other Repositories Disabled After Supply Chain Attack Targeting AI Coding Agents)

* https://news.ycombinator.com/item?id=48416155

* https://news.ycombinator.com/item?id=48416269 (Miasma Worm Targets AI Coding Agents via GitHub Repos)

JdeBP··on Life is too short for a slow terminal
> I do not use a graphics driver.

Yes you do. It's the one that your in-kernel terminal emulator talks to in order to splat its bitmap fonts onto the screen. It is whatever wsdisplay has attached to, which can be one of a range of things from genfb through voodoofb and machfb to radeonfb. There was even a vesafb about 20 years ago.

JdeBP··on Using XDG-Compliant Config Files (2024)
From inspection of the code:

If you have the files in the XDG locations and symbolic links in the old locations, this migration mechanism will mess things up quite badly, because it does not check for either symbolic or normal links and renames over the XDG file if an old location file exists.

The model here seems to be that configuration files are entirely under application control, and users do not go around manually creating them, changing them, or creating compatibility symbolic links. Which really does make a nonsense of using an INI variant as the configuration file format. One might as well make it easily machine readable if humans are never meant to be touching it.

But then this library has old design written all over it, once one looks at it with a Windows developer hat on. It claims to place global INI files in the Windows directory, something that has been deprecated in Windows for over 30 years. Although, just to make things interesting, that documentation does not describe what the code nowadays does.

* https://github.com/wxWidgets/wxWidgets/blob/master/include/w...

JdeBP··on Life is too short for a slow terminal
> Thus I don't use a terminal emulator.

Yes you do. It's the one built into your operating system's kernel. You'll find a lot of, but not all of, its code in /usr/src/sys/dev/wscons .

JdeBP··on Life is too short for a slow terminal
Maybe, but notice that almost all of the article, and its followup posted today, is about the speed of starting a shell not of a terminal emulator window. So if you use interactive sub-shells, anything from shelling out of a vi clone or mailx, through :terminal in NeoVIM, to running tmux/screen or script, then the concerns are relevant.

That said, it is almost totally about the Z shell. So you might still qualify as 'weird' in this case on the alternative grounds of not using the Z shell. (-:

JdeBP··on What is the purpose of the lost+found folder in Linux and Unix? (2014)
My guess is that it was undocumented until Release 3 or 4, so the book authors simply never found out about it. Andrew Tanenbaum knew about it at the same time as the first Hunter and Fielding book, but likely this was word-of-mouth stuff.

* https://groups.google.com/g/comp.unix.wizards/c/bbCYhh7_r-8/...

Enjoy the obvious question asked about all this, way back in November 1981:

* https://groups.google.com/g/fa.unix-wizards/c/h5mFGIV91Io/m/...

That's the Dave Yost, still at RAND at the time, who went on to make the GRAND Editor.

* https://news.ycombinator.com/item?id=43734536

JdeBP··on What is the purpose of the lost+found folder in Linux and Unix? (2014)
You can even tell which operating systems xe has used. Both of those are very specific. The \FOUND.nnn directories are something that IBM/Microsoft introduced when they re-did CHKDSK for OS/2, which was what Windows NT inherited. FILEnnnn.CHK in the root directory was the old Microsoft CHKDSK, and also Symantec/Norton SCANDISK, for MS/PC/DR-DOS.
← PreviousPage 5 of 34Next →