https://slatedb.io logo
Man, Rust is really being a pain in the
# general
c
Man, Rust is really being a pain in the ass today... 😵‍💫
a
story of my life haha! what's up today?
@Rohan and I were just complaining about the ludicrous build times. Our internal project takes like 20min to build all the dependent crates in our release build and it doesn't even have that many dependencies. for something that bills itself at being lightweight, as soon as you include tokio, tower and axum you're toast
c
Yea, it's brutal. Every time I save in my IDE (which is like every 15 seconds), I have to sit there and let it run everything for a minute. 😭
I'm trying to expose the panic payloads through a
db.panic()
API. But panic payloads are just
Box<dyn Any + Send>
, so they can't be cloned or shared across threads. This makes things really nasty for background threads that need to propagate the payload across async boundaries.
And yea, the "light weight" messaging is a fallacy. It's light weight because they didn't include anything, not because they have what you need in a small footprint.
I can make a light weight language too. It has only one type and doesn't support anything except println.
sigh
I really would like to see a language take Rust's ideas and introduce some concept of opt-in efficiency. I feel like Swift does this. It does CoW by default. And Mojo is similar (same author). That plus the ability to drop down when needed would be nice. Ditto for types. Like. Just clone shit. Don't make me do
let this_foo = foo.clone();
.
Profilers are good enough that I'd rather the compiler stay out of my way. I'll just profile. That same pattern but for threading/sync stuff would be great, too.
grumble grumble.. guess I liked about 😛
a
haha I agree with everything you are ranting about - I felt a lot of promise with the language at first and i'm slowly pained by what it means in practice
and I misse the JVM debugger/profilers 😿
c
Right?
Java ecosystem is definitely best in class for that stuff.. and I haven't even gotten to use their latest (JFR) stuff
a
JFR is great, I used that a lot with the responsive kafka streams stuff
c
I was always just blown away by visualvm and orkut.. even those are incredible lol
a
hehe I never really used those much - i'm trying to remember what i used before JFR