nick

joined 1 year ago
[–] [email protected] 4 points 4 months ago

This reminds me of a great video about this sort of principle in reverse: https://youtu.be/wBBnfu8N_J0

[–] [email protected] 1 points 6 months ago* (last edited 6 months ago)

I've used a number of different Linux distros (including Debian) on laptops over the years. Although most recently my XPS 15 was running Arch.

[–] [email protected] 5 points 7 months ago (1 children)

*rate, comment, and subscribe

Gotta get those five stars

[–] [email protected] 13 points 8 months ago (1 children)

I think they're lawful evil, more devils than demons.

 
[–] [email protected] 3 points 8 months ago (1 children)

In my experience I haven't had an issue because usually the refactorings are small. If they're not I just hop on a call with the person who wrote the MR and ask them to walk me through it.

In theory I'd like to have time to dedicate solely to code health, but that's not quite the situation in basically any team I've been in.

[–] [email protected] 8 points 8 months ago (4 children)

You should refactor as needed as you go because refactoring cases are never gonna be prioritised.

[–] [email protected] 2 points 8 months ago* (last edited 8 months ago) (1 children)

There's a markdown entry thing in the drop down menu that'll convert your MD to their formatting.

[–] [email protected] 6 points 8 months ago

The web is built on hot linking hypermedia. It is more fragile obviously, but it distributes the bandwidth and storage load. If nobody hotlinked, then small forum admins/Lemmy admins/etc. have considerably more cost to bear.

[–] [email protected] 1 points 8 months ago* (last edited 8 months ago)

Rust is roughly similar to C in most of these benchmarks and beats it in a few: https://benchmarksgame-team.pages.debian.net/benchmarksgame/fastest/rust.html

Arguably when LLVM gets a bit better, Rust can be even faster than C because rust can be optimised in more places safely than C code can. The issue is that LLVM wasn't written with that in mind, so some performance is left on the table.

[–] [email protected] 1 points 8 months ago (2 children)

Go, Java, and Nim (in most cases) are all memory safe but are generally slower than C or C++ due to the ways they achieve memory safety.

Rust's memory safety approach is zero-cost performance wise, which makes it practical for low level, high throughput, and low latency applications.

[–] [email protected] 6 points 9 months ago* (last edited 9 months ago) (1 children)

That flag exists, it's called unsafe for if you need to tell the borrow checker to trust you or unwrap if you don't want to deal with handling errors on most ADTs.

You can always cast anything to an unmanaged pointer type and use it in unsafe code.

[–] [email protected] 13 points 9 months ago (5 children)

A crash is different to a SEGFAULT. I'd be very surprised to see a safe rust program segfault unless it was actively exploiting a compiler bug.

view more: next ›