by 999900000999 · 1y ago · 0 comments
Brendan Eich ( the creator of JavaScript) was kind enough chime in that it would be impossible for variety of reasons.
Obviously he knows more about this than me, but I think Google could put Dart in there if they really wanted.
WebAssembly is pretty close though.
Internet explorer just didn't provide the same experience as Chrome.
For example if Firefox decides to add Rust support it doesn't mean every other browser needs to support it.
Just a handful of web experiences are going to be exclusive to Firefox. As is having Chrome as the only browser most people use isn't great for innovation.
Most sane HN commenter. Jesus Christ.
Me: Well different browsers could support different features.
HN: NOT LIKE THAT, we want every website to be compatible with everything!
Part of why WebAssembly was successful is that it's a way of generating javascript runtime IR instead of a completely new language + standard library - browsers can swap out their JavaScript frontend for a WASM one and reuse all the work they've done, reusing most of their native code generator, debugger, caches, etc. The primitives WASM's MVP exposes are mostly stuff browsers already knew how to do (though over time, it accumulated new features that don't have a comparison point in JS.)
And then WASM itself has basically no standard library, which means you don't have to implement a bunch of new library code to support it, just a relatively small set of JS APIs used to interact with it.
<script type="module" src="https://pyscript.net/releases/2025.8.1/core.js"></script>
<py-script>
import sys
from pyscript import display
display(sys.version)
</py-script>
Demo: https://static.simonwillison.net/static/2025/pyscript-demo.h...Or you can use MicroPython which is much smaller:
<mpy-script>
import sys
from pyscript import display
display(sys.version)
</mpy-script>
Demo: https://static.simonwillison.net/static/2025/pyscript-microp...I would be interested to see how short the time to run "Hello World" can be with python in a webpage, counting the time to load the whole page without cache.
That being said, I'm also 100% behind the effort to standardize WASM as the cross-platform compilation target of choice.