Better HN
topnewbestaskshowjobs
Log inSign up

ogogmad

3,155 karma · joined Jun 21, 2020 (6y ago) · 2,180 submissions

Submissions

comment 3h ago · link · parent

We've learnt something about PDEs: Fluid dynamics type PDEs are universal and show up as special cases of other PDEs. We know that they can lose regularity after finite time. The conclusion is that aiming for "strong" solutions is a no-go. So that's something.

comment 3h ago · link · parent

Maths is abstract and general and self-contained. The reason should be obvious.

comment 23h ago · link · parent

No. Given P=NP, in all likelihood, NOTHING about the world would change.

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

It's possible that the question of consistency is too abstract to judge its significance. Why?

  (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 4d ago · link · parent

If true, it's sad. So much work and so much accumulated wisdom. It's like seeing a cathedral built by thousands of hands over dozens of years collapse in an earthquake.

comment 4d ago · link · parent

Many otherwise unverified hypotheses in number theory are automatically true if GRH is true, which we now know it is. Now we can drop all of those messy caveats.

comment 4d ago · link · parent

GRH is a juggernaut. Nay, a keystone. Now number theory can get tidier and more user-friendly.

comment 1w ago · link · parent

Sure. But doesn't it still lack autodiff, quaternions, etc?

comment 1w ago · link · parent

Is there a way to support varying the meaning of "+" etc without introducing a lot of complexity? I suppose if Zig had nested functions, and the ability to define a nested function called "+", then you could have name shadowing instead of "overloading".

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 1w ago · link · parent

The more code, the more worry; the more workers, the more theft; the more AI, the more sorcery; the more flesh, the more worms.

The ancients knew it all along!

comment 2w ago · link · parent

> correlated to

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

In my experience they write an informal proof first, check it without Lean, and only then turn it into Lean code. That last step sometimes takes them much longer than checking their proof without Lean, which is a problem humans have as well. What they're truly bad at, however, is explaining their proofs. Until they improve at that, we'll have to keep resorting to Lean to check whether they solved something correctly.

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 2w ago · link · parent

That's not what "attention" means.

> it’s not going to create novel insight beyond the arguments made from compressed snapshots of existing knowledge

So all of the maths breakthroughs were not novel?

comment 2w ago · link · parent

Wondering how that compares to dependent types.

comment 2w ago · link · parent

I personally think that Pratt is a combination of recursive descent and precedence-climbing. Maybe even the combination? Those ideas are individually older than Pratt.

comment 2w ago · link · parent

"Pratt can't parse statements" - can't you treat ';' as an operator whose meaning is "then"? You can then read "DOTHIS(); DOTHAT()" as an expression.

comment 3w ago · link · parent

How are people finding Fil-C? It's designed to avoid things like this.

comment 3w ago · link · parent

What if people become increasingly dependent on their government’s spending beyond its means - so that they suffer more harm once the deficit is reduced than had it never been raised in the first place - making it impossible to rein in the deficit when borrowing costs rise and the debt is high?

comment 1mo ago · link · parent

They are controversial because supporting them raises matching time to O(2^n) in the worst case - which is dangerous - while not supporting them enables matching time to be O(n) in the worst case. And a user might not be aware of that danger.

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

I think some languages do have a library-style version of regex. But the function names aren't consistent between the different libraries. Maybe then we need to put on special goggles to make them look the same.

comment 1mo ago · link · parent

Backreferencing inside of a regex (which is a way to find repeat occurrences of a substring) is a very controversial feature that some regex engines intentionally omit, while most others support it only grudgingly. Supporting backreferences opens up a big can of worms: Most regex engines will fall back to a slow, poorly optimised algorithm if they ever encounter backreferences.

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

Autodidact here. Beyond just the five core quantifiers

  .
  |
  ?
  *
  +
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

Really cool. Do you teach people the mechanics, like what the app shows? Because I wonder if that actually makes it harder. I'm wondering about where the hard bits are, given that it all boils down to just:

  "|", 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

It's code golf played with Turing machines. The game is: Make the smallest Turing machine whose runtime is bigger than Graham's number, but still terminates. The record right now is 10 states. At least 6 states are needed because any Turing machine with at most 5 states, that finishes running, has a runtime of at most 47,176,870, which is less than Graham's number. In summary:

  BB(10) > G > BB(5) = 47,176,870.

comment 1mo ago · link · parent

Dijkstra's jeremiads were about promoting "formal methods" as the One True Method for software construction. Maybe there's a future for formal methods, but it wasn't ready in the past. No one was arguing about semaphores.

comment 1mo ago · link · parent

Dijkstra was an academic with no skin in the game.

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.

comment 1mo ago · link · parent

The constants can be made lower. If we didn't know about the galactic algorithm beforehand, we couldn't begin to do that.
12345
73