Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
nwallin
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
16 ms
·
121.
▲
by
nwallin
3y ago
You should run your critical loops through perf or a similar tool and get statistics for branch misprediction. If you have a lot of misprediction, you should think about doing branchless stuff. If you don't have a lot of misprediction,
122.
▲
by
nwallin
3y ago
EXIF is a binary format. I would expect it to just stuff a double in there. So 16 digits is what you get even if you need less. 32 bit floats aren't precise enough to store latitude/longitude coordinates.
123.
▲
by
nwallin
3y ago
Theirs not to reason why. Theirs but to do and die. Likely there's some SSA going on that recons the value from the pointer is undefined. So any value will do. And whatever value happens to be in eax is a perfectly cromulent value; mig
124.
▲
by
nwallin
3y ago
c code: #include <stdlib.h> int foo(int x) { int* p = malloc(1024); x = p[x]; free (p); return x; } assembly: foo: # @foo ret h
125.
▲
by
nwallin
3y ago
A matrix multiplication is just a handful of multiplications and additions, which are very fast. If your CPU has FMA instructions, that will cut the number of operations approximately in half. If you do raw trig with angles and such, chance
126.
▲
by
nwallin
3y ago
Burning man is in the Black Rock Desert. The Black Rock Desert is an endorheic basin. There are no outflows. The lake bed itself is 1,000 sq miles. The drainage that drains into the lake bed is 11,600 sq miles. An inch of rain isn't a
127.
▲
by
nwallin
3y ago
Yeah. It is now. It didn't used to be though. People would wax poetically about how pythonic some codebase was and sing the praises of idiomatic python. There was an ideological war between Python ("there should be one--and prefer
128.
▲
by
nwallin
3y ago
I use std::variant for all that. Why are you assuming I don't use them? Sum types are great.
129.
▲
by
nwallin
3y ago
> Side note: Someone brought up structured bindings in a comment, as if this fixed the issue. Structured bindings are a great example of the half-way fixes that proponents of modern C++ love to cite. Structured bindings help some, but if
130.
▲
by
nwallin
3y ago
> std::tuple seems great until you realize that most PLs that support tuples just do "(,)"s for them, in creating, binding, and naming the type. This C++ code compiles and does what a casual reader would expect it to do:
131.
▲
by
nwallin
3y ago
> Today, most fonts in practical use are open source fonts. When someone chooses a font for a web project, I think you've got your HN blinders on. There are two types of projects: Projects where the font doesn't matter, and pro
132.
▲
by
nwallin
3y ago
> I tried looking at the Pixel for the Vanilla Android experience and long support, yet it seems like people are fighting battery life issues all the time. I have the opposite experience. A few months ago a friend of mine had to buy a ne
133.
▲
by
nwallin
3y ago
> Between smartphones having conversational agents that can do math to things like tax/tipping calculators being in-built into systems, does the "average joe" need algebra. Mathematical literacy isn't just about being
134.
▲
by
nwallin
3y ago
To add to your point, this benchmark would not have run on Skylake at all. It uses the _mm512_maskz_compress_epi8 instruction, which wasn't introduced until Ice Lake.
135.
▲
by
nwallin
3y ago
> I see scan lines (of the NTSC/PAL variety) when I zoom in. Color vector monitors still have discrete phosphors. You're not seeing discrete scanlines, you're seeing discrete lines of phosphors. > I also don’t see how t
136.
▲
by
nwallin
3y ago
The primary reason Germany was so reliant on horses for logistics isn't that they weren't able to build cars, but that they didn't have enough fuel. Germany was blockaded by sea and none of the land they had captured had sign
137.
▲
by
nwallin
3y ago
"Effectively zero" times infinity is infinity. Infinity is like... really big.
138.
▲
by
nwallin
3y ago
So forget about waves for a second. Forget about spacetime. Forget about general relativity. The force of gravity is correlated to the mass of the object divided by the square of the distance to the object. The higher the mass, the lower th
139.
▲
by
nwallin
3y ago
SIMD. Instead of having one value in one register, you have several values per register. (usually a small power of 2. SSE is 4 floats per register. AVX512 is 16 floats per register.)
140.
▲
by
nwallin
3y ago
You say this as if the split control setup is a feature and not a bug. Can you go into why this is the case? For me at least, it seems like the condition where both pilots are inputting control on the stick or rudder is always an error co
141.
▲
by
nwallin
3y ago
No. They're not in an overlay. They're in the primary, central repo. maven 3.9.4: https://packages.gentoo.org/packages/dev-java/maven-bin gradle 8.2.1: https://packages.gentoo.org/package
142.
▲
by
nwallin
3y ago
> Package managers are useless for getting the latest maven, gradle, or ant version. My package manager has the latest versions of maven and gradle. Ant is behind; upstream is up to 1.10.13 but my package manager only has 1.10.9.
143.
▲
by
nwallin
3y ago
He deliberately shitcanned his system to generate clicks. What are people going to say if an uppity linux fanboy youtuber shows himself deleting system32 and then crying about Windows is unusable for non-Windows gurus for daily driving? The
144.
▲
by
nwallin
3y ago
> A 3/4-ton pickup vs your toyota camry is MAYBE a 2x increase in damage to the road. Your source states that relative road damage between two vehicles is the forth power of the ratio of their weights. The base curb weight of a For
145.
▲
by
nwallin
3y ago
> Unsafe optimizations should not be done, such as automatically using FMA, I agree with most of what you said, but automatic use of FMA is not an unsafe optimization. If FMA breaks your code, your code was always broken in the first pla
146.
▲
by
nwallin
3y ago
> I may have missed something but I couldn’t figure out how to get the multi-threaded performance out of Python Multiprocessing. The answer is to use the python multiprocessing module, or to spin up multiple processes behind wsgi or what
147.
▲
by
nwallin
3y ago
> IIRC there were 64 64-bit registers. I had done some x86 32 assembly, and I hated always having to push onto the stack because all they had was eax ebx ecx. Well it wasn't that bad. The Alpha had 31 integer registers and 31 floa
148.
▲
by
nwallin
3y ago
The pigeonhole principle does not stipulate which hole the extra pigeons have to appear in. Only that at least one hole must have more than one pigeon. It does not stipulate that all holes have to have pigeons; you can have 999 empty pige
149.
▲
by
nwallin
3y ago
This is Gentoo's whole shtick. It's the core feature. It's been supported since day 0, over 20 years ago. I'm honestly a little amazed that more people don't either use Gentoo or adopt its model, given the smorgasbo
150.
▲
by
nwallin
3y ago
> For one, it is more complicate to keep track of which of the many shared libraries on a typical system are used by which application. It is common that the same library occurs multiple times in different versions, built by different pe
More ›