Live data from Hacker News

Scriptc by Vercel: TypeScript-to-Native compiler, no JavaScript engine in binary

github.com

61–70 of 165 posts

Re: Scriptc by Vercel: TypeScript-to-Native compiler, no JavaScript engine in binary

#61

this is interesting , so i can turn electron into a native app now? whats the use case for this , make it hard to reverse engineer my node projects?

another use case is getting standalone self-contained binaries which are easier to ship.

other projects like claude code use something like `bun build --compile`[^1] for that, which instead of producing a small native binary just bundle the JS runtime into the executable.

[^1]: https://bun.com/docs/bundler/executables

Re: Scriptc by Vercel: TypeScript-to-Native compiler, no JavaScript engine in binary

#62
post #22
post #15

how can you compile it if javascript is a valid subset of typescript? confused.

Either it is only accepting a subset of TypeScript, or it is still interpreting the parts that don't have enough types. Given other comments here it sounds like the later.

Both, basically. Default is the subset, but you can enable an interpreter

Re: Scriptc by Vercel: TypeScript-to-Native compiler, no JavaScript engine in binary

#64
It's nice they acknowledge and confirm the need for small, fast native executables.

Having followed the story for this in Java over the decades I'm skeptical about the practicality. GCJ existed in the 90s and the technology was good, but there was no ecosystem support.

After many small steps between GraalVM Native finally tackled the problem more holistically and the ecosystem followed. All the major libraries and frameworks put effort into being GraalVM compatible.

And, still it's a major pain to make even simple existing applications run flawlessly natively.

I'm glad something like scriptc exists but I'm afraid until this is of practical use it will be s long thorny way.

Re: Scriptc by Vercel: TypeScript-to-Native compiler, no JavaScript engine in binary

#65
post #50

Vercel sloping it's way to clout again, they do this every month or so, clearly they want to stay in the news and some how credible and relevant. I can't think of any serious company or project that would use this thing. P.S: I just checked the contributors list, I have the utmost respect to them (notably simonw), but clearly this code is claude'ish but it is not among the contributor which makes it even more suspect…

Edit: Removed.

Re: Scriptc by Vercel: TypeScript-to-Native compiler, no JavaScript engine in binary

#66
post #50

Vercel sloping it's way to clout again, they do this every month or so, clearly they want to stay in the news and some how credible and relevant. I can't think of any serious company or project that would use this thing. P.S: I just checked the contributors list, I have the utmost respect to them (notably simonw), but clearly this code is claude'ish but it is not among the contributor which makes it even more suspect…

Edit: Removed.

why so many caps

Re: Scriptc by Vercel: TypeScript-to-Native compiler, no JavaScript engine in binary

#67
post #50

Vercel sloping it's way to clout again, they do this every month or so, clearly they want to stay in the news and some how credible and relevant. I can't think of any serious company or project that would use this thing. P.S: I just checked the contributors list, I have the utmost respect to them (notably simonw), but clearly this code is claude'ish but it is not among the contributor which makes it even more suspect…

That's a one big hell of a contribution ;-) https://github.com/vercel-labs/scriptc/commit/725b931cf43ba7...

tis

Re: Scriptc by Vercel: TypeScript-to-Native compiler, no JavaScript engine in binary

#68
post #50

Vercel sloping it's way to clout again, they do this every month or so, clearly they want to stay in the news and some how credible and relevant. I can't think of any serious company or project that would use this thing. P.S: I just checked the contributors list, I have the utmost respect to them (notably simonw), but clearly this code is claude'ish but it is not among the contributor which makes it even more suspect…

Claude-directed code by someone being conscientious and getting involved in the important decisions is going to be better than a whole swathe of existing open-source that was hand-written.

oof

Re: Scriptc by Vercel: TypeScript-to-Native compiler, no JavaScript engine in binary

#69
post #50

Vercel sloping it's way to clout again, they do this every month or so, clearly they want to stay in the news and some how credible and relevant. I can't think of any serious company or project that would use this thing. P.S: I just checked the contributors list, I have the utmost respect to them (notably simonw), but clearly this code is claude'ish but it is not among the contributor which makes it even more suspect…

Edit: Removed.

>But apparently random HN commenters can now overrule an AI ML expert because the code "looks Claude-ish"!

And let’s imagine if LLM bots could do that as well, without any human caring to type the actual messages, just orchestrating the bot fleet. What trust could be we put in such a brainless peace of publications?

Re: Scriptc by Vercel: TypeScript-to-Native compiler, no JavaScript engine in binary

#70
post #6
post #4

Porforr https://porffor.dev > has been working towards the same goal for a while. The creator, CanadaHonk https://honk.foo >, is extremely talented and the project still only passes ~68% of Test262. I'm more than a little suspicious of how Vercel has made so much progress so fast, unless I'm misunderstanding the scope of this project.

> I'm more than a little suspicious of how Vercel has made so much progress so fast Coding agents. They landed 918,000 lines of code in a single week: https://github.com/vercel-labs/scriptc/graphs/contributors?s...

They landed 802,000 lines of code in a single commit: https://github.com/vercel-labs/scriptc/commit/23d5918a5381e0...
Post reply on HN