by wahern · 6y ago · 0 comments
The Rust code, by contrast, slurps up the entire file contents into a buffer before writing it out. If someone is going to write code that way why even bother with a low-level language? (This "memory is infinite" mentality is something I've noticed in other Rust projects, even major ones like mio.)
Beyond that, that file is just a simple example for showing how to work with the toolchain and the sandbox.