Paul Krill
Editor at Large

WebAssembly library supercharges web video apps

news
Apr 4, 20172 mins

The WebDSP library features algorithms for building web applications operating on media data and provides better performance than JavaScript

snail rocket fast speed
Credit: Thinkstock

WebAssembly, the portable code format for making the web faster, will be extended to digital signal processing with a client-side library now in development.

The WebDSP library features a collection of algorithms for building web applications operating on media data. Methods are written in C++, compiled to WebAssembly (wasm), and exposed as vanilla JavaScript functions.

“WebDSP outperforms existing client-side DSP libraries, and it suggests an architecture for future JavaScript libraries, which leverage the power of WebAssembly modules,” WebDSP co-developer Deep Pulusani said. “With our library, you can easily manipulate video on a scale that would previously freeze the browser.”

Holding the dual potential for faster web applications and enabling other languages besides JavaScript to run in the browser, WebAssembly has had the backing of browser vendors, including Apple, Google, Microsoft, and Mozilla. It recently reached minimum viable product status. WebDSP developers are bullish on WebAssembly. “To tackle client-side digital signal processing, it’s clear that WebAssembly is the right tool,” Pulusani said. “In our performance tests, which you can demo here, we were able to surpass JavaScript performance by at least 200 percent.”

WebDSP is currently in beta, and development plans call for adding methods to directly operate on DOM elements as well as audio-specific processing algorithms. For browsers that are not WebAssembly-enabled, WebSDP provides JavaScript equivalents for its algorithms Pulusani said. Developers of WebDSP also have released a build tool for WebAssembly, called wasm-init, that provides a template and tool chain, so users can build their own wasm modules.

Paul Krill

Paul Krill is editor at large at InfoWorld. Paul has been covering computer technology as a news and feature reporter for more than 35 years, including 30 years at InfoWorld. He has specialized in coverage of software development tools and technologies since the 1990s, and he continues to lead InfoWorld’s news coverage of software development platforms including Java and .NET and programming languages including JavaScript, TypeScript, PHP, Python, Ruby, Rust, and Go. Long trusted as a reporter who prioritizes accuracy, integrity, and the best interests of readers, Paul is sought out by technology companies and industry organizations who want to reach InfoWorld’s audience of software developers and other information technology professionals. Paul has won a “Best Technology News Coverage” award from IDG.

More from this author