Better HN
topnewbestaskshowjobs
Log inSign up

Maxatar

1,948 karma · joined Apr 21, 2024 (2y ago) · 736 submissions

Submissions

comment 3h ago · link · parent

Unfortunately we can't deduce the correct value from the PDF because it does not contain the data set, but what it does contain is the methodology wherein they take a median of wait times to see a specialist (X) and then a median of wait times to get treatment (Y) and then to add these two medians together to get what they claim is the total median wait time.

That is... they think Median(time for specialist + time for treatment) = Median(time for specialist) + Median(time for treatment).

Anyone with even a basic understanding of statistics knows this is not true, and in fact these guys likely know it's not true as well.

comment 3h ago · link · parent

This is a laughable study that makes a basic statistical mistake. Given the institute behind it, I'm inclined to believe the choice of methodology was deliberate.

The authors calculate a weighted mean of medians and misrepresent it as the median patient wait time. To make matters worse, they add two separately calculated statistics together, despite the fact that medians are not additive.

While the Mean(X) + Mean(Y) = Mean(X + Y), you can't apply that same property to the median. Median(X) + Median(Y) != Median(X + Y), and yet this study makes that very mistake to erroneously come to the 31 week figure.

The study appears intended to give the impression that Canadians typically have to wait approximately 31 weeks to receive health care, when the actual methodology establishes nothing of the sort.

comment 5h ago · link · parent

An assert goes into the body of a function (.cpp) like this:

    int foo(int x) {
      assert(x != 0);
      return 1 / x;
    }
Because the assert goes into the source file, its behavior is uniquely determined by how that single source file is compiled, so any calls to foo will get consistent behavior.

Contracts are meant to go into header files (.h or .hpp) like this:

    int foo(int x) pre(x != 0);
Because it goes into the header file, such as foo.h, a source file such as bar.cpp can include foo.h with contracts disabled, while baz.cpp can include foo.h with contracts enabled, which means that there is not one unique and unambiguous implementation of foo.

There is no agreed upon solution on what to do in this case. There are many options, you might think bar.cpp gets one version of foo while baz.cpp gets another, you might think that however foo.cpp gets compiled is the definitive version that all others are required to use, you might think if one source file disables contracts they all disable them... every proposal I listed comes with a very deep and entangled web of issues that ends up having unintended consequences and some very serious and complex trade-offs that are not initially obvious.

As things currently stand, with the C++26 as proposed, doing this is an ODR-violation and is not valid C++. It's not simply undefined behavior, it's illegal, what is technically referred to as an IDR (ill-formed, no diagnostic required).

comment 19h ago · link · parent

The issue is more specific, namely that in C++ most code uses header files, and contracts must be specified in the header file, so that it creates the possibility where the same function can be compiled with and without contracts on and off.

This is known as an ODR-violation, where the same function is compiled with two or more definitions, and there's no rule in C++ to pick which definition should be used. One way to resolve this would be to introduce a rule to pick between these definitions (always pick the function with the contract check disabled, or pick with it enabled), but no one could agree on which rule to use and even if they did it would not work for shared libraries.

There is no doubt that once contracts get standardized, compilers will offer a flag to disable them categorically, ie. disable all of them across all definitions. That won't be an issue because then all definitions will be consistent. But the original proposal allowed flipping contracts on or off per "source-file" with the hopes that developer discipline would ensure that people were consistent about its usage.

comment 20h ago · link · parent

Sorry why do you have a Box wrapping an Rc? That doesn't seem common at all. You either use Box or Rc, but I can't see many use cases for both. But even if you do have a scenario where you use Box and Rc, then how would that fairly idiosyncratic use-case be different in C++? You want unique ownership of a shared resource (???) in Rust but somehow in C++ you don't want that for the same or similar use-case?

I can sympathize with some of the things you call tedious in Rust, like the async issues, but I can't see how those wouldn't also be tedious in C++ using C++ coroutines, which are full of footguns and implicit lifetime issues. For Send/Sync, in situations where you need to explicitly mark a type as Send/Sync, in C++ you have the exact same issue as in Rust, but in C++ you have no way to communicate that property formally, so either you document that so people know if an operation is thread-safe, or you don't document it and people have to inspect the source code or worse, just guess.

