3,155 karma · joined Jun 21, 2020 (6y ago) · 2,180 submissions
comment 23h ago · link · parent
We can have P=NP with the polynomial being something enormous like 10^100 n^100 + 10^100, which is the 2nd most likely resolution to P vs NP, with P != NP being the most likely one.
Your scenario is much stronger than P=NP alone and is far less likely.
Having P=NP with atrocious coefficients would have no immediate practical impact - and maybe wouldn't even be THAT surprising. What it would do is destroy many of theoretical computer science's sky-castles.
comment 3d ago · link · parent
(1) A lot of the mathematics that was done in the 18th century was
obviously inconsistent and yet still useful.
(2) Trying to verify logical consistency of a theory is basically impossible
because of Goedel's 2nd Incompleteness Theorem.
Hitting a wall like this makes me think we're asking the wrong question.comment 1w ago · link · parent
OCaml basically gives you operator overloading this way without actually doing overloading. I'm wondering why we can't have these OCaml-isms in other languages - without needing to use OCaml - which sadly comes with other commitments.
comment 2w ago · link · parent
Correlation measures whether Y=mX+c holds with small error. I sometimes think that many people unknowingly assume that all dependencies are somehow straight-line ones. This is distinct however from "linear approximations" in physics, which can at least be justified sometimes.
I also suspect that correlations of 0.5 or lower are often just statistical noise.
comment 2w ago · link · parent
I'm less sure about the following, however: I think that while current LLMs are bad at explaining their own proofs, some models are great for discussing older, human-written proofs. For this use case, from best to worst, Gemini > Claude > GPT-Astra >>>>>>>>>>>> GPT-Sol.
comment 3w ago · link · parent
comment 1mo ago · link · parent
Also, I think it's misleading to mention NFAs and DFAs alone, like there's no deeper reason. The deeper reason is that:
Regexes (or NFAs, or DFAs) classify exactly the properties of strings which can be checked in constant space.
It turns out that any such string property can also be checked in O(n) time, and in one single left-to-right pass.Briefly returning to backreferences, supporting them makes constant space unachievable. They also make linear time unachievable, since matching them becomes NP-COMPLETE.
Also, no regex implementation actually uses DFAs. NFAs yes, but DFAs no. The point of NFAs is that they're easy to execute in constant space and linear time, while also making concatenation and Kleene star easy to implement. It seems much harder to implement concatenation and Kleene star using most other constant-space automata - like DFAs - which is what actually forced people to invent NFAs.
comment 1mo ago · link · parent
Also, it's important for people not to confuse backreferences with capture groups. They look a bit similar, but capture groups are actually fine.
In fact, backreferencing is such a footgun that I don't see it as a possible regex feature. It's a PCRE feature - perhaps even the core distinguishing feature. While all regexes are PCREs, not all PCREs are regexes. It's simply not possible to create a consistently performant implementation of PCRE.
comment 1mo ago · link · parent
.
|
?
*
+
regex only has capture groups ()
and lazy variants of the core quantifiers "?", "*" and "+", which are helpfully called: ??
*?
+?
The rest is just shorthands.So while I think it's a worthwhile suggestion not to show people the whole thing the first time round, I doubt that the whole thing is really that complicated.
comment 1mo ago · link · parent
"|", which means "or"
".", which means "any symbol"
"?", which means "at most once",
"*", which means "however many times"
"+", which means "at least once"
Maybe encountering it next to PEG scrambles your brain.comment 1mo ago · link · parent
BB(10) > G > BB(5) = 47,176,870.comment 1mo ago · link · parent
If Dijkstra was so confident that he was right, he should have started a business and put his money where his mouth was. Hell, any True Believer of Dijkstra's could have done the same in the last 60 years. The fact that they haven't - or they've never succeeded enough for me to know of any - speaks volumes about their effectiveness.