Comments (6)
@kungfooman we will change it soon
from ts2c.
Btw, the license problem will be solved very soon
from ts2c.
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.
Oh god, AGPL
from ts2c.
@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
.prototype
s - builtins like Date, Object, Array, etc. had
.prototype
s 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.
@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)
- Inner functions' variables are freed HOT 3
- Feature: Classes (for TS at least) HOT 8
- Compiling TypeScript to C via WebAssembly HOT 2
- Please include the original code as a comment in the transpiled code HOT 12
- Memory allocation bug HOT 6
- Function.prototype.toString HOT 1
- C functions HOT 2
- Syntax errors are handled incorrectly
- Playground autocomplete keeps repeating
- Order in which properties are added is not honored
- Incorrect generation of 'free' call
- Using C++ instead of C? HOT 4
- npm - Unexpected end of JSON
- Error when combining "for in" and "for of"
- labelled statements don't work
- Ain't work HOT 1
- arguments array ain;t work
- problem with functions called main
- error with functions returning functions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ts2c.