3 ms·
What are some of the cool advantages of rebuilding Magic Pocket with Rust (outside of just memory usage)?
by akhilcacharya 11y ago
What are some of the cool advantages of rebuilding Magic Pocket with Rust (outside of just memory usage)?
- jamwt 11y ago(We actually only rebuilt two components in Rust--most of Magic Pocket is still go.) Memory usage/control, easy FFI with C, safety/correctness of code. Those were the big advantages for our projects. Edit: deterministic destruction of resources is pretty great too. Yay RAII. Edit 2: So is the ability to use the "standard" C tool suite for performance, memory, debugging, etc. valgrind, jemalloc profiling, gdb/lldb, perf. All that stuff.