Hacker News new | past | comments | ask | show | jobs | submit login

Why was the TS/react rewrite needed? Had react or ts broken it’s api?



React didn't substantially improve code flow, and added a dependency, config, a build step, and DSL. Typescript added a build step and config.

Stated another way: The new page is a single file written in web standards. The React/TS way is more complicated, requires a bigger download, and is slower.


Wasm and rust sound amazing. Are there any downsides? Performance issues? I heard there can be issues with dom manipulation but might be misremembering


Currently, WASM calls ultimately execute DOM API commands, so there is no performance benefit for DOM manipulation. This is expected to change, but I don't know the details.

I can't explain why, but WASM files end up much larger than an equivalent JS file. (And often larger than a NPM/framework-based etc JS bundle) Also, a build step.

Perhaps someone else who's used WASM more recently, or used it with a language other than Rust can comment.

It's nice being able to use whichever language you wish, but IMO not worth the downsides in its current state.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: