VOOZH about

URL: https://thenewstack.io/wasm-3-0-offers-new-way-to-handle-javascript-strings/

⇱ Wasm 3.0 Offers New Way to Handle JavaScript Strings - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2025-09-20 07:14:14
Wasm 3.0 Offers New Way to Handle JavaScript Strings
Frontend Development / JavaScript / WebAssembly

Wasm 3.0 Offers New Way to Handle JavaScript Strings

In other dev news this week, 2025 `State of CSS` survey results, another npm packages attack and React Router gets a middleware feature.
Sep 20th, 2025 7:14am by Loraine Lawson
👁 Featued image for: Wasm 3.0 Offers New Way to Handle JavaScript Strings

The Wasm W3C Community Group and Working Group released Wasm version 3 on Thursday. In the announcement, Wasm contributor and programming language researcher and engineer Andreas Rosberg called it “a substantially larger update,” which includes features in the making for six or eight years.

Of particular interest to frontend developers will be a new offering: WebAssembly (Wasm) now has a more efficient way to handle JavaScript strings.

Previously, Wasm received JavaScript string values, but treated them as external references (externrefs). A new extension to the JavaScript API provides a primitive library of functions that can be imported into a Wasm module. These functions allow Wasm to directly access and manipulate JavaScript string values. That means better support for compiling high-level programming languages.

“Enabled by this, we have seen various new languages popping up to target Wasm, such as Java, OCaml, Scala, Kotlin, Scheme or Dart, all of which use the new GC [garbage collection] feature,” Rosberg wrote.

Some of the major updates include:

  • 64-bit address space: “Memories and tables can now be declared to use i64 as their address type instead of just i32,” Rosberg wrote. “That expands the available address space of Wasm applications from 4 gigabytes to (theoretically) 16 exabytes, to the extent that physical hardware allows.”
  • Multiple memories: Wasm applications have always been able to use multiple memory objects simultaneously, but it was only possible by declaring and accessing each of them in separate modules, explained Rosberg. Now a single module can declare, meaning define or import, multiple memories and directly access them, and that includes directly copying data between them.
  • Garbage collection: There’s support for a new form of storage that is automatically managed by the Wasm runtime via a garbage collector. “Staying true to the spirit of Wasm as a low-level language, Wasm GC is low-level as well: A compiler targeting Wasm can declare the memory layout of its runtime data structures in terms of struct and array types, plus unboxed tagged integers, whose allocation and lifetime is then handled by Wasm,” Rosberg wrote. “But that’s it. Everything else, such as engineering suitable representations for source-language values, including implementation details like method tables, remains the responsibility of compilers targeting Wasm.”

2025 State of CSS Survey Shows CSS Use Evolving

“This is not the CSS we used to know (and that’s a good thing),” wrote web developer Amit Sheet in the conclusion section of the “2025 State of CSS” survey. “Looking through the survey results, it’s clear that CSS is no longer ‘just’ a styling language.”

CSS is taking on a larger role in layouts, motion, compatibility and accessibility, he added, thus redefining CSS’s identity as a modern, expressive toolset that is finally getting the recognition it deserves.

The survey, which Devographics ran from June 1 to July 15, collected 5,506 responses. Out of the 3,985 who answered the question about CSS usage, 82% said they used CSS for web apps, followed by blogs or other text-heavy usage at 50%. Respondents were allowed to choose multiple options.

The survey also queried respondents about CSS pain points, missing features and browser incompatibility. There were also more positive questions about the best features and “game changing” features, with grid topping that list.

Another npm Packages Attack

There was another attack on npm packages this week, according to GitGuardian, a code security platform for the DevOps. It was called the Shai-Hulud attack, for the GitHub repository where it was uploaded under the victim’s organization and a file named data.json.

This follows an npm attack earlier this month that targeted 18 popular packages with more than 2 billion downloads per week.

This week’s attack targeted the @ctrl/tinycolor and 150 other npm packages, according to GitGuardian.

The compromised packages’ structure has been detailed in blog posts by socket.dev and StepSecurity. GitGuardian’s cybersecurity research team investigated this attack to evaluate its impact from the leaked secret perspective.

GitGuardian observed the related GitHub activity from Sept. 15 at 03:46 to Sept. 16 at 13:42 and counted 226 malicious GitHub action workflow files pushed and 44 secret collection data.json files.

“Only 46 users unwillingly published content to GitHub through this attack,” the security firm posted. “This limited number indicates the attack was quickly contained.”

Still, a total of 278 secrets had been publicly leaked on GitHub as a result of this campaign, they noted, with 90 collected from the compromised local systems and uploaded to a data.json file, while the 188 others were compromised by the malicious workflows.

GitGuardian wrote that these attack methods are a growing threat to the open source ecosystem.

“This attack demonstrates the continued evolution of supply chain threats, following established patterns from GhostActions, s1ngularity, and tj-actions campaigns,” GitGuardian wrote. “Threat actors have developed a reliable and effective approach that they continue to refine and deploy.”

React Router Gets Middleware Feature

React Router 7.9.0 released Thursday, marking stable the “long-awaited” middleware feature.

“Middleware was needed as a way to run route logic sequentially, prior to (and after!) running loaders in parallel,” explained Remix staff developer Matt Brophy. “We knew this early on and opened an RFC [request for comment] back in late 2022, which quickly became the most upvoted proposal in the project. We even did an initial implementation in early 2023 …”

But the middleware in the existing data-loading architecture “wasn’t actually as useful as it appeared,” added Brophy. It created more problems than it solved because it ran on every request, thus not reducing the number of requests to the database. To fix that, the team had to make a few larger, underlying architectural changes to create a middleware API in React Router. This release marks the stabilization of the middleware-related APIs.

“We’re excited to finally stabilize these APIs in 7.9.0 behind the future.v8_middleware flag and can’t wait to see the interesting patterns folks come up with when using them.” Brophy wrote, adding that there are already useful middlewares available in remix-utils.

Elixir Global Meetups Coming

Elixir is a programming language that can build scalable applications, in particular for web development using the Phoenix framework. It can be used on the frontend as an alternative to JavaScript.

Each year, Global Elixir Meetups (GEMS) are held to bring together Elixir developers for a full week of talks. This year, the event will be Sept. 22-28. These are live events, held at cities throughout the world. Check out the website to find an event near you or sign up to host one.

GEMs is the creation of Software Mansion, who are Elixir experts, multimedia innovators and software development consultants.

TRENDING STORIES
Loraine Lawson is a veteran technology reporter who has covered technology issues from data integration to security for 25 years. Before joining The New Stack, she served as the editor of the banking technology site Bank Automation News. She has...
Read more from Loraine Lawson
SHARE THIS STORY
TRENDING STORIES
TNS owner Insight Partners is an investor in: GitGuardian.
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.