Domain-Specific Languages for Composable Editor Plugins (LDTA 2009)lennartkats
Modern IDEs increase developer productivity by incorporating many different kinds of editor services. These can be purely syntactic, such as syntax highlighting, code folding, and an outline for navigation; or they can be based on the language semantics, such as in-line type error reporting and resolving identifier declarations. Building all these services from scratch requires both the extensive knowledge of the sometimes complicated and highly interdependent APIs and extension mechanisms of an IDE framework, and an in-depth understanding of the structure and semantics of the targeted language. This paper describes Spoofax/IMP, a meta-tooling suite that provides high-level domain-specific languages for describing editor services, relieving editor developers from much of the framework-specific programming. Editor services are defined as composable modules of rules coupled to a modular SDF grammar. The composability provided by the SGLR parser and the declaratively defined services allows embedded languages and language extensions to be easily formulated as additional rules extending an existing language definition. The service definitions are used to generate Eclipse editor plugins. We discuss two examples: an editor plugin for WebDSL, a domain-specific language for web applications, and the embedding of WebDSL in Stratego, used for expressing the (static) semantic rules of WebDSL.
Domain-Specific Languages for Composable Editor Plugins (LDTA 2009)lennartkats
Modern IDEs increase developer productivity by incorporating many different kinds of editor services. These can be purely syntactic, such as syntax highlighting, code folding, and an outline for navigation; or they can be based on the language semantics, such as in-line type error reporting and resolving identifier declarations. Building all these services from scratch requires both the extensive knowledge of the sometimes complicated and highly interdependent APIs and extension mechanisms of an IDE framework, and an in-depth understanding of the structure and semantics of the targeted language. This paper describes Spoofax/IMP, a meta-tooling suite that provides high-level domain-specific languages for describing editor services, relieving editor developers from much of the framework-specific programming. Editor services are defined as composable modules of rules coupled to a modular SDF grammar. The composability provided by the SGLR parser and the declaratively defined services allows embedded languages and language extensions to be easily formulated as additional rules extending an existing language definition. The service definitions are used to generate Eclipse editor plugins. We discuss two examples: an editor plugin for WebDSL, a domain-specific language for web applications, and the embedding of WebDSL in Stratego, used for expressing the (static) semantic rules of WebDSL.
Scalable XQuery Processing with Zorba on top of MongoDBWilliam Candillon
Since a couple of years, the NoSQL movement has developed a variety of open-source document stores. Most of them focus on high availability, horizontal scalability, and are designed to run on commodity hardware. These products have gained great traction in the industry to store large amounts of flexible data (mostly JSON). In the meantime, XQuery has evolved to a standardized, full-fledged programming language for XML with native support for complex queries, indexes, updates, full-text search, and scripting. Moreover, JSON has recently been added as a first-level datatype into the language. As of today, it is without doubt the most robust and productive technology to process flexible data.
The aim of this talk is to showcase the benefits that can be achieved by integrating the Zorba XQuery Processor with MongoDB. We will introduce the 28msec platform that seamlessly stores, indexes, and manages flexible data entirely in XQuery. The data itself is stored in MongoDB. The platform leverages MongoDB’s indexes, sharding, and consistency guarantees to scale-out horizontally. The talk will conclude by showing a benchmark of the platform and discuss perspectives of the outlined approach.
Sharing data between different DBMS types is an inevitable need in Today's diverse IT environments. Need for real-time data integration, seamless migration and data warehousing are the main reasons driving demand for heterogenous replication. In this talk we'll review how open source Tungsten Replicator can replicate data in real-time between databases like MySQL, PostgreSQL, Oracle, MongoDB and others. Join us for this both technical and enlightening talk.
We'll cover fundamental steps behind configuring heterogeneous replication, the importance of transaction transforming filters and common challenges rising when replicating cross DBMS-type. We'll conclude with in-line demos to show you how it looks in action.
The next release of the Java Standard Edition is scheduled for the beginning of 2010. In this session we'll review the latest feature list of what's in and what's out of the next version of the JDK.
An update on the latest news around JavaFX including the 1.2 release and the general availability of JavaFX Mobile for Windows Mobile devices.
PostgreSQL has kept up the momentum around JSON with version 9.4 featuring JSONB as demand for working with unstructured data continues to grow. In this talk delivered during Postgres Open 2014, Vibhor Kumar, principal systems engineer at EnterpriseDB, offered some scenarios for working with JSON in PostgreSQL and demonstrated performance metrics. This session also gave some instruction on how to use different operations and explored comparisons to BSON.
Deployment in Oracle SOA Suite and in Oracle BPM SuiteLonneke Dikmans
Deployment in a Service oriented environment is slightly more complicated because the endpoints and other settings need to be changed when promoting the components through QA, Staging and production systems. The Oracle SOA suite offers different mechanisms for different components: Configuration plans for SCA components and customization files for the OSB. You can either deploy an artifact manually, or script the deployment using ant or WLST.
This paper will discuss the different settings you can adjust in configuration plans and customization files, a way of organizing these files in different situations and the use of scripting versus manual deployment.
Cassandra 3.0 - JSON at scale - StampedeCon 2015StampedeCon
This session will explore the new features in Cassandra 3.0, starting with JSON support. Cassandra now allows storing JSON directly to Cassandra rows and vice versa, making it trivial to deploy Cassandra as a component in modern service-oriented architectures.
Cassandra 3.0 also delivers other enhancements to developer productivity: user defined functions let developers deploy custom application logic server side with any language conforming to the Java scripting API, including Javascript. Global indexes allow scaling indexed queries linearly with the size of the cluster, a first for open-source NoSQL databases.
Finally, we will cover the performance improvements in Cassandra 3.0 as well.
Im zweiten Teil seiner OData Session zeigt Rainer Stropek, wie man eigene OData-Provider entwickelt. In einem durchgängigen Beispiel demonstriert er, wie man erst einen LINQ-Provider und darauf aufbauend einen OData-konformen REST Service erstellt und von verschiedenen Programmiersprachen und Tools darauf zugreift. In der Session werden Grundkenntnisse von OData und LINQ vorausgesetzt.
Overview of the new JSON processing functionality in MySQL: the new JSON type, the in-line JSON path expressions, the JSON functions and how to go about indexing JSON
Java 8 åpnet slusene for funksjonell programmering (FP) i Java, men verktøykassen som følger med JDKen er ganske mangelfull. Man har ingen støtte for immutable objekter og datastrukturer, som er helt essensielt innen FP og hjelper deg å fjerne en rekke typer kodefeil. I tillegg mangler for eksempel mer høynivå mekanismer for parallellisering av oppgaver.
I dette foredraget vil vi gå igjennom et utvalg av tredjepartsbiblioteker som du kan ta i bruk for å bøte på disse problemene og gjøre Java-koden din ennå mer sikker og funksjonell!
Scalable XQuery Processing with Zorba on top of MongoDBWilliam Candillon
Since a couple of years, the NoSQL movement has developed a variety of open-source document stores. Most of them focus on high availability, horizontal scalability, and are designed to run on commodity hardware. These products have gained great traction in the industry to store large amounts of flexible data (mostly JSON). In the meantime, XQuery has evolved to a standardized, full-fledged programming language for XML with native support for complex queries, indexes, updates, full-text search, and scripting. Moreover, JSON has recently been added as a first-level datatype into the language. As of today, it is without doubt the most robust and productive technology to process flexible data.
The aim of this talk is to showcase the benefits that can be achieved by integrating the Zorba XQuery Processor with MongoDB. We will introduce the 28msec platform that seamlessly stores, indexes, and manages flexible data entirely in XQuery. The data itself is stored in MongoDB. The platform leverages MongoDB’s indexes, sharding, and consistency guarantees to scale-out horizontally. The talk will conclude by showing a benchmark of the platform and discuss perspectives of the outlined approach.
Sharing data between different DBMS types is an inevitable need in Today's diverse IT environments. Need for real-time data integration, seamless migration and data warehousing are the main reasons driving demand for heterogenous replication. In this talk we'll review how open source Tungsten Replicator can replicate data in real-time between databases like MySQL, PostgreSQL, Oracle, MongoDB and others. Join us for this both technical and enlightening talk.
We'll cover fundamental steps behind configuring heterogeneous replication, the importance of transaction transforming filters and common challenges rising when replicating cross DBMS-type. We'll conclude with in-line demos to show you how it looks in action.
The next release of the Java Standard Edition is scheduled for the beginning of 2010. In this session we'll review the latest feature list of what's in and what's out of the next version of the JDK.
An update on the latest news around JavaFX including the 1.2 release and the general availability of JavaFX Mobile for Windows Mobile devices.
PostgreSQL has kept up the momentum around JSON with version 9.4 featuring JSONB as demand for working with unstructured data continues to grow. In this talk delivered during Postgres Open 2014, Vibhor Kumar, principal systems engineer at EnterpriseDB, offered some scenarios for working with JSON in PostgreSQL and demonstrated performance metrics. This session also gave some instruction on how to use different operations and explored comparisons to BSON.
Deployment in Oracle SOA Suite and in Oracle BPM SuiteLonneke Dikmans
Deployment in a Service oriented environment is slightly more complicated because the endpoints and other settings need to be changed when promoting the components through QA, Staging and production systems. The Oracle SOA suite offers different mechanisms for different components: Configuration plans for SCA components and customization files for the OSB. You can either deploy an artifact manually, or script the deployment using ant or WLST.
This paper will discuss the different settings you can adjust in configuration plans and customization files, a way of organizing these files in different situations and the use of scripting versus manual deployment.
Cassandra 3.0 - JSON at scale - StampedeCon 2015StampedeCon
This session will explore the new features in Cassandra 3.0, starting with JSON support. Cassandra now allows storing JSON directly to Cassandra rows and vice versa, making it trivial to deploy Cassandra as a component in modern service-oriented architectures.
Cassandra 3.0 also delivers other enhancements to developer productivity: user defined functions let developers deploy custom application logic server side with any language conforming to the Java scripting API, including Javascript. Global indexes allow scaling indexed queries linearly with the size of the cluster, a first for open-source NoSQL databases.
Finally, we will cover the performance improvements in Cassandra 3.0 as well.
Im zweiten Teil seiner OData Session zeigt Rainer Stropek, wie man eigene OData-Provider entwickelt. In einem durchgängigen Beispiel demonstriert er, wie man erst einen LINQ-Provider und darauf aufbauend einen OData-konformen REST Service erstellt und von verschiedenen Programmiersprachen und Tools darauf zugreift. In der Session werden Grundkenntnisse von OData und LINQ vorausgesetzt.
Overview of the new JSON processing functionality in MySQL: the new JSON type, the in-line JSON path expressions, the JSON functions and how to go about indexing JSON
Java 8 åpnet slusene for funksjonell programmering (FP) i Java, men verktøykassen som følger med JDKen er ganske mangelfull. Man har ingen støtte for immutable objekter og datastrukturer, som er helt essensielt innen FP og hjelper deg å fjerne en rekke typer kodefeil. I tillegg mangler for eksempel mer høynivå mekanismer for parallellisering av oppgaver.
I dette foredraget vil vi gå igjennom et utvalg av tredjepartsbiblioteker som du kan ta i bruk for å bøte på disse problemene og gjøre Java-koden din ennå mer sikker og funksjonell!
In this session, attendees will learn how to secure JSR-168 Portlets using the latest version of Acegi Security, called Spring Security 2.0. The 2.0 release of Spring Security includes new support for JSR-168 Portlet development. In this session we'll cover how the Acegi security model translates into the Portlet world, show how to configure the authentication provider for JSR-168 Portlets, and discuss the special interceptors for processing Portlet requests and for storing the security context in the Portlet session. Finally we'll show how Portlets and Servlets in the same webapp can share security context, which allows for secure AJAX calls and dynamic images from within Portlets.
Whats New in Java 5, 6, & 7 (Webinar Presentation - June 2013)DevelopIntelligence
Kelby Zorgdrager from DevelopIntelligence explains the differences between the variations of Java and what's new in Java 7.
If you need help with Java training DevelopIntelligence and provide on-site training within two weeks. Customized and affordable for any organization.
I did this presentation for one of my java user groups at work.
Basically, this is a mashed up version of various presentations, slides and images that I gathered over the internet.
I've quoted the sources in the end. Feel free to reuse it as you like.
OAuth 2.0 is an open authentication and authorization protocol which enables applications to access each others data. This talk will presents how to implement the OAuth2 definitions to secure RESTful resources developed using JAX-RS in the Java EE platform.
OAuth 2.0 is an open authentication and authorization protocol which enables applications to access each others data. This talk will presents how to implement the OAuth2 definitions to secure RESTful resources developed using JAX-RS in the Java EE platform.
Java Web Application Security with Java EE, Spring Security and Apache Shiro ...Matt Raible
This presentation shows you how to implement authentication in your Java web applications using Java EE 7 Security, Spring Security and Apache Shiro. It also touches on best practices for securing a REST API and using SSL.
Spring Day | Identity Management with Spring Security | Dave SyerJAX London
2011-10-31 | 11:00 AM - 11:45 AM
Application and platform security requirements are changing under the influence of standards like OpenID and OAuth2, and the increasing demand for lightweight and multi-language platforms. Everyone used to be happy if they could implement single sign on for their Java web applications. That's still important, but there is a growing demand for more extensive Identity Management services, both in the enterprise and for public web applications. CloudFoundry is a nice use case for this new service model: it has multi-language support and security requirements that go beyond simple single sign on. What does that mean, and what does it mean for Spring Security? Come to this presentation to find out.
OAuth is taking off as a standard way for apps and websites to handle authentication. But OAuth is a fast moving spec that can be hard to pin down.
Why should you use OAuth and what are the business and operational benefits? What's the story with all of the different versions and which one should you choose?
Watch this webinar with Apigee's CTO Gregory Brail and Sr. Architect Brian Pagano for 'big picture straight talk' on these OAuth questions and more.
"An introduction to Java 9" presented at the Java Thessaloniki User Group on 7th November 2017, by Ioannis Kolaxis - Senior Digital Expert / Software Engineer @ Unify, Greece
A presentation at Twitter's official developer conference, Chirp, about why we use the Scala programming language and how we build services in it. Provides a tour of a number of libraries and tools, both developed at Twitter and otherwise.
JavaScript and popular programming paradigms (OOP, AOP, FP, DSL). Overview of the language to see what tools we can leverage to reduce complexity of our projects.
This part goes over more language features and looks at FP, and DSLs with JavaScript.
The presentation was delivered at ClubAJAX on 3/2/2010.
Blog post: http://lazutkin.com/blog/2010/mar/4/exciting-js-2/
Beginning is Part I: http://www.slideshare.net/elazutkin/exciting-javascript-part-i
Finally Java SE 7 is GA and you can start using it. This talk will cover the most important new features of the language and the virtual machine. It will also cover some features that did not make it in to the SE 7 release. Finally we will discuss current state of Java as an ecosystem and my analysis and hopes for the future.
Next Insurance was founded at the beginning of 2016, and the first lines of its production code started accumulating in May 2016. As the first back-end developer, I started writing in Java and out of curiosity was experimenting with Kotlin. Kotlin had just seen its 1.0 release two months earlier. A year later, Next Insurance’s entire back-end development team is writing all the code in Kotlin. We already have 8 microservices and several AWS lambda functions all written in Kotlin. Migration from 1.0.x to Kotlin 1.1 was smooth, and the developers are happy. This presentation covers the language’s features and why I think it is awesome and fits perfectly with my company’s architecture.
"An introduction to Java 9" presented at the Java Hellenic User Group on 20th October 2017, by Ioannis Kolaxis - Senior Digital Expert / Software Engineer @ Unify, Greece
UiPath Test Automation using UiPath Test Suite series, part 5DianaGray10
Welcome to UiPath Test Automation using UiPath Test Suite series part 5. In this session, we will cover CI/CD with devops.
Topics covered:
CI/CD with in UiPath
End-to-end overview of CI/CD pipeline with Azure devops
Speaker:
Lyndsey Byblow, Test Suite Sales Engineer @ UiPath, Inc.
Pushing the limits of ePRTC: 100ns holdover for 100 daysAdtran
At WSTS 2024, Alon Stern explored the topic of parametric holdover and explained how recent research findings can be implemented in real-world PNT networks to achieve 100 nanoseconds of accuracy for up to 100 days.
Removing Uninteresting Bytes in Software FuzzingAftab Hussain
Imagine a world where software fuzzing, the process of mutating bytes in test seeds to uncover hidden and erroneous program behaviors, becomes faster and more effective. A lot depends on the initial seeds, which can significantly dictate the trajectory of a fuzzing campaign, particularly in terms of how long it takes to uncover interesting behaviour in your code. We introduce DIAR, a technique designed to speedup fuzzing campaigns by pinpointing and eliminating those uninteresting bytes in the seeds. Picture this: instead of wasting valuable resources on meaningless mutations in large, bloated seeds, DIAR removes the unnecessary bytes, streamlining the entire process.
In this work, we equipped AFL, a popular fuzzer, with DIAR and examined two critical Linux libraries -- Libxml's xmllint, a tool for parsing xml documents, and Binutil's readelf, an essential debugging and security analysis command-line tool used to display detailed information about ELF (Executable and Linkable Format). Our preliminary results show that AFL+DIAR does not only discover new paths more quickly but also achieves higher coverage overall. This work thus showcases how starting with lean and optimized seeds can lead to faster, more comprehensive fuzzing campaigns -- and DIAR helps you find such seeds.
- These are slides of the talk given at IEEE International Conference on Software Testing Verification and Validation Workshop, ICSTW 2022.
DevOps and Testing slides at DASA ConnectKari Kakkonen
My and Rik Marselis slides at 30.5.2024 DASA Connect conference. We discuss about what is testing, then what is agile testing and finally what is Testing in DevOps. Finally we had lovely workshop with the participants trying to find out different ways to think about quality and testing in different parts of the DevOps infinity loop.
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Albert Hoitingh
In this session I delve into the encryption technology used in Microsoft 365 and Microsoft Purview. Including the concepts of Customer Key and Double Key Encryption.
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...SOFTTECHHUB
The choice of an operating system plays a pivotal role in shaping our computing experience. For decades, Microsoft's Windows has dominated the market, offering a familiar and widely adopted platform for personal and professional use. However, as technological advancements continue to push the boundaries of innovation, alternative operating systems have emerged, challenging the status quo and offering users a fresh perspective on computing.
One such alternative that has garnered significant attention and acclaim is Nitrux Linux 3.5.0, a sleek, powerful, and user-friendly Linux distribution that promises to redefine the way we interact with our devices. With its focus on performance, security, and customization, Nitrux Linux presents a compelling case for those seeking to break free from the constraints of proprietary software and embrace the freedom and flexibility of open-source computing.
In the rapidly evolving landscape of technologies, XML continues to play a vital role in structuring, storing, and transporting data across diverse systems. The recent advancements in artificial intelligence (AI) present new methodologies for enhancing XML development workflows, introducing efficiency, automation, and intelligent capabilities. This presentation will outline the scope and perspective of utilizing AI in XML development. The potential benefits and the possible pitfalls will be highlighted, providing a balanced view of the subject.
We will explore the capabilities of AI in understanding XML markup languages and autonomously creating structured XML content. Additionally, we will examine the capacity of AI to enrich plain text with appropriate XML markup. Practical examples and methodological guidelines will be provided to elucidate how AI can be effectively prompted to interpret and generate accurate XML markup.
Further emphasis will be placed on the role of AI in developing XSLT, or schemas such as XSD and Schematron. We will address the techniques and strategies adopted to create prompts for generating code, explaining code, or refactoring the code, and the results achieved.
The discussion will extend to how AI can be used to transform XML content. In particular, the focus will be on the use of AI XPath extension functions in XSLT, Schematron, Schematron Quick Fixes, or for XML content refactoring.
The presentation aims to deliver a comprehensive overview of AI usage in XML development, providing attendees with the necessary knowledge to make informed decisions. Whether you’re at the early stages of adopting AI or considering integrating it in advanced XML development, this presentation will cover all levels of expertise.
By highlighting the potential advantages and challenges of integrating AI with XML development tools and languages, the presentation seeks to inspire thoughtful conversation around the future of XML development. We’ll not only delve into the technical aspects of AI-powered XML development but also discuss practical implications and possible future directions.
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...Neo4j
Leonard Jayamohan, Partner & Generative AI Lead, Deloitte
This keynote will reveal how Deloitte leverages Neo4j’s graph power for groundbreaking digital twin solutions, achieving a staggering 100x performance boost. Discover the essential role knowledge graphs play in successful generative AI implementations. Plus, get an exclusive look at an innovative Neo4j + Generative AI solution Deloitte is developing in-house.
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...James Anderson
Effective Application Security in Software Delivery lifecycle using Deployment Firewall and DBOM
The modern software delivery process (or the CI/CD process) includes many tools, distributed teams, open-source code, and cloud platforms. Constant focus on speed to release software to market, along with the traditional slow and manual security checks has caused gaps in continuous security as an important piece in the software supply chain. Today organizations feel more susceptible to external and internal cyber threats due to the vast attack surface in their applications supply chain and the lack of end-to-end governance and risk management.
The software team must secure its software delivery process to avoid vulnerability and security breaches. This needs to be achieved with existing tool chains and without extensive rework of the delivery processes. This talk will present strategies and techniques for providing visibility into the true risk of the existing vulnerabilities, preventing the introduction of security issues in the software, resolving vulnerabilities in production environments quickly, and capturing the deployment bill of materials (DBOM).
Speakers:
Bob Boule
Robert Boule is a technology enthusiast with PASSION for technology and making things work along with a knack for helping others understand how things work. He comes with around 20 years of solution engineering experience in application security, software continuous delivery, and SaaS platforms. He is known for his dynamic presentations in CI/CD and application security integrated in software delivery lifecycle.
Gopinath Rebala
Gopinath Rebala is the CTO of OpsMx, where he has overall responsibility for the machine learning and data processing architectures for Secure Software Delivery. Gopi also has a strong connection with our customers, leading design and architecture for strategic implementations. Gopi is a frequent speaker and well-known leader in continuous delivery and integrating security into software delivery.
Maruthi Prithivirajan, Head of ASEAN & IN Solution Architecture, Neo4j
Get an inside look at the latest Neo4j innovations that enable relationship-driven intelligence at scale. Learn more about the newest cloud integrations and product enhancements that make Neo4j an essential choice for developers building apps with interconnected data and generative AI.
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionAggregage
Join Maher Hanafi, VP of Engineering at Betterworks, in this new session where he'll share a practical framework to transform Gen AI prototypes into impactful products! He'll delve into the complexities of data collection and management, model selection and optimization, and ensuring security, scalability, and responsible use.
Securing your Kubernetes cluster_ a step-by-step guide to success !KatiaHIMEUR1
Today, after several years of existence, an extremely active community and an ultra-dynamic ecosystem, Kubernetes has established itself as the de facto standard in container orchestration. Thanks to a wide range of managed services, it has never been so easy to set up a ready-to-use Kubernetes cluster.
However, this ease of use means that the subject of security in Kubernetes is often left for later, or even neglected. This exposes companies to significant risks.
In this talk, I'll show you step-by-step how to secure your Kubernetes cluster for greater peace of mind and reliability.
Epistemic Interaction - tuning interfaces to provide information for AI supportAlan Dix
Paper presented at SYNERGY workshop at AVI 2024, Genoa, Italy. 3rd June 2024
https://alandix.com/academic/papers/synergy2024-epistemic/
As machine learning integrates deeper into human-computer interactions, the concept of epistemic interaction emerges, aiming to refine these interactions to enhance system adaptability. This approach encourages minor, intentional adjustments in user behaviour to enrich the data available for system learning. This paper introduces epistemic interaction within the context of human-system communication, illustrating how deliberate interaction design can improve system understanding and adaptation. Through concrete examples, we demonstrate the potential of epistemic interaction to significantly advance human-computer interaction by leveraging intuitive human communication strategies to inform system design and functionality, offering a novel pathway for enriching user-system engagements.
The Art of the Pitch: WordPress Relationships and SalesLaura Byrne
Clients don’t know what they don’t know. What web solutions are right for them? How does WordPress come into the picture? How do you make sure you understand scope and timeline? What do you do if sometime changes?
All these questions and more will be explored as we talk about matching clients’ needs with what your agency offers without pulling teeth or pulling your hair out. Practical tips, and strategies for successful relationship building that leads to closing the deal.
Unlocking Productivity: Leveraging the Potential of Copilot in Microsoft 365, a presentation by Christoforos Vlachos, Senior Solutions Manager – Modern Workplace, Uni Systems
2. <Insert Picture Here>
Java SE 7: The Platform Evolves
Terrence Barr
Senior Technologist, Mobile & Embedded Technologies
Email: terrence.barr@oracle.com
Blog: terrencebarr.wordpress.com
3. Disclaimer
The preceding 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.
3
3
4. Agenda
• Context
• Priorities, Evolution, Communities
• Java SE 7
• Language Changes: Project Coin
• Library Changes: NIO2, Fork/Join
• JVM Changes: The DaVinci Machine
• Miscellaneous Updates, Platform/OS Support
• Java SE 8
• Project Jigsaw: Modularizing the Java Platform
• Project Lambda: Closures and More
• Java SE Products
• Wrap-Up
4
4
8. Definitions
Java Standard Edition (Java SE) vs.
Java Development Kit (JDK)
• Java SE • Java Development Kit
• Definition of the software • Oracle's implementation of
platform Java SE
• Specification documents • Additional features not in
• Implementation the spec
• Test suite (TCK) • Tools and documentation
• Implemented by several • Deployment and
groups management capabilities
• Produced in the JCP • Performance features
• Produced in the OpenJDK
project
8
8
9. How Java Evolves and Adapts
Community Development of
Java Technology Specifications
10. JCP Reforms
• Developers’ voice in the Executive Committee
• SOUJava
• Goldman Sachs
• London JavaCommunity
• Alex Terrazas
• JCP starting a program of reform
• JSR 348: Towards a new version of the JCP
11. OpenJDK @ Oracle: One Year On
• Clear commitment from Oracle
• Roadmap for releases in 2011, 2012
• JVM strategy for HotSpot & JRockit
• Increased industry participation
• Moving the Java SE platform forward again
• Rebooting governance & retooling infrastructure
• We're hiring!
11
11
13. Evolving the Language
From “Evolving the Java Language” - JavaOne 2005
• Java language principles
– Reading is more important than writing
– Code should be a joy to read
– The language should not hide what is happening
– Code should do what it seems to do
– Simplicity matters
– Every “good” feature adds more “bad” weight
– Sometimes it is best to leave things out
• One language: with the same meaning everywhere
• No dialects
• We will evolve the Java language
• But cautiously, with a long term view
• “first do no harm” also “Growing a Language” - Guy Steele 1999
“The Feel of Java” - James Gosling 1997
13
13
17. coin, n. A piece of small change
coin, v. To create new language
17
17
18. Project Coin Constraints
• Small language changes
• Small in specification, implementation, testing
• No new keywords!
• Wary of type system changes
• Coordinate with larger language changes
– Project Lambda
– Modularity
• One language, one javac
18
18
19. Better Integer Literal
• Binary literals
int mask = 0b101010101010;
• With underscores for clarity
int mask = 0b1010_1010_1010;
long big = 9_223_783_036_967_937L;
19
19
20. String Switch Statement
• Today case label includes integer constants and enum
constants
• Strings are constants too (immutable)
20
20
22. Strings in Switch Statements
int monthNameToDays(String s, int year) {
switch(s) {
case "April": case "June":
case "September": case "November":
return 30;
case "January": case "March":
case "May": case "July":
case "August": case "December":
return 31;
case "February”:
...
default:
...
22
22
25. Simplifying Generics
• Pre-generics
List strList = new ArrayList();
• With Generics
List<String> strList = new ArrayList<String>();
List<Map<String, List<String>> strList =
new ArrayList<Map<String, List<String>>();
25
25
26. Diamond Operator
• Pre-generics
List strList = new ArrayList();
• With Generics
List<String> strList = new ArrayList<String>();
List<Map<String, List<String>> strList =
new ArrayList<Map<String, List<String>>();
• With diamond (<>) compiler infers type
List<String> strList = new ArrayList<>();
List<Map<String, List<String>> strList =
new ArrayList<>();
26
26
27. Copying a File
InputStream in = new FileInputStream(src);
OutputStream out = new FileOutputStream(dest);
byte[] buf = new byte[8192];
int n;
while (n = in.read(buf)) >= 0)
out.write(buf, 0, n);
27
27
28. Copying a File (Better, but wrong)
InputStream in = new FileInputStream(src);
OutputStream out = new FileOutputStream(dest);
try {
byte[] buf = new byte[8192];
int n;
while (n = in.read(buf)) >= 0)
out.write(buf, 0, n);
} finally {
in.close();
out.close();
}
28
28
29. Copying a File (Correct, but complex)
InputStream in = new FileInputStream(src);
try {
OutputStream out = new FileOutputStream(dest);
try {
byte[] buf = new byte[8192];
int n;
while (n = in.read(buf)) >= 0)
out.write(buf, 0, n);
} finally {
out.close();
}
} finally {
in.close();
}
29
29
30. Copying a File (Correct, but complex)
InputStream in = new FileInputStream(src);
try {
OutputStream out = new FileOutputStream(dest);
try {
byte[] buf = new byte[8192];
int n;
while (n = in.read(buf)) >= 0)
out.write(buf, 0, n);
} finally {
out.close();
}
} finally { Exception thrown from
potentially three places.
in.close();
Details of first two could be lost
}
30
30
31. Automatic Resource Management
try (InputStream in = new FileInputStream(src),
OutputStream out = new FileOutputStream(dest))
{
byte[] buf = new byte[8192];
int n;
while (n = in.read(buf)) >= 0)
out.write(buf, 0, n);
}
31
31
32. The Details
• Compiler desugars try-with-resources into nested try-
finally blocks with variables to track exception state
• Suppressed exceptions are recorded for posterity
using a new facillity of Throwable
• API support in JDK 7
• New superinterface java.lang.AutoCloseable
• All AutoCloseable and by extension java.io.Closeable
types useable with try-with-resources
• anything with a void close() method is a candidate
• JDBC 4.1 retrofitted as AutoCloseable too
32
32
33. More Informative Backtraces
java.io.IOException
at Suppress.write(Suppress.java:19)
at Suppress.main(Suppress.java:8)
Suppressed: java.io.IOException
at Suppress.close(Suppress.java:24)
at Suppress.main(Suppress.java:9)
Suppressed: java.io.IOException
at Suppress.close(Suppress.java:24)
at Suppress.main(Suppress.java:9)
33
33
34. Varargs Warnings
class Test {
public static void main(String... args) {
List<List<String>> monthsInTwoLanguages =
Arrays.asList(Arrays.asList("January",
"February"),
Arrays.asList("Gennaio",
"Febbraio" ));
}
}
Test.java:7: warning:
[unchecked] unchecked generic array creation
for varargs parameter of type List<String>[]
Arrays.asList(Arrays.asList("January",
^
1 warning
34
34
35. Heap Pollution – JLSv3 4.12.2.1
• A variable of a parameterized type refers to an object
that is not of that parameterized type
• For example, the variable of type List<String>[]
might point to an array of Lists where the Lists did
not contain strings
• Reports possible locations of ClassCastExceptions
at runtime
• A consequence of erasure
• Possibly properly addressed by reification in the future
35
35
36. Varargs Warnings Revised
• New mandatory compiler warning at suspect varargs
method declarations
• By applying an annotation at the declaration,
warnings at the declaration and call sites can be
suppressed
• @SuppressWarnings(value = “unchecked”)
• @SafeVarargs
36
36
41. New I/O 2 (NIO2) Libraries
JSR 203
• Original Java I/O APIs presented challenges for
developers
• Not designed to be extensible
• Many methods do not throw exceptions as expected
• rename() method works inconsistently
• Developers want greater access to file metadata
• Java NIO2 solves these problems
41
41
42. Java NIO2 Features
• Path is a replacement for File
• Biggest impact on developers
• Better directory support
• list() method can stream via iterator
• Entries can be filtered using regular expressions in API
• Symbolic link support
• java.nio.file.Filesystem
• interface to a filesystem (FAT, ZFS, Zip archive, network, etc)
• java.nio.file.attribute package
• Access to file metadata
42
42
43. Path Class
• Equivalent of java.io.File in the new API
– Immutable
• Have methods to access and manipulate Path
• Few ways to create a Path
– From Paths and FileSystem
//Make a reference to the path
Path home = Paths.get(“/home/fred”);
//Resolve tmp from /home/fred -> /home/fred/tmp
Path tmpPath = home.resolve(“tmp”);
//Create a relative path from tmp -> ..
Path relativePath = tmpPath.relativize(home)
File file = relativePath.toFile();
43
43
45. Directories
• DirectoryStream iterate over entries
– Scales to large directories
– Uses less resources
– Smooth out response time for remote file systems
– Implements Iterable and Closeable for productivity
• Filtering support
– Build-in support for glob, regex and custom filters
Path srcPath = Paths.get(“/home/fred/src”);
try (DirectoryStream<Path> dir =
srcPath.newDirectoryStream(“*.java”)) {
for (Path file: dir)
System.out.println(file.getName());
}
45
45
46. The Free Lunch Is Over!
Image courtesy of
Herb Sutter
Image courtesy of Herb Sutter 46
46
47. Concurrency in Java
• Pre-Java SE 5
• Thread, Runnable, monitor synchronization
• Low level, must write a lot of tricky code yourself
• Java SE 5
• JSR 166, 166x: Executor framework, Callable, Future, Lock,
synchronizers, concurrent collections
• Best for coarse-grain tasks, with interdependent shared data
• Java SE 7
• JSR 166y: Fork/Join framework, build on JSR166, 166x
• Best for fine-grained, independent tasks and data
• Efficient use of processor cycles, including work stealing
47
47
48. Key Classes
• ForkJoinPool
– Executor service for running ForkJoinTask
• ForkJoinTask
– The base class for forkjoin task
• RecursiveAction
– A subclass of ForkJoinTask
– A recursive resultless task
– Implements compute() abstract method to perform
calculation
• RecursiveTask
– Similar to RecursiveAction but returns a result
48
48
49. Fork Join Algorithm
• Near always recursive
– Probably not efficient unless it is
• Designed for task that can be broken down into
smaller pieces
– Eg. Fibonacci number fib(10) = fib(9) + fib(8)
Result solve(Problem problem)
if (problem is small) {
directly solve problem
} else {
split problem into independent parts
fork new subtasks to solve each part
join all subtasks
compose result from sub-results
}
}
49
49
50. ForkJoin Example – Fibonacci
public class Fibonacci extends RecursiveTask<Integer> {
private final int number;
public Fibonacci(int n) { number = n; }
@Override protected Integer compute() {
switch (number) {
case 0: return (0);
case 1: return (1);
default:
Fibonacci f1 = new Fibonacci(number – 1);
Fibonacci f2 = new Fibonacci(number – 2);
f1.fork(); f2.fork();
return (f1.join() + f2.join());
}
}
}
50
50
51. ForkJoin Example – Fibonacci
ForkJoinPool pool = new ForkJoinPool();
Fibonacci r = new Fibonacci(10);
pool.submit(r);
while (!r.isDone()) {
//Do some work
...
}
System.out.println("Result of fib(10) = " + r.get());
51
51
52. Client Libraries
• Nimbus Look and Feel
• Platform APIs for shaped and translucent windows
• JLayer (formerly from Swing labs)
• Optimized 2D rendering
52
52
53. Nimbus Look and Feel
• Better than Metal for cross platform look-and-feel
• Introduced in Java SE 6u10, now part of Swing
• Not the default L&F
53
53
55. JLayer component
The universal decorator
• Transparent decorator for a Swing component
• Controls the painting of its subcomponents
• Catches all input and focus events for the whole hierarchy
// wrap your component with JLayer
JLayer<JPanel> layer = new JLayer<JPanel>(panel);
// custom ui provides all extra functionality
layer.setUI(myLayerUI);
// add the layer as usual component
frame.add(layer);
55
55
56. Miscellaneous Updates
• Security
• Eliptic curve cryptography
• TLS 1.2
• JAXP 1.4.4 (Java API for XML processing)
• JAX-WS 2.2 (Java API for XML Web Services)
• JAXB 2.2 (Java Architecture for XML Binding)
• ClassLoader architecture changes
• close() for URLClassLoader
• Javadoc support for CSS
• and more: http://openjdk.java.net/projects/jdk7/features/#f352
56
56
57. The DaVinci Machine Project (JSR-292)
(A multi-language renaissance for the JVM)
Better
57
57
58. Languages Like Virtual Machines
• Programming languages need runtime support
• Memory management / Garbage collection
• Concurrency control
• Security
• Reflection
• Debugging integration
• Standard libraries
• Compiler writers have to build these from scratch
• Targeting a VM allows reuse of infrastructure
58
58
59. JVM Specification
“The Java virtual machine knows
nothing about the Java
programming language, only of a
particular binary format, the class
file format.”
1.2 The Java Virtual Machine Spec.
59
59
60. Languages Running on the JVM
Tea
Zigzag JESS Jickle iScript
Modula-2 Lisp
Correlate Nice
CAL
JudoScript
JavaScript
Simkin Drools Basic
Icon Groovy Eiffel
v-language Pascal Luck
Prolog Mini
Tcl PLAN Hojo
Rexx JavaFX Script Scala
Funnel
Tiger Anvil Yassl Oberon
FScript
E Smalltalk
Logo
Tiger JHCR JRuby
Ada G Scheme
Clojure
Phobos
Processing WebL Dawn TermWare
Sather
Sleep
LLP Pnuts Bex Script
BeanShell Forth PHP
C#
Yoix SALSA ObjectScript
Jython Piccola
60
60
60
61. InvokeDynamic Bytecode
• JVM currently has four ways to invoke method
• Invokevirtual, invokeinterface, invokestatic, invokespecial
• All require full method signature data
• InvokeDynamic will use method handle
• Effectively an indirect pointer to the method
• When dynamic method is first called bootstrap code
determines method and creates handle
• Subsequent calls simply reference defined handle
• Type changes force a re-compute of the method
location and an update to the handle
• Method call changes are invisible to calling code
61
61
62. CallSite and MethodHandle
• invokedynamic linked to a CallSite
– CallSite can be linked or unlinked
– CallSite holder of MethodHandle
• MethodHandle is a directly executable reference to
an underlying method, constructor, field
– Can transform arguments and return type
– Transformation – conversion, insertion, deletion, substitution
62
62
64. JDK 7 Platform Support
• Windows x86
• Server 2008, Server 2008 R2, 7 & 8 (when it GAs)
• Windows Vista, XP
• Linux x86
• Oracle Linux 5.5+, 6.x
• Red Hat Enterprise Linux 5.5+, 6.x
• SuSE Linux Enterprise Server 10.x, 11.x
• Ubuntu Linux 10.04 LTS, 11.04
• Solaris x86/SPARC
• Solaris 10.9+, 11.x
• Apple OSX x86
• Well underway - will be supported post-GA, detailed plan TBD
Note: JDK 7 should run on pretty much any Windows/Linux/Solaris.
These configurations are the ones primarily tested by Oracle, and
for which we provide commercial support.
64
64
66. Java SE 8
Project Jigsaw (JSR-294)
Modularising the Java Platform
Project Lambda (JSR 335)
Closures and lambda expressions
Better support for multi-core processors
More Project Coin
Small Language Changes
66
66
67. The Modular Java Platform
• Enables escape from “JAR Hell”
– Eliminates class path
– Package modules for automatic download & install
– Generate native packages – deb, rpm, ips, etc
• Enables significant performance
improvements
– Incremental download → fast classloading
– Optimise module content during installation
• Platform scalability – down to small devices
– Well-specified SE subsets can fit into small devices
67
67
68. module-info.java
Entry point Module name
Version
module com.foo @ 1.0.0 {
class com.foo.app.Main
requires org.bar.lib @ 2.1-alpha;
requires edu.baz.util @ 5.2_11;
provides com.foo.app.lib @ 1.0.0;
}
Dependency
Virtual module
68
68
69. Project Lambda
Closures and more
openjdk.java.net/projects/lambda
• Lambda expressions
– Way of defining anonymous methods
without interface workaround
• SAM (Single Abstract Method)
conversion with target typing
• Method references
• Library enhancements for internal
iteration
69
69
70. Hypothetical Internal Iteration
double highestScore = students
.filter(new Predicate<Student>() {
public boolean isTrue(Student s) {
return s.gradYear == 2010;
}})
.map(new Extractor<Student,Double>() {
public Double extract(Student s) {
return s.score;
}})
.max();
• Not inherently serial
– students traversal not determined by developer
– Looks like a functional language
• Anonymous inner class!
70
70
71. Introducing Lambda Expressions
double highestScore = students
.filter(#{ Student s -> s.gradYear == 2010 })
.map(#{ Student s -> s.score })
.max();
• Lambda expressions introduced with #
– Signal to the JVM to defer execution of the code
– Body may be an expression
• Lambda expression are not syntactic sugar for
anonymous inner class
– Implemented with MethodHandle from JSR-292
71
71
76. JavaOne San Francisco
Oct 2-6, 2011
• More Community Focus
• Standalone conference, dedicated venues
• New keynote hall, large exhibition hall (~50 exhibitors)
• Mason Street Cafe, 'Hang-Out Zones” throughout conference
• Gatherings, events, parties, and networking opportunities
• Easier to navigate, better signage and information
• Lots of High-Quality Content
• 7 tracks, >400 Keynotes/Sessions/BOFs/HOLs
• Deep technical content from the experts
• ~60% industry content, ~40% Oracle
• Plus: Java University
• Register Now!
76
76
77. Conclusion
• Java SE 7
• Incremental changes - Evolutionary, not revolutionary
• Good solid set of features to make developers life easier
• Java SE 8
• Major new features: Modularisation and Closures
• More smaller features to be defined
• Release: Scheduled for 2nd half of 2012
• Java Evolution Continues
• Grow and adapt to the changing world of IT
• Oracle and its partners are committed to a vibrant and
evolving Java ecosystem
77
77
78. Resources
Java SE Home Page
http://www.oracle.com/technetwork/java/javase/overview/index.html
JDK 7 download
http://www.oracle.com/technetwork/java/javase/downloads/index.html
JDK 7 + NetBeans 7.0.1 download
http://www.oracle.com/technetwork/java/javase/downloads/jdk-7-
netbeans-download-432126.html
JDK 7 Launch Event and Information
http://terrencebarr.wordpress.com/2011/07/28/java-se-7-now-
generally-available/
The Java Spotlight Podcast
http://www.thejavaspotlight.org/
78
78