Autogenerating Rust-JS bindings with UniFFI - Mozilla Hacks
This blog post will walk through how we developed UniFFI: a Rust library for auto-generating foreign language bindings.
Stay updated with breaking news from Firefox Desktop. Get real-time updates on events, politics, business, and more. Visit us for reliable news and exclusive interviews.
This blog post will walk through how we developed UniFFI: a Rust library for auto-generating foreign language bindings.
Mozilla is now showing ads in the form of sponsored Firefox contextual suggestions when U.S. users type in the URL address bar.
nigeltao.github.io Summary: Wuffs’ PNG image decoder is memory-safe but can also clock between 1.22x and 2.75x faster than libpng, the widely used open source C implementation. It’s also faster than the libspng, lodepng and stb_image C libraries as well as the most popular Go and Rust PNG libraries. High performance is achieved by SIMD-acceleration, 8-byte wide input and copies when bit-twiddling and zlib-decompressing the entire image all-at-once (into one large intermediate buffer) instead of one row at a time (into smaller, re-usable buffers). All-at-once requires more intermediat...