better.js
better.js copied to clipboard
jsdoced.js
- "use jsdoc";
- it is a way to write javascript
- you have to write a given dialect of javascript, like "use asm";
- this dialect use jsdoc to get additional info about your code
- jsdoced.js to better.js
possible experimentation
- if jsdoc contains @constructor, then add Bjs.Class() around it
- use uglify ? it seems to be a best at read/write
epiphany
https://twitter.com/jerome_etienne/status/424382161505239041
Javascript+jsdoc have similar syntax expressivity that language like java or dart. So js+jsdoc could be compiled and run as fast as them.
https://twitter.com/jerome_etienne/status/424383104909049856
Js+jsdoc have strong typing, inheritance, private variables and methods, interface, and likely more.
https://twitter.com/jerome_etienne/status/424383965748015104
Js+jsdoc is fully backward compatible to js. What the heck. Let's have a "use jsdoc"; and have the VM take advantage of it when it can.
https://twitter.com/jerome_etienne/status/424384683095633920
If dart VM is much faster than js ones, we could have compilers which compile js+jsdoc to dart. Thus taking advantage of speed of dart VM