News for hackers. Stuff that matters.
Re:Using TS type annotations for JavaScript engine optimization by h4ch1 on Sunday January 28, 2024 @04:25PM (#39169967)
Just a hitch found on https://porffor.goose.icu/

On running the example 'Array Reading' with an optimization level of 3 I get the following error

CompileError: WebAssembly.instantiate(): Compiling function #2 failed: local.set[0] expected type f64, found global.get of type i32 @+207

Is this expected?

Re:Using TS type annotations for JavaScript engine optimization by canadahonk on Wednesday January 31, 2024 @12:29PM (#39206628)
Unfortunately yes, optimizer at high levels is very unstable/aggressive at the moment. Currently working on refactoring things for perf generally instead of just an optimizer, but definitely will fix in the future!