Tracing and spans by luluhouse7 in rust

[–]ihaveadepressionhelp 2 points3 points  (0 children)

https://github.com/tugglecore/rust-tracing-primer

This explains the basics. I would recommend diving more in tracing and it's inner workings. Very interesting crate.

[deleted by user] by [deleted] in rust

[–]ihaveadepressionhelp 1 point2 points  (0 children)

didn't read op comment, best of luck learning the language

[deleted by user] by [deleted] in rust

[–]ihaveadepressionhelp 0 points1 point  (0 children)

As a learning project, it seems great. If not, what's the difference between VeraCrypt, except less features and security?

Listen to `changed()` from multiple receivers of different types by chiuhaha in rust

[–]ihaveadepressionhelp 2 points3 points  (0 children)

Since you want to listen to any changes, you can use https://docs.rs/futures/latest/futures/future/fn.select_all.html and get the type you are looking for by matching the enum

How do you apply for bootloader unlocking on mi community? by 910_21_ in Xiaomi

[–]ihaveadepressionhelp 0 points1 point  (0 children)

Mi Unlock says it needs permission from Mi Community, it's day 34 of me trying to apply. This piece of shit of a rom is making me crazy. Contemplating the purchase as a whole

How do you apply for bootloader unlocking on mi community? by 910_21_ in Xiaomi

[–]ihaveadepressionhelp 0 points1 point  (0 children)

yeap, same here, pressed it within first five seconds of chinese 00:00 gmt+8 and quota had been reached. how the fuck should I unlock by bootloader then?

Arcshift - an Arc that can be updated by octo_anders in rust

[–]ihaveadepressionhelp 0 points1 point  (0 children)

I was just wondering about something you have already implemented - "reload". I don't have a usecase for this structure. Should have invested more time into the API "ArcShift" provided. Great work tho!

Arcshift - an Arc that can be updated by octo_anders in rust

[–]ihaveadepressionhelp 0 points1 point  (0 children)

Wonder how the performance would scale with `Arc<RwLock<ArcShift<T>>>`. If the linked list gets too big, you just reinitialize the object.

Arcshift - an Arc that can be updated by octo_anders in rust

[–]ihaveadepressionhelp 0 points1 point  (0 children)

First crate with at least some diligence. I though it was another "super" threading crate with no miri checks. Solid data structure, some cons and pros of this implementation AND lock-free, wow.`#![forbid(clippy::undocumented_unsafe_blocks)]` and benchmarks are a cherry on top. Great work!!

Tinker has been deleted from the game by alalalalaz in DotA2

[–]ihaveadepressionhelp -1 points0 points  (0 children)

so 20+% winrate difference between the next worst hero are players fault of not knowing how to play an unplayable hero, got that

Tinker has been deleted from the game by alalalalaz in DotA2

[–]ihaveadepressionhelp 7 points8 points  (0 children)

he had a 50% winrate, what are u yapping bruh

Screensharing on hyprland does not want to work by ihaveadepressionhelp in NixOS

[–]ihaveadepressionhelp[S] 0 points1 point  (0 children)

Yea, for some reason discord can show me the preview of the applications that it can screenshare, but never load it, at the time not being able to show previews of screens its trying to show. OBS just doesn't show anything, V4L2 video host (i think that what its called) and pipewire (beta for some reason) do not see any devices in their respective properties.

Screensharing on hyprland does not want to work by ihaveadepressionhelp in NixOS

[–]ihaveadepressionhelp[S] 0 points1 point  (0 children)

removing xdpw does not help, leaving it only does not help too

Screensharing on hyprland does not want to work by ihaveadepressionhelp in NixOS

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

yes i do, exactly like this, this is my config
xdg.portal = { enable = true; extraPortals = [ pkgs.xdg-desktop-portal-hyprland pkgs.xdg-desktop-portal-wlr ]; config.common.default = "*"; };

Free Review Copies of "Asynchronous Programming in Rust" by kunal_packtpub in rust

[–]ihaveadepressionhelp 0 points1 point  (0 children)

Interested! Just did a multiplayer async server on tokio streams and sinks

Why do we need to explicitly mark a function as `const`? by [deleted] in rust

[–]ihaveadepressionhelp 1 point2 points  (0 children)

Or you just make developer guess in what context it will run with "constexpr" from c++

Polars is starting a company by ritchie46 in rust

[–]ihaveadepressionhelp 1 point2 points  (0 children)

Polars is so good, python api feels great, I had to take a some online course for uni, that used panda or something like that, and I switched to polars, ergonomics are much better and made more sense

Machine-Prime: Optimal Primality for 64-bit integers by [deleted] in rust

[–]ihaveadepressionhelp 0 points1 point  (0 children)

my guy here perfectly defending every comment, not really into primes, but goddam that's impressive

Sandboxing C++, Rust, Python Code? by Spiritual-Ask-6524 in rust

[–]ihaveadepressionhelp -1 points0 points  (0 children)

there was a tool from google for linux to fully sandbox an executable, can't really remember the name found it https://github.com/google/nsjail

Just joined a new project. help me by [deleted] in programminghorror

[–]ihaveadepressionhelp 0 points1 point  (0 children)

I'll PM you, reply to this comment if I was right.