News

Blazor Posts Biggest Gain in WebAssembly Usage: Report

"It's been a good year for Blazor!"

That's one takeaway from the second consecutive "State of WebAssembly" report just published by UK-based software consultancy Scott Logic.

WebAssembly (sometimes called wasm) is the tech that makes Microsoft's client-side Blazor possible, as it's a low-level assembly-like language that serves as compilation target for several programming languages, allowing them to be used in browser-based projects that heretofore primarily relied upon the ubiquitous, love-it-or-hate-it JavaScript.

Those langues include C/C++, C#, Rust and others.

The 2022 report, authored by Scott Logic CTO Colin Eberhardt, follows up on his 2021 report based on a survey that polled hundreds of people to find out more about where and how people are using the technology and their thoughts for the future.

This year, like last year, Rust was found to be the most frequently used and most desired programming language for WebAssembly.

"Rust once again comes out on top, with 45 percent saying they use it frequently or sometimes," Eberhardt said. "WebAssembly and Rust do have quite a close relationship, most WebAssembly runtimes are written in Rust, as are the various platforms based on wasm. It also enjoys some of the best tooling, so this result doesn't come as a big surprise."

While Rust usage and desirability has continued to climb, the Blazor web-dev framework is coming on strong in the report, which treats Blazor as a programming language, though it's not.

On that desirability scale, Blazor climbed from sixth spot in 2021 to fourth this year among seven "programming languages," as shown in the graphic below that depicts the percentage of respondents who use a given language 'frequently,' or 'sometimes,' compared to last year.

Languages Used Frequently or Sometimes Compared to Last Year
[Click on image for larger view.] Which Languages People Most Want to Use for WebAssembly Development Compared to Last Year (source: Scott Logic).

Eberhardt said, "Rust has had a modest rise in desirability, but the biggest climber is Blazor, with Go following just behind."

Commenting on another graphic that shows which language people most want to use for WebAssembly development (below), he said, "This shows that Rust usage has climbed steadily, but the biggest climbers are Blazor and Python. It's certainly been a big year for Python, with the launch of Pyscript, an interactive online playground. AssemblyScript has had the biggest fall in usage, which surprised me a little. I do wonder whether some respondents are incorrectly identifying AssemblyScript as JavaScript?"

Languages Used Frequently or Sometimes Compared to Last Year
[Click on image for larger view.] Languages Used Frequently or Sometimes Compared to Last Year (source: Scott Logic).

Yet another graphic also sheds light on desired languages in the 2022 report, depicting the percentage of respondents who want to use a language a lot, a little, don't want to use or have not heard of it.

Languages Used Frequently or Sometimes Compared to Last Year
[Click on image for larger view.] Which Languages People Most Want to Use for WebAssembly Development (source: Scott Logic).

Along with a big climb in usage and desire for Blazor, other highlights of the report as presented by Eberhardt include:

  • Rust usage and desirability has continued to climb
  • Python has seen a big climb in usage
  • JavaScript has become a viable WebAssembly language
  • Wasmtime is the most widely used runtime
  • The use of WebAssembly for Serverless, Containerization and as a plug-in host has climbed significantly
  • Survey respondents are using WebAssembly much more frequently
  • Non-browser APIs are what WebAssembly needs the most

Eberhardt said one notable change from last year concerns what people are using WebAssembly for, noting a considerable increase in usage for serverless and containerization projects, as well as it gaining ground as a plug-in technology.

"As I mentioned in the introduction, it has been quite the year for WebAssembly," he concluded. "I was certainly aware that this technology is shifting more towards being a universal runtime, but didn't expect the change to be quite so marked."

The report is based on a survey that garnered 299 respondents, compared to 250 last year, with no details on exact methodology.

The report sparked robust discussions on the development-oriented social site Hacker News and on Reddit, where one commenter pointed out that Blazor is not a programming language, but rather a framework in which C# is used.

"That's a very good point - I'll correct that for next year's survey," Eberhardt said. "I guess people who work on WebAssembly applications know that C# and Blazor are effectively synonymous, so the results shouldn't be effected [sic]."

About the Author

David Ramel is an editor and writer at Converge 360.

comments powered by Disqus

Featured

  • Poisson Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demo of Poisson regression, where the goal is to predict a count of things arriving, such as the number of telephone calls received in a 10-minute interval at a call center. When your source data is close to mathematically Poisson distributed, Poisson regression is simple and effective.

  • Cloud-Focused .NET Aspire 9.1 Released

    Along with .NET 10 Preview 1, Microsoft released.NET Aspire 9.1, the latest update to its opinionated, cloud-ready stack for building resilient, observable, and configurable cloud-native applications with .NET.

  • Microsoft Ships First .NET 10 Preview

    Microsoft shipped .NET 10 Preview 1, introducing a raft of improvements and fixes across performance, libraries, and the developer experience.

  • C# Dev Kit Previews .NET Aspire Orchestration

    Microsoft's dev team has been busy updating the C# Dev Kit, a Visual Studio Code extension that enhances the C# development experience by providing tools for managing, debugging, and editing C# projects.

  • Hands On: New VS Code Insiders Build Creates Web Page from Image in Seconds

    New Vision support with GitHub Copilot in the latest Visual Studio Code Insiders build takes a user-supplied mockup image and creates a web page from it in seconds, handling all the HTML and CSS.

Subscribe on YouTube

Upcoming Training Events