Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
stephencanon
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
91.
▲
by
stephencanon
2y ago
strlcpy is the worst C string routine except for all the others.
92.
▲
by
stephencanon
2y ago
> It has to not be impractical to go through this ritual after skiing (try doing this with two or three young, tired kids in tow) Anecdotally I do all the routine waxing and edge maintenance on my family's (wife and two kids) skis,
93.
▲
by
stephencanon
2y ago
What are they going to learn? That’s it’s by far the best fixed-size approximation to real number arithmetic we have, sufficient for essentially all of our scientific and engineering needs?
94.
▲
by
stephencanon
2y ago
There is no such thing as “supply and demand” in a market dominated by collusion.
95.
▲
by
stephencanon
3y ago
There’s also engineers’ belief that they have learned the language despite only half-knowing it at best.
96.
▲
by
stephencanon
3y ago
> Yes: OSX on ARM64 has alignof(max_align_t)==8 and alignof(__int128)==16. And malloc only provides 8-byte alignment, so if you're using types that require 16-byte alignment, you have to call aligned_alloc. Also, the stack is only 8
97.
▲
by
stephencanon
3y ago
It's actually worse than that; from what I can piece together of the history: 1. the people at Intel who originally implemented `_BitInt()` made `_BitInt(128)` eight-byte aligned 2. the x86_64 psABI document was updated to agree
98.
▲
by
stephencanon
3y ago
_BitInt(128) is a C(23) type and has all of the same problems plus a few others.
99.
▲
by
stephencanon
3y ago
The rolling method is really exactly the same thing, but some people find it easier to think about reaching in for the corners after rolling, and you don't need to be tall enough to let it fall down into place (wife is 5'4" a
100.
▲
by
stephencanon
3y ago
The standard joke here is that the researcher objects to the need for a trial, saying “that would be condemning half my patients to death!” and a medical student asks “which half?”
101.
▲
by
stephencanon
3y ago
The readme doesn't explain much, but the introduction to the paper itself is quite approachable. As for whether it's groundbreaking or not ... it's a neat readily-accessible constant-factor improvement for area-constrained fi
102.
▲
by
stephencanon
3y ago
It doesn't matter how far down it is. It has some constant index independent of the problem size, so for "large enough" problems, it's just a constant factor on the time required.
103.
▲
by
stephencanon
3y ago
The handwavy explanation is you can enumerate a list of all the turing machines. You run the first one for one step, then you run the first two for two steps, then the first three for three steps, etc, until one of them halts. If P=NP, this
104.
▲
by
stephencanon
3y ago
> (which is a taller order than just proving P=NP) A proof that P=NP immediately gives a polynomial-time algorithm for NP complete problems via universal search. It’s so wildly impractical as to probably not change anything, but it _is_
105.
▲
by
stephencanon
3y ago
https://en.wikipedia.org/wiki/Remez_algorithm It’s a very simple iterative algorithm, essentially the dumbest thing that could possibly work (like most good algorithms). It fails to converge for functions that have pol
106.
▲
by
stephencanon
3y ago
Yup. College towns are especially great for this, because college kids walk all over the place, so there's a critical mass of pedestrians and drivers expect them. We live in Hanover NH, and packs of six-year-olds run all over our neigh
107.
▲
by
stephencanon
3y ago
Most grad students live in apartments rented from private landlords, not university housing.
108.
▲
by
stephencanon
3y ago
How often do you clean your sink? How often do you clean your car?
109.
▲
by
stephencanon
3y ago
Biggest potential weakness seems like the ability for the merging party to strategically collapse districts such that two legislators from the opposing party are made to reside in the same district, creating a new district with no incumbent
110.
▲
by
stephencanon
3y ago
If njuffa and edp have weighed in on a floating-point question, it is canonically answered (if you're really lucky you might sometimes get one of the French to join in, but any combination of 2 suffices).
111.
▲
by
stephencanon
3y ago
He’s a rescue, so who knows, but he’s definitely maine coon adjacent.
112.
▲
by
stephencanon
3y ago
Yes and no. We had a smallish (8lb) cat who brought us a dead rat every day for years. We had a graveyard with thousands of rat skulls. These were “normal” sized rats though (~0.5 lb), not enormous subway rats. Our current (20lb) cat only h
113.
▲
by
stephencanon
3y ago
Right. They can always release them from the noncompete if they find it onerous.
114.
▲
by
stephencanon
3y ago
In our case, the agent accepted a lower commission because both they and the seller got more money from our offer then they would have from the competing offer which had a buyer's agent. We didn't negotiate that though, because th
115.
▲
by
stephencanon
3y ago
We’ve bought two houses, sold one, bought a lot to built a house for my parents. We’ve never hired a real estate agent. The seller had an agent for the first transaction, none of the other counterparties had an agent. Paying a lawyer by the
116.
▲
by
stephencanon
3y ago
Coed team sports are a great way to avoid this, since there’s necessarily a rough gender balance. Join your local ultimate frisbee summer league or whatever.
117.
▲
by
stephencanon
3y ago
I'm very confused by the talk of "teraflops". Author references linpack (which is a double precision benchmark), but then says "if you really care about teraflops, you need a graphics card" and installs a 4070 Ti, w
118.
▲
by
stephencanon
3y ago
They had outstanding product-market fit. The _only_ problem is that the market of people who have juice bags and do not know how to open them (I.e. two year olds) do not make purchasing decisions.
119.
▲
by
stephencanon
3y ago
And less than that as you mover higher-end!
120.
▲
by
stephencanon
3y ago
Swift ran into similar difficulties with noalias. Happily the bad cases I was tracking that inhibited optimizations were resolved in the last year or so. There’s probably still some lurking corner cases, but the overall situation is pretty
More ›