TypeRunner icon indicating copy to clipboard operation
TypeRunner copied to clipboard

Can you support transformation?

Open samchon opened this issue 3 years ago • 6 comments

I've developed an open source library typescript-json based on transformer (ttypescript).

If this C++ type checker being published, I will support it as soon as possible.

Therefore, can you support such transformation function?

samchon avatar Oct 18 '22 15:10 samchon

Do you mean transformer written in JavaScript/TypeScript, or in C++?

marcj avatar Oct 18 '22 18:10 marcj

Same question. I have transformers written in TypeScript that I'd like to get supported in TypeRunner. It'd be even better if they were supported out-of-the-box.

zaguiini avatar Oct 18 '22 19:10 zaguiini

@marcj In my case, not a matter whether TS or C++.

samchon avatar Oct 18 '22 20:10 samchon

C++ hook system will definitely be added. TS not so much as it would require me to map the entire AST as a node addon

marcj avatar Oct 19 '22 00:10 marcj

@marcj I've written language servers for VS Code before, it's refreshingly simple as long as you stick to the Node.JS ecosystem. As far as I understand it, Node / C++ bindings are painful but not prohibitively so.

Have you investigated developing a VS Code Language Server? If not, you might find it's less painful than you anticipate. I was able to go from zero to a working language server in about a week following their examples, just for an in house DSL we use. Again - as long as you stay in Node.js land it's pretty easy.

I would pay for, and I'm sure thousands of developers would likewise pay for, a faster VS Code language server even if it didn't have 100% parity with TypeScript.

bryanrideshark avatar Oct 19 '22 18:10 bryanrideshark

@bryanrideshark I'm not sure what you are trying to say as this is about transformers and not related to Node/Language server.

I would pay for, and I'm sure thousands of developers would likewise pay for, a faster VS Code language server even if it didn't have 100% parity with TypeScript.

Thanks dude! There will be a language server for IDEs such as VS code, but not written in Node, but in C++ 💪

marcj avatar Oct 24 '22 08:10 marcj