1 Copyright © 2012, Oracle and/or its affiliates. All rights
reserved.
Project Lambda: To Multicore and Beyond
• このセッションは、Java SE 8 で導入予定の重要な言語仕様の追加機能である、Java の
Lambda 式について紹介します。Project Lambda では Lambda 式、メソッド・リファレンス
、拡張メソッドなどを提供し、既存のもしくは将来提供されるライブラリとどのように連携するか、効果を発揮するかについて紹介します、さらにはハイ・パフォーマンスでエラーの少ないコードの記述方法についても紹介します。
• 51スライド
• 資料ダウンロード
• JavaOne Tokyo 2012セッション資料公開ページへ
• JavaOne Tokyo 2012 公式ページへ
【JavaOne Tokyo 2012 セッション資料紹介】
2 Copyright © 2012, Oracle and/or its affiliates. All rights
reserved.
Insert Information Protection Policy Classification from Slide 8
3 Copyright © 2012, Oracle and/or its affiliates. All rights
reserved.
Insert Information Protection Policy Classification from Slide 8
Project Lambda: To Multicore and Beyond
David Holmes
4 Copyright © 2012, Oracle and/or its affiliates. All rights
reserved.
Russia 17–18 April 2012
India 3–4 May 2012
San Francisco September 30–October 4, 2012
5 Copyright © 2012, Oracle and/or its affiliates. All rights
reserved.
The following is intended to outline our general product direction.
It is intended for information purposes only, and may not be
incorporated into any contract. It is not a commitment to deliver
any material, code, or functionality, and should not be relied upon
in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle’s
products remains at the sole discretion of Oracle.
6 Copyright © 2012, Oracle and/or its affiliates. All rights
reserved.
Program Agenda
• Background
• Lambda Expressions
• Default Methods
• Evolving Collections
• Wrap-up
7 Copyright © 2012, Oracle and/or its affiliates. All rights
reserved.
Project Lambda / JSR-335 Status
• Project Lambda started December 2009
– Explorations done through OpenJDK
• JSR-335 filed November 2010
– Prototype compiler developed in OpenJDK
• Current status
– EDR draft #1 now public, available at
http://www.jcp.org/en/jsr/summary?id=335
– Compiler prototype binaries available at
http://jdk8.java.net/lambda/
8 Copyright © 2012, Oracle and/or its affiliates. All rights
reserved.
Conclusion
• Java needs closures for multiple reasons – Closures without lambda-fying the libraries would be poor
– Replacing all the libraries is a non-starter
– Compatibly evolving interface-based APIs has historically been a problem
• So we also need a mechanism for interface evolution – Solution: default methods
– Which is both a language and a VM feature
– And which is pretty useful for other things too
• Java SE 8 evolves the language, libraries, and VM together
9 Copyright © 2012, Oracle and/or its affiliates. All rights
reserved.
Insert Information Protection Policy Classification from Slide 8
10 Copyright © 2012, Oracle and/or its affiliates. All rights
reserved.
Insert Information Protection Policy Classification from Slide 8
11 Copyright © 2012, Oracle and/or its affiliates. All rights
reserved.
Project Lambda: To Multicore and Beyond
• このセッションは、Java SE 8 で導入予定の重要な言語仕様の追加機能である、Java の
Lambda 式について紹介します。Project Lambda では Lambda 式、メソッド・リファレンス
、拡張メソッドなどを提供し、既存のもしくは将来提供されるライブラリとどのように連携するか、効果を発揮するかについて紹介します、さらにはハイ・パフォーマンスでエラーの少ないコードの記述方法についても紹介します。
• 51スライド
• 資料ダウンロード
• JavaOne Tokyo 2012セッション資料公開ページへ
• JavaOne Tokyo 2012 公式ページへ
【JavaOne Tokyo 2012 セッション資料紹介】