惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
Schneier on Security
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
T
Threat Research - Cisco Blogs
C
Cyber Attacks, Cyber Crime and Cyber Security
C
CXSECURITY Database RSS Feed - CXSecurity.com
A
Arctic Wolf
Security Latest
Security Latest
Simon Willison's Weblog
Simon Willison's Weblog
I
Intezer
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
T
Troy Hunt's Blog
Latest news
Latest news
Help Net Security
Help Net Security
S
Security Affairs
Webroot Blog
Webroot Blog
The Hacker News
The Hacker News
AI
AI
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
T
Tor Project blog
Forbes - Security
Forbes - Security
Google DeepMind News
Google DeepMind News
AWS News Blog
AWS News Blog
Attack and Defense Labs
Attack and Defense Labs
P
Proofpoint News Feed
www.infosecurity-magazine.com
www.infosecurity-magazine.com
H
Help Net Security
L
Lohrmann on Cybersecurity
S
SegmentFault 最新的问题
Google Online Security Blog
Google Online Security Blog
MongoDB | Blog
MongoDB | Blog
Cyberwarzone
Cyberwarzone
The Last Watchdog
The Last Watchdog
S
Securelist
N
News and Events Feed by Topic
S
Secure Thoughts
F
Fortinet All Blogs
博客园_首页
C
Cybersecurity and Infrastructure Security Agency CISA
量子位
M
MIT News - Artificial intelligence
F
Full Disclosure
T
The Blog of Author Tim Ferriss
T
Tailwind CSS Blog
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Microsoft Security Blog
Microsoft Security Blog
I
InfoQ
P
Privacy International News Feed
L
LangChain Blog
Know Your Adversary
Know Your Adversary
C
CERT Recently Published Vulnerability Notes

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
WebAssembly in 2026: A Practical Guide to Wasm and WASI for Modern Developers
Moksh Gupta · 2026-06-15 · via DEV Community

Google Sheets recalculates cells twice as fast after shifting its compute engine to WebAssembly. Figma cut initial load time by 3x. Shopify executes custom checkout rules compiled from Rust to Wasm at the CDN edge - all in production, serving millions of users every day.

WebAssembly started as a way to bring C++ into the browser. Today, in 2026, it is a universal binary runtime that executes in browsers, edge networks, serverless functions, and even AI inference pipelines. The W3C ratified Wasm 3.0 as a formal standard in September 2025, and WASI Preview 2 is now stable. The tooling has matured to a point where it genuinely works.

Over 70% of developers now evaluate or actively use Wasm outside the browser, per CNCF survey data. This is no longer a niche experiment.

What Is WebAssembly?

WebAssembly is a compact binary instruction format designed to run inside a sandboxed virtual machine. That VM is embedded in every major browser, in standalone runtimes like Wasmtime, and on cloud platforms from Cloudflare Workers to AWS Lambda.

Key properties that make it worth your attention:

  • Near-native speed - Wasm runs at 80-95% of native performance with no JIT warmup delay. The binary arrives structured for fast parsing, unlike JavaScript that must be parsed and compiled on every load.
  • Language-agnostic - Rust, C/C++, Go, Python, AssemblyScript, C#, and Kotlin all compile to Wasm. Your team picks the language; the runtime only sees the .wasm binary.
  • Deterministic execution - The same Wasm binary produces identical results whether it runs in Chrome, Firefox, Node.js, or Wasmtime on ARM or x86.
  • Sandboxed by default - A Wasm module starts with zero permissions. No filesystem, no network, no system calls unless the host runtime explicitly grants them.

Wasm does not replace JavaScript. It runs alongside it. JavaScript manages the DOM, events, and most application logic. Wasm handles the parts where JavaScript hits a performance ceiling.

A Quick Look at Wasm's History (2017-2026)

Wasm shipped in all four major browsers in 2017 as a W3C MVP. In 2019 it became an official W3C standard. The real transformation happened in 2020 with the announcement of WASI, which let Wasm escape the browser entirely.

WasmGC shipped in all major browsers in 2024, enabling garbage-collected languages like Kotlin and Java to target Wasm without bringing their own GC. In September 2025, Wasm 3.0 was ratified. February 2026 brought WASI 0.3.0 with native async I/O using futures and streams - the last major gap between Wasm and conventional server runtimes.

The ecosystem feels like it "arrived" recently because WASI and the Component Model are what turned Wasm from a browser trick into a production server runtime.

Real-World Adoption: Companies Already Running Wasm in Production

Figma compiled its C++ rendering engine to Wasm using Emscripten. The result: 3x faster load times across all document sizes. This was a full production rewrite, not a proof of concept.

Google Sheets migrated its calculation engine to WasmGC, achieving 2x faster recalculation. Sheets with millions of cells now finish in under a second.

Shopify Functions allows merchants to write custom discount and checkout logic in Rust, compiled to Wasm, executed at the edge inside a strict 10ms time budget. No Node.js function could reliably meet that ceiling at scale.

Adobe Premiere Rush brings video editing to the browser via Wasm-compiled media pipelines. No plugin, no Electron wrapper - just a browser tab running compute-heavy codecs at near-native speed.

WASI: Taking Wasm Beyond the Browser

A plain Wasm module running in the browser has no access to the filesystem, sockets, clocks, or any OS resource. That works fine for in-browser computation but rules out server applications and CLI tools.

WASI - the WebAssembly System Interface - solves this. It is a standardized interface that gives Wasm modules portable, capability-gated access to OS resources. A Wasm binary compiled for WASI runs on any WASI-compatible runtime without modification.

