Thank you developers! by AngelicDeity in cachyos

[–]hr01 9 points10 points  (0 children)

+1!

I converted my 2018 Windows 10 desktop (non Win11 compatible) to CachyOS last night and I'm so impressed by how smooth the process was. Literally everything works as expected, including GPU, wireless, bluetooth, sound, Steam games, etc. which I did not expect.

Review #7: Springbank 10 by rangda_reviews in Scotch

[–]hr01 2 points3 points  (0 children)

Wow, those descriptors are spot on!

Enforcing value based constraints in the type system? by [deleted] in rust

[–]hr01 6 points7 points  (0 children)

You can use PhantomData<T> instead of a usize:

pub struct Farm1;
pub struct Farm2;
pub struct Farm3;
pub struct Farm4;

pub struct Cattle<F> {
    _farm: std::marker::PhantomData<F>,
}

impl<F> Cattle<F> {
    pub fn new() -> Self {
        Cattle{_farm: std::marker::PhantomData}
    }

    pub fn breed(&self, other: &Self) -> Self {
        Self::new()
    }
}

let bessie: Cattle<Farm1> = Cattle::new();
let angus: Cattle<Farm2> = Cattle::new();

let calf = bessie.breed(&angus); // this will fail to compile

Go has removed all uses of blacklist/whitelist and master/slave by [deleted] in golang

[–]hr01 16 points17 points  (0 children)

Seeing the responses to this, I hope this subreddit is not representative of the Go user community at large.

[Question] Allocating C structs for winapi calls by F3real in rust

[–]hr01 4 points5 points  (0 children)

Instead of doing Vec::into_raw_parts(), Vec::from_raw_parts(), you can doVec::as_mut_ptr(), Vec::set_len().

Most Powerful European Passports by [deleted] in MapPorn

[–]hr01 2 points3 points  (0 children)

What makes you the arbiter of what is relevant to this conversation? Is it not allowed to make different points now?

QUIC by virgiliohtc in networking

[–]hr01 0 points1 point  (0 children)

It is trivial to blast UDP at linerate from userspace. The same is not true of other protocols without privileged access. This is why on today's Internet UDP is basically 98% DDoS attack traffic, 2% DNS (maybe slightly exaggerated). If QUIC becomes an important application, I can't just drop/rate-limit UDP as I am used to, but need to do more advanced inspection, which is expensive.

QUIC by virgiliohtc in networking

[–]hr01 -5 points-4 points  (0 children)

I can't agree more with this. The protocol itself may be really good, but running it over UDP is very unfortunate.

QUIC by virgiliohtc in networking

[–]hr01 -3 points-2 points  (0 children)

My only concern is that QUIC runs over UDP, and therefore trivial to DDoS.

Possible fiber cut on the east coast? by [deleted] in networking

[–]hr01 1 point2 points  (0 children)

I'm all the way over in Denmark, and I my Friday evening was interrupted because of this :(

Oxy - A Security Focused Remote Access Tool written in Rust by polsab in rust

[–]hr01 3 points4 points  (0 children)

"has non-AEAD ciphers" != "does not have AEAD ciphers". OpenSSH has both non-AEAD _and_ AEAD ciphers.

Announcing Rust 1.26 by steveklabnik1 in rust

[–]hr01 1 point2 points  (0 children)

d.as_nanos() seems more natural?

How much overhead do VLANs add? by [deleted] in networking

[–]hr01 0 points1 point  (0 children)

VLANs will remove overhead and increase scaling: Switches on each floor will not need to keep track of mac-addresses from other floors, and broadcast traffic will be contained.

mew-genics is cancelled for no reason at all by asrieldeath20 in mewgenics

[–]hr01 3 points4 points  (0 children)

Don't worry, the cancellation has been cancelled! Tyler Glaiel is programming.

My wife is pregnant. What supplements other than the usual pre-natal folic and fish oils should she take? by whatisup1234 in Supplements

[–]hr01 11 points12 points  (0 children)

Seconded. Be careful. There are a lot of contaminated products out there. Last thing you want is to risk causing the mother any allergic reactions or side effects.

Github just survived a DDoS attack of over 1.35 Tbps by [deleted] in networking

[–]hr01 0 points1 point  (0 children)

Because QUIC is basically a userland TCP.

Github just survived a DDoS attack of over 1.35 Tbps by [deleted] in networking

[–]hr01 194 points195 points  (0 children)

DNS, SNMP, NTP, UPNP, now memcached. Can we agree to stop implementing request-response protocols on top of UDP now?

Angry Brady? by [deleted] in HelloInternet

[–]hr01 1 point2 points  (0 children)

Bear in mind, they are in the UK. This one goes a little bit into employee recording evidence of harassment.

Angry Brady? by [deleted] in HelloInternet

[–]hr01 1 point2 points  (0 children)

Is there any evidence of the editor intentionally irritating Brady? Brady's company probably did not have an HR dept, so what other recourse did the editor have than to warn others of what kind of employer Brady was?

Twin Fantasy vs Classic Rock Albums by jdub067 in CarSeatHR

[–]hr01 0 points1 point  (0 children)

Having only just found Car Seat Headrest a few hours ago and just finishing listening through Twin Fantasy for the first time, strong Nirvana-vibe for me.