SShortSingh.
Back to feed

Vercel Labs Open-Sources ScriptC, an AOT Native Compiler for TypeScript

0
·60 views

Vercel Labs has open-sourced ScriptC, an experimental compiler that converts TypeScript and JavaScript into native machine code, readable C, LLVM IR, and WebAssembly without requiring Node.js or a V8 runtime. The project addresses longstanding pain points of TypeScript deployments, including cold-start latency, large binary sizes, and high baseline memory usage. ScriptC uses the official TypeScript compiler for parsing and type checking, then progressively lowers the abstract syntax tree through multiple compiler tiers. Developers can inspect intermediate compilation stages using the --emit flag, which exposes outputs ranging from typed JSON IR to native assembly. Standard Node.js APIs such as node:http are compiled directly to native system calls, enabling binaries that start in microseconds with minimal memory overhead.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

LiDAR Sensors Face Power-Line Noise That Can Degrade Perception Performance

The article explains that LiDAR units combine precision analog sensing, high-speed digital processing, laser pulse generation, and timing circuits in one compact housing, making them sensitive to electromagnetic interference. Power-supply noise can alter receiver thresholds, timing references, and clock stability, so electrical faults may appear as perception errors. The author argues the LiDAR power input should be treated as an EMC interface, since switching ripple, transients, and ground shifts from robot components like motor inverters and relays can reach the sensor. Conducted noise travels through both differential and common-mode paths, and pulsed laser current draw can also feed noise back into the robot's power network. Because source impedance and cable routing strongly influence these effects, filtering and layout decisions must be based on measured disturbances across the installed power path.

0
ProgrammingDEV Community ·

100BASE-T1 Ethernet EMI: Keeping Differential Symmetry to Limit Common-Mode Noise

100BASE-T1 is a single-pair Ethernet technology delivering 100 Mbit/s over one balanced twisted pair, suited to robots, vehicles, and distributed sensor systems where cable weight and packaging matter. Because transmit and receive share the same conductors, impedance discontinuities, imbalances, parasitic capacitance, and layout errors can degrade both signal integrity and EMC. The article stresses preserving electrical symmetry along the whole path from PHY pins through PCB traces, coupling networks, connectors, and cable to the remote node, since asymmetry converts differential energy into common-mode current that radiates and increases susceptibility. It recommends controlled differential impedance, continuous reference planes, matched component values, and careful placement of common-mode chokes near the media interface, with connector and shield termination also affecting overall EMC performance.

0
ProgrammingDEV Community ·

AiTM phishing hijacks login sessions to enable business email fraud

A small logistics firm employee received a convincing email with a link to what appeared to be a legitimate cloud login page. After entering credentials and completing multi-factor authentication, the login seemed normal, but an attacker-in-the-middle relayed the process and captured the session cookie. The attacker then accessed the mailbox, created hidden inbox rules, and sent a fraudulent invoice with a changed bank account, which was stopped only by a phone verification. Microsoft reported in 2022 that such AiTM campaigns had targeted over 10,000 organizations since September 2021, and Japan's Anti-Phishing Council recorded about 2.45 million phishing reports in 2025.

0
ProgrammingDEV Community ·

Motor Driver EMI: How PWM Switching Creates Electromagnetic Noise

Pulse-width modulation is widely used in motor drives because it efficiently controls voltage, current, torque, and speed. However, the fast switching transitions that give PWM its high efficiency also generate a broad electromagnetic noise spectrum. As a result, a motor inverter acts as a repetitive high-frequency excitation source that couples energy through power cables, motor windings, and chassis structures. The spectrum's envelope depends strongly on rise and fall times, as well as on the switching devices, duty cycle, and modulation scheme. Differential-mode noise arises from rapidly changing currents in power loops, while common-mode noise couples through parasitic capacitance to the chassis and surrounding structures.