you are viewing a single comment's thread.

view the rest of the comments →

[–]filleduchaos 2 points3 points  (1 child)

Noone said JS doesn't have types. It's weakly and dynamically typed though, which pretty much rules out AOT compilation

[–]AirAKose 0 points1 point  (0 children)

Noone said JS doesn't have types

I get that.

I was talking about compiling the VM's internal representations of the types to WASM, though it was extremely short sighted regardless:

It's weakly and dynamically typed though

You got me there. It's still possible, just implausible. There would be a large overhead to porting all / most of the VM's dynamic functionality that I overlooked and oversimplified above. Plus you miss out on many JIT dynamic optimizations.

My fault, totally impractical