Fidget: A High-Performance Rust Library for Large-Scale Math Expressions

2025-01-08

Fidget is a Rust library for representing, compiling, and evaluating large-scale math expressions. Primarily designed for implicit surfaces, its flexibility extends to various applications. Architecturally layered, Fidget comprises a frontend (script-to-bytecode), backend (fast, flexible evaluation), and algorithms (rendering and meshing). Its core innovation combines interval arithmetic and trace simplification for efficient handling of massive expressions, further enhanced by JIT compilation. Offering diverse demos including a web-based GUI, Fidget supports automatic differentiation and interval arithmetic.