[–] lirolero 1 day ago
[–] zamalek 1 day ago
Same thing applies here. Even Rust has a crate for dealing with binary data, despite its memory promises: https://crates.io/crates/untrusted
It's a fucking minefield, and this is one area where the Rust zealots are undeniably correct. It doesn't have to be Rust, any memory safe language will do, but Rust also happens to be performance competitive and that's usually also desirable.
[–] tialaramex 1 day ago
Rust is a general purpose programming language, which is great if your problem might be something never imagined before, but this literally isn't our first rodeo, we have wrangled lots of file formats before, we should use a language purpose-built to do that safely.
[–] zamalek 1 day ago
I don't understand how I hit the anti-Rust tripwire here:
> My comment: any memory safe language will do
[–] tialaramex 1 day ago
I like 4th edition D&D but if you're trying to make a story about nuanced inter-personal conflict in which there's no actual violence it's just not the right roleplaying system and so I'm not going to agree with your choice to recommend 4eD&D as the system for the story "Love and Jealousy in the Elven Forest"
I've written a whole bunch of Rust, and hardly any WUFFS - but, I wasn't writing code for Wrangling Untrusted File Formats and that's very much what you're doing in a PDF parser.
[–] tptacek 1 day ago
[–] DonHopkins 8 hours ago
You're right, PDFs are horrible scary monsters who you should never trust.
[–] advisedwang 1 day ago
[–] jeffbee 1 day ago
[–] OptionX 1 day ago
You're confusing just assuming by default its enough for purpose rather than not caring at all.
[–] j16sdiz 1 day ago
You can downvote anything not interesting.
If he have list some alternative or give example, it might be interesting.