Join Nostr
2025-02-19 00:11:17 UTC

mcc on Nostr: A thing I'm having increasingly intense problems with in Rust: in most languages, if ...

A thing I'm having increasingly intense problems with in Rust: in most languages, if I need to do a thing most naturally achieved with a recursive algorithm, I prefer not to use actual recursive recursive function calls. Call stacks can have surprisingly low limits and querying them is usually annoying or impossible. So I like to rewrite recursive algorithms to use a regular stack.

However! This is very difficult in conjunction with Rust's rules about shared mutable pointers :(