Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
kllrnohj
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
21 ms
·
421.
▲
by
kllrnohj
2y ago
> but it’s important to remember that this is still educational material. Then it should be educating on the applicability and limitations of things like this instead of just saying "reduced accuracy" and hoping the reader noti
422.
▲
by
kllrnohj
2y ago
> 40x faster trigonometry: Speed-up standard library functions like std::sin in just 3 lines of code. Huh, ok, let's see how... * By limiting the expansion to a few * terms, we can approximate `sin(x)` as: * *
423.
▲
by
kllrnohj
2y ago
Apple doesn't darken SDR to amplify HDR. They keep SDR the same brightness as it was before HDR showed up. It appears like SDR gets dimmer because of your perception of contrast, but it's not actually within a small margin of er
424.
▲
by
kllrnohj
2y ago
I think you're confusing which HDR is being used. HDR photography, the multi-expose combinations, was probably iPhone 5S but that still results in an SDR image. That's a completely different thing entirely. iPhones have not capt
425.
▲
by
kllrnohj
2y ago
> and I am thankful that Safari does not support it because good grief Safari absolutely will support HDR images if it doesn't already. It might not support this PNG hack, but it's inevitable that it'll support HDR HEVC or
426.
▲
by
kllrnohj
2y ago
> I agree with what you said, but I was trying to give the layman summary ;) Your layman summary is wrong, though. Brightness stays the same is the summary, whereas you said it gets darker. > MBPs are prone to this, XDR displays aren&
427.
▲
by
kllrnohj
2y ago
No, it literally isn't. It's literally doing the opposite, it increases the display brightness in order to show the HDR content. The SDR content is dimmed proportional to the increase such that SDR has the same emitted brightn
428.
▲
by
kllrnohj
2y ago
> my macbook screen literally goes darker AROUND the video , which gets brighter. I am not making this up This is almost certainly your eyes playing tricks on you, actually. Setup that situation where you know if you scroll down or whate
429.
▲
by
kllrnohj
2y ago
There's many factors in play from what your SDR white point is at, how your OS handles HDR video, what the content contains, and finally what your brain is doing. HDR10(+) & Dolby Vision, for example, encode content at absolute lum
430.
▲
by
kllrnohj
2y ago
> Screens can't often do full brightness on the whole screen so if you come across a video or image that is supposed to have a higher contrast ratio, the system will darken everything and then brighten up the pixels that are suppose
431.
▲
by
kllrnohj
2y ago
Trees and graphs serve useful roles, of course, but calling a linked list just a simpler version is a stretch. It'd be like calling an array a simplified B-tree. The simplification changes not just the implementation but also radically
432.
▲
by
kllrnohj
2y ago
You don't & generally shouldn't be in the first place, in any language. Linked lists are a very niche data structure, so generic code should ~never be using them. So it's a moot question. It's kinda like the compla
433.
▲
by
kllrnohj
2y ago
C++ is very definitely not just wrappers around C and it's pretty ridiculous to frame it like that. Or if you want to insist on that, then C doesn't exist, either, as it's just a few small abstractions over assembly.
434.
▲
by
kllrnohj
2y ago
> The success of C's ability to let programmers create layers of abstractions is why C is the foundational language of the OS I'm using, as well as the browser I'm typing this message in. What browser are you using that ha
435.
▲
by
kllrnohj
2y ago
In C++ you can also make the FD-equivalent of std::unique_ptr, like Android does with unique_fd: https://cs.android.com/android/platform/superproject/main/+/... It doesn't guarantee the issue n
436.
▲
by
kllrnohj
2y ago
> I'd love to see any sort of human rights justification for Tariffs against Canada though. It'd probably be the opposite - Canada/EU put tariffs on the US to offset their higher standards of living and environmental consi
437.
▲
by
kllrnohj
2y ago
> which mathematically is suboptimal, and has been recognized as such by nearly every economist since David Ricardo. That requires some initial assumptions that simply aren't true. Tariffs can and do serve a vital role to protect a
438.
▲
by
kllrnohj
2y ago
The best possible rationalization with extremely favorable glasses is that Trump is forcing a return to US manufacturing. The best version of this would incorporate things like a scheduled increase over time to give companies time to migrat
439.
▲
by
kllrnohj
2y ago
> if you can't see that manually adding safety-unproven Nobody is doing that, so maybe don't embarrass yourself like that? > without people's consent Also not happening. Consent was established when it was voted on, and
440.
▲
by
kllrnohj
2y ago
flouride naturally occurs in water all over the world, and if you don't want any chemicals in your water you should be drinking distilled water. Almost nobody does, because "chemicals in the water reeeeeee!!!" is just a mindl
441.
▲
by
kllrnohj
2y ago
> Most modern languages are multi-paradigm. [..] And modern Java. Modern Java is still very definitely OOP and not multi-paradigm. Other JVM languages, like Scala or Kotlin, add more multi-paradigm features to that ecosystem, but modern
442.
▲
by
kllrnohj
2y ago
A proper light controlled, dark ambient room is a lot more impactful for highlights than a higher peak brightness is
443.
▲
by
kllrnohj
2y ago
It hits 2 petaflops on the tensor cores at fp8. If you want GPGPU, that plummets to 134 teraflops (for fp16, though)
444.
▲
by
kllrnohj
2y ago
"practical bicycles" is nebulous, vague, and always means whatever you want it to mean to claim to be right. Bicycles do not need precision bearings nor pneumatic tires, as proven by the fact that bicycles predate them by decades.
445.
▲
by
kllrnohj
2y ago
The bicycle. It's a surprisingly recent invention despite its simplistic material and manufacturing requirements.
446.
▲
by
kllrnohj
2y ago
Probably would have. There's no shortage of UB bugs revealed by O2 after all, including major security issues.
447.
▲
by
kllrnohj
2y ago
strict-aliasing, which is what caused that bug to manifest, is enabled at O2.
448.
▲
by
kllrnohj
2y ago
> Also it certainly can’t be the Nvidia driver since that’s not running anything in your process. A huge chunk of a modern GPU driver is part of the calling process, loaded like a regular library. Just spot checking Chrome's GPU thr
449.
▲
by
kllrnohj
2y ago
> with the possibly buggy -O3 -O3 isn't buggy on either GCC or Clang. Are you thinking of -Ofast and/or -ffast-math that disregard standards compliance? Those aren't part of -O3.
450.
▲
by
kllrnohj
2y ago
NAT66 has significant drawbacks. It's a lot more than just Google that is against NAT66.
More ›