MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/o9iy9k/javascript_is_weird/h3ck7mn/?context=3
r/programming • u/iamkeyur • Jun 28 '21
173 comments sorted by
View all comments
39
why can't we just have <script language="typescript"> ?
15 u/chucker23n Jun 28 '21 In the long run, we'll simply get <script type="application/wasm">, and everything else just targets a common runtime.Not currently feasible for various reasons (garbage collection, direct DOM access, etc.). 1 u/Ameisen Jun 28 '21 I'm surprised that there are no libraries for WASM floating about to mimic direct DOM access using a simple client/server async model. 1 u/chucker23n Jun 28 '21 There kind of are. E.g., https://github.com/kjpou1/wasm-dom/blob/master/samples/HelloCanvas/Canvas.csBut there's simply a lot of overhead. 1 u/Ameisen Jun 28 '21 If only Mono hadn't effectively dropped wasm-sdk. No more public releases, and I couldn't even get it to build anymore. 1 u/chucker23n Jun 28 '21 I think that's https://github.com/dotnet/runtime/tree/main/src/mono/wasm now, but I'm stuck trying to generate the Emcc.props.I used to be able to run the samples, before the great mono merge.
15
In the long run, we'll simply get <script type="application/wasm">, and everything else just targets a common runtime.
<script type="application/wasm">
Not currently feasible for various reasons (garbage collection, direct DOM access, etc.).
1 u/Ameisen Jun 28 '21 I'm surprised that there are no libraries for WASM floating about to mimic direct DOM access using a simple client/server async model. 1 u/chucker23n Jun 28 '21 There kind of are. E.g., https://github.com/kjpou1/wasm-dom/blob/master/samples/HelloCanvas/Canvas.csBut there's simply a lot of overhead. 1 u/Ameisen Jun 28 '21 If only Mono hadn't effectively dropped wasm-sdk. No more public releases, and I couldn't even get it to build anymore. 1 u/chucker23n Jun 28 '21 I think that's https://github.com/dotnet/runtime/tree/main/src/mono/wasm now, but I'm stuck trying to generate the Emcc.props.I used to be able to run the samples, before the great mono merge.
1
I'm surprised that there are no libraries for WASM floating about to mimic direct DOM access using a simple client/server async model.
1 u/chucker23n Jun 28 '21 There kind of are. E.g., https://github.com/kjpou1/wasm-dom/blob/master/samples/HelloCanvas/Canvas.csBut there's simply a lot of overhead. 1 u/Ameisen Jun 28 '21 If only Mono hadn't effectively dropped wasm-sdk. No more public releases, and I couldn't even get it to build anymore. 1 u/chucker23n Jun 28 '21 I think that's https://github.com/dotnet/runtime/tree/main/src/mono/wasm now, but I'm stuck trying to generate the Emcc.props.I used to be able to run the samples, before the great mono merge.
There kind of are. E.g., https://github.com/kjpou1/wasm-dom/blob/master/samples/HelloCanvas/Canvas.cs
But there's simply a lot of overhead.
1 u/Ameisen Jun 28 '21 If only Mono hadn't effectively dropped wasm-sdk. No more public releases, and I couldn't even get it to build anymore. 1 u/chucker23n Jun 28 '21 I think that's https://github.com/dotnet/runtime/tree/main/src/mono/wasm now, but I'm stuck trying to generate the Emcc.props.I used to be able to run the samples, before the great mono merge.
If only Mono hadn't effectively dropped wasm-sdk. No more public releases, and I couldn't even get it to build anymore.
1 u/chucker23n Jun 28 '21 I think that's https://github.com/dotnet/runtime/tree/main/src/mono/wasm now, but I'm stuck trying to generate the Emcc.props.I used to be able to run the samples, before the great mono merge.
I think that's https://github.com/dotnet/runtime/tree/main/src/mono/wasm now, but I'm stuck trying to generate the Emcc.props.
I used to be able to run the samples, before the great mono merge.
39
u/DuncanIdahos9thGhola Jun 28 '21
why can't we just have <script language="typescript"> ?