News for hackers. Stuff that matters.
Re:ChowJS: An AOT JavaScript engine for game consoles by eyelidlessness on Friday September 17, 2021 @01:09AM (#28561446)
I’m very aware of that, both from building libraries around the type system and watching the type system itself evolve over the last few years. While unsoundness is still a principle of the project, quite a lot of it has been addressed since 3.6 or so.

But an optimizing AOT compiler doesn’t need TS to be sound any more than a JS JIT does. It just needs to optimize the paths it has confidence in.

To the extent TS code hasn’t escaped type safety, a compiler can be aggressively strict and optimize wherever the types are unambiguous. And it can fall back to the dynamic compilation it already has otherwise.

There are no comments on this comment yet.