Better HN
topnewbestaskshowjobs
Log inSign up

_death_dude_

1 karma · joined Jan 3, 2016 (10y ago) · 2 submissions

Submissions

comment 10y ago · link · parent

No, invokedynamic is not mandatory for lambda. It's a proposed translation, which has the advantage to make lambdas that do not capture values to be seen as constant by the VM.

But you're right that certified Java 7 VM must have an invokedynamic opcode.

comment 10y ago · link · parent

"Java 8 was SUPPOSED to an even bigger shift than Java 5" No, it's not, Java 8 is mostly lambdas and unlike generics which requires coordinate effort between the client side and the API side, lambdas are just syntactic sugar at client side and plain old interfaces at API side.

Because of that, Java 8 is supposed to be a smaller shift than Java 5.