project lambda: to multicore and beyond 【javaone tokyo 2012 セッション資料紹介】

11
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 セッション資料紹介】

Upload: oracle-fusion-middleware

Post on 25-May-2015

640 views

Category:

Technology


7 download

DESCRIPTION

このセッションは、Java SE 8 で導入予定の重要な言語仕様の追加機能である、Java のLambda 式について紹介します。Project Lambda では Lambda 式、メソッド・リファレンス、拡張メソッドなどを提供し、既存のもしくは将来提供されるライブラリとどのように連携するか、効果を発揮するかについて紹介します。さらにはハイ・パフォーマンスでエラーの少ないコードの記述方法についても紹介します。

TRANSCRIPT

Page 1: Project Lambda: To Multicore and Beyond 【JavaOne Tokyo 2012 セッション資料紹介】

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 セッション資料紹介】

Page 2: Project Lambda: To Multicore and Beyond 【JavaOne Tokyo 2012 セッション資料紹介】

2 Copyright © 2012, Oracle and/or its affiliates. All rights

reserved.

Insert Information Protection Policy Classification from Slide 8

Page 3: Project Lambda: To Multicore and Beyond 【JavaOne Tokyo 2012 セッション資料紹介】

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

Page 4: Project Lambda: To Multicore and Beyond 【JavaOne Tokyo 2012 セッション資料紹介】

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

Page 5: Project Lambda: To Multicore and Beyond 【JavaOne Tokyo 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.

Page 6: Project Lambda: To Multicore and Beyond 【JavaOne Tokyo 2012 セッション資料紹介】

6 Copyright © 2012, Oracle and/or its affiliates. All rights

reserved.

Program Agenda

• Background

• Lambda Expressions

• Default Methods

• Evolving Collections

• Wrap-up

Page 7: Project Lambda: To Multicore and Beyond 【JavaOne Tokyo 2012 セッション資料紹介】

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/

Page 8: Project Lambda: To Multicore and Beyond 【JavaOne Tokyo 2012 セッション資料紹介】

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

Page 9: Project Lambda: To Multicore and Beyond 【JavaOne Tokyo 2012 セッション資料紹介】

9 Copyright © 2012, Oracle and/or its affiliates. All rights

reserved.

Insert Information Protection Policy Classification from Slide 8

Page 10: Project Lambda: To Multicore and Beyond 【JavaOne Tokyo 2012 セッション資料紹介】

10 Copyright © 2012, Oracle and/or its affiliates. All rights

reserved.

Insert Information Protection Policy Classification from Slide 8

Page 11: Project Lambda: To Multicore and Beyond 【JavaOne Tokyo 2012 セッション資料紹介】

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 セッション資料紹介】