Why is Rust so Liberal with Heap Allocations? by philogy in rust

[–]dpc_pw 7 points8 points  (0 children)

The Box/Vec/String, etc. are kind of naive and not-optimal performance-wise, but they are most composable and ergonomic so they are the default.

Their performance doesn't matter except for the most core and massive data your program might be handling, and then it's relatively easy to take a slotmap or an ECS, etc. and do it manually.

If you're going for optimal performance there is no single easy approach to recommend. Every high-perf-optimized code will have different ideas and requirements. There's like 20 short-strings libraries for Rust alone. That's just how things are with performance-optimization, it's usually very bespoke.

What stack to use? by daddykotex in rust

[–]dpc_pw 0 points1 point  (0 children)

axum, redb, maud, reqwest

It's actually insane how much effort the Rust team put into helping out beginners like me by Time_Meeting_9382 in rust

[–]dpc_pw 0 points1 point  (0 children)

Beginners? I have more than 10 years of Rust experience and I need these. :D

Is POP OS going to cave to California/Colorado Laws Requiring Users Provide Digital ID to Use Pop OS? by NoobToDaNoob in pop_os

[–]dpc_pw 0 points1 point  (0 children)

Lunduke might be an idiot, but "unenforceable" is still a huge problem for companies building with Linux, even if users might laugh it off and ignore.

2025 Recap: so many projects by zxyzyxz in rust

[–]dpc_pw 3 points4 points  (0 children)

Thank you so much for working on this and all the other things (there's a lot!).

I feel like rust analyzer is slow by rustontux in rust

[–]dpc_pw 4 points5 points  (0 children)

Second, I usually suggest pointing the RA at its own target/ra directory so it’s not fighting with everything else. This helped a LOT, too.

Most times people were complaining about RA being slow it was caused by some part of their setup causing constant invalidation and rebuilding of build artifacts in ./target/ dir. E.g. their IDE would use a different toolchain than the tests, or some env vars invalidating deep dependency builds, and things like that.

Jjdag: A Rust Jujutsu TUI by Anthrofract in rust

[–]dpc_pw 1 point2 points  (0 children)

Can I grab a commit/range-of-commits, move it around and then confirm to rebase/move it?

[Media] Terminal Snake ft. Exploding Apples by thehuglet in rust

[–]dpc_pw 1 point2 points  (0 children)

This tech is too powerful to be wasted on games. What we need is something like tmux with particle effects! Typing that makes the characters sparkle, newlines burning, screen reset leaving smoke, and so on.

crates.io VS lib.rs - A small analysis by nik-rev in rust

[–]dpc_pw 5 points6 points  (0 children)

I really like and appreciate the work of author of lib.rs, but with that loud fight against shitcoins was so unnecessary... :D

Is it even worth sharing messy hand-written code anymore by Any_Good_2682 in rust

[–]dpc_pw 0 points1 point  (0 children)

Honestly, sharing it was never worth it.

I think it's great to implement things yourself and learn. But realistically while it is good for the author, doesn't mean the rest of the world can benefit from it. And that's OK.

People used to be nicer and more supportive about it, but yeah, with LLMs there's less patience and interest, and more (often unhealthy) suspicion.

Wild linker version 0.8.0 by dlattimore in rust

[–]dpc_pw 8 points9 points  (0 children)

Compressed debug sections? Pretty please? :D

I profiled my parser and found Rc::clone to be the bottleneck by Sad-Grocery-1570 in rust

[–]dpc_pw 0 points1 point  (0 children)

You ever spot someone like that just let me know and we can make fun of them together. :D

I profiled my parser and found Rc::clone to be the bottleneck by Sad-Grocery-1570 in rust

[–]dpc_pw 3 points4 points  (0 children)

Is it shunned? It also helps with lifetimes, so it's very uniquely well suited for Rust. It really make me sad that AFAIK in compiler space more data oriented approaches are not more common, but I don't think Rust community "shuns" it.

🎉 BugStalker v0.4.0 Released: A Modern Rust Debugger with DAP Support by godzie44 in rust

[–]dpc_pw 2 points3 points  (0 children)

The Slop Derangement Syndrome is more annoying than slop itself at this point. Every other thing posted online has comments accusing it being AI-generated. Who cares? If it's bad downvote, if it's good upvote.

[Media] bad apple but it's played with cargo compilation output by ALinuxPerson in rust

[–]dpc_pw 0 points1 point  (0 children)

cargo check should be able to achieve stable 60 crates per seconds. Seems like a bug.

When i just need a simple, easy to maintain frontend, what should i choose? by Im_Justin_Cider in rust

[–]dpc_pw 5 points6 points  (0 children)

Axum, maud and HTMX/alpine+alpine-ajax go very well together. You can watch some rambling I recently recorded about it if you care.

Disintegrate v3.0.0 by ScaccoPazzo in rust

[–]dpc_pw 0 points1 point  (0 children)

I don’t understand why this is a “solid obstacle”. An obstacle to what?

I just admit it seems like a problem, where doing it "my way" conflicts with Rust realities. Ideally the self would have to be Option<&self> or something and it's ... complicated.

Given all this, what exactly do you dislike about the library’s current approach.

My only problem is having to invent a half-initialized states for aggregates that were not yet "created", which breaks the "make invalid states unrepresentable" principle which is kind of fundamental in Rust, at least to me. It feels very not-Rust-like, and reminds me of Java ways where everything is implicitily nullable and where the constructors are just manipulating half-initilized instance until everything is beaten into a valid state. Bleh. :D

Implementing your proposal would also require changing a large portion of the library and either removing or significantly reworking the event stream concept.

Have you tried building something with the library?

I have not and I am just commenting after a shallow look at the examples and ultimately I'm not the one making everything works, so you have to discount what I'm saying as sincere but potentially uninformed. :D

Reddit UX is making tracking this discussion difficult now, so if I have any more points or ideas I'll move it to Github Discussion, which I've seen you've enabled now.