Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Java JUG Unconference: Future of Java - Jozi-JUG
Heather VanCura
heather@jcp.org
Twitter @heathervc
Johannesburg, Investec
June 2016
●What Runs Java?
3
4
 9 Million Java
developers
 3 Billion devices
 #1 Choice for
developers
 #1 Development
platform
Ubiquitous
Collaboratively Developed - Community
5
Heather VanCura
Java Community Process (JCP) Program
•Director of the JCP Program Office
•Leader of Global Adopt-a-JSR Programs
•Open Source Fan
•Native Californian - from San Diego
•Personal Interests: Fun 
Bay Area, California - USA
History
•1995: Sun Microsystems develops Java.
•1999: Sun opens up the development process,
creating the Java Community Process.
•2006: Sun open-sources Java.
•2007: Sun goes into financial decline.
•2010: Oracle acquires Sun and becomes the
steward of Java.
7
8
Organization
9
•.
1
Who Are The Members?
https://jcp.org/en/participation/membership
• Corporations
• Non-Profits/Open
Source
• Java User Groups
• Individual
Developers
The Executive Committee
1
• Corporations
• Non-Profits/Open
Source
• Java User Groups
• Individual
Developers
Compatibility Triangle
Can you build an
implementation?
Is the specification
unambiguous?
Is the TCK correct?
Does the RI conform?
1
The JSR Development Cycle
•Includes formal public reviews and votes by the Executive Committee.
•Full Members can submit & lead JSRs, serve on JSR Expert Groups.
•See the Process Document for the details.
1
How: Open Standards & Open Source
1
Open Source Implementations
•The Reference Implementations of the Java SE and Java EE platforms are
also developed collaboratively and released under open-source licenses.
–Java SE: OpenJDK
–Java EE: Project GlassFish
1
Click icon to add picture
Why Participate?
1. Knowledge
2. Skills
3. Visibility
4. Altruism
5. Fun
1
Click icon to add picture
Joining the JCP empowers you to:
• Take Initiative – Requirements
• Adapt and Inform
• Develop New Markets
• Grow Developers
1
Why Participate as Corporation?
Click icon to add picture
How
•New revisions of each of
the three platforms.
• “JCP.Next” reforms .
•Increased participation
from Java User Groups.
2011 - Present Day
1
Java EE 7: (JSR 342) – May 2013
1
Java ME 8: (JSRs 360 & 361) – April 2014
2
Java SE 8: JSR 337 - March 2014
2
Java 8 Adoption
JCP.next: Changing the Constitution
JCP.next.4 (JSR 364)
JCP.next (JSR 364)
2
● Eliminate Barriers to participation.
● Introduce new Membership levels.
● No Membership Fees.
● Electronic Signatures.
● Add Contributors for JSR Expert Groups.
● Add Associate Seats on Executive Committee.
JCP 2.10, Broadening JCP Membership
• JCP 1.0 – Formalization of JCP (1999).
• JCP 2.0 – Form Executive Committee (2000).
• JCP 2.5 – Enable Participation for Spec Leadership, Individuals (2002).
• JCP 2.6 – Embrace Open Source (2004).
• JCP 2.7 – Transparency (2009).
• JCP 2.8 – Increased transparency (2011).
• JCP 2.9 – Merge EC (2012).
• JCP 2.10 – Broaden Participation (2016).
•. 2
Use the Process to Change the Process
The JCP is More Open Than Before
2
How will you Participate?
•As an Individual – OK.
•As part of a team – better.
•Work through your JUG or
employer.
–Help each other
–Teach other.
–Work with each other.
Adopt-a-JSR
●A JUG-lead initiative to improve
Java standards.
●Global groups of JUG members
work on JSRs.
–Receive attention from local industry.
–Become more professional – helps
focus your group efforts.
–Attract more developers to your
community
JUGs around the World
London Java Community
JSR 310, Date and Time
API
JSR 335, Lambda
Expressions
Myriad hack days, talks
and events organized!
Use Cases
3
SouJava (Brazil)
JSR 310, Date and Time API
JSR 339, JAX-RS 2.0
344, JSF 2.2
Many talks, books, articles,
classes, code dojos (hack
days), translations
Use Cases
3
3
ADOPTAJSR.ORG wiki – Get Started & join list
You expanded wiki into eight languages: Arabic, Chinese, English, French, German,
Portuguese, Spanish, Turkish...you choose who will translate next language!
3
1) Pick JSR - New JSRs
https://jcp.org/en/jsr/stage?listBy=active
Recently submitted:
Security (JSR 375)
Java EE Management (JSR 373)
JSON-P 1.1 (JSR 374)
Units of Measurement (JSR 363)
Java Module System (JSR 376)
Desktop Application API (JSR 377)
Java EE 8 (JSR 366)
CDI 2 (JSR 365)
JSON-B (JSR 367)
JMS 2.1 (JSR 368)
Servlet 4 (JSR 369)
JAX-RS 2.1 (JSR 370)
MVC (JSR 371)
JSF 2.3 (JSR 372)
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Java EE 8 Community Survey
Glasfish.org/surveys
Web standards/HTML5 alignment, Cloud, CDI alignment, Enterprise, Java SE 8
JSR example pageSR page example
List of Active JSRs (posting in last 12 months):
http://jcp.org/en/jsr/all?status=Active&activeMonths=12 .
3
2) Communication: Two Way Street
3
4) Enter activity in the matrix - Collaborate
3
5) Follow Public Discussions & Comment - Jira example
5) How to Write a Bug - SSCCE
● Short, Self Contained, Correct (Compilable), Example
● Short (Small) - Minimise bandwidth for the example, do
not bore the audience.
● Self Contained - Ensure everything is included, ready to
go.
● Correct - Copy, paste, (compile,) see is the aim.
● Example - Displays the problem we are trying to solve.
4
4
6) Share - Add & Use Resources on GitHub
●Participate in Adopt OpenJDK
4
• Go to http://java.net/projects/adoptopenjdk/
• Also Adoption Group & Quality Outreach
• Join mail list prior to sending feedback:
http://mail.openjdk.java.net/mailman/listinfo/adoption-discuss
• https://wiki.openjdk.java.net/display/quality/Quality+Outreach
●JDK 9
● 72 JEPs targeted for JDK 9
– JEP == Java Enhancement Proposal
● Big one – JEP 261– Module System
– http://openjdk.java.net/jeps/261
– Related JEPs for the Module System
● JEP 200 – The Modular JDK
● JEP 201 – Modular Source Code
● JEP 220 – Modular Run-Time Images
● JEP 260 – Encapsulate Most Internal APIs
● JEP 162 – Prepare for Modularization
Another big step forward
●JDK 9
● Jigsaw available in current JDK 9 EA (early access)
– https://jdk9.java.net/download/
● Build 111 or later has Jigsaw in it
● Current available downloadable build is Build 120
Another big step forward
●Other JEPs
• JEP 102: Process API Updates
– Java APIs for controlling and managing operating-system processes
• get the process id of the JVM
• get process information such as process id, name and state
• deal with process trees, a means to destroy a process tree
• Most enhancements added to Process and ProcessHandle classes
• JEP 158: Unified JVM Logging
– Common logging for all of the JVM
– Log messages categorized using tags
• JEP 271: Unified GC Logging
– GC logging using Unified JVM Logging
– If you have customized programs today that parse GC output, these will likely be impacted.
• JEP 197: Segmented Code Cache
– Improved organization and maintenance of JIT compiled code (performance improvement)
• Better instruction cache and instruction TLB behavior
… of significant interest
●Other JEPs
● JEP 232: Improve Secure Application Performance
– Improved security manager performance
● JEP 237: Linux/AArch64 Port
– JDK / JRE for ARM, Linux
● JEP 254: Compact Strings
– Transparently optimize single byte char usage
● CJUG presentation in February
● JEP 280: Indify String Concatenation
– Optimize String concatenation
… of significant interest
●HotSpot VM Improvements
● Many performance improvements from the JEPs
– JEP 254: Compact Strings
– JEP 280: Indify String Concatenation
– JEP 197: Segmented Code Cache
– JEP 232: Improve Secure Application Performance
● JIT compiler supporting enhanced instructions
– i.e. Intel AVX
● G1 GC
– Continues to be GC area of enhancement investment
Performance, performance, performance
4
JDK 9 Outreach
https://wiki.openjdk.java.net/display/Adoption/JDK+9+Outreach#JDK9Outreach-Introduction
●Test Java 9 – changes that may affect your code
● JDK 9 changes that may affect your code -
Added
– OCSP Stapling for TLS
– Multi-Release JAR Files
– Parser API for Nashorn
– Prepare JavaFX UI Controls & CSS APIs for Modularization
– Validate JVM Command-Line Flag Arguments
– XML Catalogs
– Platform-Specific Desktop Features
– llback.DialogCallbackHandler
4
●Test Java 9 – changes that may affect your code
● Changed
– Arrays.asList(x).toArray() returns Object[]
– Create PKCS12 Keystores by Default
– HarfBuzz Font-Layout Engine
– Make G1 the Default Garbage Collector
– Marlin Graphics Renderer
– Modular Run-Time Images
– New Version-String Scheme
– Unified JVM Logging
– Use CLDR Locale Data by Default
– UTF-8 Property Files
5
●Test Java 9 – changes that may affect your code
● Removed
– Remove GC Combinations Deprecated in JDK 8
– Remove Launch-Time JRE Version Selection
– Remove the JVM TI hprof Agent
– Remove the jhat Tool
– Removed API references to java.awt.peer and
java.awt.dnd.peer packages
– Removed Packer/Unpacker addPropertyChangeListener and
removePropertyChangeListener methods
– Removed LogManager addPropertyChangeListener and
removePropertyChangeListener methods
– Removed com.sun.security.auth.ca
5
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
7) Participate in Hack Days – Have Fun!
We need you!
•Follow the JCP online: http://JCP.org
–Join the JCP: https://jcp.org/en/participation/membership
–Twitter @jcp_org #JCP
–blogs.oracle.com/jcp
–Facebook: Java Community Process
•Adopt-a-JSR online: adoptajsr.org. #adoptajsr
–members@adoptajsr.java.net - the global mailing list
–IRC: #adoptajsr channel on irc.freenode.net
–GitHub: https://github.com/Adopt-a-JSR
5
If you want to go far…
.
5

