Code Monkey home page Code Monkey logo

Comments (4)

andrei-markeev avatar andrei-markeev commented on August 22, 2024

Not sure what you mean by bootstrapping, but big part of transpilation is preprocessing provided by TypeScript (and I cannot do anything about it).
If you could provide some concrete examples where transpilation is very slow in TS2C comparing to normal TypeScript (e.g. compare time ts2c test.ts and time tsc test.ts), then I might be able to do some optimizations, even though I don't really consider transpilation speed important at this point.

from ts2c.

zaoqi avatar zaoqi commented on August 22, 2024

https://github.com/andrei-markeev/ts2c/blob/master/package.json

2.8.3 is pretty old.

from ts2c.

zaoqi avatar zaoqi commented on August 22, 2024

Enum is not implemented.So I need to first tsc.

from ts2c.

andrei-markeev avatar andrei-markeev commented on August 22, 2024

2.8.3 is pretty old

true, but for now I am only implementing ES3 spec, so it doesn't really matter which TS version is used. I will update it at some point but I don't think it will affect anything.

Enum is not implemented. So I need first tsc

My previous comment still stands: ts2c sort of runs tsc behind the scenes for getting AST and semantic information. So running ts2c cannot be faster than running tsc on the same file.

from ts2c.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.