As Solomon Hykes, co-founder of Docker, noted: if WASM+WASI had existed in 2008, Docker might not have needed to be invented. The portability problem that containers solve is the same one WASI addresses - with a much smaller footprint.

WASI 0.3.0 (February 2026) added native async I/O with futures and streams, making Wasm viable for real-world servers handling concurrent connections.

The Component Model: Polyglot Composition Without Glue Code

Before the Component Model, connecting a Rust module to a Python module meant manually writing type conversion glue across the memory boundary. In practice, cross-language Wasm compositions were too painful to maintain.

The Component Model introduces WIT (WebAssembly Interface Types) - a language-neutral interface definition format. A Rust library and a Python library, both compiled to Wasm components, can call each other's functions through automatically generated, type-safe bindings. No manual marshaling.

This enables genuinely polyglot applications. Your crypto library can be Rust, your data pipeline can be Python, your business logic can be TypeScript via Javy - all composing without a translation penalty. Tools like cargo-component and wit-bindgen ship today.

Edge Computing: Why Wasm Wins on Cold Start

The performance advantage of Wasm amplifies at the edge, where cold start latency is often the binding constraint.

A container starts in 50-500ms. A Node.js Lambda in 200-400ms. A Wasm module in 1-5ms. Memory per instance is roughly 1MB for Wasm vs 10MB+ for a container. At the scale of thousands of isolated tenant functions, that gap is enormous.

Cloudflare Workers, Fastly Compute@Edge, and Vercel Edge Functions all support Wasm today. AWS Lambda Wasm functions show 10-40x improvement in cold-start times compared to container equivalents.

WebAssembly vs JavaScript: A Practical Decision Framework

The choice is not ideological. It is about where JavaScript's speed ceiling becomes your bottleneck.

Use Wasm for: image and video processing, cryptographic operations, AI/ML inference in the browser, physics simulations, game engines, and serverless functions with strict latency budgets.

Use JavaScript for: DOM manipulation, event handling, JSON parsing, calling APIs, server-side rendering, and standard CRUD application logic.

In practice, 5-10% of an application's code - the hot paths - benefits from Wasm. The rest should stay in JavaScript where the ecosystem, tooling, and debugging experience are stronger.

Building with Wasm: Three Practical Starting Points

Rust to Wasm - The Production Path

Rust is the dominant choice for production Wasm. It has no garbage collector (no GC pauses inside your module), zero-overhead abstractions, and the wasm-pack toolchain that handles compilation, JS bindings, and npm packaging in one command.

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
rustup target add wasm32-unknown-unknown
cargo install wasm-pack
cargo new --lib wasm-hello && cd wasm-hello
wasm-pack build --target web

The output pkg/ directory contains the .wasm binary, a JS glue file, and TypeScript types ready for import.

AssemblyScript - For TypeScript Developers

AssemblyScript is a TypeScript-like language that compiles directly to Wasm. If your team is JavaScript-native and wants Wasm without learning a new paradigm, this is the lowest-friction entry point.

npm init
npm install --save-dev assemblyscript
npx asinit .
npm run asbuild

Performance and safety guarantees are lower than Rust, but for moving a hot path out of JavaScript quickly, AssemblyScript is a solid pragmatic choice.

Server-Side Wasm with Wasmtime

For running Wasm outside the browser with WASI, Wasmtime is the reference runtime from the Bytecode Alliance. It implements WASI Preview 2 and the Component Model.

curl https://wasmtime.dev/install.sh -sSf | bash
rustup target add wasm32-wasip2
cargo build --target wasm32-wasip2 --release
wasmtime target/wasm32-wasip2/release/my-app.wasm

The same .wasm binary you run locally in Wasmtime runs unchanged on Cloudflare Workers or AWS Lambda.

Language Support in 2026

Rust and C/C++ are production-ready. AssemblyScript and Go (via TinyGo) are stable. C# via Blazor is production-ready and used by 43% of .NET developers. Kotlin/Wasm is stable with WasmGC. Python (via Pyodide) is emerging for browser-based data science. JavaScript/TypeScript via Javy is experimental but useful for embedding a tiny JS runtime inside Wasm.

Limitations Developers Should Know About

Most Wasm guides skip over these. Here is an honest look at the gaps.

No native multithreading in WASI. Server-side Wasm still lacks a proper parallel compute model. High-throughput servers and CPU-parallel workloads are not good Wasm candidates today.

Memory overhead at scale. Each Wasm instance has a minimum memory footprint. Running thousands of isolated modules can use more total memory than shared-runtime alternatives.

DOM access requires a JS bridge. In the browser, Wasm cannot touch the DOM directly. All DOM operations go through JavaScript. If DOM manipulation is your bottleneck, Wasm will not help.

Debugging experience lags. Production builds strip debug info. Source maps exist but lag behind native tooling. The practical workaround is running logic through cargo test in a native binary for unit testing.

Large module startup cost. Very large Wasm binaries - ML models, for example - have real instantiation overhead. Streaming compilation and wasm-opt mitigate this, but it is not zero.

Conclusion

WebAssembly in 2026 is a mature production runtime, not a browser experiment. Wasm 3.0 is a W3C standard. WASI Preview 2 is stable. Figma, Google, Shopify, and Adobe run it at scale.

Most developers do not need to rewrite anything today. The practical approach: identify the 5-10% of your codebase that is genuinely performance-constrained, and evaluate whether Wasm closes that gap. Start with wasm-pack and the Rust quickstart - the round-trip from source to a callable JavaScript function is shorter than you expect.

References