Comments (2)
Yes, we had early specs on how to store/strip such data with the previous format.
On the other hand, it's low-priority at the moment. We first want to ship something that works fast, and then we'll think of additional metadata!
from proposal-binary-ast.
I've had this on my mind. Not in terms of some explicit support for type-annotations, but rather some generic facility for annotating the AST in-line with extension attributes.
These could be used to associate various pieces of information that could be used by tooling (stripped before release), and allow for a simple and straightforward processing of a single data structure across a variety of transformations and annotations.
You could do type annotations, in-line source-notes (for debug builds, reducing workflow complexity and number of artifacts), or any other arbitrary data.
Now, whether it's feasible in practice or not is something that requires careful consideration. I can sense some of the counter-arguments that might be made (e.g. possibility of hidden payloads in BinAST files, security issues, etc.). It's a good idea but it needs to be thought about carefully.
from proposal-binary-ast.
Related Issues (20)
- .length property should be available for lazy function HOT 3
- Can we have `AssertedPositionalParameterName` interface which contains index? HOT 5
- Can we put more information into AssertedParameterScope ? HOT 2
- Why do some interfaces not inherit from Node? HOT 8
- Add comments to length field of functions. HOT 1
- Transfer repo to TC39 org HOT 5
- Add verification of property names vs identifiers
- What should be put into AssertedParameterScope for duplicate parameters? HOT 6
- Consider merging LiteralInfinityExpression into LiteralNumericExpression HOT 3
- Could the binary AST be...a bit more binary? HOT 1
- Consider splitting `LiteralNumericExpression` to `LiteralInt32Expression` + `LiteralFloatExpression`
- Could the AST be based on a reduced subset of productions? HOT 1
- Consider a compressed file format with pre-shared dictionary.
- Function.prototype.toString() HOT 12
- Modify IDL order if all JS engines benefit
- [question] I have a question that Binary AST file can be translated directly to bytecode or it should be translated to standard AST and then translated to bytecode in browser? HOT 2
- What is the current status of this proposal? HOT 12
- Solved by W3C EXI? HOT 3
- Request for opinion on alternative HOT 3
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 proposal-binary-ast.