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 new compiler that converts TypeScript directly into native binaries without including a JavaScript engine. This development could impact how serverless functions are deployed and optimized.

Vercel has introduced Scriptc, a new compiler that converts TypeScript directly into native binaries without embedding a JavaScript engine. This move aims to simplify deployment and improve performance for serverless applications, marking a significant shift in how TypeScript code can be executed outside of traditional JavaScript environments.

Scriptc is designed to compile TypeScript code into standalone native binaries that do not include a JavaScript engine in the binary file. According to Vercel, this approach reduces binary size, improves startup times, and simplifies deployment workflows for serverless functions and other runtime environments. The compiler is built to target native execution, bypassing the need for an embedded JavaScript engine like V8 or SpiderMonkey.

Vercel’s spokesperson explained that Scriptc leverages advanced compilation techniques to convert TypeScript directly into platform-specific machine code, resulting in faster execution and lower resource consumption. The company emphasizes that this can benefit developers deploying serverless functions, edge computing, and microservices by offering a more streamlined, efficient runtime.

As of now, Vercel has not announced full public availability or detailed technical specifications, but the company has shared a preview version for select partners and early testers. The project is positioned as a potential alternative to existing JavaScript-based serverless runtimes, which often include large JavaScript engines that increase binary size and startup latency.

At a glance
announcementWhen: announced October 2023
The developmentVercel has released Scriptc, a compiler that translates TypeScript into native binaries without embedding a JavaScript engine, aiming to improve performance and simplicity.

Impact on Serverless Deployment and Performance

This development could significantly influence serverless computing and deployment strategies. By removing the JavaScript engine from binaries, Scriptc may enable faster startup times, reduced binary sizes, and lower resource usage, which are critical factors in serverless environments. Developers could see simplified deployment processes and improved performance metrics, especially in edge computing scenarios where latency and efficiency are paramount.

Moreover, this approach aligns with broader trends toward compiling code directly into native machine code for performance gains, potentially setting a new standard for runtime environments in cloud platforms and microservices architectures. However, it remains to be seen how broadly this technology will be adopted and integrated into existing workflows.

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 Compilation Technologies

Vercel has been active in optimizing deployment workflows and pushing the boundaries of serverless technology. The company’s previous efforts include enhancing Next.js and edge functions, emphasizing performance and developer experience. Scriptc represents a further step in this direction, focusing on native compilation as a way to streamline runtime environments.

While traditional serverless platforms rely heavily on JavaScript engines like V8, this move indicates a strategic interest in reducing dependencies on large runtime components. The concept of compiling TypeScript directly into native code is not entirely new, but Vercel’s focus on eliminating the embedded JavaScript engine in the binary is a novel approach that could influence industry standards.

It is not yet clear how this technology compares in terms of compatibility, debugging, or ecosystem support, or whether it will be adopted widely outside of Vercel’s ecosystem.

“Scriptc enables us to compile TypeScript directly into native binaries, eliminating the need for embedded JavaScript engines and opening new possibilities for performance optimization.”

— Vercel spokesperson

GPT-4o Agent Builder Playbook: Hands-On Guide to Function Calling 2.0, Multimodal Prompts & Cloud Deployment

GPT-4o Agent Builder Playbook: Hands-On Guide to Function Calling 2.0, Multimodal Prompts & Cloud Deployment

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Technical and Ecosystem Challenges Remain Unclear

It is not yet confirmed how well Scriptc will handle complex TypeScript features, third-party dependencies, or debugging support. The full technical specifications and performance benchmarks are still forthcoming, and adoption outside Vercel’s initial testing group remains uncertain.

Binary is My Native Language Retro Programmer T-Shirt

Binary is My Native Language Retro Programmer T-Shirt

  • Expresses coder identity: Binary is my native language design
  • Perfect for programmers: Ideal for developers and coding students
  • Retro tech graphic: Features circuit and server graphics

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Next Steps: Broader Testing and Public Release Plans

Vercel plans to expand testing of Scriptc with more partners and developers in the coming months. The company has not announced a definitive timeline for a full public release but indicated that more technical details and documentation will be shared soon. Industry observers will be watching to see how this technology performs in real-world scenarios and whether it influences broader trends in native compilation for serverless computing.

WebAssembly Reverse Engineering: Analysis of WASM Applications and Runtime Environments

WebAssembly Reverse Engineering: Analysis of WASM Applications and Runtime Environments

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Key Questions

How does Scriptc differ from traditional JavaScript runtimes?

Scriptc compiles TypeScript directly into native machine code binaries without embedding a JavaScript engine, unlike traditional runtimes that include engines like V8, which increase binary size and startup time.

Will Scriptc support all TypeScript features and dependencies?

It is not yet clear how comprehensively Scriptc will support complex TypeScript features, third-party dependencies, or debugging, as the technology is still in early testing phases.

What are the performance benefits of Scriptc?

Potential benefits include faster startup times, lower resource consumption, and smaller binary sizes, which are especially advantageous in serverless and edge environments.

When will Scriptc be generally available?

Vercel has not announced a specific release date but plans to share more details and expand testing in the coming months.

Could this approach replace existing JavaScript serverless functions?

It is possible, especially for performance-critical applications, but widespread adoption will depend on compatibility, ecosystem support, and developer adoption.

Source: hn

You May Also Like

Prevent Cognitive Debt By Manually Retyping LLM-generated Code

Experts recommend manually retyping AI-generated code to prevent cognitive debt and improve code quality, highlighting a new best practice in AI-assisted coding.

The Complete Breakdown Of AI Tools & Automation Technologies

An in-depth analysis of current AI tools and automation tech, their functions, integration challenges, and implications for users and industries.

Web3 in Plain English: Decentralized IDs and the Future of Online Login

Find out how Web3’s decentralized IDs are transforming online login, offering more privacy and control—discover what this means for your digital future.

Cloud’s Hidden Memory Bill

The cloud faces a memory shortage causing hidden cost increases, breaking a 20-year price decline promise, and prompting reconsideration of cloud vs. on-premise.