Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pornel
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
56 ms
·
901.
▲
by
pornel
2y ago
They don't explain what event-driven means, but AFAIK it's based on diffs between frames, which highlight motion and de-emphasise overall brightness/exposure: https://github.com/uzh-rpg/rpg_vid2e?tab=read
902.
▲
by
pornel
2y ago
It's a shame it's just based on correlation with many additives/processes together, and individual contributing factors weren't singled out. The mechanically-separated pink sludge McNuggets may be ultra processed, but I&
903.
▲
by
pornel
2y ago
If you're wondering why the paper seems to complicate "simple" constructs by converting them to control flow graphs — that's because many other kinds of static analysis, like tracking when variables are initialized and o
904.
▲
by
pornel
2y ago
Almost every other principle in the charter can be used to shoot down changes for safety, so I'm afraid the safety part is only wishful thinking, hoping for a Sufficiently Smart Compiler/Analyzer to save them. The charter also cal
905.
▲
by
pornel
2y ago
Imagine the savings in construction and maintenance costs if you could simplify the conveyor sections to be just two parallel iron rods.
906.
▲
by
pornel
2y ago
This is a common and difficult problem when simulating fluids using particles. It's possible to simulate using a grid instead, and that computes pressure very precisely, but it has a downside of adding inaccurate viscosity. And there a
907.
▲
by
pornel
2y ago
I'm surprised the simulation is run on the CPU! This problem has solutions that fit the GPU well, even for grid<>particle conversions.
908.
▲
by
pornel
2y ago
Design of macOS since BigSur took such a nosedive. Buttons are flat text that doesn't look clickable, with the best case of having a very faint border, sometimes only on hover. There are multiple ad-hoc checkbox replacements. There
909.
▲
by
pornel
2y ago
UB is a guaranteed compilation error in constexpr. However, in regular code UB may only become known after multiple optimization passes (e.g. constant propagation, inlining). It's difficult for the optimizer to meaningfully err at that
910.
▲
by
pornel
2y ago
LLMs are language models, and I think it's best not to try to extrapolate them to general intelligence. They are universal language translators, and a lossy database of a lot of text. They might be a component of some bigger AI system
911.
▲
by
pornel
2y ago
This only handles a subset of bounds checks (spatial safety). It has nothing for temporal safety (UAFs), nothing for thread safety, nothing for uninitialized memory, and it doesn't fix C's defaults. This is very much a "we ha
912.
▲
by
pornel
2y ago
Languages have more characteristics than what can be reasonably included in a headline. "Fast to run, but slow to compile and needs very new compiler, and may have a big-ish executable, but OTOH it won't cause much problems with i
913.
▲
by
pornel
2y ago
With a caveat that when dithering in color, you need both: linear RGB for diffusion/color blending, and a perceptual color space for palette search. Distance in sRGB is more closely aligned with perception of color than linearized RGB.
914.
▲
by
pornel
2y ago
I'd use popularity (how many people are using the crate indirectly) divided by trust level in the publisher of the crate. However, publishing a list that basically says "these are the least trustworthy Rust users" would cause
915.
▲
by
pornel
2y ago
It could work for classifying honest/innocent differences. However, LLMs are incredibly naive, so they could be easily fooled by a malicious actor (probably as easy as adding a comment that this is definitely NOT a backdoor).
916.
▲
by
pornel
2y ago
BTW, libjpeg turbo had been selected by JPEG (the group) as the reference implementation. There's no reason to entertain the old incompatible libjpeg fork. It didn't have any worthy compression improvements, and if you can use som
917.
▲
by
pornel
2y ago
> Unfortunately, most people seem to have taken the wrong lesson from Rust. They see all of this business with lifetimes and ownership as a dirty mess that Rust has had to adopt because it wanted to avoid garbage collection. But this is
918.
▲
by
pornel
2y ago
Open-source projects depend on their community and contributors, and community management is inherently political. No matter what "neutral" thing you do, some contributors will approve of that, and some will see it as a red flag.
919.
▲
by
pornel
2y ago
Very underwhelming. They've been admiring the tab bar animation like someone who got SwiftUI running for the first time.
920.
▲
by
pornel
2y ago
It's basically an OS too. Application isolation, UI toolkit, 3D graphics APIs, storage, network stack. Netscape was right — browsers reduce the underlying OS to (a buggy set of) device drivers.
921.
▲
by
pornel
2y ago
Page 18 of that report shows 80% of injuries are from cars/trucks/motorcycles. People can still faceplant badly, but getting rid of cars will avoid the vast majority of fatal crashes.
922.
▲
by
pornel
2y ago
Usually people compile a "hello world" exe, and implicitly extrapolate that size to all programs of all sizes. ...which is then followed by arguments about how libc's own size should be compared to other libs that need to be
923.
▲
by
pornel
2y ago
That's why cyclists advocate for protected lanes and separate bike paths, instead of infrastructure made of paint.
924.
▲
by
pornel
2y ago
This makes sense, and explains why there's more Rust game engines than Rust games :) Rust adds friction to quick prototyping, but OTOH it is particularly good at providing robust, safe library APIs (with machine-checked memory manageme
925.
▲
by
pornel
2y ago
The talk of a light frugal battery is only a marketing spin. The range and usable capacity are small, but the gross battery capacity is only 11% smaller than in Leaf. MX-30 is heavier than Leaf, Kona, and even Tesla Model 3 SR/RWD.
926.
▲
by
pornel
2y ago
But this needs to be explicit, and doesn't undermine other statically-known lifetimes (pointers to the inner cell can't escape it). Just like statically typed languages have some dynamic dispatch features, but despite that still m
927.
▲
by
pornel
2y ago
MX-30 is not particularly light, nor spacious compared to other "city" EVs. I get that Mazda has a reputable brand, but MX-30 is just an F.U. to the state of California. Mazda sells less than 10 of them per month. Not ten thousand
928.
▲
by
pornel
2y ago
I think the point is that Rust encodes more rules in its interfaces (ownership, lifetimes, thread safety). If you misunderstand how a Rust library works, your code most likely won't compile instead of silently causing UB. The rules for
929.
▲
by
pornel
2y ago
I think the "unknowable" lifetimes are C++'s own making. It's like types in statically vs dynamically typed languages. Types are unknowable at compile time when the compiler doesn't force them to be static. And si
930.
▲
by
pornel
2y ago
You have to set some baseline. We assume the CPU can divide numbers correctly, even though not all of them did. Autoconf has set the baseline so low that everyone perpetually pays for the technical debt of ancient buggy platforms. Sometim
More ›