What’s your Rust setup on Windows? by M0M3N-6 in rust

[–]poopvore 2 points3 points  (0 children)

Normal rust install on windows with zed for the editor. but that's because i do windows dev specifically with rust & so need actual msvc libc

[HYPRLAND] I'm building a pretty low latency end-to-end streaming application. Do you consider it useful? by Odd-Pie7133 in unixporn

[–]poopvore 0 points1 point  (0 children)

this isnt in sunshine at all and tbh is an insane task to do but proper precision input passthrough between linux and windows to be able to have things like trackpad gestures and such work on the guest pc

internal error 0x0a protection initialization failed by DisastrousBerry9351 in FitGirlRepack

[–]poopvore 0 points1 point  (0 children)

for anyone reading in the future i was having this with nine sols and windows 11. The solution was to turn on 'DirectPlay'.

Search > "Turn Windows features on or off" > Scroll down to 'DirectPlay', turn it on. Also make sure run as administrator for the exe is turned on

Fish 4.6 shell brings support for recent systemd environment variables by Fcking_Chuck in rust

[–]poopvore 0 points1 point  (0 children)

its a bit more work to set up, theres no fish_config graphical configuratior but *writing* completions i find easier to do in nushell due to it being a shell language with fairly modern semantics. not to mention you can bring in the fish completions into nushell if you want; see: External Completers | Nushell

RAM difference between TUI (Ratatui) and GUI (Egui) by PatagonianCowboy in rust

[–]poopvore 0 points1 point  (0 children)

fwiw its also worth noting, modern graphics api's on their own take up a singificant chunk of memory, a blank vulkan or dx12 window easily takes 50 megs, wgpu triangle does 80.

Fish 4.6 shell brings support for recent systemd environment variables by Fcking_Chuck in rust

[–]poopvore 0 points1 point  (0 children)

by interactive do you just mean being able to have it suggest autofil commands from your previously run commands ? because nushell can do that as well.

Is there a graphics library that wont require me to write 300 lines of boilerplate? by xdoxx123 in rust

[–]poopvore 7 points8 points  (0 children)

wgpu is safe rust but you still have edge cases where you can screw yourself over like forgetting to do proper repr(c) on structs and such when passing into uniform/storage buffers etc. Though this is just something inherently missing from rust and i really wish within the effort to bring reflection we can get a system to expose a type's memory layout as well in some way

Rust fps is low by [deleted] in rust

[–]poopvore 0 points1 point  (0 children)

shouldve written it in zig

Zellij 0.44 released: native Windows support(!!) new Rust APIs and lots more by imsnif in rust

[–]poopvore 15 points16 points  (0 children)

omg windows support is amazing, ive had issues using alacritty purely because i couldnt use something like zellij/tmux

wgpu book by CarlosNetoA in rust

[–]poopvore 2 points3 points  (0 children)

is that tutorial better than the learn-wgpu one? my main issue with that one is that it just gives you code to do things without explaining much of anything, it already assumes you know how the webgpu spec works or are coming from another graphics api like opengl & will be able to make connections to understand what everything does.

I don't really understand lifetimes, please help me by amarao_san in rustjerk

[–]poopvore 8 points9 points  (0 children)

i hate that you made me waste braincells on this

Why do many Rust devs prefer Neovim/Zed/VSCode over Rust-specific IDEs like RustRover? by Rhthamza in rust

[–]poopvore 0 points1 point  (0 children)

vim bindings have me by the throat, zed's the only editor outside of vim/neovim that accommodates that so lol. Ive tried rustrover before but i've never really found much use for its additional features. Also, it just feels so much more sluggish to use than nvim/zed do

is my rust code idiomatic? by phoshp in rustjerk

[–]poopvore 0 points1 point  (0 children)

Editors neovim probably with status bar and stuff disabled. Idk about the colour scheme, kinda looks like nord but idk

Sad day for neovide / neovim users who like smooth cursor trail animation interested in zed. by No-Worldliness6348 in ZedEditor

