News for hackers. Stuff that matters.
Re:F3: The Open-Source Data File Format for the Future [pdf] by mgaunard on Thursday October 02, 2025 @04:13AM (#45447332)
Requiring any implementation who wants to read the data to be able to run webassembly means the format is ill-suited to any environment which aims to reduce dependencies or bloat.
Re:F3: The Open-Source Data File Format for the Future [pdf] by aDyslecticCrow on Thursday October 02, 2025 @04:20AM (#45447368)
Wasm is pretty simple; Don't confuse it with the "web" part of the acronym. And as others point out; wasm is a backup. You can use native binding without going through wasm, which provide better performance,
Re:F3: The Open-Source Data File Format for the Future [pdf] by mgaunard on Thursday October 02, 2025 @07:57AM (#45448522)
it needs a compiler to convert it to machine code, it also has a non-trivial runtime...
Re:F3: The Open-Source Data File Format for the Future [pdf] by Bigpet on Thursday October 02, 2025 @10:00AM (#45449696)
Don't know if you need to compile, you might want to but I think interpreting might seem reasonable if size/complexity is a concern.

Is the runtime really that large? I know with wasm 2.0 with garbage collection and exceptions is a bit of a beast but wasm 1.0? What's needed (I'm speaking from a place of ignorance here, I haven't implemented a WASM runtime)? Some contiguous memory, a stack machine, IEEE float math and some utf-8 operations. I think you can add some reasonable limitations like only a single module and a handful of available imports relevant to the domain.

I know that feature creep would almost inevitably follow, but if someone cares about minimizing complexity it seems possible.

Re:F3: The Open-Source Data File Format for the Future [pdf] by drob518 on Thursday October 02, 2025 @10:45AM (#45450339)
If you view WASM as a worst case fallback, then you could implement a simple interpreter and transcode the file to something that your program has native decoders for. Yes, that might be slow, but at least the data remains usable. At least, that’s my understanding. I don’t have a dog in the hunt.
Re:F3: The Open-Source Data File Format for the Future [pdf] by Certhas on Thursday October 02, 2025 @04:34AM (#45447444)
If you have a native decoder you don't need to run WASM. It's literally in the abstract.
Re:F3: The Open-Source Data File Format for the Future [pdf] by Someone on Thursday October 02, 2025 @03:27PM (#45454279)
But given a file in this format, you cannot know whether your native decoder can read it without running WASM; the file you read may use a feature that was invented after your library was written.
Re:F3: The Open-Source Data File Format for the Future [pdf] by ko27 on Thursday October 02, 2025 @06:33PM (#45456408)
Of course you can, you can literally read the version from the file itself.
Re:F3: The Open-Source Data File Format for the Future [pdf] by Certhas on Sunday October 05, 2025 @04:34AM (#45479961)
As others said: you can. And what's the alternative? Not being able to read the data or never being able to evolve the encoding.