Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
charleslmunger
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
17 ms
·
1.
▲
by
charleslmunger
15d ago
https://finance.yahoo.com/news/warren-buffett-decries-accoun...
2.
▲
by
charleslmunger
24d ago
I think that specific issue was a huge mistake, because it means the interruption, which was already messy, is now unusable. First, you can get deadlocks as interrupt now calls arbitrary code to close channels. Second the interruptee thread
3.
▲
by
charleslmunger
25d ago
It needs a comment for sure. I always write a little helper utility to manage that when I need it.
4.
▲
by
charleslmunger
27d ago
The first is, annoyingly, a relatively common problem and solution when dealing with GC lifetimes in tests. Few interpreters/JITs want to generate extra instructions to null out stack slots or pre clobber registers to ensure something
5.
▲
by
charleslmunger
28d ago
They were not serious about their sandboxing. Bugs in artifactory allowed escape, but they broke out of their Linux namespace/user by exploiting the kernel with an existing public cve. Sharing a kernel like that is not a serious barrie
6.
▲
by
charleslmunger
1mo ago
And if you want to write a templated data structure without actual templating or fancy macros, doing so with force-iined functions calling function pointers that are constant at the call site is a great way to do it. Unfortunately it's
7.
▲
by
charleslmunger
1mo ago
>today you could set up a system where the whole process is tap two phones together with nfc and confirm This was actually possible in 2011 or so, and a friend and I implemented it for a school project. How well the ux works depends on w
8.
▲
by
charleslmunger
1mo ago
Yes but that space would have existed anyway for a window of that size regardless of its contents.
9.
▲
by
charleslmunger
1mo ago
A weather widget using 8 bit color plus alpha on a 4k display show three full size images in 100mb. But I suspect that's not the ux we're talking about here, and a widget style system has no excuse.
10.
▲
by
charleslmunger
1mo ago
It's a problem for language specifiers, basically. The behavior is undefined in the standard; to rely on it you either need your implementation of the standard to define it themselves, or you need to bet that there is no possible seque
11.
▲
by
charleslmunger
1mo ago
From a hardware perspective this is correct. From a language perspective it's UB, and unless your compiler has defined that UB, it doesn't matter what the hardware's behavior is unless you're writing assembly.
12.
▲
by
charleslmunger
2mo ago
This is overstated in value; on arm systems with LSE it's faster to use that even for weak operations than to use ll/sc. Even if you are limited to ll/sc the compiler may not put your cas-loop body into the ll/sc region
13.
▲
by
charleslmunger
2mo ago
I agree you can't trust your compiler, but you can control its behavior more reliably with __builtin_expect_with_probability https://github.com/protocolbuffers/protobuf/commit/9f29f02a3...
14.
▲
by
charleslmunger
3mo ago
Michael Bloomberg
15.
▲
by
charleslmunger
3mo ago
I mean this is sort of true in that windows is constantly introducing trash, but I've run into all kinds of nonsense: 1. Amd HDMI 2.1 fiasco and adapter workarounds -> debugged the adapter compared to the displayport spec pdf, email
16.
▲
by
charleslmunger
4mo ago
I mean... You can turn a one byte out of bounds write into code execution. https://daniel.haxx.se/blog/2016/10/14/a-single-byte-write-o... And if you get code execution, then you by definition have "
17.
▲
by
charleslmunger
4mo ago
Isn't the proposal from the parent comment to define the behavior?
18.
▲
by
charleslmunger
4mo ago
I got a measurable improvement from eliminating a null pointer check within the last week. Billions of devices have arm little cores, and the extra branch predictor pressure and frontend bandwidth from those instructions can be significant.
19.
▲
by
charleslmunger
4mo ago
Wouldn't that make a compiler that emitted bounds checks violate the standard, since it would not be emitting the actual memory operations if you deref out of bounds?
20.
▲
by
charleslmunger
4mo ago
Is that really a meaningful distinction? Once you are addressing arbitrary values you are firmly in the realm of "anything happening" in practice, but you've now given up optimization opportunities. As has been repeatedly dem
21.
▲
by
charleslmunger
4mo ago
The Synaptics VMM7100-based adapters only support VRR on older firmware versions with bugs. The Chrontel CH7218 is the most reliable but still also suffers blackouts during VRR. ParadeTech PS196 adapters advertise VRR support but their DPCD
22.
▲
by
charleslmunger
5mo ago
Yeah arm little cores are a very different story - they aren't superscalar out of order architectures, they can dispatch up to two operations per cycle. Big cores are more like that dispatching 8 or more operations per cycle, but they&
23.
▲
by
charleslmunger
5mo ago
The first implementation I encountered was a linear search, starting at the last-found field. Empirically it performed better to do a binary search with early exit and branchless bounds selection, I think due to branch predictor pressure. T
24.
▲
by
charleslmunger
5mo ago
Yeah namespaces and public/private would be quite nice, but C doesn't have them, so they get hacked on via macros and prefixing. The syntax was not the hard part of working or analyzing this code, though.
25.
▲
by
charleslmunger
5mo ago
I've spent some brainpower on binary search and have not been able to beat this: https://github.com/protocolbuffers/protobuf/blob/44025909eb7... 1. Check for dense list O(1) 2. Check upper bound 3. Const
26.
▲
by
charleslmunger
5mo ago
I had fun exploiting this to detect the falling convention used by some code at runtime - there were two different options depending on OS version; one passed a jnienv* as the first param, the other did not. So if I called it with 0, I co
27.
▲
by
charleslmunger
5mo ago
>Maintaining both MV2 & MV3 support isn’t easily sustainable long term when you factor in the need to prioritize other features. There is no feature Firefox provides that is more differentiating than ublock origin. As long as pages l
28.
▲
by
charleslmunger
5mo ago
If you can trigger address sanitizer from input outside the program, and the program may interact with untrusted input, isn't that always worth reporting and fixing?
29.
▲
by
charleslmunger
6mo ago
>With Kotlin/Spring Boot, compilation is annoyingly slow. That's what you get with modern languages and rich syntax. This is because the kotlin compiler is not written in the way people write fast compilers. It has almost no ba
30.
▲
by
charleslmunger
7mo ago
The default Gboard keyboard has settings for always showing the number row, or only showing it when entering a password. There is also a setting for the "suggestion strip" under "corrections & suggestions". You can a
More ›