Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Does this project mean I can emit native code from my TypeScript code?#537

Pinned
RyanCavanaugh announced inFAQs
Discussion options

No. This repo is a change in theimplementation language of TypeScript itself, and isn't a tool that would allow a TypeScript input file to be converted to Go or any other native/native-like target. Such a transform (if even possible?) is outside the scope of the project.

You must be logged in to vote

Replies: 4 comments 1 reply

Comment options

Since there are still a lot of concerns about this, I’d like to confirm that the existing TypeScript (TS) code will still be transpiled to JavaScript (JS) as usual — only the TS compiler and tooling are being ported to Golang. Is that correct?

You must be logged in to vote
1 reply
@versecafe
Comment options

yes, if you're looking for TS to native look atporffor instead which does JS/TS -> C but note it's unreliable

Comment options

If you're looking for typescript -> native compiler, take a look at this:https://github.com/ASDAlexander77/TypeScriptCompiler

This is not something that transforms TS into the C code, it works almost like C++/C compiler

It lacks of many built-in library functions, but improvements so far seems very promising

You must be logged in to vote
0 replies
Comment options

The "Corsa" project, Microsoft's native implementation of the TypeScript compiler, does not enable emitting native machine code directly from TypeScript code. Instead, it compiles TypeScript into JavaScript, similar to the existing TypeScript compiler. The primary goal of "Corsa" is to enhance the performance of the compilation process, making it faster and more efficient.

It will be beneficial to slow dev frameworks like Next.js

You must be logged in to vote
0 replies
Comment options

Someone should try to train an LLM on both the original TypeScript code and the Go port. Maybe that's enough data for it to figure out how to convert other TypeScript projects into Go?

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
FAQs
Labels
None yet
6 participants
@RyanCavanaugh@guillaumebrunerie@tungm@sshuvoo@leaftail1880@versecafe

[8]ページ先頭

©2009-2025 Movatter.jp