Skip to content
Search

Wuffs

lastmod 2021-04-08created 2021-04-081 edits

A programming language for handling file formats safely.

About

Wuffs (Wrangling Untrusted File Formats Safely) is formerly known as Puffs (Parsing Untrusted File Formats Safely).

Wuffs is a memory-safe programming language (and a standard library written in that language) for wrangling untrusted file formats safely. Wrangling includes parsing, decoding and encoding. Example file formats include images, audio, video, fonts and compressed archives.

It is also fast. On many of its GIF decoding benchmarks, Wuffs measures 2x faster than "giflib" (C), 3x faster than "image/gif" (Go) and 7x faster than "gif" (Rust).

Features

  • A memory-safe programming language, and a standard library, for handling untrusted file formats and the like
  • Wrangling Untrusted File Formats Safely
    • Wrangling includes parsing, decoding, encoding, etc.
  • Supports image, audio, video, font, and compressed file formats
  • The goal is to build software libraries as fast as C but as safe as Go/Rust
  • Provides code transpiled to C, so it can be used as-is in existing C/C++ projects
  • Not a general-purpose programming language; a language for developing libraries, not programs
    • That is, only the performance- or security-critical parts are written in Wuffs, rather than the whole program
  • In GIF decoding benchmarks, 2x faster than gitlib (C), 3x faster than image/gif (Go), and 7x faster than gif (Rust)

See also

Favorite site

author Zer0 sitemap