WebAssembly可能不是JavaScript的替代品,但确实有很多提供

95% of the   1.6 billion websites in the world rely on JavaScript to get the job done, but that doesn’t make it popular or well-liked. As a programming language, JavaScript is that ugly, smelly shopkeeper that insists you give them a kiss on the cheek every time you go do your shopping. You don’t want to, but if you want to get your supplies, you have to. WebAssembly (WASM) is that fresh, young shop assistant that winks at you every time they see you. While it won’t replace JavaScript, it assists in getting the required result faster. For programmers,   a decent programming language will help them get the results they need.
世界16亿个网站中有 95%依靠JavaScript来完成工作,但这并没有使其受欢迎或受欢迎。 作为一种编程语言,JavaScript是那种丑陋,臭气熏天的店主,坚持每次购物时都要让他们亲一下。 您不想要,但是如果您想获取耗材,则必须这样做。 WebAssembly(WASM)是那位年轻的年轻店员,每次见到您时都会对您眨眨眼。 尽管它不能代替JavaScript,但可以帮助更快地获得所需的结果。 对于程序员而言, 一种体面的编程语言将帮助他们获得所需的结果。
WebAssembly Might Not Be JavaScript’s Replacement, But It Does Have A Lot To Offer 

WASM将允许您跨平台共享… (WASM Will Allow You To Share Across Platforms… Soon)

Imagine being able to share code across platforms without slowing down the network or compromising the safety of the information. WASM already has all the makings of this capability. With a few tweaks here and there from developers, the open standard should be able to communicate across platforms in the near future. For programmers, this means higher productivity and a reduction in language errors across devices. This means better integration between desktop and web-based apps.
想象一下,能够在不降低网络速度或不影响信息安全的情况下跨平台共享代码。 WASM已经具备了此功能的所有功能。 通过开发人员的四处调整,开放标准应该能够在不久的将来跨平台进行通信。 对于程序员而言,这意味着更高的生产率并减少了跨设备的语言错误。 这意味着桌面和基于Web的应用程序之间可以更好地集成。
What developers are looking to achieve, is to allow a language such as Python to run in its own development time without compromising the other elements of the site. It would also open up the door to run modules together with different source languages, such as a Rust module and Go module running together.   Webassembly will replace all the glue code that can clog up the browser.
开发人员希望实现的目标是允许诸如Python之类的语言在其自己的开发时间内运行,而不会损害网站的其他元素。 它还将打开同时运行具有不同源语言的模块的大门,例如Rust模块和Go模块一起运行。 Webassembly将替换所有可能阻塞浏览器 的粘合代码

WASM专为Web设计 (WASM Is Designed For The Web)

4.48 billion users using the web, which means that any language that   44.8亿用户在使用Web ,这意味着欢迎 speeds up browsers to near-native is a welcome addition. But WASM is more than just that. All this happens securely, which means online gaming, porting from desktop apps to web apps, and using a server-less computer. 将浏览器速度提高到接近本机的任何语言。 但是WASM不仅限于此。 所有这一切都是安全进行的,这意味着在线游戏,从桌面应用程序移植到Web应用程序以及使用无服务器计算机。

浏览器插件变得简单 (Browser Plugins Become Simplified)

While JavaScript seems likely to stick around for still some time, it’s worth noting that languages such as WASM bridge the gap for more compact and efficient coding. For programmers and developers alike, speed and efficiency mean nothing without security, and WASM provides all.

尽管JavaScript可能还会持续存在一段时间,但值得注意的是,诸如WASM之类的语言填补了更紧凑,更高效的编码的空白。 对于程序员和开发人员一样,没有安全性,速度和效率就毫无意义,而WASM可以提供一切。

翻译自: https://www.thecrazyprogrammer.com/2020/02/webassembly-might-not-be-javascripts-replacement.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值