2 ms·
Rather than Rust, the correct choice here was WUFFS because Apple's explicit purpose here was to Wrangle Untrusted File Formats Safely which is literally why WU
by tialaramex 5y ago
Rather than Rust, the correct choice here was WUFFS because Apple's explicit purpose here was to Wrangle Untrusted File Formats Safely which is literally why WUFFS is called that.
Unlike Rust, WUFFS isn't a general purpose language it can only express a subset of possible programs. For example, WUFFS can't express the program NSO wanted here ("Provide a way to escape from this sandbox") whereas of course in a general purpose language that would feel annoyingly restrictive. What if you want to escape from the sandbox?
WUFFS is exactly the right tool for, say, parsing a file you received to turn it into an image for display on the iPhone's screen.
Except, of course, if your focus is on features at all costs. If you don't care about security then it sucks that WUFFS can't take a file and maybe overwrite the operating system or whatever.