Better HN
topnewbestaskshowjobs
Log inSign up

WorldMaker

14,761 karma · joined Nov 21, 2014 (12y ago) · 9,877 submissions

[ my public key: https://keybase.io/worldmaker; my proof: https://keybase.io/worldmaker/sigs/n8iRg91V7A63ZxMurvpzSi8a7jh9UcgZYF5_eeQT3vE ]
Submissions

comment 1d ago · link · parent

I saw .NET "Microframework"-based code running just fine on an RTOS decades ago. I've even seen CPython (ab)used on an RTOS.

Go back far enough and there were Real Time Lisps. (Not to mention Lisps even had hardware garbage collectors designed for them.)

Garbage collection can happen in real time programming just fine, there's just often not been enough demand for real time programming focused garbage collectors.

.NET "Microframework" didn't last not because it wasn't good at what it did, real time embedded programming, but because there weren't enough C++ developers interested in learning C# for embedded programming skills they already thought they knew.

comment 2d ago · link · parent

Because Google would argue that Chromium counts and therefore if Chromium counts then Chrome should, too?

Google has done a lot of open source/open foundation washing of their efforts. Just look at how AOSP makes people think Android is more open source than iOS despite how hard it is to run Android without proprietary drivers and proprietary APIs like Google Play Services.

comment 2d ago · link · parent

No, one of the complaints is that it did for years. Sometimes still does. Especially on Windows. You had to look for a tiny hidden checkmark option under "Advanced Install Settings" in the Adobe Reader installer to keep it from installing Chrome and trying to make it the default.

Adobe Reader was just the most egregious example that "everyone needed" that Google paid Adobe to auto-install Chrome if the user wasn't paying attention.

Anecdotally, My father is not that technically literate and has been a Firefox user for a long time and has seen Chrome as adware/spyware trash for a long time in big part because he still never knows how it gets installed and why it keeps trying to steal focus from his Firefox. To him it's always been like Bonzi Buddy, showing up where it is not wanted.

comment 2d ago · link · parent

The history is relevant because Chrome got so dominant in the first place because of "adware" installs and "toolbar upgrade" installs and YouTube banners and artificial slowdowns and more.

The point is that as soon as iOS truly opens up alternative browser renderers on iOS you could expect a flood of such tactics on iOS.

(Not to mention that such tactics already exist for the iOS Chrome wrapper around Safari. The YouTube app will sometimes try to open links in iOS Chrome instead of the OS-level default. Same with Google Maps and Gmail. They will throw big banners up suggesting "everything is better in Chrome".)

Google is an ad company with a strange contradiction of morals and ethics, has used shady practices in the past, continues to use them today, and likely would only get worse if things like Apple relenting on third party web renderers were to happen.

comment 2d ago · link · parent

This pattern isn't far from what a videogame sometimes needs to run a level: load a lot of data, generate a lot of garbage, try to collect all the garbage after load but before gameplay, then keep the GC from running again.

In C# you get most of that by calling `GC.Collect()` when you know you've finished loading and should be in a steady state. (I've seen non-games do it after application start as well, though in an enterprise application with full Server GC and plenty of RAM it feels more like a superstitious call than a necessary one.) Then in your "idle state" you can just try to avoid creating garbage. Games often use object pools aggressively, making sure most objects it needs are LOH/Gen2 and a few other "no allocation"/stack allocation-only approaches in the middle of a level.

You can try to ask the GC nicely with `GC.TryStartNoGCRegion()` during a section of your code but it's not necessarily a good idea and a lot of caveats apply.

But also, a lot of what you are asking for is sort of already what the default GC is optimized for by being a generational mark-and-sweep GC. It's tuned for bursts like application startup generating a lot of quick garbage that never leaves Gen0 and fast "arena sweeps". It's tuned for eventually reaching an Idle state where most of your objects are long-lived and hanging out in Gen2 and very rarely even checked to be collected.

comment 2d ago · link · parent

Today's GC languages with multi-threaded generational mark and sweep generally don't "GC pause". You can see slow downs if you hit a worst case, like accidentally churning your large object heap and/or long-lived generation too fast, but even then it is rarely a "stop the world" pause but a subtle competition for CPU cycles and memory bus but other parts of your application like network I/O might not even notice.

comment 5d ago · link · parent

I had fun imagining the kind of large-ish library where this would make sense as an intentional design and wrote a short story about it a few years back [0].

I enjoyed imagining it as an older library with a card catalog system and providing decimal numbers based on cover/spine colors. (Pantone numbers post-date the imaginary date I had in mind for the creation of the library so the story involves a more ad hoc system.) The paper card catalog would even include swatches of color to help navigate.

It's no worse a system than Dewey Decimal in terms of looking up specific books [1]. It's just worse at browsing a given stack and finding meaningful connections between books, but that was a feature rather than a bug in my fictional library, for reasons explained in the story. (To maybe spoil it, the short answer: Many of the books were problematic and you don't want grouped together next to each other for fear of giving them a weight they don't deserve.)

[0] https://blog.worldmaker.net/2023/11/16/prismatic-decimal-sys...

[1] And arguably better in some regards because for instance Fiction books generally have spine colors, but never have Dewey Decimal numbers.

comment 5d ago · link · parent

This also relates to the biggest failure of the Dewey Decimal System was that Dewey didn't care for Fiction and there are no numbers assigned to the entirety of Fiction, which is fascinating given how big a proportion of all books published are Fiction.

comment 5d ago · link · parent

In the Dewey Decimal System the book's publisher picks one that they think is most relevant to sales, but also maybe lists the other options, in the book's frontmatter. Eventually the OCLC picks their favorite for WebDewey and the Library of Congress their favorite for the Library of Congress Dewey Program, though often they defer to OCLC.

But even in the history of paper catalogs books would often have secondary indexes in other parts of the taxonomy. Instead of walking the Dewey Decimal Numbers directly in the stacks you might walk to a card catalog that itself was organized by Dewey Decimal number, scroll through that and find a reference card to that book that would say "See this other Dewey Decimal number for this book in the stacks". (Computerized catalogs make secondary indexes even more common, obviously.)

The Dewey Decimal taxonomy was never "total" or perfect, it was just often "well indexed", for paper versions of good indexing.

comment 5d ago · link · parent

The other place that Dewey was deficient in was Fiction. Dewey assigned no numbers to the entirety of Fiction. Fiction is a huge part of the world of books. Libraries generally have to have large fiction catalogs. Most libraries have always used something like Book Store Categories then alphabetical to organize Fiction. Wayfinder sounds like it is sort of better systematizing that classic 2-system approach to me, based on the broad descriptions I've read so far.

comment 5d ago · link · parent

Many libraries are also the true last standing Blockbuster for things like video rentals, sometimes videogame rentals, and sometimes music rentals. I've even seen board game rentals at one local library especially dedicated to teenagers.

Commercial interests got bored of these spaces outside of subscription services and subscription services add up in costs to many underserved audiences, so libraries fill the gap. Sometimes an important gap, especially as Syndication has also sort of "died" and a lot of culturally "important movies" and shows no longer show up on broadcast TV because they are "streaming exclusive" but still for collectors are producing physical media, for the moment. (That is shifting, too, with some of the streaming services producing less and less physical media as well, and major stores like Target and Best Buy leaving physical media of movies and TV almost entirely.)

comment 5d ago · link · parent

> The advantage a "bookstore-like" system has is that if it isn't set in stone you can change it.

The Library of Congress and OCLC (Online Computer Library Center) have the power together to change Library of Congress codes and the two most common sources of Dewey Decimal numbers (Library of Congress Dewey Program and WebDewey respectively). (With the third being the suggested Library of Congress and Dewey codes that publishers just guess at and print in book frontmatter themselves, which are as much there to suggest to Book Sellers where to stack the book, because Book Store orders are still influenced by the Decimal Systems, if no where near as specific in how much they pay attention beyond the first few digits, roughly.)

The irony is that computers themselves have also reduced pressure on getting the codes as "correct" or "useful" as possible because most people's first search algorithm now is not "find the closest Dewey Decimal number" anymore, but use the computerized catalog.

comment 5d ago · link · parent

A part of me wonders a similar question that they started with a blob store and assumed a blob store and might have got good results normalizing their JSON schema into an Sqlite table structure, if they were going down the road towards Sqlite anyway. Especially, because if these preferences are truly per-user you could even ship the entire Sqlite database to the user and read it with WASM and not worry about concurrent writes and use much simpler object/file storage for the backup copies of Sqlite databases at that point. (Or get fancy with it and WAL log, sure, but really, if it is user owned at that point, just stick with simple dumb backups.)

comment 1w ago · link · parent

Plus the accounting trouble of actually paying out a golden parachute.

comment 1w ago · link · parent

Yes, that's exactly why passkeys got branded passkeys as opposed to other options. They are better passwords and not much more than that. They aren't intended to be much more than that. Keeping it that simple made it easier to be a multi-corporation standard. If identity were included it might have become a rehash of SAML standards all over again, or worse.

(Personally, I still think BrowserID might have been right that a verifiable email address claim is all we need for decent web identity, but BrowserID never got pickup by other corporations, so the "no identity at all" compromise is what we get. It's fine.)

comment 1w ago · link · parent

I couldn't finish the first chapter. It read like a cry for help, suicide ideation turned into fever dream. It was deeply uncomfortable, and I've yet to hear a description of later chapters to explain why I should have kept going. Especially now knowing the trajectory of its author.

comment 1w ago · link · parent

Passkeys do eliminate or trivialize many of these steps.

> * Find the […] phone

You can use Passkeys (with biometric unlock) directly on Windows/Linux/macOS and not need your phone at all for a Passkey login. (You have an option to keep all your Passkeys only on your phone, but you don't need to. Add that Windows passkey next to your iOS passkey and login on all your devices the easiest way. The Passkeys API will even help you do this automatically in some cases.)

> * Scroll and search for the app. If you don't remember the right authenticator, that's another process.

> * Type keywords to find the right account

Passkeys don't require a separate app at all (just use the OS or browser provided flows), but if you optionally want a password manager involved it integrates into the OS or browser provided flows and you don't have to search for it.

Similarly, Passkeys keep enough metadata that you never have to search for a specific passkey, as in all flows (even with a third-party password manager) the best passkey is chosen automatically.

> The last two (copy/paste) aren't a required part of 2FA, if you're using (T)OTP it's just a short numeric code.

You've never struggled with dyscalculia, then. (Dyslexia's mathematical friend where the ordering of numbers is hard to read and/or maintain in one's head.) TOTP codes can be especially frustrating to dyscalculia because they are random and have no additional punctuation. I don't have consistent dyscalculia, but I have enough bouts with it that I certainly don't trust "just remember it then type it in" if I can avoid it and try to copy and paste whenever possible. Because I have been locked out of accounts for accidentally transposing two numbers in a code too many times in a row.

Which is also to say that you've just switched copy/paste steps with remember/type steps and assumed remember/type was easy and hid that under the "just" rug. It's just remembering and typing 6 numbers. How hard can that be? Harder than you think for some people. (Arguably many people on a bad day given all the ways that short-term memory can be compromised in adults.)

comment 1w ago · link · parent

In the 90s my parents were briefly involved in designing that sort of curriculum in a for profit space (for kids) [1] and they encountered all sorts of problems in that 1) software vendor advice changed roughly every six months (often for no particular reason than a brand got bored and changed names/rearranged cheese or went out of business or got bought by some other conglomerate got worse and a new alternative needed, 2) nobody really wanted to pay for the education of which software to buy/use, and most crucially, 3) nobody thought they needed that education.

Parents assumed kids should naturally get it from the school systems. School systems don't have the resources to teach it in most places (and where they did it has always been underfunded/under-appreciated). Parents themselves assumed they were smart enough to figure the stuff out, when they had a chance to get around it it, probably.

It sort of feels like software education has been left in a permanent "Somebody Else's Problem" field. Both in learning it personally and in finding someone to teach it.

[1] It was a franchise called Futurekids.

comment 1w ago · link · parent

Some of the pain in this specific example case seems to be haven gotten into a state where both iPads and Chromebooks are regularly used side by side in the classroom. They are using Google Workspace accounts with a custom SSO "app" on an iPad presumably so that everything is synchronized with Chromebooks, too.

comment 1w ago · link · parent

username/passkey works just fine. No password needed. Nobody said drop usernames, the idea is drop passwords.

comment 1w ago · link · parent

One of the "best" parts being the first one of those was meant to be an "SSO" but apparently is design-by-committee and very bad at it. (Requiring too frequent logins, not saving usernames between logins [for kids?!], requiring login dances at downstream logins.)

comment 1w ago · link · parent

Toast used it pretty effectively for QR code-initiated restaurant bill payments. Though in the US I've only seen a few restaurants trust customers to pay by QR code and not physically want to handle a card.

Though the other notable thing about it was that the App Clip version does a decent upsell to get you to install the full Toast Local app. Then once you have the Toast Local app you never see the App Clip version again. So there's probably other things that have App Clips but you would not notice because you already have the full app.

comment 1w ago · link · parent

Similarly you can type definition (`data` keyword) your way to additional readability in Haskell. There's always a push/pull between using a generic type like `(b, c, [d], e)` and using a named type like `Record` in the above example, for instance.

comment 1w ago · link · parent

The author of this article goes into the academic details on "Total languages" (under the headline "Limiting our scope") because they have been explored before. A specifically useful quote:

> The restriction made by total languages, therefore, does not help make verification any easier. Indeed, it would have been surprising to discover that an impossible problem becomes easy by restricting it just a bit (giving up leather seats does not reduce the cost of a car by 90%). We also note that every program could be trivially made total by adding a large counter, say 2^100 to all loops – this won’t change its physical semantics in any way – so we can already assume all real-world programs to be written in total languages without loss of generality. If total languages helped, we could have assumed all languages are total.

To rephrase it a little: all of our Turing Machines are limited (by RAM, by power, by transistor count, etc) compared to the Universal Turing Machine (infinite in scope, as a thought exercise), but that doesn't make solving safety or security easier.

If no one function can have 1000 calls, you make a million functions. If no one loop can go more than 1000 ticks, you put that in a function and call that function in a loop. Suddenly you have access to a million iterations through a loop.

The problem with Turing Machines is that even (intentionally) broken ones always tend to have unexpected sandbox escapes.

comment 1w ago · link · parent

This article mentions a few of the reasons why some of our best attempts at defining languages that are "trivially correct" keep failing.

Among other examples, it specifically mentions that you if lego together two Push-Down Automata chatting with each other you get a Turing Machine back out. It doesn't include my other favorite recent example that we found a 0-day sandbox escape in the Universal Turing Machine itself.

The problems generally keep coming back to the Church-Turing Hypothesis that if you've got one Turing Complete language you've got theoretical access to them all.

Turing Completeness in turn seems an "emergent property" rather than a hard bar to clear. Rule 110 [0] shows Turing Completeness in the mathematical equivalent of a petri dish. We've built Turing Machines out of Magic the Gathering card game decks [1].

To some extent if there was a way to build a truly, well enforced, secure scripting language you would think that we would have already found it given how important it would be to security and to safety.

[0] https://en.wikipedia.org/wiki/Rule_110

[1] https://www.toothycat.net/~hologram/Turing/index.html

comment 1w ago · link · parent

It's the same boolean value that you are testing: does it "halt" because it completed its computation successfully or does it "halt" because it failed? If Program A terminates on success and Program B terminates on failure you can generally rewrite one to be the other (run Program A in a busy loop after a success; monitor Program B in another process and report the first success then kill B). Ultimately, you have the same decidability problem asking "does it halt?" and if you could solve it for one case you could solve it for the other.

In fact, it's generally considered a harder problem to include the second boolean "does it halt successfully?" Does it stop at all is a hard enough question before asking if it stops with a success or a failure/crash. In practice this is often the easier problem to debug: once it stops we generally know if it was successful or failed. But that doesn't help to answer the questions like "will it always stop successfully?" or "will it 'forever' run successfully without ever stopping for a failure/crash/hang/deadlock?"

comment 1w ago · link · parent

In .NET 5+ you shouldn't need to install runtimes, though. Self-contained folder full of DLLs output is the default publishing build today and very reliable at this point (and doesn't have the same restrictions as trying to AOT compile and treeshake everything into a single self-contained EXE).

