1,102 karma · joined Jun 12, 2015 (11y ago) · 1,205 submissions
comment 3y ago · link · parent
> Simple "hello world" at about 65kb, comparable to React
I assume that is minified and compressed. That's quite bloat. I wonder if they try https://github.com/johnthagen/min-sized-rust ?
Also I feel like the BytecodeAlliance too much focus on their cloud runtime use case while seamless wasm + dom interop is where its adoption will skyrocking. I would rather write Rust/Go/Roc/any-sane-typing instead of TS.
comment 3y ago · link · parent
66.
Ask HN: Is there any consultancy that helps get rid of React?
8 points · by Existenceblinks · 3y ago · 11 comments
comment 3y ago · link · parent
comment 3y ago · link · parent
Here is the wasm binary size number (2019): https://stackoverflow.com/questions/55135927/how-do-webassem...
I didn't bookmark Zig and other for the number, it's over here and there on HN threads and Github issues.
---
I think you conflated "wasm binary size from AssemblyScript" with AssemblyScript size itself, that's why you brought up React to compare with AssemblyScript. AssemblyScript doesn't compete with React. And comparing React with the others is also tricky because of paradigm difference. React view and logic are very coupled. Compile-to-wasm langs only compete with js/ts part excluding the DOM part .. at least for now because wasm can't even share string ref right now (the "stringref" proposal is currently phase-1 ), let alone DOM access.
Wasm-gc proposal is already in phase-3. I think languages that used to also compile their runtime with app code could be smaller because wasm host manage collect the garbage for you in terms of "struct" and "array" (you can check out https://github.com/WebAssembly/gc/blob/main/proposals/gc/Ove...)
comment 3y ago · link · parent
If you ask me to compare to React for todo app, wasm with gc + interfacing with DOM, is going to blow React out of water in both size and performance (logic wise). DOM-wise, thing like "signal" already won anyway.
I honestly don't understand why you bring up React.
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent