burntcaramel
Joined 12 years ago
Joined 12 years ago
You can also run the same wasm on the command line:
npx @qip.dev/qipx qip.dev run \
image/webp/webp-to-ktx2-r8g8b8a8-srgb.wasm \
image/ktx2/ktx2-r8g8b8a8-or-b8g8r8a8-srgb-to-png.wasm \
< input.webp > output.png- WebAssembly: 4 float32s
- Mojo: N float32s where N is a compile-time parameter
- Go simd: vector of float32s
It me you think “ok, how big do I want the maximum image to be?” I’ve settled on 25 megapixels, which in the hundreds of megabytes. Since most images are much smaller, I believe on all mainstream hosts the memory isn’t paged in until it is first read/write so the memory footprint is much smaller.
A compiler promising source stability is a different commitment than the compiler’s code being ready for outside contributors. Which is also different to having ABI stability, which took until 5.0 for Swift to achieve (I think Mojo does not have ABI stability as a goal as it doesn’t have to link to OS frameworks).
https://qip.dev/docs/router