Building WASM library with Zig

This is written for Zig 0.14.1. For my chromahack project I've used zig to implement the language. To integrate this into an interactive web app I had to compile it to WASM . Function Definition The original function I wanted to export as WASM has this signature: pub fn render_point(program: []const u8, t: f32, x: f32, y: f32) [3]f32 This was a problem as the WASM target does not support the types…