Skip to content

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

Merged
merged 2 commits into from
Dec 1, 2017
Merged

Conversation

allanrenucci
Copy link
Contributor

Here is a draft of 0.5.0-RC1 blog post.

  • @nicolasstucki Do you want to say something about dotc -decompile or dotc -from-tasty?
  • @Duhemm Do you want to say something about java signature? Maybe give examples of what it lets you do with reflection.

### 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
Copy link
Contributor

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).
Copy link
Contributor

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).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

preciseness

@Duhemm
Copy link
Contributor

Duhemm commented Nov 29, 2017

@allanrenucci I added a short paragraph about generic java signatures.

@allanrenucci
Copy link
Contributor Author

@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
Copy link
Contributor

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.

Copy link
Contributor Author

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
Copy link
Contributor

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/

@OlivierBlanvillain
Copy link
Contributor

👍

@allanrenucci allanrenucci merged commit dc52e6f into scala:master Dec 1, 2017
@allanrenucci allanrenucci deleted the 0.5.0-RC1-blogpost branch December 1, 2017 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants