Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Arnavion
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
27 ms
·
421.
▲
by
Arnavion
3y ago
You're missing the point that I didn't need to assume it.
422.
▲
by
Arnavion
3y ago
HN doesn't have any integrity about voting in general. Look at the "about" text of https://news.ycombinator.com/user?id=pwdisswordfishc for example, and then look at the username. There is a whole family of p
423.
▲
by
Arnavion
3y ago
On the other hand, if deepfaking becomes common enough that everyone stops trusting everything they read / see on the internet, it would be a net good against the spread of disinformation compared to today.
424.
▲
by
Arnavion
3y ago
I answered this in the other subthread already.
425.
▲
by
Arnavion
3y ago
>You have to implement the C version manually There's no "manually" about it. There's only one way to implement it in C, ie eight booleans and eight uint8_ts as I described. Going from there to the further optimizatio
426.
▲
by
Arnavion
3y ago
Tangentially related, there's another "unfortunate" detail of Rust that makes some structs bigger than you want them to be. Imagine a struct Foo that contains eight `Option<u8>` fields, ie each field is either `None` or
427.
▲
by
Arnavion
3y ago
aka property testing.
428.
▲
by
Arnavion
3y ago
It did support multiple threads and pre-emptive multitasking.
429.
▲
by
Arnavion
3y ago
InterlockedCompareExchange is supposed to be an atomic compare-and-swap API. "Compare-and-swap" means the swap only occurs if the comparison succeeded, ie if the previous value of `*dest` was `compare`, then `xchg` is written to `
430.
▲
by
Arnavion
3y ago
I just use a Podman container to sandbox all the "closed-source / not from my distro's repo" software. https://news.ycombinator.com/item?id=34634584 Normally this is Ubuntu / Debian, but if I had TF
431.
▲
by
Arnavion
3y ago
To your last point, doing it without involving glibc does have the advantage that it'll also work with musl, instead of starting yet another flamewar about missing non-standard features in musl.
432.
▲
by
Arnavion
3y ago
Right, but other than the bug, the feature does seem nice. I do use WKD, and although nobody has ever sent me PGP email, it's nice to know that ProtonMail users would find it convenient to do so.
433.
▲
by
Arnavion
3y ago
>The thing about v6 is … you can just firewall permit like the entire North America block to whatever ports absolutely must be exposed … and just not get any attacking traffic?, at least if the address isn't somehow otherwise discov
434.
▲
by
Arnavion
3y ago
Traffic for that /48 will be routed to your router. You're free to divvy up that /48 into /64 subnets on your LAN. Eg you can make one subnet A:B:110::/64, another A:B:110:1::/64, and so on all the way to A:B:1
435.
▲
by
Arnavion
3y ago
>So my home network appliances have public IPv6 addreases, but everything sent to these addresses is null routed? Of course. Unless you add rules to allow incoming traffic, say a rule to allow incoming traffic for $LAN_MACHINE1_IP:$PORT&
436.
▲
by
Arnavion
3y ago
What component on your router prevents a packet with destination IP 192.168.1.2 appearing on WAN from crossing over to the 192.168.1/24 LAN and reaching the device with that IP? Hint: It's the same one that also prevents IPv6 pack
437.
▲
by
Arnavion
3y ago
There's a nice spec for this by the UAPI group: https://uapi-group.org/specifications/specs/configuration_fi... , with the most common implementation called libeconf. The tl;dr is that an application / O
438.
▲
by
Arnavion
3y ago
Somewhat related: My favorite video about green screens and chroma keying, from Captain Disillusion: https://www.youtube.com/watch?v=aO3JgPUJ6iQ
439.
▲
by
Arnavion
3y ago
It's not really an "application" thing. It's meant to be a design for libraries that implement protocols of some sort. All the library API acts on byte buffers and leaves the network socket etc stuff to the library user.
440.
▲
by
Arnavion
3y ago
It's called sans-io in Python land, which is where I heard it first. https://sans-io.readthedocs.io/ I did it for one of my Rust projects back in 2018 https://github.com/Arnavion/k8s-openapi/c
441.
▲
by
Arnavion
3y ago
There are lots of trees that can't be balanced, like tries.
442.
▲
by
Arnavion
3y ago
Tree traversal uses stacks / queues unless you're dealing with a small tree such that you're sure recursion won't blow your stack, or your algorithm can work with tail calls and your language guarantees TCO.
443.
▲
by
Arnavion
3y ago
I think it's reasonable to *request* that a bug be treated as "High Priority because it affects my $IMPORTANT_USE_CASE". Who knows, the devs might sympathize and actually prioritize it, say because they were under the impress
444.
▲
by
Arnavion
3y ago
There are lots of xwayland-specific bits needed to handle it running under a compositor but still acting as a privileged client compared to regular Wayland clients.
445.
▲
by
Arnavion
3y ago
You can get that info from code coverage, via `cargo llvm-cov` etc, though that would require exercising all code paths into the deps or else you might underestimate how much of the deps you need to vendor. But at least if you underestimate
446.
▲
by
Arnavion
3y ago
What distros are there that normally dynamically link everything but statically link sudo? OpenSUSE, Debian and Ubuntu (the distros I have on hand) do not, at least.
447.
▲
by
Arnavion
3y ago
>You use scare quotes around "freed" for a reason: the data has not actually been freed. Who said it hasn't? I would assume such a node to have been given to `std::ptr::drop_in_place`. Not doing that would be a leak until
448.
▲
by
Arnavion
3y ago
Out-of-bounds access is not required for the pseudo-UAF we're talking about here. Deleting a node in the middle of a linked list will leave a "hole" in the backing Vec. You cannot shift the next elements down to fill the hole
449.
▲
by
Arnavion
3y ago
The advantage of buying RAM with XMP presets is that the reseller who created the preset has tested the sticks with that overclock and binned the original chips accordingly. When you buy RAM that is only rated for the default speed (as ECC
450.
▲
by
Arnavion
3y ago
I didn't want to have to deal with the non-uniform CCDs. Of course the two on a 7950x aren't uniform either due to silicon lottery (eg on mine the first CCD clocks 100MHz higher than the other on all-core load and 200MHz higher on
More ›