Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jmgao
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
15 ms
·
121.
▲
by
jmgao
7y ago
Oops, yes, thanks!
122.
▲
by
jmgao
7y ago
Hilariously, the C standard requires this. C11 7.21.1.3: "The macros are [...] stderr, stdin, stdout which are expressions of type ‘‘pointer to FILE’’ that point to the FILE objects associated, respectively, with the standard error, in
123.
▲
by
jmgao
7y ago
Bluetooth devices often have problems when you're outside, in large rooms, etc. because there aren't any nearby walls for signals to bounce off of, so they're stuck with the lower SNR option of going straight through your bod
124.
▲
by
jmgao
7y ago
I've played around putting USB connectors directly on PCBs, and USB-A is way more lenient than USB-C. With USB-A, you can use basically any PCB thickness between the standard 1.6mm and 2.2mm, and it'll work well enough. USB-C'
125.
▲
by
jmgao
7y ago
badge plz
126.
▲
by
jmgao
7y ago
Changelist, it's perforce for "patch"
127.
▲
by
jmgao
7y ago
memset_s was added to C11 in an optional annex, and my understanding is that there are zero platforms that actually implement it. (Microsoft implemented an early draft of Annex K that doesn't actually include memset_s.)
128.
▲
by
jmgao
7y ago
You can get a Yotaphone 3 for $300 shipped from aliexpress, which is an Android phone with an OLED screen on one side, and an eInk screen on the other. The eInk screen is intended to be used with apps with custom support using a yota-specif
129.
▲
by
jmgao
7y ago
Because if you do that, you have to walk up the entire directory tree on every file operation.
130.
▲
by
jmgao
7y ago
posix_spawn is fine for that point in particular: it's encouraging the use of exec to regenerate state in servers that fork child processes as workers, so that accidentally leaking information from the child doesn't also leak it f
131.
▲
by
jmgao
8y ago
I think a more likely explanation is that HTTP/1.1 has been around forever (20 years!), while HTTP/2 is 4 years old, but about to be superseded.
132.
▲
by
jmgao
8y ago
And looking through the rest, two of them were "chemical leakage/fire in the cargo bay" and one of them was obvious pilot error ("fell off the runway").
133.
▲
by
jmgao
8y ago
I think it's pretty newsworthy that donations to the WWF are being directly spent on AK-47s.
134.
▲
by
jmgao
8y ago
That's what swiftshader does.
135.
▲
by
jmgao
8y ago
> In modern C++, wchar_t is a built-in fundamental type: http://www.cplusplus.com/reference/cwchar/wchar_t/ But with the slight problem that it actually means UTF-32 on everything on non-Windows (there
136.
▲
by
jmgao
8y ago
I disagree with a lot of the Google C++ style guide, but I disagree with many of the complaints in the post. > Although GSG does not forbid them categoricaly, it says to “Avoid using forward declarations where possible”. However forward
137.
▲
by
jmgao
8y ago
That's generally true already, though? It's pretty trivial to make a lock unusable: just fill it with super glue.
138.
▲
by
jmgao
8y ago
Some googling seems to indicate that they cancelled a fireworks display: https://nypost.com/2016/11/07/clinton-calls-off-election-nig...
139.
▲
by
jmgao
8y ago
> Also, most ISPs don't run CGNAT (except historically notoriously many in Italy, and by now also a few in the USA). My understanding is that essentially every mobile network in the world uses CGNAT. I happen to have AT&T, T-Mob
140.
▲
by
jmgao
8y ago
There's an optimization that targets specifically this case: identical code folding. It's not safe in general, because the standard requires that the different versions must have different addresses, but if the compiler can prove
141.
▲
by
jmgao
8y ago
It's TeX and you have Javascript off.
142.
▲
by
jmgao
8y ago
That's a bizarre conclusion to come to. The real motivation is that if you know apps are reflecting into your internal implementation details, and you want to make a change, you're stuck with a bunch of bad choices. 1. Break the a
143.
▲
by
jmgao
8y ago
I think they were referring to the "eight (2)".
144.
▲
by
jmgao
8y ago
I've been starting out with electronics tinkering, and this looks awesome! My username is jmgao.
145.
▲
by
jmgao
8y ago
It seems like there's reasonable evidence that this is true: https://www.ncbi.nlm.nih.gov/pubmed/28768080
146.
▲
by
jmgao
9y ago
There's at least one example of something that's even worse. Street Fighter: The Game: The Movie: The Game is as horrible as it sounds: https://www.youtube.com/watch?v=t4UdQVYkCZg
147.
▲
by
jmgao
9y ago
I'm partial to ShadyURL: http://www.5z8.info/start-trojan_u9a9hm_aohell.exe
148.
▲
by
jmgao
9y ago
https://www.brookings.edu/wp-content/uploads/2018/03/3_austi... for the actual paper
149.
▲
by
jmgao
9y ago
Reference counting isn't inherently more predictable than tracing garbage collection. Take the example where your thread is the last one to deref a gigantic object graph. You're stuck holding the bag on traversing the entire graph
150.
▲
by
jmgao
9y ago
glibc caches getpid, so you'll only see the syscall happen after the cache gets invalidated by a call to fork, clone, etc.
More ›