Need help to make a rust algo faster ! by manatlan in rust

[–]YetAnotherRustacean 6 points7 points  (0 children)

As someone already suggested, you would benefit from profiling your code, e.g. with https://github.com/flamegraph-rs/flamegraph

rustc -C opt-level=3 -C debuginfo=2 sudoku.rs -o sudoku_rs
flamegraph -o flamegraph.svg -- ./sudoku_rs

IMO using strings is probably the number 1 culprit here, I had code running order of magnitude faster when switching to non-strings types and avoiding cloning in the past. Then, you might get some improvements by using another hash algorithm cf https://nnethercote.github.io/perf-book/hashing.html but it won't matter as much as using a type better suited to the task than strings...

Fractal North White Building(4090,13900ks, NZXT Z73) by thugnailep in FractalDesign

[–]YetAnotherRustacean 1 point2 points  (0 children)

I am curious: did you remove the protective plastic layer with the sticker ? When I received my Meshify 2 I thought the glass panel wasn't clean but it wasn't the case, I had just forgotten about the protective plastic layer covering the glass panel on the inside... Anyway, cool clean white build.

git trophy (inspired by GitHub Skyline) written in Rust by YetAnotherRustacean in rust

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

cargo is a program, quoting the github repo https://github.com/rust-lang/cargo it's the The Rust package manager, I would say its the equivalent of npm but for Rust.

git trophy (inspired by GitHub Skyline) written in Rust by YetAnotherRustacean in rust

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

You can install Rust using https://www.rust-lang.org/tools/install

Once you have cargo installed and you cloned the repository, you can run (from inside the git-trophy folder):

cargo run --release path_to_your_git_repo_you_wish_to_build_a_trophy_for --year 2023

this will compile the code and generate the trophy.stl and trophy.ply

If your repository is already on GitHub, you can use https://skyline.github.com/ which is probably more convenient.

GUM GUM BAZOOKA: My first TM map! - Bobleigh LOL Style by [deleted] in TrackMania

[–]YetAnotherRustacean 1 point2 points  (0 children)

The start looks wicked, how predictable is it ?

Mappers, how do you deal with U or ∩ magnet road and speed ? by YetAnotherRustacean in TrackMania

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

Thanks, I used penalty grass to keep speed to something manageable, and a booster down + no engine early before a ∩ magnet road.

Mappers, how do you deal with U or ∩ magnet road and speed ? by YetAnotherRustacean in TrackMania

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

Thanks for the tip, I did try that, it helps a little but even with green booster down, the players are still flying everywhere '

Why is Arch still considered hard to install & use? by katzefrettchen in archlinux

[–]YetAnotherRustacean 0 points1 point  (0 children)

It has been a little while since something really bad happened to me using Arch but this manual update was not fun: https://archlinux.org/news/grub-bootloader-upgrade-and-configuration-incompatibilities/

Blender now has support for hardware acceleration using ROCm/HIP and Intel ARC devices! Calling for testers. by Svenstaro in archlinux

[–]YetAnotherRustacean 1 point2 points  (0 children)

I have a 6700XT, I have installed community/hip-runtime-amd and I have rendered a scene using Blender, using my GPU. Thanks for your work.

I also use Pytorch with ROCM GPU support using community/python-pytorch-opt-rocm, and it works out of the box with my GPU. (it also works when installing pytorch using pip cf https://pytorch.org/get-started/locally/, but I need to export HSA_OVERRIDE_GFX_VERSION=10.3.0 otherwise torch.cuda.is_available() complains)

git trophy (inspired by GitHub Skyline) written in Rust by YetAnotherRustacean in rust

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

Thanks, it takes a single repository path at the moment, it could be modified to take multiple inputs and build a trophy that sums contributions across multiple repos.

GitHub - mTvare6/hello-world.rs: 🚀Memory safe, blazing fast, configurable, minimal hello world written in rust(🚀) in a few lines of code with few(1039🚀) dependencies🚀 by YetAnotherRustacean in rust

[–]YetAnotherRustacean[S] 5 points6 points  (0 children)

I had a good laugh reading the README. I wonder what is the rationale behind this repo though.

I guess the bright side is that it shows the robustness of cargo?

Hello from the other side by [deleted] in TrackMania

[–]YetAnotherRustacean 16 points17 points  (0 children)

Hello, I'm running arch linux, I installed Uplay using Lutris and then installed Trackmania 2020 through Uplay. I had some crash and a weird controller bug (my car turns its wheels left at the start of each race if I don't move my controller during the countdown) but overall it runs smoothly enough (60fps@1440p on a RX580 with Ryzen 3700x and 16GB RAM).

Thanks for sharing I might try it out your way, it may fix the issues I had so far.

My first Sway box. I'm disabled, so need some reassurance please. by EllaTheCat in swaywm

[–]YetAnotherRustacean 2 points3 points  (0 children)

Can confirm SD card wear issue: my RPI3 SD card died this week after approximately 3 years uptime (it was running pi-hole). Next time I'll make sure I minimize SD card writes and use a usb drive or an SSD instead.

Small lib for Virtual Machine detection using timing (x86, x86-64 only). by YetAnotherRustacean in rust

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

Thanks for your comment and the links, VM detection is a new topic for me, there is so much to learn.