On modifying tsc to generate Go code and transpile the codebase #467
-
Love the project It sounds from the port vs rewrite discussion you're taking the transpile approach (awesome!) Some questions:
Has this direction already been ruled out? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The port is not a full "transpile approach" from TS to Go; we used a code generator to generate "syntactically valid" code, but so much of the codebase required data structure changes, moving things around, that it may not be feasible to keep the source of truth in TypeScript. Most everything in this repo was hand-written (or at least, hand-accepted completions; something like Copilot when given context does sort of figure it out). |
Beta Was this translation helpful? Give feedback.
The port is not a full "transpile approach" from TS to Go; we used a code generator to generate "syntactically valid" code, but so much of the codebase required data structure changes, moving things around, that it may not be feasible to keep the source of truth in TypeScript. Most everything in this repo was hand-written (or at least, hand-accepted completions; something like Copilot when given context does sort of figure it out).