frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

tsc-ts: TypeScript written in TypeScript

https://github.com/vercel-labs/tsc-ts
21•tosh•2h ago

Comments

drewbitt•1h ago
I don't know whats a meme or not anymore..
perganomoly•1h ago
Seriously, the simulation needs a reboot.
dalmo3•45m ago
Or needs to be rewritten in Rust.
staminade•45m ago
What if we're actually running in a slop decomp of the simulation...
jchw•1h ago
There is no obvious explanation for why you would want this anywhere I can find... Does anyone understand? If you wanted this, wouldn't it make more sense to extend the last version of TypeScript before ts-go instead? Hmm.
phoghed•58m ago
Seems like it’s to show off scriptc unless I’m missing something else. They claim this is 2-4x faster than tsgo

https://t.co/fMEAmv2VDY

ameliaquining•34m ago
I guess the question is why you wouldn't use TypeScript 6 as the basis for that.
reactordev•56m ago
Stage 1 to writing a bootstrap able language is using the intermediate step of compiling it with a compiler written in another language so that you can write a compiler for yours. I’m sure they did this in order to get a binary of the first self-compilable version.
9cb14c1ec0•50m ago
All the twitter types are busy rewriting typescript to speed it up, just because they can. It's becoming a meme.
tallowen•51m ago
The back and forth between writing tools in javascript and go or rust seems like it's in an unstable equilibrium right now:

- Go / Rust: It's easier than ever to rewrite existing tools in more performand languages

