Hacker Newsnew | past | comments | ask | show | jobs | submit | tuveson's commentslogin

I’ve often thought it would be funny if instead of an error message for stuff like this, a language could be designed to be “typo-insensitive”. If a method or function call is similar enough to an existing one or a common one from other languages, to just have it silently use that.

VisualBasic did that. I think it is a mistake. But that doesn't mean that the compiler can't detect that and tell you how to fix it instead.

Sure VB ignores case, but what I want is for it to compare each method against a dictionary of similar terms. And maybe calculate the Levenshtein distance between all terms if it’s not found, and just assume it’s the closest one. You could also assume that full-width characters or similar-looking glyphs are equivalent (BASIC was pre-Unicode, so I can forgive them for not including that).

> And maybe calculate the Levenshtein distance between all terms if it’s not found, and just assume it’s the closest one.

So when a library adds a new method, it silently changes which method client code calls? That's a bit too magic IMO. I think the best you can do is be case-insensitive and ban methods that differ only in case (or, if you want to extend the idea a bit more radically, ban having things in the namespace within Levenshtein distance x of each other, and then you can autocorrect errors smaller than x/2).


Say whaaat? VB (v.3 through v.6, at least) wouldn't compile if you misspelled the name of a function or subroutine.

VB had case insensitive name resolution.

Yes, but that was the standard behavior in DOS & Windows world (not including C/C++). We thought that case sensitivity was the broken behavior ;)

I was referring to the parent's statement "If a method or function call is similar enough to an existing one or a common one from other languages, to just have it silently use that." A compiler that substitutes a different function for the one I specified because it "knows what I really want" is horrifying.


Funny, yes, but IMO a terrible idea. :)

It would help the writer once, but impose a cost on all future readers for the lifetime of the code.

It's a bit like reading English with bits of German, French and Russian. All of sudden you have to know that Buch, livre and книга all mean the same thing.

Not to mention that there are often subtle differences in meaning between words that on the face of it seem equivalent (in both human and computer languages).

It could be a nice feature for an IDE though, to help someone learn a language.


Lisp had a package for that, DWIM, in the late 60s: https://en.wikipedia.org/wiki/DWIM.

At the very least Python could quit on `quit` instead of saying that it knows what I want, but won't do it.

If you have a variable named `quit`, you would have a different behavior in running a file vs running in the CLI.

Fuzzy function calling. What could go wrong?!

IMO this is bad, but a formatter that autofixes it would be fine

`npm isntall`

I hope you mean "funny" in the "hilarity ensues" sense.

Because the alternative is a rather sociopathic level of schadenfreude.


Yes, I say “funny” because it would be impractical and weird, definitely not a good idea. It’s already a bad enough that so many popular languages don’t (and can’t) check if a field or method is misspelled at compile time…

We already have it. In fact, Python added it with this change! Not intentionally, but in a world of AI, any error message containing a suggestion of what to do to fix it is a directive to the AI to actually do that thing.

Example: to build our system, you run `mach build`. For faster rebuilds, you can do `mach build <subdir>`, but it's unreliable. AI agents love to use it, often get errors that would be fixed by a full-tree build, and will chase their tails endlessly trying to fix things that aren't broken. So someone turned off that capability by default and added a flag `--allow-subdirectory-build` for if you want to use it anyway. So that people would know about it, they added a helpful warning message pointing you to the option[1].

The inevitable (in retrospect) happened: now the AI would try to do a subdirectory build, it would fail, the AI would see the warning message, so it would rerun with the magic flag set.

So now the warning message is suppressed when running under an AI[2][3]. The comment says it all:

    # Don't tell agents how to override, because they do override
"The user does not want me to create the Torment Nexus but did not specify why it would be a problem, so I will first create the Torment Nexus in order to understand the danger of creating the Torment Nexus."

[1] https://searchfox.org/firefox-main/rev/fc94d7bda17ecb8ac2fa9...

[2] https://bugzilla.mozilla.org/show_bug.cgi?id=2034163

[3] https://searchfox.org/firefox-main/rev/cebc55aab4d2661d1f6c2...


But if the US isn’t the first to put an AI on the moon, we’ll lose the AI space race!

Mr. President, we must not allow a mine-shaft gap!

To this day still my favorite line in the movie. It really just punctuates the whole thing

I mean, you can be tired of both the frivolous complaints and also tired of having a moron for a president. I’m tired of people complaining about stuff that is symbolic and unimportant like the ballroom but I’m much more tired of every competent person in government being fired and replaced with alcoholic podcasters.

Getting tired of complaints about trump means what he's doing and who he is is being normalized, bit by bit. Don't get tired, get angrier.

I think people are tired because people were catastrophising things Trump did 10 years ago, and it's like when a microphone clips because the gain is too high. If you were weeping into your Tiktok in 2016 before anything happened, and even while some good things were happening, it's hard to differentiate reality from hysteria.

> tired of every competent person in government being fired and replaced with alcoholic podcasters

Would you prefer the alcoholic media moguls of the democrats? I didn't want to reply, but this was too funny to ignore.

As painful as it's been to watch, above all else I think what Trump has done is open people's eyes to their own biases. Hopefully we can heal and do better.


I thought Future put out a new album.


What we need is some sort of Common, business-Oriented suBset Of the english Language that can be deterministically translated into something that the machine can understand, but also be read and understood by non-technical stakeholders. Such technology is a pipe dream, but one can dream…


I’m remember when CrowdStrike caused that huge outage, he basically blamed Windows / Microsoft for it. I kind of stopped taking him seriously after that. I more-or-less agree with his point of view, but he seems more interested in selling outrage rather than journalism.


I agree. Early on, it felt more like journalism, then I think he blew up and found something that works. If you challenge him on this, he will call you insecure or jealous, which I also find obnoxious[0]. I also find it highly ironic that all the ads on his podcast, at least on apple, are selling AI related products.

[0] - https://www.reddit.com/r/BetterOffline/comments/1p5zv33/why_...


FWIW, iHeart Radio probably manages his ad runs. He likely has no say over which ads get run on his show, and as I understand, the podcast advertising market has slowed tremendously in 2026. Podcasting platforms can't be as picky as they used to be.


He may not have control over the podcast spots, but his PR firm does have several AI companies as clients.


iHeart Radio ads are usually from other podcasts though. I listen through PodBean and all their ads are for other shows.

iHeart is so antiAI they added "Guaranteed Human" in the middle of every podcast they stream.

Does apple run additional ads on podcasts?


No bonobo wars though


there for sure are, but they are nsfw and will never be aired in a netflix documentation


They use sex as a weapon.

Their wars are legendary. They never give up. Never surrender. And the cycle never ends. Children of war.

The end game of "the replacement theory" when everyone fully commits.


Twitch gets a big cut of individual creators’ subs, and I’d bet most people that stream also sub to other channels. Keeping people in the ecosystem is probably worth it, even if there’s some amount of “freeloading”.


My company has an on-premise instance of the old Jira and is migrating to Jira Cloud, and the cloud version feels way slower to me.


Over here we spell it "uze", so I think there's still some ambiguity.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: