3,103 results for script · 2.707s

News for “script”
20 results • 2699 ms server time
Advertisement
Advertisement
Moozonian News
news.ycombinator.com• Aug 20, 2026• 1 min read
Show HN: LilScript makes JavaScript libraries smallerhttps://yeargun.github.io/lilscript/LilScript is a typed, compression-first language that compiles into js and sometimes into exec(will be more stable in future). The compiler mangles, reshapes the program into optimized js that happens to be 5-15% smaller (after gzip/br compression or raw) compared to the best performing JS toolchains like oxc/esbuild/terser/..## What has been proven to work with LilScript?- makes VSCode's core js modules 20% smaller on average- makes the world's most performant & small markdown rendering npm library, marked, 5-7% smaller and 10% faster- and many more demos.. works with pretty much any js/ts library## How it is compressing js finer than vite/oxc/terser/esbuild/..### 1. By changing the app.``` class Vector { float x; float y; init(float x, float y) { this.x = x; this.y = y; } float lengthSquared() { return this.x * this.x + this.y * this.y; } }int[] values = [1, 2, 3, 4]; auto doubled = values.map((int value) => value * 2); int sum = 0; for (int i = 0;
Advertisement