14,761 karma · joined Nov 21, 2014 (12y ago) · 9,877 submissions
comment 1d ago · link · parent
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
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
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 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
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
comment 5d ago · link · parent
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
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
comment 5d ago · link · parent
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 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
comment 1w ago · link · parent
(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
comment 1w ago · link · parent
> * 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
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
comment 1w ago · link · parent
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
> 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
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.
comment 1w ago · link · parent
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
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
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
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.)