Jozi-JUG JDK 9 Unconference

  • 1.
    Copyright © 2014,Oracle and/or its affiliates. All rights reserved. | Java JUG Unconference: Future of Java - Jozi-JUG Heather VanCura heather@jcp.org Twitter @heathervc Johannesburg, Investec June 2016
  • 3.
  • 4.
    4  9 MillionJava developers  3 Billion devices  #1 Choice for developers  #1 Development platform Ubiquitous
  • 5.
  • 6.
    Heather VanCura Java CommunityProcess (JCP) Program •Director of the JCP Program Office •Leader of Global Adopt-a-JSR Programs •Open Source Fan •Native Californian - from San Diego •Personal Interests: Fun  Bay Area, California - USA
  • 7.
    History •1995: Sun Microsystemsdevelops Java. •1999: Sun opens up the development process, creating the Java Community Process. •2006: Sun open-sources Java. •2007: Sun goes into financial decline. •2010: Oracle acquires Sun and becomes the steward of Java. 7
  • 8.
  • 9.
  • 10.
    •. 1 Who Are TheMembers? https://jcp.org/en/participation/membership • Corporations • Non-Profits/Open Source • Java User Groups • Individual Developers
  • 11.
    The Executive Committee 1 •Corporations • Non-Profits/Open Source • Java User Groups • Individual Developers
  • 12.
    Compatibility Triangle Can youbuild an implementation? Is the specification unambiguous? Is the TCK correct? Does the RI conform? 1
  • 13.
    The JSR DevelopmentCycle •Includes formal public reviews and votes by the Executive Committee. •Full Members can submit & lead JSRs, serve on JSR Expert Groups. •See the Process Document for the details. 1
  • 14.
    How: Open Standards& Open Source 1
  • 15.
    Open Source Implementations •TheReference Implementations of the Java SE and Java EE platforms are also developed collaboratively and released under open-source licenses. –Java SE: OpenJDK –Java EE: Project GlassFish 1
  • 16.
    Click icon toadd picture Why Participate? 1. Knowledge 2. Skills 3. Visibility 4. Altruism 5. Fun 1
  • 17.
    Click icon toadd picture Joining the JCP empowers you to: • Take Initiative – Requirements • Adapt and Inform • Develop New Markets • Grow Developers 1 Why Participate as Corporation?
  • 18.
    Click icon toadd picture How •New revisions of each of the three platforms. • “JCP.Next” reforms . •Increased participation from Java User Groups. 2011 - Present Day 1
  • 19.
    Java EE 7:(JSR 342) – May 2013 1
  • 20.
    Java ME 8:(JSRs 360 & 361) – April 2014 2
  • 21.
    Java SE 8:JSR 337 - March 2014 2
  • 22.
  • 23.
  • 24.
  • 25.
    2 ● Eliminate Barriersto participation. ● Introduce new Membership levels. ● No Membership Fees. ● Electronic Signatures. ● Add Contributors for JSR Expert Groups. ● Add Associate Seats on Executive Committee. JCP 2.10, Broadening JCP Membership
  • 26.
    • JCP 1.0– Formalization of JCP (1999). • JCP 2.0 – Form Executive Committee (2000). • JCP 2.5 – Enable Participation for Spec Leadership, Individuals (2002). • JCP 2.6 – Embrace Open Source (2004). • JCP 2.7 – Transparency (2009). • JCP 2.8 – Increased transparency (2011). • JCP 2.9 – Merge EC (2012). • JCP 2.10 – Broaden Participation (2016). •. 2 Use the Process to Change the Process
  • 27.
    The JCP isMore Open Than Before 2
  • 28.
    How will youParticipate? •As an Individual – OK. •As part of a team – better. •Work through your JUG or employer. –Help each other –Teach other. –Work with each other.
  • 29.
    Adopt-a-JSR ●A JUG-lead initiativeto improve Java standards. ●Global groups of JUG members work on JSRs. –Receive attention from local industry. –Become more professional – helps focus your group efforts. –Attract more developers to your community
  • 30.
  • 31.
    London Java Community JSR310, Date and Time API JSR 335, Lambda Expressions Myriad hack days, talks and events organized! Use Cases 3
  • 32.
    SouJava (Brazil) JSR 310,Date and Time API JSR 339, JAX-RS 2.0 344, JSF 2.2 Many talks, books, articles, classes, code dojos (hack days), translations Use Cases 3
  • 33.
    3 ADOPTAJSR.ORG wiki –Get Started & join list You expanded wiki into eight languages: Arabic, Chinese, English, French, German, Portuguese, Spanish, Turkish...you choose who will translate next language!
  • 34.
    3 1) Pick JSR- New JSRs https://jcp.org/en/jsr/stage?listBy=active Recently submitted: Security (JSR 375) Java EE Management (JSR 373) JSON-P 1.1 (JSR 374) Units of Measurement (JSR 363) Java Module System (JSR 376) Desktop Application API (JSR 377) Java EE 8 (JSR 366) CDI 2 (JSR 365) JSON-B (JSR 367) JMS 2.1 (JSR 368) Servlet 4 (JSR 369) JAX-RS 2.1 (JSR 370) MVC (JSR 371) JSF 2.3 (JSR 372)
  • 35.
    Copyright © 2014,Oracle and/or its affiliates. All rights reserved. | Java EE 8 Community Survey Glasfish.org/surveys Web standards/HTML5 alignment, Cloud, CDI alignment, Enterprise, Java SE 8
  • 36.
    JSR example pageSRpage example List of Active JSRs (posting in last 12 months): http://jcp.org/en/jsr/all?status=Active&activeMonths=12 . 3
  • 37.
  • 38.
    3 4) Enter activityin the matrix - Collaborate
  • 39.
    3 5) Follow PublicDiscussions & Comment - Jira example
  • 40.
    5) How toWrite a Bug - SSCCE ● Short, Self Contained, Correct (Compilable), Example ● Short (Small) - Minimise bandwidth for the example, do not bore the audience. ● Self Contained - Ensure everything is included, ready to go. ● Correct - Copy, paste, (compile,) see is the aim. ● Example - Displays the problem we are trying to solve. 4
  • 41.
    4 6) Share -Add & Use Resources on GitHub
  • 42.
    ●Participate in AdoptOpenJDK 4 • Go to http://java.net/projects/adoptopenjdk/ • Also Adoption Group & Quality Outreach • Join mail list prior to sending feedback: http://mail.openjdk.java.net/mailman/listinfo/adoption-discuss • https://wiki.openjdk.java.net/display/quality/Quality+Outreach
  • 43.
    ●JDK 9 ● 72JEPs targeted for JDK 9 – JEP == Java Enhancement Proposal ● Big one – JEP 261– Module System – http://openjdk.java.net/jeps/261 – Related JEPs for the Module System ● JEP 200 – The Modular JDK ● JEP 201 – Modular Source Code ● JEP 220 – Modular Run-Time Images ● JEP 260 – Encapsulate Most Internal APIs ● JEP 162 – Prepare for Modularization Another big step forward
  • 44.
    ●JDK 9 ● Jigsawavailable in current JDK 9 EA (early access) – https://jdk9.java.net/download/ ● Build 111 or later has Jigsaw in it ● Current available downloadable build is Build 120 Another big step forward
  • 45.
    ●Other JEPs • JEP102: Process API Updates – Java APIs for controlling and managing operating-system processes • get the process id of the JVM • get process information such as process id, name and state • deal with process trees, a means to destroy a process tree • Most enhancements added to Process and ProcessHandle classes • JEP 158: Unified JVM Logging – Common logging for all of the JVM – Log messages categorized using tags • JEP 271: Unified GC Logging – GC logging using Unified JVM Logging – If you have customized programs today that parse GC output, these will likely be impacted. • JEP 197: Segmented Code Cache – Improved organization and maintenance of JIT compiled code (performance improvement) • Better instruction cache and instruction TLB behavior … of significant interest
  • 46.
    ●Other JEPs ● JEP232: Improve Secure Application Performance – Improved security manager performance ● JEP 237: Linux/AArch64 Port – JDK / JRE for ARM, Linux ● JEP 254: Compact Strings – Transparently optimize single byte char usage ● CJUG presentation in February ● JEP 280: Indify String Concatenation – Optimize String concatenation … of significant interest
  • 47.
    ●HotSpot VM Improvements ●Many performance improvements from the JEPs – JEP 254: Compact Strings – JEP 280: Indify String Concatenation – JEP 197: Segmented Code Cache – JEP 232: Improve Secure Application Performance ● JIT compiler supporting enhanced instructions – i.e. Intel AVX ● G1 GC – Continues to be GC area of enhancement investment Performance, performance, performance
  • 48.
  • 49.
    ●Test Java 9– changes that may affect your code ● JDK 9 changes that may affect your code - Added – OCSP Stapling for TLS – Multi-Release JAR Files – Parser API for Nashorn – Prepare JavaFX UI Controls & CSS APIs for Modularization – Validate JVM Command-Line Flag Arguments – XML Catalogs – Platform-Specific Desktop Features – llback.DialogCallbackHandler 4
  • 50.
    ●Test Java 9– changes that may affect your code ● Changed – Arrays.asList(x).toArray() returns Object[] – Create PKCS12 Keystores by Default – HarfBuzz Font-Layout Engine – Make G1 the Default Garbage Collector – Marlin Graphics Renderer – Modular Run-Time Images – New Version-String Scheme – Unified JVM Logging – Use CLDR Locale Data by Default – UTF-8 Property Files 5
  • 51.
    ●Test Java 9– changes that may affect your code ● Removed – Remove GC Combinations Deprecated in JDK 8 – Remove Launch-Time JRE Version Selection – Remove the JVM TI hprof Agent – Remove the jhat Tool – Removed API references to java.awt.peer and java.awt.dnd.peer packages – Removed Packer/Unpacker addPropertyChangeListener and removePropertyChangeListener methods – Removed LogManager addPropertyChangeListener and removePropertyChangeListener methods – Removed com.sun.security.auth.ca 5
  • 52.
    Copyright © 2014,Oracle and/or its affiliates. All rights reserved. | 7) Participate in Hack Days – Have Fun!
  • 53.
    We need you! •Followthe JCP online: http://JCP.org –Join the JCP: https://jcp.org/en/participation/membership –Twitter @jcp_org #JCP –blogs.oracle.com/jcp –Facebook: Java Community Process •Adopt-a-JSR online: adoptajsr.org. #adoptajsr –members@adoptajsr.java.net - the global mailing list –IRC: #adoptajsr channel on irc.freenode.net –GitHub: https://github.com/Adopt-a-JSR 5
  • 54.
    If you wantto go far… . 5