真人街机捕鱼

Your Position: Home > News > Hanshou Website

What? I heard that I do n’t need JavaScript in the future?

Date: 2017-3-17 10:06:03 Popularity: label:
share to:
In the past few years, the JavaScript landscape has been infinite. I have been attacking the city everywhere, and I heard that even embedded development will use it. Why did someone copy his backyard in his backyard? Who is so bold to visit the muddy waters of the browser?

This is a technology called WebAssembly, literally called Web Assembly. It can now be written in a language like Rust, and then compiled using a special compiler toolchain. Both Firefox and Chrome browsers now support loading and running WebAssembly format code.

So what language is Rust? Rust is designed as a system programming language to replace C ++. It can develop various types of applications, operating systems, and run on embedded devices. Oh, this is a story that hurts each other.

WebAssembly is statically typed. Compared to JavaScript, it saves compilation and optimization time, garbage collection is completely bid farewell, and even program files are relatively smaller! Mozilla Hacks has an article detailing the advantages of WebAssembly in various aspects: http://hacks.mozilla.org/2017/02/what-makes-webassembly-fast/. For those of you who are interested in writing larger and larger Web applications, it is worth a brief reference.

In addition to the native WebAssembly, it also has a transitional version of js implementation, asm.js. For non-natively supported WebAssembly JavaScript environments, asm.js formatted code will also work.

For computationally intensive tasks, some people have compared the performance of three solutions based on JavaScript, WebAssembly, and asm.js, and concluded that the performance of WebAssembly is much better than the other two solutions on two popular browsers, even asm.js The transition solution is still better than native JavaScript. Click to view the original text to find this performance comparison, and there is an interactive test interface on the page, and readers can have a personal experience.
0
0
0
0
0
0
0
0
Name
Verification Code
Can't see clearly, change another Already Comment information, click to view comments
Comments from users
Next: No information