Comments (11)
@magnus-madsen should asts be printed "online" right as they're computed, or still after compilation like before?
I think now we can print them online. Then you can also free memory immediately (?)
from flix.
We could reintroduce a debug flag or require you to run some LSP command to enable debugging?
from flix.
Not sure how it works in command line mode today? Do you print the asts to disk as you go?
from flix.
What else can be done?
from flix.
you give asts with --Xprint-phase a, b, c
(or something like that). in that case we can just print when we hit relevant asts
but if you have a runtime crash, its nice to print the asts because the runtime crash might not be easily reproduced and if you run the compiler again with debug flags the names of functions will be different from the runtime error
from flix.
I think we waste at least 30% of total memory keeping the later ASTs around.
It seems we have three use cases:
- Printing some ASTs to disk by request.
- Printing all ASTs to disk because of a crash.
- Showing an AST via VSCode.
These are easily supported if we store everything. If we don't then I am not sure.
from flix.
Per our discussion, we will only support ast printing with up front demand during compilation.
from flix.
@magnus-madsen should asts be printed "online" right as they're computed, or still after compilation like before?
from flix.
@magnus-madsen should asts be printed "online" right as they're computed, or still after compilation like before?
I think now we can print them online. Then you can also free memory immediately (?)
only downside is that priting to file can fail - do we stop everything or let compilation continue?
from flix.
@magnus-madsen should asts be printed "online" right as they're computed, or still after compilation like before?
I think now we can print them online. Then you can also free memory immediately (?)
only downside is that priting to file can fail - do we stop everything or let compilation continue?
As in IO error? If you get that I think everything is broken anyway.
from flix.
E.g. if you have no more disk space probably you will not be able to write class files anyway.
from flix.
Related Issues (20)
- Parser: disallow whitespace in qualified names
- Parser: disallow multiline strings
- Parser: More doc comment confusion
- Unbound type variable
- Effect rules for channels
- `regex` escape sequence support
- LSP: Highlight provider should only return ranges within the given document
- Parser: crash with empty use group
- Add two new type constructors: `MethodReturnType` and `StaticMethodReturnType`
- Add `InvokeMethod2` to front-end ASTs HOT 7
- Reworking Indexing/Searching in LanguageServer
- Effect Aware Package Management
- Split `Ast.Input` into more cases
- Add permission support to `flix.toml` HOT 4
- Add support for `InvokeMethod2` to `Parser2` and `Weeder2` HOT 2
- Add type inference for `InvokeMethod2` HOT 1
- Add `InvokeConstructor2` and `InvokeStaticMethod2` to frontend HOT 5
- Extend Method Resolution HOT 1
- Compiler crash: Type error HOT 2
- Alternative representation of Java types HOT 5
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 flix.