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

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.

TypeScript 7 in Practice: Architecture, Migration, and Production-Grade Type Checking on the Native Compiler

TypeScript 7 in Practice: Architecture, Migration, and Production-Grade Type Checking on the Native Compiler

As an affiliate, we earn on qualifying purchases.

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

Amazon

serverless binary size reduction tools

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

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.

EDGE COMPUTING FOR IOT: A BEGINNER'S GUIDE TO EDGE COMPUTING FOR IOT: OPTIMIZING PERFORMANCE, REDUCING LATENCY, AND BUILDING SMART CONNECTED DEVICES

EDGE COMPUTING FOR IOT: A BEGINNER'S GUIDE TO EDGE COMPUTING FOR IOT: OPTIMIZING PERFORMANCE, REDUCING LATENCY, AND BUILDING SMART CONNECTED DEVICES

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

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.

Building a Debugger: Write a Native x64 Debugger From Scratch

Building a Debugger: Write a Native x64 Debugger From Scratch

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

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

How Online Backup Hardware Choices Affect Recovery Confidence

AIThis post was created with the assistance of artificial intelligence (AI).Your choice…

Network Function Virtualization (NFV) in Modern Infrastructure

Harness the transformative power of NFV in modern infrastructure to unlock greater flexibility and efficiency—discover how it can reshape your network environment.

How to Choose the Best Standing Desk for Programmers

Discover essential tips to select the perfect standing desk for programmers that enhances comfort, stability, and productivity—your ideal setup awaits.

Why 5K Monitors Are Winning Over Technical Professionals

Unlock the benefits of 5K monitors for technical pros, but discover why they might just be the game-changer you’ve been waiting for.