4 ms·
Maybe I missed it but I don't get how this improves the JS implementation Are they planning to run Rust in the browser? Or make some sort of node module that c
by afjeafaj848 3y ago
Maybe I missed it but I don't get how this improves the JS implementation
Are they planning to run Rust in the browser? Or make some sort of node module that calls down into rust?
- adam_arthur 3y agoRust can run in the browser via compiling down to, and running as, WebAssembly. So I don't see why not. Prettier is run mostly on the serverside though, not the browser. I assume supporting both is still desirable though
- WorldMaker 3y agoThere are node modules already that call into WASM-wrapped rust. (One of the most common source map generation packages does exactly that and it is very heavily installed by a lot of frameworks and packagers today.) I don't think prettier is intending to do that in this case, they seem to want to continue to compete as a pure JS implementation but having a "worst case, we WASM wrap biome as the future of prettier" possibility opens up future opportunities and pushes "internal" competition.