3 ms·
> Can someone speak to what language has the best support for this? I can give you the Rust perspective, but I'm not sure it's the best. > arbitrary file I/O
by ntoskrnl 4y ago
> Can someone speak to what language has the best support for this?
I can give you the Rust perspective, but I'm not sure it's the best.
> arbitrary file I/O
include_str! and include_bytes! make the contents of a file available as a string or a byte array. More complex types would need a build script (or transmute).
> non-fixed-sized containers, ie vector
No support in `const fn`, but you can again use a build script as an escape hatch.
> a generic memoization utility in the standard library for caching
There's nothing in the stdlib, but there are a few third party crates that give you the easy one-line syntax, such as https://crates.io/crates/memoize https://crates.io/crates/memoize