▲ | the__alchemist a day ago | |
Good observations! I think Embassy worked out because its creator built it with the goal of shipping smart door locks, so the components of it he uses for that workflow work well. I think ownership sometimes works for the reason bring up: Catching errors. I suspect you will find cases where you are not as pleased you can't use something you moved elsewhere! In some cases the ownership semantics map smoothly to control over hardware; in others, it's not so good of a fit. I also suspect you are overestimating how difficult DMA and power management are without async. (In rust or otherwise) What you described is a ubiquitous embedded workflow, minus the state machine. | ||
▲ | bschwindHN a day ago | parent [-] | |
Yep, I can definitely imagine cases where ownership can get in the way of doing something esoteric, but at least there are escape hatches for that if needed. > I also suspect you are overestimating how difficult DMA and power management are without async. I probably am, but having ergonomic syntax to orchestrate it all feels like something I wouldn't want to give up, after experiencing it. |