Re:Why I Quit Google’s WebAssembly Team, and How It Made Me ...
by alex_duf on Wednesday May 11, 2022 @12:03PM
(#31341875)
I'm actually pretty excited about the three features you mention, mainly because it would make WASM useful to me.
[ Parent
| on HN ]
Re:Why I Quit Google’s WebAssembly Team, and How It Made Me ...
by amelius on Wednesday May 11, 2022 @12:07PM
(#31341920)
Why not make WASM as simple as possible, and let layers on top of it deal with extensions like GC?
Stacking abstractions, like how computer architecture used to work in the old days.
Re:Why I Quit Google’s WebAssembly Team, and How It Made Me ...
by Someone on Wednesday May 11, 2022 @03:20PM
(#31344524)
If you provide a non-opinionated base platform, users will add opinions, and those will not all be compatible with each other.
Not adding GC or not defining how exceptions work could easily lead to a situation where you want to use a couple of third-party libraries, but discover they, combined, use three different garbage-collecting memory allocators and two different ways to handle exceptions, even where function overloading works differently in different libraries.
As an example, look at string implementations in various C programs. Even if they if they boil down to a pair (int, malloced memory), you still might not be able to pass one obtained from a function in one library to a function in another library.
Re:Why I Quit Google’s WebAssembly Team, and How It Made Me ...
by amelius on Wednesday May 11, 2022 @05:13PM
(#31345863)
Sounds nice in theory, but I suppose that if Linux or OSX or whatever OS you use forced developers to use one style of GC, a lot of people would be very disappointed.
Re:Why I Quit Google’s WebAssembly Team, and How It Made Me ...
by jhgb on Wednesday May 11, 2022 @12:25PM
(#31342175)
I believe that the problem is that the more features you add, the less general it's going to be (for example, add canonical exception handling and you'll almost certainly exclude Common Lisp, the advanced exception handling features of which the canonical exception handling for WASM almost certainly won't include). Presumably on a scale from a physical computer to a JVM, you don't want to slide towards JVM too much, since not everyone wants to program in Java.
Re:Why I Quit Google’s WebAssembly Team, and How It Made Me ...
by marginalia_nu on Wednesday May 11, 2022 @12:40PM
(#31342400)
Sounds like what you want is Java Applets.
Re:Why I Quit Google’s WebAssembly Team, and How It Made Me ...
by SemanticStrengh on Wednesday May 11, 2022 @01:13PM
(#31342921)
Everyone wants graalvm, people have just not realized it yet and it's sad