Giter Site home page Giter Site logo

Comments (6)

adrien-thierry avatar adrien-thierry commented on June 2, 2024 2

@kungfooman we will change it soon

from ts2c.

adrien-thierry avatar adrien-thierry commented on June 2, 2024 2

Btw, the license problem will be solved very soon

from ts2c.

adrien-thierry avatar adrien-thierry commented on June 2, 2024

Hi @eclipticccc ,

I'm developing NectarJS ( https://github.com/NectarJS/nectarjs ) and we are able to compile a good part of js, object, class ... Our function system looks like what you described.

We use a c++ backend to achieve that, and NectarJS is right now compatible with a lot of environment ( Windows, Mac, Linux, Android, iPhone, Arduino ...)

We will target to properly finish to compile ES3 before the other specs, but the intetesting part is that we can also compile TypeScript, and it's easy to include C or C++ lib with our ffi system (kind of c++ js macro). We also manage infinity, Object, JSON, and we are starting Date and Regexp. We are experimenting some databases module (mysqlx). We use different --env flags regarding the compilation target (std, node, android, ios...), and we started to integrate LibUV for Node env.

Memory is completly managed in real time without garbage collector and we beat NodeJS with mathematical functions (you can try fibo.js)

Don't hesitate to take a look at the project and to submit issues.

from ts2c.

kungfooman avatar kungfooman commented on June 2, 2024

Oh god, AGPL

from ts2c.

decahedron1 avatar decahedron1 commented on June 2, 2024

@adrien-thierry NectarJS looks great! However, the license is a bit disappointing as kungfooman said. Right now I'd say NectarJS and ts2c are about the same in terms of ES3 support. Nectar looks really promising though, and maybe ts2c can learn from some parts of Nectar.

I think Nectar would be perfect if:

  • license was changed
  • code was cleaned up a bit
  • support for .prototypes
  • builtins like Date, Object, Array, etc. had .prototypes once prototype support is added

I won't go too much farther as this is a ts2c issue. If you'd like I could make some pulls to address some of these issues to the best of my ability (again, not too good with C).

As for ts2c though, I feel that functions being objects should be our main priority. If we can get this implemented then we can finally finish classes.

from ts2c.

adrien-thierry avatar adrien-thierry commented on June 2, 2024

@eclipticccc i will add . prototype support, object are working in NectarJS, i just have to add a default property to objects to support it.

In NectarJS, functions are objects and this is already implemented.

Object, Array, Date, JSON are already builtin

Don't hesitate to open issues on NectarJS. Right now, we are developing what we need for production, if people Can Say what they need, we can add it.

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.