6 ms·
"Here at Dioxus Labs, we have an unofficial rule: only one rewrite per year." If you have to rewrite your code once a year, maybe it helps to plan ahead before
by dasloop 2y ago
"Here at Dioxus Labs, we have an unofficial rule: only one rewrite per year."
If you have to rewrite your code once a year, maybe it helps to plan ahead before coding.
But, if you can rewrite your code once a year, you might not have too much code to worry about.
- jkelleyrtp 2y agoAgreed, but we've been doing a lot of R&D discovering new ways of doing things. Dioxus was the first Rust framework to do template-based hotreloading and we couldn't have predicted that was even possible 2 years ago. The Copy-state stuff also seemed impossible a year ago, so no way to plan ahead. Now, I think things have matured enough that there's hopefully not a major major rewrite for a long time.
- 63stack 2y agoDid something happen in rust that made the copy state thing work? Or was it just "huh nobody thought of this before"?
- jkelleyrtp 2y agoSomeone else figured it out :-) I think we had a prototype of it a long time ago but couldn't figure out how to implement drop. Leptos came out but just leaked the runtime in its initial rev. We figured we could safely recycle the runtimes and voila, problem solved.