- Javascript: The v8 runtime for vercel or cloudflare workers is a much cheaper way to run certain workloads (e.g. conversational agents) than running a heavy weight vm. See just bash as another example project for taking advantage of this (https://github.com/vercel-labs/just-bash)

I'm curious to see what happens!

CharlieDigital•21m ago

    > ...than running a heavy weight vm.
Serverless containers are a thing (GCP Cloud Run, Azure Container Apps) and seems like the right analogue.
ameliaquining•16m ago
Those offer a more streamlined developer experience than traditional cloud VMs, but still require just as much compute resources (apart from being able to scale to zero if you can tolerate cold starts). E.g., you still have to choose how many data centers they run in and which ones, which is laden with tradeoffs, whereas every Cloudflare Worker runs in every Cloudflare DC, for free.
ameliaquining•21m ago
Running Rust code in V8 via WebAssembly works today, though the tooling could benefit from a bit more polish. Go sort of works, but less well; IIUC fixing this would require adding more features to Wasm, most especially interior pointers, so that its garbage collection behavior can be made semantically compatible with Go's.
koolba•43m ago
> An experimental TypeScript port of the TypeScript 7.0.2 compiler (TypeScript-Go, or tsgo), compiled to native code with scriptc.

I don’t get it. Isn’t the golang version already native?

Or is this one of those things where it’s not supposed to make sense?

clarus•35m ago
This version can additionally be compiled through LLVM, using a compiler from Vercel supporting a subset of TypeScript. I tried and it is 2 to 3x faster than the native Go version.
monster_truck•13m ago
So it's just the compiling that's faster? Still not clear on the point of this, I have some pretty absurdly large typescript projects and have never felt that the compiler was slow, even before 7
einaralex•42m ago
What is the purpose of this?
hmokiguess•12m ago
https://github.com/vercel-labs/tsc-ts/issues/196
jdw64•42m ago
Will it be faster than the Go version? But why is this even necessary? I don't get it.
epolanski•21m ago
Apparently it's 2/3 times faster than the Go version.

Whatever one think, the fact that there's 4 vibe coded compilers, 2 of those with 100% coverage of the official one and all being much faster than the Go version should be a wake up call for the TypeScript team.

Despite the resources and having a huge team of people that are clearly good at programming languages and compilers, something is definitely not working as it should there if vibecoders can get much faster fully compliant compilers.

jdw64•5m ago
I think a bit differently. The real problem with vibe coding is that it's hard to write a precise specification of the problem. But if the specification is accurate, running the AI dozens of times tends to make it much faster than a human (purely from experience). However, for most problems where vibe coding is actually useful, a human still has to set the initial framing.
pizlonator•29m ago
I confirmed, it's faster than the Go version, which is very surprising, and super impressive!

Caveats:

- I don't think it's right to say that it's "written in TypeScript". In fact, it's written in the subscript of TypeScript that scriptc supports. scriptc isn't just a subset of ts; it even diverges from ts semantics in sneaky ways to facilitate its optimizations. So, these folks have really created a TypeScript-like native language with some kind of RC-GC hybrid and a bunch of caveats. Not clear if this is any better than just creating a new language.

- Very likely that it was codeveloped with scriptc, so it's getting maximum benefit from exactly the sorts of idioms that scriptc supports well. And, I would bet they landed optimizations to scriptc specifically to get this result.

This could be useful, assuming they invest in supporting it, and you're the sort of person who needs 2x faster ts compiles.

ameliaquining•8m ago
Well, if you write a library in the scriptc subset, it will also work in regular JavaScript runtimes, for free. (Unless you rely on, e.g., catching runtime errors thrown by failed casts, but that's easy enough to avoid.) That seems like a clear advantage over creating a new language.

What I do think would be nice would be if all the tweak-JS-semantics-for-optimization-purposes projects (scriptc, Static Hermes, Nova, possibly Closure Compiler) got together and agreed on a minimal set of rules that TypeScript code should follow in order to be compatible with all of them. Then there could be a push for commonly used npm packages to adhere to those rules, and advertise that they do so in order to be fully optimized.

_1tan•19m ago
Did anyone benchmark against Buns‘ new time typecheck that landed in v 1.4.3? I would do it but too far away from my machine right now.
simonbw•6m ago
Now someone's gotta port this to rust.
simonbw•6m ago
Now someone's gotta port this version to rust.

Bleached corals thrive within days when touching healthy neighbour

https://www.nature.com/articles/d41586-026-03266-x
49•alkyon•19h ago•1 comments

Development statistics for the 7.2 kernel

https://lwn.net/Articles/1088776/
90•farlight•2h ago•51 comments

The Commodore 64 hardware simulator: break chips and pins, see the results

https://github.com/antirez/c64-hw-simulator
53•antirez•2d ago•9 comments

Source code of the Estonian online voting system

https://github.com/valimised/ivxv
34•theanonymousone•16h ago•2 comments

Furifont, a Japanese font that shows furigana

https://furifont.antfu.me/
121•plaguna•2d ago•21 comments

Making chicken transparent using Dorito dust

https://chillphysicsenjoyer.substack.com/p/making-chicken-transparent-using
187•crescit_eundo•5h ago•53 comments

Gold is now the top U.S. export

https://www.numismaticnews.net/gold-now-top-u-s-export
35•iamnothere•2h ago•6 comments

DeepSeek-v4.1-Flash-1017

https://huggingface.co/deepseek-ai/DeepSeek-V4.1-Flash-1017
520•theykk•11h ago•487 comments

Dam removals are bringing fish back across the northeastern United States

https://www.smithsonianmag.com/science-nature/dam-removals-are-bringing-fish-back-across-the-nort...
27•sohkamyung•19h ago•2 comments

tsc-ts: TypeScript written in TypeScript

https://github.com/vercel-labs/tsc-ts
21•tosh•2h ago•26 comments

Artie (YC S23) Is Hiring Enterprise AES and Senior Engineers

https://www.artie.com/careers
1•j-cheong•2h ago

Pele – Mermaid diagrams as themeable SVG

https://pele.run/
41•dchest•3h ago•6 comments

Solar surpasses nuclear power globally for first time

https://www.pv-magazine.com/2026/09/29/solar-surpasses-nuclear-power-globally-for-first-time/
350•xbmcuser•5h ago•196 comments

OpenCode Hacked: User credentials leaked

https://twitter.com/opencode/status/2111516673953935833
171•pranshuchittora•1h ago•41 comments

Vintage Cassettes: 1963-2010

http://vintagecassettes.com/
23•austinallegro•2d ago•2 comments

Show HN: MirrorMD – An AI second opinion from a facial cosmetic surgeon

https://mymirrormd.com/
5•AIcosmeticsurge•2d ago•1 comments

Rendering pretty sky in Around The World game

https://frozenfractal.com/blog/2026/10/12/around-the-world-34-a-pretty-sky/
99•ibobev•1d ago•6 comments

Show HN: Parin – A 2D game engine between raylib and Godot, written in Dlang

https://github.com/Kapendev/parin
8•Kapendev•1d ago•2 comments

You could have invented transformers from memory

https://alexwang.ai/posts/associative-memory/
438•speckx•1d ago•103 comments

Pattern Matching Beats Narrative Reasoning

https://blog.scottstevenson.net/p/pattern-matching-beats-narrative
3•tosh•51m ago•0 comments

AI Can Write the Code. Who Verifies It?

https://mihaisplace.com/blog/ai-can-write-the-code-who-verifies-it
6•mmarvramm•54m ago•5 comments

Show HN: High-quality duck audio synthesizer

https://celphase.github.io/duck-pond/
30•celphase•5h ago•6 comments

Show HN: Esp32sim – Run ESP32 firmware in the browser

https://github.com/mikroverk/esp32sim
68•joakimeriksson•5h ago•9 comments

A skeptic's first contact with Kubernetes (2024)

https://blog.davidv.dev/posts/first-contact-with-k8s/
33•pmoriarty•16h ago•1 comments

A Tudor life in the time of plague (2020)

https://www.historytoday.com/archive/history-matters/tudor-life-time-plague
35•pepys•3d ago•2 comments

Show HN: Llmspeed – feel how fast a local LLM runs before you buy the hardware

https://llmspeed.dev/
211•albinstman•14h ago•67 comments

Espresso machine can run Doom

https://www.gamespot.com/articles/this-espresso-machine-can-run-doom/
10•speckx•1d ago•2 comments

The First Candid

https://www.newyorker.com/magazine/2026/10/19/the-first-candid
37•Thevet•1d ago•8 comments

The future of programming (1982)

https://dl.acm.org/doi/10.1145/358453.358459
20•vismit2000•8h ago•3 comments

Show HN: Things to Do API

https://thingstodoapi.com/
11•invalidmonk•19h ago•3 comments