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

The "quirks of miniboxing" meta-bug #137

Open
VladUreche opened this Issue Oct 21, 2014 · 1 comment

Comments

Projects
None yet
1 participant
@VladUreche
Copy link
Member

VladUreche commented Oct 21, 2014

The quirks of miniboxing are pretty much the same as for specialization: http://axel22.github.io/2013/11/03/specialization-quirks.html

@VladUreche VladUreche added this to the 0.4 milestone Oct 21, 2014

@VladUreche VladUreche self-assigned this Oct 21, 2014

@VladUreche VladUreche changed the title Warn for the "quirks of miniboxing" Warn when the "quirks of miniboxing" are hit Oct 21, 2014

@VladUreche

This comment has been minimized.

Copy link
Member

VladUreche commented Oct 21, 2014

The quirks of specialization:

  • 1.1 "Know the conditions for method specialization" - method speciaization - fixed by miniboxing
  • 1.2 "Know the conditions for method specialization" - class specialization - fixed by miniboxing
  • 2. "Initialize specialized values outside constructor body" - fixed by #64 #105
  • 3. "Resolve access problems using the package-private modifier" - TODO: warnings are produced, but maybe this could be improved #136
  • 4. "Use traits where possible" - fixed by design in miniboxing
  • 5. "Avoid traits where possible" - fixed by design in miniboxing
  • 6. "Make your classes as flat as possible" - proper warning issued
  • 7. "Avoid super calls" - fixed by bug #166
  • 8. "Be wary of vars" - fixed by design in miniboxing
  • 9. "Think about the primitive types you really care about" - fixed by design in miniboxing
  • 10. "Avoid using specialization and implicit classes" - TODO: need to investigate

@VladUreche VladUreche changed the title Warn when the "quirks of miniboxing" are hit The "quirks of miniboxing" meta-bug Oct 21, 2014

VladUreche added a commit that referenced this issue Nov 10, 2014

VladUreche added a commit that referenced this issue Nov 11, 2014

More work on #137: inverse warning
when a miniboxed or primitive type leaks into a non-miniboxed argument

VladUreche added a commit that referenced this issue Nov 12, 2014

VladUreche added a commit that referenced this issue Dec 12, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment