Herbie 2.2 provides a new platforms API for defining compilation targets, including adding new helper functions, multiple variations of a given function, number representations, and cost models. Herbie automatically optimizes its output for the chosen platform, and users can write custom platforms for their own language, library, or hardware to optimize Herbie for their use case. Besides the new platforms API, Herbie also features better performance, especially on large programs, and a new main loop that improves accuracy and run time.