Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Arnavion
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
32 ms
·
451.
▲
by
Arnavion
3y ago
I would use ECC memory if I could. I used to use a TR 2920x with ECC but now I'm on a Ryzen 7950x with non-ECC. Unbuffered ECC memory is the only one supported by Ryzen, and it's slower or more expensive or both compared to the eq
452.
▲
by
Arnavion
3y ago
The way it works right now is already efficient. The adblock-enabled browser doesn't spend energy on rendering ads. If the website then blocks the user from the content then the user leaves.
453.
▲
by
Arnavion
3y ago
First-party post with more details: https://redict.io/posts/2024-03-22-redict-is-an-independent-... (Also, ddevault does not maintain wlroots or sway any more. emersion took over them in 2020.)
454.
▲
by
Arnavion
3y ago
Well, you can cross the universe in any amount of time. The human lifetime isn't special in that regard. A photon crosses the universe in zero time, and anything with non-zero mass can get arbitrarily close to zero time.
455.
▲
by
Arnavion
3y ago
Yes. The article also says: >Having a large standard library doesn't mean that the programmer shouldn't be able to swap out implementations easily as needed. But all that is required is for the standard library to define an int
456.
▲
by
Arnavion
3y ago
Right. The "will this or won't this allocate" analysis also needs to take into account all values being used by the code because they might be using allocators internally. I haven't written zig code in a few years so I d
457.
▲
by
Arnavion
3y ago
>Zig is practically alone in that if you write the next() method and and don't pass an allocator to any method in the next() body, nothing in that next() method will allocate. It's not quite as simple as that. This can allocate
458.
▲
by
Arnavion
3y ago
To be clear for everyone: USB 3.0, USB 3.1 gen 1, and USB 3.2 gen 1x1 are all names for the same thing, the 5Gbps speed. USB 3.1 gen 2 and USB 3.2 gen 2x1 are both names for the same thing, the 10Gbps speed. USB 3.2 gen 2x2 is the 20Gbps sp
459.
▲
by
Arnavion
3y ago
Not for the subsequent drama about the Fisker employee's antics.
460.
▲
by
Arnavion
3y ago
Or the actual article that this twitter thread is promoting: https://www.morningbrew.com/daily/stories/2024/03/08/fisker-...
461.
▲
by
Arnavion
3y ago
It's a 20min video and a little over half of it is everything that's bad, so it's too long to summarize. Watch it yourself: https://www.youtube.com/watch?v=6xWXRk3yaSw 8:10 onwards. Most of them could be fixe
462.
▲
by
Arnavion
3y ago
Your link is about AVs implementing signature verification of binaries incorrectly, not Windows implementing signature verification of drivers incorrectly.
463.
▲
by
Arnavion
3y ago
Self-referential structs work fine in Rust and always have. https://play.rust-lang.org/?version=stable&mode=debug&editio... The compiler will correctly prevent you from moving the value. (Try adding `drop(foo);` at
464.
▲
by
Arnavion
3y ago
Yeah.
465.
▲
by
Arnavion
3y ago
The /g/ thread about this linked https://web.archive.org/web/20240302031159/https://github.co... . Would be amusing if true, though it probably isn't. (It's an issue filed on the yuzu
466.
▲
by
Arnavion
3y ago
FWIW your attitude is correct in general. When you have a bug with a distro package and you haven't root-caused it yourself to a bug in upstream source, the best thing is to report it on the distro tracker. The distro package maintaine
467.
▲
by
Arnavion
3y ago
>Best way to do this is wrap the whole script into a function and then execute at the last line[0]. It's not the best way. If your function is named `lsp_init` and your last line is `lsp_init`, a partial line can result in the execu
468.
▲
by
Arnavion
3y ago
That's the Cloudflare user experience in a nutshell. Your users will see the same thing when they visit your Cloudflare-hosted site.
469.
▲
by
Arnavion
3y ago
Computer Science classes in Indian schools (fifth to eighth grades in my case) taught programming using Borland Turbo C++. That was back in the 2000s, but I wouldn't be surprised if they still use it today.
470.
▲
by
Arnavion
3y ago
HN submission title says "no longer shipping open source, stable releases", but it seems the source is still all available under Apache-2.0, including the stable release branches. They're just not shipping a stable release bi
471.
▲
by
Arnavion
3y ago
Windows provides public debug symbols, so someone could potentially debug a process like this and get some idea of what it's doing based on the stacktrace, like Bruce Dawson is known to do [1]. Does OSX provide such debug symbols? A cu
472.
▲
by
Arnavion
3y ago
The code path that drops B will not compile unless that code path drops A first. It doesn't matter if that code path is in response to user input or not. Again, as I said, the point is that the compiler tracks the lifetime of all refer
473.
▲
by
Arnavion
3y ago
>Can the allocator be customized? `Box<T>` is the type of an owning pointer that uses the default global allocator, and `Box<T, A>` is the type of an owning pointer that uses an allocator of type `A`. The latter is unstable,
474.
▲
by
Arnavion
3y ago
let p: Box<X> = Box::new(X { ... }); let x2 = X { ... }; // Moves x2 into the same memory as the first X. // The first X is automatically dropped as part of this assignment. // Al
475.
▲
by
Arnavion
3y ago
I believe egberts1's point is that leaving it unspecified invites different implementations to implement it differently. Some might choose to use the bytes from the first fragment, others might choose to use the bytes from the newer fr
476.
▲
by
Arnavion
3y ago
HN automatically filters words from titles that they think are clickbaity. "Fascinating" is probably in that list.
477.
▲
by
Arnavion
3y ago
For this specific case, saturating_sub would work fine. The checked_sub way would need an additional `.unwrap_or(-1)` Though of course you wouldn't need to do either because the usual way to write a Rust API that takes comparators is f
478.
▲
by
Arnavion
3y ago
Distributions can't switch to libressl until all the software they package also supports it. libressl is incompatible with openssl, so programs that are compiled against the one cannot run against the other, and both cannot be loaded i
479.
▲
by
Arnavion
3y ago
>All the primitives to make this work reasonably are there, OS and firmware vendors just aren't using them. To be precise, both Windows (according to the article) and Linux+systemd (since systemd v251) support letting the user speci
480.
▲
by
Arnavion
3y ago
Also given AMD's repeated bungling of the fTPM, Pluton is probably the better option if you must enable one.
More ›