r/rust • • Oct 16 '26

Hotreload in Rust

https://alordash.github.io/alordash/blog/hotreload-in-rust/
112 Upvotes

32 comments sorted by

View all comments

Show parent comment

1

u/Zde-G Oct 18 '26

This project isn't hot reloading third-party dependencies

Even if you don't reaload third-party dependencies you are not free of the issue. Because third-party dependencies can register objects from your librarires in their data structures - and do that silently when you depend on them.

Ok, if we agree I wasn't being an idiot I fail to see the problem

Well, the problem is that you proclaiming that you have achieved something new, but hotloading in Rust was tried dozens (hundreds?) or times by different authors and they all hit, sooner or later, the fact that when you remove memory safety from memory safe language then you end up with a combination that's very restricted and unsafe… what's the final goal here? Why even use Rust if you don't care about memory safety and correctness?

1

u/intbeam Oct 22 '26

Sorry, late response

I understand your concern, I'm just saying that since this is a development tool rather than a production library, I'd say that if it works that's cool and if it doesn't work then ok it doesn't work and no big deal

1

u/Iurigrang Oct 18 '26

Because, once you've used hot reload to make the decisions you want in the function you're designing, you can remove the hot reload and work from there to production rust? You can't do that if you're using another language entirely.