News for hackers. Stuff that matters.
Re: by mkj on Thursday October 02, 2025 @02:48AM (#45446938)
With Rust there are ways to do that on embedded (no heap). A wrapper StaticCell holds the allocation, then when you are ready you intialise it with the inner value. From then on work with a mut reference to the inner value. Being a bit verbose is the main downside AFAIK.

https://github.com/embassy-rs/static-cell

There are no comments on this comment yet.