📜 ⬆️ ⬇️

Microsoft added full support for asm.js in Edge in Windows 10



Microsoft has added support for asm.js in Windows Insider builds version 10532 and higher. Since the much-anticipated update for TH2 for stable versions of Windows comes with version 10586, it will be available on these systems later this month, since Microsoft plans to release TH2 for all systems in November.

Asm.js is a set of JavaScript commands that run significantly faster than regular JavaScript code. The package was created in Mozilla, and received (and still receives) excellent developer feedback. The latter use Asm.js where you need improved performance, for example, to create game engines for browsers. There is even a version of Unreal Engine 3, which is ported to Asm.js. Earlier this year, Microsoft announced its intention to use Mozilla development in its Windows 10 operating system.

More specifically, Asm.js will work as part of the Chakra engine, which handles scripts in the system. Support for the package adds the ability to use the Emscripten compiler to compile C / C ++ into a special-performance JavaScript version. Thus, in Windows 10, the performance of Unity, Unreal, ScummVM engines can be significantly improved.
')
In June of this year, Microsoft added support package for its Microsoft Edge browser, but only now Asm.js support is enabled by default. Optimized code can use webview.



To demonstrate the capabilities of asm.js in Windows 10, the corporation created Chess Battle . An AI with optimized code plays against AI without optimization, with a time limit of 200 ms per stroke.

In an optimized AI, the performance in the game is higher, since it can calculate a greater number of moves than AI without optimization using asm.js.

Source: https://habr.com/ru/post/366997/


All Articles