短评 · ·

X 归档 2020-04-13

2 条动态 · 图 1 · 视频 0
Just ✨ released ✨ v1.2.0 of my @AssemblyScript plugin for @RollupJS:

+ Support for multi-file projects
+ Support for generating source maps
- Bugs when with error reporting

It feels alien but nice to step through your WebAssembly in DevTools!

https://github.com/surma/rollup-plugin-assemblyscript
刚刚 ✨ 发布 ✨ 了我的 @AssemblyScript @RollupJS 插件 v1.2.0:

+ 支持多文件项目
+ 支持生成 source maps
- 修复了错误报告相关的一些 bug

在 DevTools 里单步调试你的 WebAssembly,感觉既陌生又美妙!

https://github.com/surma/rollup-plugin-assemblyscript
@DasSurma 的配图 1/1
@Loilo92 @AssemblyScript @RollupJS Not quite. JS has the same *peak performance* as Wasm. But JS has to run and be observed by the engine until it can get optimized. Wasm doesn’t have that warmup. So if you have code that runs only once but needs to fast, wasm might give you an edge.
@Loilo92 @AssemblyScript @RollupJS 不完全是。JS 的*峰值性能*和 Wasm 一样。但 JS 必须先运行、被引擎观察一段时间,才能被优化。Wasm 没有这个预热过程。所以如果你的代码只运行一次但需要快,wasm 也许能给你带来优势。