Obviously, there's a trade off in size having a whole folder of files, some of which would be redundant with other applications, but folder of files using xcopy only deployments have seemed to become the standard in .NET. (Or perhaps more commonly, folder full of files added to a minimal "no runtime" Docker container overlay.)

I don't think I've ever seen a global install of a .NET 5+ runtime. I wouldn't be surprised if some Enterprise was doing it for some belief in HD space savings, but I've certainly not seen it. Just file folder deploys.

comment 2w ago · link · parent

Sure, most systems default to SLAAC which creates random long addresses. You can manually allocate them just fine and short addresses aren't going to cause collisions (and if they did, SLAAC handles it). Some of the networking people most (ab)using 192.168.x.y heavily are manually allocating them.

DHCP6 is pretty well supported on a lot of Enterprise routers, so the fd:: ULA space, which is what DHCP6 is most good for, has no required reason to be long addresses (outside of silly things like this link's mentioned Tailscale fingerprinting/advertising IP).

comment 2w ago · link · parent

Just as LAN addresses (link local) are usually 192.168.$x.$y and you are just passing $x.$y, with IPv6 they are usually `fe80::$z` and in theory you could just pass $z and the person on the other end can assume `fe80::`. Because of how double colon works $z could be just 54 in a similar situation (especially if link local addresses are statically assigned like most workplaces try to statically assign IPv4 addresses).

Same with ULA addresses like 10.$x.$y.$z for private networks. Most of those you can assume `fd$x::$z` and just need to pass whatever is on the other side of the double colons. (Where $x is optional and likely network-wide.)

comment 2w ago · link · parent

Mobile networks and consumer home use. "Happy eyeballs" protocols runs on most consumer devices at this point (preferring IPv6 over v4 at all times unless v6 is intolerably slower).

It's mainly just B2B stacks lagging behind today.

12345
330