Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
kllrnohj
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
78 ms
·
661.
▲
by
kllrnohj
2y ago
Run a profiler on your code sometime and see how many branches it reports taking. You can easily get millions of branches per second, so 1% events happen hundreds of thousands of times. See for example this quick investigation and look at
662.
▲
by
kllrnohj
2y ago
Those 1-4 bytes are sitting in a register the entire time and thus basically free to read as often as you want, though. An actual sampled profile showing the two approaches would be interesting. Naively it seems like it's just because
663.
▲
by
kllrnohj
2y ago
Graphics driver crashes don't result in BSODs anymore. Microsoft fixed that in... Windows 7? Vista? They just trigger a black flash of the screen for a few seconds and then everything is back up as it was - including active GPU context
664.
▲
by
kllrnohj
2y ago
> allocation of physically contiguous memory allocations (ashmem, dumped now in favor of dmabuff). ashmem is user space shared memory with permission controls. It was replaced(ish) with memfd with the addition of F_SEAL_FUTURE_WRITE in 5
665.
▲
by
kllrnohj
2y ago
Vulkan is a continuation of AMD's Mantle which is then older than Metal.
666.
▲
by
kllrnohj
2y ago
The claim is they aren't syncing it to the cloud at all, so how would they serve it to a web interface?
667.
▲
by
kllrnohj
2y ago
Don't they all incorporate in Delaware? Isn't that the thing to do because of the courts there?
668.
▲
by
kllrnohj
2y ago
Culture definitely hurts it a lot. It seems like any question involving Java and anything performance related is "you don't, you're stupid, the JIT fixes everything, never measure, never benchmark, premature optimization is
669.
▲
by
kllrnohj
2y ago
The gap between Java and [C++,Rust,Obj-C,Zig?,D?] is approximately equivalent to 5-8 years of CPU hardware improvements these days. Software engineer time is still often the primary cost metric, but Java didn't ever get actually fast
670.
▲
by
kllrnohj
2y ago
> It's not like webpage space is expensive. There's plenty of room to walk through a good example, it just requires a little effort. Right at the top of the page: > A version of this post originally appeared in Google bathro
671.
▲
by
kllrnohj
2y ago
> Even FAANG companies like Google follow this rule. Google also uses 100
672.
▲
by
kllrnohj
2y ago
C is the worst at naming length since everything is in the global namespace unless you're working on a teeny tiny project. So everything gets clunky prefixes to use as pseudo-namespaces or overly descriptive name to avoid conflicts. Lo
673.
▲
by
kllrnohj
2y ago
> The clear answer to the parent's question is planned obsolescence. The clear answer is lack of demand. People want capacity more than they want endurance they aren't going to use. Early SSD deaths are not yet a common issue,
674.
▲
by
kllrnohj
2y ago
The horror stories are always about people seeing how cheap used 7 series or similar are and not realizing that repair costs are still going to be reflective of the MSRP, not the now drastically depreciated used price.
675.
▲
by
kllrnohj
2y ago
> And to be fair, this isn't all that much different than other luxury cars like BMWs and Audis. It's different in that those have much larger and more readily available 3rd party repair shops, parts, and used parts. You can of
676.
▲
by
kllrnohj
2y ago
I think the price has stealthily increased as the required dressings got more demanding. Like the initial pi could be powered by any random phone charger you had laying around. But the new ones are a lot more picky and demanding. The new on
677.
▲
by
kllrnohj
2y ago
Especially if you're willing to go used. 5 year old lenovo, dell, and hp mini PCs are all over ebay as companies dump them due to simply being out of the typical 5 year enterprise warranty. They are otherwise still very potent and capa
678.
▲
by
kllrnohj
2y ago
It's still lower than Qualcomm's Snapdragon Elite X (45 TOPS)
679.
▲
by
kllrnohj
2y ago
Snapdragon Elite X is 45 TOPS as well, so Apple's isn't even the fastest ARM-based SoC NPU
680.
▲
by
kllrnohj
2y ago
Using host memory for SSD caches is part of the NVMe spec, it's not some Apple-magic-integration thing: https://www.servethehome.com/what-are-host-memory-buffer-or-... It's also still typically just worse than an
681.
▲
by
kllrnohj
2y ago
Sure, which is why you see other midrange APUs use >128-bit buses, eg PS4 & PS5 are both 256-bit buses w/ GDDR. Similarly, ultra high end APUs like the Xeon Max are doing on-package HBM for truly monstrous memory bandwidth numbe
682.
▲
by
kllrnohj
2y ago
> Apple using a 512-bit memory bus on its Max processors is indeed the future of APUs if you ask me. It's very expensive to have a bus that wide, which is why it's so rarely done. Desktop GPUs have done it in the past ( https:
683.
▲
by
kllrnohj
2y ago
> Qualcomm’s OpenCL runtime would unpredictably crash if a kernel ran for too long. Crash probability goes down if kernel runtimes stay well below a second. That’s why some of the graphs above are noisy. I wonder if Qualcomm’s Adreno 6xx
684.
▲
by
kllrnohj
2y ago
I was going to set mine back up for some good ol' Rock Band. Losing access to all the DLC songs would have sucked so much, so glad that's not happening
685.
▲
by
kllrnohj
3y ago
> As soon as games are networked it starts being a problem, and these days non-networked games are pretty rare. So have your network protocol parser in Rust and the entire rest of your game in whatever the hell you want. All the practica
686.
▲
by
kllrnohj
3y ago
OLED has near instant pixel response times. No idea what display you are looking at, but if you're getting smearing of any kind it wasn't an OLED
687.
▲
by
kllrnohj
3y ago
Most people have IPS or OLED phones with accuracy, gamut, brightness, contrast, density, and responsiveness that the best CRTs don't come close to. You're absolutely deep in nostalgia land lol
688.
▲
by
kllrnohj
3y ago
No, it's for all of them. The Model 3 was updated to also have the stalks taken away and the PRND controls moved to the roof https://www.tesla.com/ownersmanual/model3/en_eu/GUID-A5F2B9D...
689.
▲
by
kllrnohj
3y ago
> Mostly bad controls, UX, etc. stuff that the Tesla gets right. What? Tesla's controls are ass. They're infotainment responsiveness is great, but the turn signal steering wheel buttons, windshield wipers, drive mode select, et
690.
▲
by
kllrnohj
3y ago
I think it'd be a mistake to also underestimate the impact of actual competition showing up with far fewer quirks. Tesla's interiors were already spartan to say the least, and with each interior update the cost cutting gets even m
More ›