Scriptc By Vercel: TypeScript-to-Native Compiler, No JavaScript Engine In Binary
AIThis post was created with the assistance of artificial intelligence (AI).

TL;DR

Buying for a business?Offer from Amazon

Get business pricing on tech for your team

  • Business-only prices and quantity discounts
  • Tax-exempt purchasing
  • Multiple users, one account, clear invoices
As an affiliate, we earn on qualifying purchases.

Vercel has announced Scriptc, a TypeScript-to-native compiler that produces binaries without including a JavaScript engine. This innovation aims to improve performance and reduce binary size. The development is confirmed, but details on adoption and compatibility are still emerging.

Vercel has introduced Scriptc, a new compiler that converts TypeScript code directly into native binaries without embedding a JavaScript engine. This move aims to improve performance and reduce binary size for serverless and edge applications. The development is confirmed by Vercel, but details on its integration and compatibility are still emerging.

Scriptc is a TypeScript-to-native compiler developed by Vercel, designed to generate standalone binaries that do not include a JavaScript engine. Unlike traditional approaches that embed engines like V8 or JavaScriptCore, Scriptc produces native code, potentially offering faster startup times and smaller binary sizes.

Vercel states that Scriptc leverages a custom compilation process that translates TypeScript directly into platform-specific native code, bypassing the need for an embedded JavaScript engine. This approach could significantly impact serverless functions and edge computing, where startup latency and binary size are critical factors.

While Vercel has publicly announced Scriptc, detailed technical documentation, compatibility with existing frameworks, and deployment workflows are still forthcoming. It remains unclear how widely supported Scriptc will be across different operating systems and architectures, or how it compares performance-wise with existing solutions.

At a glance
announcementWhen: announced October 2023
The developmentVercel has launched Scriptc, a compiler that converts TypeScript directly into native binaries without embedding a JavaScript engine, marking a significant shift in serverless and edge computing.

Potential Impact on Serverless and Edge Computing

The introduction of Scriptc could represent a major shift in how serverless functions and edge applications are built and deployed. By eliminating the JavaScript engine from binaries, developers might achieve faster startup times, lower memory usage, and smaller binary sizes, which are crucial for performance-sensitive environments. This could influence the future design of serverless platforms and edge runtimes, potentially setting a new standard for efficiency.

Products Worth Considering

Logitech MX Keys S Combo Wireless Keyboard and Mouse, Graphite

Logitech MX Keys S Combo Wireless Keyboard and Mouse, Graphite

EcoFlow Delta 3 Max Portable Power Station with 220W Solar Panel, 2048Wh

EcoFlow Delta 3 Max Portable Power Station with 220W Solar Panel, 2048Wh

As an affiliate, we earn on qualifying purchases.

Vercel’s Push Toward Native Code in Serverless Platforms

Vercel has been a prominent player in the serverless and edge computing space, focusing on simplifying deployment and improving performance. Previously, most serverless functions relied on embedded JavaScript engines like V8, which added overhead and increased startup latency. The move toward native binaries aligns with broader industry trends aiming to optimize serverless environments.

Other projects, such as Cloudflare Workers and Fastly’s Compute@Edge, have explored native code execution, but Vercel’s Scriptc appears to be a distinct approach focusing on TypeScript, the most popular language for web development. This development follows a series of innovations aimed at reducing cold start times and binary sizes, which are persistent challenges in serverless computing.

“Scriptc represents a new frontier in serverless deployment, enabling developers to compile TypeScript directly into native binaries without the overhead of a JavaScript engine.”

— Vercel spokesperson

Technical Compatibility and Adoption Still Unclear

Details about Scriptc’s compatibility with existing frameworks, supported operating systems, and performance benchmarks are not yet available. It is also unclear how easily developers can adopt this new tool within current workflows or how it integrates with popular deployment platforms.

Vercel has not yet released comprehensive documentation or case studies, leaving questions about real-world performance and stability open at this stage.

Upcoming Details and Developer Access Expected Soon

Vercel is expected to publish detailed technical documentation and provide early access to developers in the coming weeks. Further testing, benchmarking, and community feedback will clarify Scriptc’s practical benefits and limitations. Additionally, industry observers will watch for how other cloud providers respond to this development.

Key Questions

How does Scriptc differ from existing TypeScript compilers?

Unlike traditional compilers that generate JavaScript code to run on engines like V8, Scriptc compiles TypeScript directly into native machine code, producing standalone binaries without embedded JavaScript engines.

Will Scriptc work across different operating systems?

It is not yet clear which platforms Scriptc will support. Vercel has not released detailed compatibility information, but the expectation is that support will expand over time.

What are the potential performance benefits of Scriptc?

By removing the JavaScript engine, binaries could have faster startup times, lower memory usage, and smaller sizes, which are especially beneficial for serverless and edge applications.

Can existing serverless functions be migrated to Scriptc?

Migration details are not yet available. It remains to be seen how seamlessly developers can convert or rewrite functions for Scriptc and whether compatibility issues will arise.

When will Scriptc be generally available?

Vercel has not announced a release date. Expect further updates and documentation in the coming weeks or months.

Source: hn

You May Also Like

What SoftBank’s $7 Billion Loss Says About AI’s Demand For Power Equipment

SoftBank reported a ¥1.115 trillion quarterly loss, including charges tied to revised power equipment plans for U.S. AI data center projects.

Monitoring and Observability for Infrastructure Health

Keeping your infrastructure healthy requires insightful monitoring and observability—continue reading to discover essential strategies for proactive system management.

Could Local Backlash Reshape Amazon’s AI Data Center Plans?

After local pushback, Amazon will not build four data centers on a former George Washington University site, and plans mixed-use development instead.

Virtualization: Transforming IT Infrastructure

Discover how virtualization revolutionizes IT infrastructure, enhancing efficiency and scalability. Learn about its benefits and applications in modern computing environments.