Copy
Thanks to its ease of use, JavaScript is rapidly becoming the world’s most popular programming languageView in browser »
The New Stack Update

ISSUE 298: TypeScript, WebAssembly, Rust: Three Tools Revolutionizing JavaScript Dev

Talk Talk Talk

“It’s Rust all the way down.”

___
Vercel’s Lee Robinson
Add It Up
DeFi and NFT Projects Attract Authors

Boatloads of money and enthusiasm brought seven Web3 projects into the top thirty open source projects based on the number of code authors in the last six months of 2021. According to an analysis published last month by the Cloud Native Computing Foundation, Solana’s push towards community may be paying off as it had more developers participating than the other Web 3.0 projects. More importantly, it is demonstrating project velocity on par with the open source community’s mainstays.

CNCF started analyzing project velocity in an attempt to show that the level of activity, not just GitHub stars or numbers of contributors, is an indicator of a software initiative’s long-term health. Five years later, ten of those original projects are still on the leaderboard; they continue to have impressive levels of commits, matched by high numbers of community members making pull requests and submitting issues.

Readers will note that the exact numbers in this graphic do not match those in Electric Capital’s recent report.The former included data from non-developer ecosystems like DappRadar and CoinMarketCap.

Both studies included data from sources besides GitHub, and this may become increasingly important in the future. For example, activity for the collaboration platform Zuri Chat dropped dramatically on GitHub few months ago when they instituted a rule that only people with NFTs can join its decentralized autonomous organization (DAO) and become contributors to the project.

What's Happening

Kubernetes, containers, and cloud native technologies offer organizations the benefits of portability, flexibility and increased developer productivity, but the security risks associated with adopting them continue to be a security concern for companies. In the recent State of Kubernetes Security report, 94% of respondents experienced at least one security incident in their Kubernetes environments in the last 12 months.

In this episode of The New Stack Makers podcast, Avi Shua, CEO and co-founder of Orca Security talks about how organizations can enhance the security of their cloud environment by acting on critical risks such as vulnerabilities, malware and misconfigurations, as well as by taking a snapshot of Kubernetes clusters and analyzing them.

Managing Cloud Security Risk Posture Through a Full Stack Approach

TypeScript, WebAssembly, Rust: Three Tools Revolutionizing JavaScript Dev

Thanks to its ease of use, JavaScript is rapidly becoming the world’s most popular programming language. Developers love it, but it's not necessarily the best choice for the job, especially when it comes to back-end tooling, where safety and speed are critical factors.

One trend we are seeing is using Rust to build JavaScript tooling, points out Vercel developer advocate Lee Robinson, in a contributed post, “Could Rust be the Future of JavaScript Infrastructure?

For instance, SWC built its platform for the next generation of fast developer tools in Rust. Deno, the secure alternative to the Node.js engine, was built in Rust. Also being rewritten in Rust: Rome, the frontend tooling package that includes a linter, compiler, bundler, test runner, and more for JavaScript, TypeScript, HTML, JSON, Markdown and CSS.

“Rust helps developers write fast software that’s memory-efficient. It’s a modern replacement for languages like C++ or C with a focus on code safety and concise syntax,” Robinson writes.

The folks behind the popular Svelte framework are also mulling the use of Rust, for building a compiler.

“A lot of JavaScript tooling is written in Rust at the moment, and maybe it would make sense if the Svelte compiler was written in Rust,” Svelte creator Richard said in a recent video interview.

Rust is not the only tool being used to optimize JavaScript. There is also TypeScript, a superset of JavaScript with static typing. Defining variables by data types sets the stage for better debugging and code analysis, noted Synopsys’ Charlotte Freeman, in a recent post. She notes that…

"TypeScript is also a statically typed language, which means that it checks types at compile. A dynamically typed language like JavaScript checks types at runtime. Moving these checks left to the compile stage means that TypeScript can find type errors before they are propagated into the program, preventing exploitable vulnerabilities from reaching a production application."

Last week, TNS contributing writer Divya Mohan wrote about combining TypeScript with WebAssembly for further optimization, by way of a TypeScript variant called AssemblyScript. Their reasoning goes like this:

"Although portable and fast, the performance of JavaScript was unpredictable when it came to complex web applications. This paved the way for efforts to design a compilation target for the web that was fast, secure, portable and enabled high performance — and for standardizing those efforts."

WebAssembly, as we covered before, allows the developer to write super-fast code, but it has a difficult interface. By using TypeScript as a language to write to WebAssembly, however, it offers a way to turbocharge JavaScript.

htmx: HTML Approach to Interactivity in a JavaScript World

A new HTML extension framework called htmx, described as “a library that allows you to access modern browser features directly from HTML, rather than using Javascript,” is hoping to shift web development away from the SPA (Single Page Application) approach used by most frontend developers today.

Web3 Developer Ecosystem Is Tiny, but Steep Uptake in 2021

There are at least 18,000 active developers in the Web3 ecosystem, according to a report from crypto VC firm Electric Capital (available to download on GitHub). The total number of Web3 developers is likely higher, because the report doesn’t count work on proprietary projects, but it’s a good proxy for how much developer interest there is in Web3.

How Blockchain Startups Think about Databases and dApp Efficiency

In order for applications using blockchain to achieve low latency and high security standards, they need to leverage traditional database solutions that are off-chain, argues Shashank Golla, senior product marketing manager for Fauna, in this insightful contributed post.

On The Road
Chaos Carnival 2022 // JAN. 27-28, 2022 // VIRTUAL

JAN. 27-28, 2022 // VIRTUAL

Chaos Carnival 2022

A two-day virtual conference bringing together professionals, developers, vendors, end-users, industry experts and analysts to share their experience and learn from others in building and operating large-scale distributed software systems. Register today!

Copyright © 2022 The New Stack, All rights reserved.


Want to change how you receive these emails?
You can update your preferences or unsubscribe from this list

Email Marketing Powered by Mailchimp