Emscripten's compiled Web Assembly, used minimally

Sam Thorogood trên Dev.to viết,

Why did I write this post? Emscripten is a wonderful tool, but it has a long history (for asm.js), and isn't perfect. I think it errs too much on the side of "magic", and many posts rave about how it's so easy to EM_ASM_ or use binding-fu, but this all comes at a cost, and can introduce huge amounts of inadvertent overhead—think copying huge memory buffers around because we're trying to make them immutable or easily exposed.

Every language that is being compiled to Web Assembly needs a runtime—whether it be Go, or Rust, or C/C++ as we have here. I don't believe that we'll ever really be able to directly import Web Assembly via ES2015 modules, at least not without changes on the JS side. But it behooves us to write the smallest one we possibly can.

Đọc toàn bộ bài đăng.

Tôi nghĩ tất cả chúng ta đều thấy tiềm năng của thế giới, nhiều người trong chúng ta rất nhiều nền tảng khác hiện có thể truy cập web hoàn toàn xa lạ với chúng tôi và chúng tôi thực sự cần phải tìm hiểu những công cụ đó, cải thiện trải nghiệm nhà phát triển và imo cung cấp các thư viện dựng sẵn mà 'devs web truyền thống' chỉ có thể sử dụng.

About Me: Paul Kinlan

I lead the Chrome Developer Relations team at Google.

We want people to have the best experience possible on the web without having to install a native app or produce content in a walled garden.

Our team tries to make it easier for developers to build on the web by supporting every Chrome release, creating great content to support developers on web.dev, contributing to MDN, helping to improve browser compatibility, and some of the best developer tools like Lighthouse, Workbox, Squoosh to name just a few.