TL;DR

Vercel has announced Scriptc, a compiler that translates TypeScript directly into native machine code, eliminating the need for a JavaScript engine in the binary. This development could impact how serverless and edge functions are built, focusing on performance and size.

Vercel has unveiled Scriptc, a TypeScript-to-native compiler that produces executable binaries without embedding a JavaScript engine. This move aims to improve performance and reduce binary size for serverless and edge functions, marking a significant shift in how JavaScript and TypeScript code can be deployed.

Scriptc is designed to compile TypeScript code directly into native machine code, bypassing the need for a JavaScript runtime engine within the binary. According to Vercel, this approach results in smaller binaries and potentially faster startup times, which are critical for serverless and edge computing environments.

Vercel’s team states that Scriptc does not include a JavaScript engine, differentiating it from traditional JavaScript runtimes like V8 or SpiderMonkey embedded in serverless platforms. The compiler translates TypeScript directly, producing a self-contained executable that can run natively on target hardware.

Vercel emphasizes that Scriptc is aimed at developers seeking high-performance, lightweight deployments, especially in contexts where cold start latency and binary size are bottlenecks. The company has not yet disclosed detailed technical specifications or benchmarks comparing Scriptc to existing solutions.

At a glance
announcementWhen: announced October 2023
The developmentVercel’s new Scriptc compiler converts TypeScript directly into native binaries, removing the JavaScript engine component.

Implications for Serverless and Edge Computing Performance

This development could significantly impact the performance and deployment size of serverless and edge functions. By removing the JavaScript engine, Scriptc offers the potential for faster startup times and smaller binaries, which are crucial for latency-sensitive applications. If adopted widely, it might influence the design of future serverless runtimes and deployment strategies, emphasizing native compilation over interpreted or engine-based execution.
Binary is My Native Language Retro Programmer T-Shirt

Binary is My Native Language Retro Programmer T-Shirt

  • Express your coding mindset: Binary language design with retro look
  • Perfect for programmers: Ideal for developers and coding students
  • Comfortable fit: Lightweight, classic fit with durable hems

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Background on TypeScript Compilation and Runtime Environments

Traditionally, JavaScript and TypeScript code are executed within runtime engines like V8 or SpiderMonkey, even when compiled to JavaScript. Many serverless platforms rely on these engines, which add overhead and increase binary size. Recent efforts have explored ahead-of-time (AOT) compilation and native code generation to improve performance.

Vercel’s announcement of Scriptc builds on these trends, aiming to eliminate the runtime engine altogether. Similar approaches have been explored in projects like Cloudflare Workers and Deno, but none have yet become mainstream in providing a TypeScript-to-native solution without a JavaScript engine embedded in the binary.

Prior to Scriptc, most solutions involved compiling TypeScript to JavaScript, then executing within a runtime, which introduces startup delays and larger binaries. Scriptc proposes a different approach by targeting native machine code directly from TypeScript.

“Scriptc enables direct compilation of TypeScript into native binaries, removing the need for a JavaScript engine and improving startup times and binary size.”

— Vercel spokesperson

SERVERLESS APPLICATION DEVELOPMENT ON CLOUD PLATFORMS: Function as a Service Event Driven Architecture API Integration Cost Optimization and Scalable Computing

SERVERLESS APPLICATION DEVELOPMENT ON CLOUD PLATFORMS: Function as a Service Event Driven Architecture API Integration Cost Optimization and Scalable Computing

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Technical Details and Performance Benchmarks Still Unclear

It is not yet clear how Scriptc performs relative to existing solutions in real-world scenarios. Vercel has not released detailed benchmarks or technical specifications, and the compatibility scope with various TypeScript features remains uncertain. Additionally, the maturity and stability of Scriptc are still unknown, as the project appears to be in early stages.

Amazon

lightweight serverless deployment tools

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Upcoming Developer Releases and Benchmark Publications

Vercel is expected to release more detailed technical documentation and possibly beta versions of Scriptc in the coming months. Developers and industry observers will be watching for performance benchmarks, compatibility reports, and adoption signals to assess the viability of this approach. The company may also explore integrations with existing serverless platforms and runtime environments.

Lonely Binary 3-Pack ESP32-S3 N16R8 Development Board + 3 Terminal Bases

Lonely Binary 3-Pack ESP32-S3 N16R8 Development Board + 3 Terminal Bases

  • Processor Speed: Dual-core 240MHz processor
  • Memory Capacity: 16MB Flash, 8MB PSRAM
  • Wireless Connectivity: WiFi and Bluetooth 5.0 LE

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 a runtime engine, Scriptc compiles TypeScript directly into native machine code, eliminating the need for a JavaScript engine in the binary.

Will Scriptc support all TypeScript features?

Vercel has not yet provided detailed information on feature support. Compatibility with complex TypeScript features or third-party libraries remains to be seen.

What are the performance benefits of Scriptc?

Vercel claims that binaries produced by Scriptc will have faster startup times and smaller size, which are critical advantages for serverless and edge computing applications.

Is Scriptc ready for production use?

As of now, Scriptc appears to be in early development stages. Vercel has not announced a stable release date or official production support.

Could Scriptc replace traditional JavaScript runtimes?

Potentially, if it proves reliable and compatible, Scriptc could reduce reliance on JavaScript engines for specific use cases, especially in performance-sensitive environments.

Source: hn

You May Also Like

ALIA. The Spanish answer.

Spain launches ALIA, a 40B parameter multilingual model trained on 9.37 trillion tokens, marking Europe’s largest public AI project and highlighting strategic positioning debates.

The $725 Billion Question: Hyperscaler Capex Q1 2026 and What the Earnings Don’t Answer

Big four hyperscalers announce $725 billion in AI infrastructure spending for 2026, raising concerns about future revenue and earnings growth amid structural uncertainties.

Reimagining the mouse pointer for the AI era

Google’s new AI-powered pointer enhances user interaction across apps, enabling intuitive, context-aware commands without prompts.

The policy menu. There’s no single answer. There’s a menu — and choosing is a values choice in disguise.

Thorsten Meyer AI argues AI policy choices are values-based bets across income, ownership, funding and uncertainty.