News for hackers. Stuff that matters.
Re:Scriptc by Vercel: TypeScript-to-Native compiler, no Java... by elendilm on Monday July 27, 2026 @03:19AM (#49066110)
This look very promising.

We are increasingly using a subset of typescript in our backend so as to be amenable to a tool, in the long run, which can convert the ts subset to rust source code.

This project will enable an alternative of that vision earlier - except of course without the parallelism.

Also I am curious as to whether this will compile to a static lib which can be linked to an existing cpp app to be run on android/ios targets. In theory it should be able to. The docs mention ffi, but I didn't dig deep.

Re:Scriptc by Vercel: TypeScript-to-Native compiler, no Java... by aluxian on Monday July 27, 2026 @06:56AM (#49067718)
Does that tool already exist, so do you have a specific TS subset in mind you are aiming for? Or you are simply trying to use fewer complex features?
Re:Scriptc by Vercel: TypeScript-to-Native compiler, no Java... by elendilm on Thursday July 30, 2026 @02:23AM (#49106636)
No the tool does not exist. Its medium to long term vision.

Our backends are structured on isolated units - what we call "features". Features invoke another features via fully qualified names using a standard Features.send(...). in-process/inter-replica/inter-service and even seperate functions inside the same js files are all invoked likewise.

Only a few specific helper functions for a feature exist for direct invocations.

The complexity of ts2rust tool is thus greatly reduced because of the discipline of the architecture.