News for hackers. Stuff that matters.
Re:Zeroperl: Sandboxing Perl with WebAssembly by rurban on Wednesday February 12, 2025 @01:30AM (#43022505)
This guy is just crazy. https://github.com/libexif/libexif exists and is much easier to use than compiling perl to wasm, just to run the overly slow exiftool.
Re:Zeroperl: Sandboxing Perl with WebAssembly by andrew_rfc on Wednesday February 12, 2025 @01:56AM (#43022613)
I’m not sure where you got the idea it’s slow, but it executes within 30% of native speed. Which means extracting the metadata from a 30 GB pro video in my test takes 300-400ms.

Speaking of - libexif doesn’t support a lot of file formats, whereas ExifTool does.

If I always opt to choose the easiest path then I’m setting a precedent for myself that I will compromise on all my goals for half finished solutions that take me further from initial idea.

Re:Zeroperl: Sandboxing Perl with WebAssembly by transpute on Wednesday February 12, 2025 @01:51AM (#43022593)
There are security benefits to WASM sandboxing of client-side parsing of untrusted image files, to avoid scenarios like https://imagetragick.com