Are you suggesting that's better than enforcing the property in the type system? Maybe if you're a solo-dev working on your own mini-project, it might be marginally better, but I'm not convinced.

comment 1d ago · link · parent

The rules and process are defined here:

https://gcc.gnu.org/onlinedocs/gcc/Arrays-and-pointers-imple...

comment 1d ago · link · parent

On the contrary, the vast majority of C programmers don't know C well enough to understand the difference between integers and pointers.

Using a tool doesn't mean understanding that tool, just means you know how to follow some repetitive processes over and over again.

comment 1d ago · link · parent

Among math circles there overwhelming consensus is that Masullo's proof is not remotely close to ready. Sadly as of the posting of his proof, a lot of it has been subject to formalization to verify if it's valid and as of today it contains 270 false claims, all of chapter 5 is invalid, it contains numerous unresolved steps and massive gaps in arguments.

This isn't like the paper just needs to be cleaned up and polished. A good chunk of the actual proof is simply not there and while it's certainly ambitious and also a credibly body of work, there's no reason to think that Masullo's work on this will pan out or that he's even headed in the right direction.

Too many people are talking about Masullo as if he basically has the proof in hand and just needs to tidy up some details here and there, similar to say when Andrew Wiles first published his proof of Fermat's Last Theorem (in which some flaws had been pointed out that Wiles had to correct) but that's simply not the case here. This work is so incredibly far from complete and it's not at all evident among the mathematical community that it will even lead to a proof of RH.

comment 3d ago · link · parent

>Getting a government official to corruptly ratify your illegal decisions does not immunize you from responsibility.

This is simply untrue and there is a well established legal defense known as "entrapment by estoppel" to protect a defendant against an act which has been explicitly sanctioned by a government official.

https://en.wikipedia.org/wiki/Entrapment#Entrapment_by_estop...

comment 3d ago · link · parent

I looked over that article and also had an LLM summarize it and it doesn't mention anything criminal about nVidia or Jensen Huang. The only references to crime are to Megaspeed and that nVidia's sales to Megaspeed were explicitly approved by The Department of Commerce.

So what obvious criminal activity were you claiming about either nVidia or Huang?

comment 4d ago · link · parent

Your example contradicts your point. Airliners are still subsonic after an extended period of time, and hence based on that past performance it's a good indicator (although not definitive) that they will remain subsonic for an extended period into the future.

In general, past performance is actually indicative of future results. It's not definitive, and some phenomenon are random, but the trajectory of technology over time is not some random fluke that just has coincidentally trended by random chance.

comment 4d ago · link · parent

That's a general argument but doesn't apply Anthropic's Lean formalization. There is already a well established Lean statement of the RH in Mathlib that has been pretty rigorously verified, so a proof of that statement is indeed a proof of RH. The only opportunity for failure is that there is a soundness bug in Lean itself which this formalization leverages. The answer to that is that there isn't one single Lean, there are multiple implementations of Lean and each of them have their own opportunities for bugs, so it's possible one bug is common to all of them and that this proof makes use of it, but that's incredibly unlikely.

comment 4d ago · link · parent

Do you NEED 15M lines? No, it's almost certain this proof can and will be reduced, but the goal of an initial proof of a theorem like this isn't conciseness, it's to actually... prove the theorem.

Fermat's Last Theorem was initially proven in Lean in September and that proof required 13M lines, it has since been reduced to 2M lines and it will likely be reduced even further. Anthropic claims they can reduce it down to less than half a million lines by doing similar techniques to what software developers do... find common and reusable snippets and factor them out instead of repeatedly proving similar sub-theorems over and over again. There are also opportunities to replace lengthy sequences of explicit reasoning with automated tactics, reuse existing mathematical libraries including the Lean standard library, and reformulate arguments at a higher level of abstraction.

comment 1w ago · link · parent

Both longitudinal and transverse waves obey the principle of superposition, yet superposition alone tells us nothing about whether propagation speed is the same in every direction. You're introducing additional properties of electromagnetic waves to justify a conclusion that you originally attributed to superposition.

