Re: Project Valhalla – Value Types slides from ScalaDays Amsterdam 2015
vitalyd at gmail.com
Fri Jun 12 11:09:13 UTC 2015
A few questions:
1) regarding equality being like primitives - is that for == only? Wll
value types support overriding equals()?
2) value types cannot hold a ref field that's null? I think I saw that on
one of the slides. If so, why?
sent from my phone
On Jun 12, 2015 4:49 AM, "Brian Goetz" <brian.goetz at oracle.com> wrote:
> Very nice.
> A few comments:
> #11: object headers are typically 2 words; a klass pointer and a word for
> various identity support (GC mark bits, locking, etc.) Which makes the
> density story with small objects even worse.
> In general, values give us both DENSITY (memory efficiency) and FLATNESS
> (cache efficiency.)
> #36: in addition to the __ByValue obviously being a syntax placeholder,
> the restrictions outlined e.g. in #38 (must say final) will also go away —
> we’re just not focusing at all on syntax for the time being.
> #39: equality on value types will work as it does on primitives (as you
> suggest on #88)
> #121: good summary
> On Jun 12, 2015, at 8:57 AM, Simon Ochsenreither <simon at ochsenreither.de>
> > Hey everone!
> > If you are interested, here are the slides I used in my talk at ScalaDays
> > Amsterdam:
> > oxnrtr.de/scaladays2015
> > I hope the slides gave a correct description of the current situation...
> > Thanks!
> > Bye,
> > Simon
More information about the valhalla-dev