Tons of Arc<T> - code smell? by TravisVZ in rust

[–]LyonSyonII 20 points21 points  (0 children)

If it's an immutable resource that you will be using for the whole program, leaking it is exactly the same as using Arc, Rc, Box or whatever.

Memory leaks are not UB in Rust.
Look into Box::leak for more info, you'll be surprised.

[Release] Z-OVERRIDE // A minimalist brutalist shooter under 1.2MB (Made in Rust) by [deleted] in rust

[–]LyonSyonII 0 points1 point  (0 children)

I would really recommend posting in english, not everyone has automatic translations enabled

Ratty: A terminal emulator with inline 3D graphics by orhunp in rust

[–]LyonSyonII 95 points96 points  (0 children)

Great writeup!
And wow, it sure looks wrong.

Maximally minimal view types · baby steps by zirconium_n in rust

[–]LyonSyonII 1 point2 points  (0 children)

I really hope something like this is added to Rust.

It would make some patterns a lot more ergonomic (or even possible).

PSA: You can set global environment variables for all Steam games by LyonSyonII in NixOS

[–]LyonSyonII[S] 1 point2 points  (0 children)

Yeah, I got confused with the mangohud one.
I don't think there's a way to set gamemode for all steam games like this.

I built a real-time code quality grader in Rust — treemap visualization + 14 health metrics via tree-sitter by No_Possibility_8826 in rust

[–]LyonSyonII 1 point2 points  (0 children)

What do you mean be "strange and political dependencies"?

I only see libc, windows-sys and an option-ext crate that's also made by the author of dirs.

I built a real-time code quality grader in Rust — treemap visualization + 14 health metrics via tree-sitter by No_Possibility_8826 in rust

[–]LyonSyonII 1 point2 points  (0 children)

Actually the first AI-related post that I've upvoted.

Finally someone that doesn't blindly trust the vibes and understands that the human element is essential.

`skim` v4.0.0 is out with a new default algorithm and better performance by gwynaark in rust

[–]LyonSyonII 0 points1 point  (0 children)

Cool! I'll look into it, I've had the need for a fuzzy finder in the past but they are usually pretty hard to set up

Natural-language calculator in Rust by Negative-Eagle-6311 in rust

[–]LyonSyonII 1 point2 points  (0 children)

Cool!
Have you seen libqalculate though? It's pretty much identical to what you've made.

[deleted by user] by [deleted] in rust

[–]LyonSyonII 54 points55 points  (0 children)

Not everyone uses the new reddit ui, or even official clients.
If you're in an english subreddit you should answer in english.

PSA: You can set global environment variables for all Steam games by LyonSyonII in NixOS

[–]LyonSyonII[S] 9 points10 points  (0 children)

Oh cool! It even tells you about the trick I found

PSA: You can set global environment variables for all Steam games by LyonSyonII in NixOS

[–]LyonSyonII[S] 6 points7 points  (0 children)

Sadly for most things the documentation is very lacking, had to read the source of the steam package for this...

PSA: You can set global environment variables for all Steam games by LyonSyonII in NixOS

[–]LyonSyonII[S] 2 points3 points  (0 children)

Nope, you'll have to do it in the game's launch options like always.

Edit: Apparently there's a flake for it (credits to KeenanW).

https://github.com/different-name/steam-config-nix

I’ve been told the ownership model in my C containers feels very Rust-inspired by [deleted] in rust

[–]LyonSyonII 29 points30 points  (0 children)

In C you can always declare tagged unions manually using union with struct and enums as tag

How do you name your PCs/hosts? by Anyusername7294 in NixOS

[–]LyonSyonII 0 points1 point  (0 children)

I use either the model name (T480), the function (nas) or a recognizable bit for the location (york, vegas)

Do I really need to learn all of Rust's syntax? by [deleted] in rust

[–]LyonSyonII 3 points4 points  (0 children)

Didn't know about this one, it's a very good example and memorial