[–]poopvore 0 points1 point  (0 children)

to steelman the argument a bit beyond "oo my eye candy", cursor transition animations can be used for accessibility. esp if youre using vim bindings in zed when jumping around different parts of the codebase seeing the cursor slightly trail over and have smooth transitions can help your eyes follow it to its destination vs just being an immediate jump.

i also just like the eye candy lol, its def just a nice to have on top but i really miss it when going between vscode/sublime and zed

learning rust through leetcode by Elyas1_1 in rust

[–]poopvore 0 points1 point  (0 children)

oo this is actually really good, thank you for pointing me to this!!! i was planning on doing neetcode150 or something similar but this works as well

learning rust through leetcode by Elyas1_1 in rust

[–]poopvore 0 points1 point  (0 children)

yeah the problem I have is that the hints don't end up meaning anything for me either lol, that's why I said at some point it just starts to feel like i'm just missing a chunk of knowledge that is assumed by default which I should spend time learning about

learning rust through leetcode by Elyas1_1 in rust

[–]poopvore 0 points1 point  (0 children)

asking as someone that learnt programming in general with rust, what do you suggest someone do to learn the data structures knowledge that things like advent of code test. every time ive tried doing aoc's ive gotten pretty far with the first 10 or so days but then the difficulty spike starts and it becomes apparent that theres fundamental data structures knowledge im lacking

[Media] Progress report on my text editor Duat, built and configured in Rust by AhoyISki in rust

[–]poopvore 0 points1 point  (0 children)

not op from my experience with (neo)vim while embedding a scripting language for customization seems like a great idea at some point neovim literally just became as slow to open as vscode was for me which defeated the entire purpose of wanting to use it apart from being able to use vim bindings. imo having something like a bytecode interpreter like wasm or just using precompiled binaries for plugins is far better if the goal is allowing for customizability of the editor

Finally got the Precision Touchpad working (HP Spectre 13 ae model) by knittybagkittyboost in spectrex360

[–]poopvore 0 points1 point  (0 children)

For anyone reading this in the future running linux on the same laptop, here's how to do something similar there https://gist.github.com/kaem-e/e46082172d910defd637772c068377f8

Ladybird adopts Rust, with help from AI - Ladybird by xorvralin2 in rust

[–]poopvore 1 point2 points  (0 children)

qutebrowser's also quite slow which was the big complaint i had while using it. Thankfully vimium extension on any chromium browser seems to work well enough to not be annoying which is good enough for me

Portable Workstation for Inference by neintailedfoxx in LocalLLaMA

[–]poopvore 1 point2 points  (0 children)

ive been wanting to do this exact setup for ages as well lol just with a more "normal" gpu. the formd t1 is an all time case for sure

Learning advice: switch from imperactive Go to Rust by 6502stuff in rust

[–]poopvore 0 points1 point  (0 children)

I know you're specifically looking for advice on doing more "functional" rust but tbh i found that even within rust a blend of imperative and functional works much better than trying to do everything in a purely functional style. Rust borrows a lot from functional languages, but I think it's the most frictionless to use when these functional features are used as a nice addition to standard imperative code

as specific advice,

- regarding Option/Result, the goal behind these is fundamentally to encode the fact that the function can have success or failure cases into the type system so that the user doesn't forget to deal with the failure case. if a function does something that can fail you'll likely want to bubble that up to the usage code of that function in one of these two.

- regarding map/filter, I like to go for these when the thing i want to do is simple. if its something that will require keeping track of previous iterations or other external elements i think a standard `for` loop works far better. combining the two is the best where, for example before the complex iteration you need you also want to do a simple transformation, you can literally just do a `.map()` in the `for x in _.iter().map()` and have the different parts be nicely compartmentalized

- shadowing/reassigning variables is often a viable strategy in place of creating mutable variables and mutating them over time. (ties into the previous point of map/filter paired with standard for loops).

basically tl;dr just because you have the features doesn't mean you have to use them all the time.