-
Notifications
You must be signed in to change notification settings - Fork 1.1k
0.5.0-RC1 Blog Post #3521
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0.5.0-RC1 Blog Post #3521
Conversation
### TASTY frontend | ||
The TASTY frontend is a frontend that reloads the ASTs from the TASTY within the classfiles in the classpath. We fixed most issues with the frontend which enable us to re-compile code from TASTY without the need of retypecheck (#3436, #3512, #3492). | ||
|
||
Currenlty two backends that use this frontend are available |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently
The TASTY frontend is a frontend that reloads the ASTs from the TASTY within the classfiles in the classpath. We fixed most issues with the frontend which enable us to re-compile code from TASTY without the need of retypecheck (#3436, #3512, #3492). | ||
|
||
Currenlty two backends that use this frontend are available | ||
* Dotty class file decompiler `dotc -decompile -classpath CLASSPATH CLASSNAME`. It will decompile the code by preaty printing the contents of the TASTY. This code is the high level representation of the typechecked code without loss of precieceness due transformations towards JVM bytecode. It can also be used with `dotc -decompile -print-tasty ...` to show a preaty printed version of the raw TASTY (#3519). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/preaty/pretty/g
The TASTY frontend is a frontend that reloads the ASTs from the TASTY within the classfiles in the classpath. We fixed most issues with the frontend which enable us to re-compile code from TASTY without the need of retypecheck (#3436, #3512, #3492). | ||
|
||
Currenlty two backends that use this frontend are available | ||
* Dotty class file decompiler `dotc -decompile -classpath CLASSPATH CLASSNAME`. It will decompile the code by preaty printing the contents of the TASTY. This code is the high level representation of the typechecked code without loss of precieceness due transformations towards JVM bytecode. It can also be used with `dotc -decompile -print-tasty ...` to show a preaty printed version of the raw TASTY (#3519). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
preciseness
@allanrenucci I added a short paragraph about generic java signatures. |
cb11f98
to
c2b9363
Compare
@heathermiller Could you please have a look? I'll open a PR to scala-lang if we are happy with this version |
implicit search for `Q` fails. | ||
|
||
### Dependent function types [#3464](https://github.com/lampepfl/dotty/pull/3464) | ||
A dependent function type describes functions where the result type may depend |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would write "path dependent" everywhere to avoid the confusion with dependent types.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@odersky What do you think?
ambiguous, and subsequently have classified the query `b(implictly[A])` as a normal fail, | ||
which means that the alternative `c` would be chosen as solution! | ||
|
||
Scala 2's somewhat puzzling behavior wrt ambiguity has been exploited to implement the analogue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/wrt/with respect to/
👍 |
c2b9363
to
a885016
Compare
a885016
to
1d7e16d
Compare
Here is a draft of 0.5.0-RC1 blog post.
dotc -decompile
ordotc -from-tasty
?