Superposition has nothing to do with this and does not give any insight into whether the speed of light is the same in all directions.

comment 1w ago · link · parent

I love your enthusiasm and I hope you enjoy the rabbit hole as much as I did when I went down it.

https://en.wikipedia.org/wiki/One-way_speed_of_light

comment 1w ago · link · parent

This is a subtle misunderstanding. As you approach the speed of light, physical processes including clocks or other time measuring devices appear to slow down relative to an observer. Exceeding the speed of light, at least as a conceptual generalization, doesn't mean that you end up going back in time and experiencing past events like Back to the Future, rather it would allow for future events to influence the outcome of past events, what is called retrocausality [1].

Retrocausality is not the same as time travel. With time travel it's as if you get to go back in time and reexperience things that happened in the past, which is not what faster than light travel implies. Retrocausality is more about things happening in the present that are influenced by future events, as opposed to causality where only past events can influence the outcome of future events.

[1] https://en.wikipedia.org/wiki/Retrocausality

comment 1w ago · link · parent

Not sure how superposition has any role in this. Sound waves also obey the principle of superposition but sound travels faster downwind than upwind, even though the medium is the same in both directions. So superposition clearly doesn't establish that wave propagation speeds must be identical in all directions.

comment 1w ago · link · parent

Usually when people are introduced to the issue of measuring the one-way speed of light, one of the first ideas that comes to mind is exactly what you suggest, and it's a very good first thought, but of course it doesn't work since implicit in your approach is an assumption about what the one-way speed of light already is.

As you "slowly" move the two clocks away from one another, the two clocks will no longer be synchronized due to time dilation, and so you need to account for time dilation, but in order to account for time dilation you need to already know what the one-way speed of light is.

I put "slowly" in quotes because why would it possibly matter whether you move clocks slowly or quickly? It's the principle of the matter that is at issue, not the practicality.

comment 1w ago · link · parent

Not just light, it's impossible to know if the speed of anything is constant in all directions. The so called one-way speed of an object depends on a synchronization convention used for clocks at different locations. Different conventions can produce different one-way speeds while leaving all other observable physical phenomena unchanged.

comment 1w ago · link · parent

They are both correct and used even among journalists.

comment 1w ago · link · parent

Fog Creek of 2012 was a pretty different company from the Fog Creek in the early 2000s. While Joel was still technically in charge he had mostly delegated responsibities and spent almost all of his time working on Stack Overflow.

comment 2w ago · link · parent

Fedora doesn't do LTS releases, but they released the patched kernel two days before the CVE was publicly announced:

43: https://bodhi.fedoraproject.org/updates/FEDORA-2026-bc7bd292...

44: https://bodhi.fedoraproject.org/updates/FEDORA-2026-7b153c4c...

Fedora 45 was only just recently release and Fedora 42 and earlier will never get an official patch since those are no longer maintained.

comment 2w ago · link · parent

To the extent that you've made specific claims, they are false. It's hard to argue with vague claims about tangentially fixing a security issue but at any rate just looking over LTS releases, they absolutely and frequently do backport security issues to LTS releases. They don't do it for every security issue, but the idea that they rarely do it or only do it as part of a tangential change is once again... categorically false.

comment 2w ago · link · parent

Ubuntu is the only Linux distro with an LTS release that has not patched this issue, so saying this is a problem with LTS distro kernels in general is categorically false.

comment 2w ago · link · parent

The DeLorean wasn't taken seriously when Back to the Future was released either... it looks like a cool car now, mostly because of the movie, but back then it was considered a joke of a car and the company went bankrupt less than two years after it began production.

comment 2w ago · link · parent

I have no idea how to parse your comment or how it relates to what I said.

All I said is that you can remove undefined behavior from signed overflow without having to introduce checks to every arithmetic operation and without having to specify any particular behavior or outcome. The technical term for this is "unspecified behavior" and the consequence of making overflow unspecified behavior is that the consequences of overflow, while still unspecified, must be bounded in space and time, unlike undefined behavior whose consequences are not required to be bounded in either space or time.

12345
25