Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jmgao
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
61.
▲
by
jmgao
5y ago
This is a worthless statement. Do you examine all of your generated machine code to ensure that it generates correct code? Any compiler that you cannot trust to inline 3 for strlen("foo") is not one you should trust to compile any
62.
▲
by
jmgao
5y ago
A strlen of a compile-time constant, which will certainly get turned into a constant by the compiler. It does not get the length of the input string.
63.
▲
by
jmgao
5y ago
That code is older than C++11, let alone C++17. Also, your proposal isn't as efficient, since it calls strlen on construction of string_view (not that cost of parsing command line arguments is going to be measurable).
64.
▲
by
jmgao
5y ago
> Or for that matter, Wooting and anything they liked as much or better? I got my Wooting 2 HE yesterday, and it feels great, but I think I still prefer the Cherry MX low profile speed switches that I bought by accident (I thought I was
65.
▲
by
jmgao
5y ago
Yep, that's the downside of syscalls only giving you a finite set of errors they can return, instead of being able to say "couldn't find DT_INTERP '/lib/ld.so.1'"
66.
▲
by
jmgao
5y ago
I think you're off by a lot, the black square at the top left is probably a QFN-24 (i.e. ~0.5mm pin pitch), which would mean it's actually an 0402.
67.
▲
by
jmgao
5y ago
The "some limitations" there was mostly that original green threads implementation in Java lived on a single OS thread, so you could only use one core. Presumably that's changing this time around?
68.
▲
by
jmgao
5y ago
There are opt-in programs that mandate it (security clearances, etc.), but Americans aren't generally required to register their fingerprints.
69.
▲
by
jmgao
5y ago
> There's nothing wrong with internal combustion per se. The majority of energy in the combusted fuel goes right out the tailpipe: vehicle engines are generally only about 25-30% efficient. Combined cycle power plants that capture e
70.
▲
by
jmgao
5y ago
Why not? The vast majority of people who ate dinner at Google immediately went home afterwards. My daily routine was to show up at 11, check email, eat lunch, work until 6:30ish, eat dinner, and then go home.
71.
▲
by
jmgao
5y ago
Well, for starters, anti-aliased text?
72.
▲
by
jmgao
5y ago
I was over in Android, where "borgmon" and "readability" were mythical concepts, and it was still hilarious.
73.
▲
by
jmgao
5y ago
Looking at the federal court decision [1], it looks like the patent was predated by an implementation that was demonstrated at SIGGRAPH, and apparently the creator of that gave the source code to the plaintiffs?! "Lau further testified
74.
▲
by
jmgao
5y ago
The receptacle housing generally prevents you from bending the connector tongue, and even if you manage to do it somehow, AFAIK it's almost never FR4 in the receptacle (although USB-C receptacles printed directly on 0.8mm PCBs work gre
75.
▲
by
jmgao
5y ago
> I was taught there is countably and uncountably infinite. Integers are countably infinite because the number of integers between any two numbers if finite. Real numbers are uncountably infinite because there are infinite numbers betwee
76.
▲
by
jmgao
5y ago
If anyone at Dropbox is reading this, https://dropbox.github.io/dbx-career-framework/ and https://dropbox.github.io/dbx-career-framework/overview.html have the same content, but the page title is
77.
▲
by
jmgao
5y ago
> I build things for a living and I like it when the code I specify is the code that's generated. Okay, then specify -O0 and enjoy your dumpster fire performance.
78.
▲
by
jmgao
5y ago
> You can use the `-march` flag for your compiler to target specific architectures, for instance -march=tigerlake or -march=znver3 Note that -march will use instructions that might be unavailable on other CPUs of the target. -mtune (whic
79.
▲
by
jmgao
5y ago
Because that's what they signed up for?
80.
▲
by
jmgao
5y ago
> Hard mode is good enough that I'd like to see some sort of distance metric to the nearest real story, to be sure the model isn't accidentally copying truth. Yeah, I ran into at least one example which basically regurgitated a
81.
▲
by
jmgao
5y ago
> Why didn't the makers of this price label just use a little 10 cent off the shelf microcontroller? I doubt price tags are made in sufficient volume to ever get the engineering costs of a custom microcontroller low enough to go bel
82.
▲
by
jmgao
5y ago
You could hypothetically have a situation where libc has an arbitrarily large internal FILE* buffer (instead of reading a block, looking for a newline, and copying everything over immediately), and then copies in reverse, corrupting data af
83.
▲
by
jmgao
6y ago
> KiCad copied this feature, and I was frustrated by the "inconsistent behavior" of the selection tool for years until someone finally explained it to me. I wonder how many people (myself included) learned of this behavior from
84.
▲
by
jmgao
6y ago
No, this one: https://en.wikipedia.org/wiki/1978_California_Proposition_13 Basically, home value for property taxes gets assessed once, when you buy the property, and it can only go up by inflation after that.
85.
▲
by
jmgao
6y ago
Not rolling back can be used to cheat too, by artifically delaying traffic while you're getting comboed to throw people's timing off.
86.
▲
by
jmgao
6y ago
There's generally not all that much point to rollback-style netcode in first person shooters, because you can just run asynchronously and do client-side prediction. If the prediction was wrong, it doesn't matter that much: you mig
87.
▲
by
jmgao
6y ago
The pricing is extremely non-competitive: $4/sq inch for a single copy. For my last PCB order (230mm x 145mm), JLCPCB was $67.18 for 10 boards, ordered on 2021-02-18 and delivered on 2021-02-23. Patchr is quoting this for 7 day product
88.
▲
by
jmgao
6y ago
> both The USA and Canada have been toying with the idea of dropping daylight savings time Individual states are toying with the idea as well [1], which presents a problem if one of the tzdata locations decides to change its rules. You&#
89.
▲
by
jmgao
6y ago
One of the problems with that is ring species: if A can mate with B, and B can mate with C, but A and C cannot mate, are A and C the same species?
90.
▲
by
jmgao
6y ago
> (and many shells have a legacy behavior of running a file as a script if it doesn't start with a #! line.) execlp and execvp are actually guaranteed to do this in POSIX-2017, although shells might also do this themselves if they r
More ›