SlideShare a Scribd company logo
Introducing Ballerina
…
•
–
–
–
•
•
•
•
•
–
Introducing Ballerina
Introducing Ballerina
•
•
•
•
•
–
–
–
•
•
•
import ballerina.lang.system;
function main(string[] args) {
system:println("Hello, World!");
}
Introducing Ballerina
•
•
•
•
•
•
Introducing Ballerina
Introducing Ballerina
Introducing Ballerina
•
•
•
•
•
•
•
•
•
•
•
…
•
–
•
•
•
•
•
•
•
•
•
–
•
–
–
–
–
–
Introducing Ballerina
Introducing Ballerina
•
– package org.wso2.foo;
•
•
packagename:symbolname
–
•
– import org.wso2.foo [as xx];
• ballerina.*
•
Introducing Ballerina
•
–
–
•
•
– json address_json = `{"name" : "$name", "streetName" : "${street}"}`;
•
•
•
–
•
– xmlElement address_xml = `<address><name>${name}</name></address>`;
•
•
•
–
•
–
–
–
•
typemapper TypeMapperName (TypeName VariableName) (TypeName) {
Statement;+
}
•
•
•
•
•
•
•
•
•
fork (MessageName) {
worker WorkerName (message VariableName) {
Statement;+
[reply MessageName;]
}+
} [join (JoinCondition) (message[] VariableName) {
Statement;*
} timeout (Expression) (message[] VariableName) {
Statement;*
}]
Introducing Ballerina
worker WorkerName (message m) {
Statement;+
[reply MessageName;]
}
•
MessageName -> WorkerName;
MessageName <- WorkerName;
Introducing Ballerina
•
•
•
•
•
•
•
–
•
•
–
–
–
–
–
•
– ☺
•
•
•
•
•
Introducing Ballerina
Introducing Ballerina
•
–
•
•
–
•
•
–
•
–
–
•
•
–
–
•
Introducing Ballerina
•
–
•
–
–
–
–
•
Introducing Ballerina
•
•
–
–
–
–
–
Introducing Ballerina

More Related Content

PDF
PyconRu 2016. Осторожно, DSL!
PDF
jQuery PLUGIN
PDF
MySQLオンラインマイグレーションツールgh-ostで深夜メンテナンスを無くした話
KEY
JavaScript Tips
DOC
Config postgres in linux
PDF
Add tag shortcode
PDF
Introduction to Service Worker
PDF
L’enfer des callbacks
PyconRu 2016. Осторожно, DSL!
jQuery PLUGIN
MySQLオンラインマイグレーションツールgh-ostで深夜メンテナンスを無くした話
JavaScript Tips
Config postgres in linux
Add tag shortcode
Introduction to Service Worker
L’enfer des callbacks

What's hot (7)

KEY
How to stop writing spaghetti code - JSConf.eu 2010
KEY
SmartCSS
KEY
jQuery プラグインの作り方
ODP
Mikstura it2013
PDF
Working With Ajax Frameworks
PDF
Primeiros passos-com-docker
PDF
Java Script - Object-Oriented Programming
How to stop writing spaghetti code - JSConf.eu 2010
SmartCSS
jQuery プラグインの作り方
Mikstura it2013
Working With Ajax Frameworks
Primeiros passos-com-docker
Java Script - Object-Oriented Programming
Ad

Viewers also liked (20)

PDF
WSO2Con USA 2017: Opening Keynote - Vision for Agile Digital Transformation
PDF
WSO2Con USA 2017: Keynote - Digital Transformation: Disruption from Within
PDF
WSO2Con USA 2017: Integrating Systems for University of Exeter using Zero and...
PDF
WSO2Con USA 2017: Building an Effective API Architecture
PDF
WSO2Con USA 2017: Rise to the Challenge with WSO2 Identity Server and WSO2 AP...
PDF
WSO2Con USA 2017: Journey of Migration from Legacy ESB to Modern WSO2 ESB Pla...
PDF
WSO2Con USA 2017: Keynote - The Blockchain’s Digital Disruption
PDF
WSO2Con USA 2017: Why Swiss Chocolate Relies on WSO2
PDF
WSO2Con USA 2017: Geospatial Big Data – Location Intelligence in Digital Tran...
PDF
WSO2Con USA 2017: The Role of Enterprise Integration in Digital Transformation
PPTX
WSO2Con USA 2017: Enhancing Customer Experience with WSO2 Identity Server
PDF
WSO2Con USA 2017: Managing Verifone’s New Payment Device “Carbon” with WSO2’s...
PDF
WSO2Con USA 2017: Brokerage as a Service (BaaS), Transforming Fidelity Broker...
PDF
WSO2Con USA 2017: Building Platforms for Rapid Application Development
PDF
WSO2Con USA 2017: Building an End-to-End Integration Scenario with WSO2 Integ...
PDF
WSO2Con USA 2017: Implementing a Modern API Management Solution that Benefits...
PDF
WSO2Con USA 2017: Iterative Architecture: A Pragmatic Approach to Digital Tra...
PDF
WSO2Con USA 2017: Scalable Real-time Complex Event Processing at Uber
PDF
WSO2Con USA 2017: Is It Time to Update My Open Source Strategy?
PDF
WSO2Con USA 2017: A Semantic and Ontology Informational Data Model
WSO2Con USA 2017: Opening Keynote - Vision for Agile Digital Transformation
WSO2Con USA 2017: Keynote - Digital Transformation: Disruption from Within
WSO2Con USA 2017: Integrating Systems for University of Exeter using Zero and...
WSO2Con USA 2017: Building an Effective API Architecture
WSO2Con USA 2017: Rise to the Challenge with WSO2 Identity Server and WSO2 AP...
WSO2Con USA 2017: Journey of Migration from Legacy ESB to Modern WSO2 ESB Pla...
WSO2Con USA 2017: Keynote - The Blockchain’s Digital Disruption
WSO2Con USA 2017: Why Swiss Chocolate Relies on WSO2
WSO2Con USA 2017: Geospatial Big Data – Location Intelligence in Digital Tran...
WSO2Con USA 2017: The Role of Enterprise Integration in Digital Transformation
WSO2Con USA 2017: Enhancing Customer Experience with WSO2 Identity Server
WSO2Con USA 2017: Managing Verifone’s New Payment Device “Carbon” with WSO2’s...
WSO2Con USA 2017: Brokerage as a Service (BaaS), Transforming Fidelity Broker...
WSO2Con USA 2017: Building Platforms for Rapid Application Development
WSO2Con USA 2017: Building an End-to-End Integration Scenario with WSO2 Integ...
WSO2Con USA 2017: Implementing a Modern API Management Solution that Benefits...
WSO2Con USA 2017: Iterative Architecture: A Pragmatic Approach to Digital Tra...
WSO2Con USA 2017: Scalable Real-time Complex Event Processing at Uber
WSO2Con USA 2017: Is It Time to Update My Open Source Strategy?
WSO2Con USA 2017: A Semantic and Ontology Informational Data Model
Ad

More from WSO2 (20)

PDF
Demystifying CMS-0057-F - Compliance Made Seamless with WSO2
PDF
Quantum Threats Are Closer Than You Think – Act Now to Stay Secure
PDF
Modern Platform Engineering with Choreo - The AI-Native Internal Developer Pl...
PDF
Application Modernization with Choreo - The AI-Native Internal Developer Plat...
PDF
Build Smarter, Deliver Faster with Choreo - An AI Native Internal Developer P...
PDF
Platformless Modernization with Choreo.pdf
PDF
Application Modernization with Choreo for the BFSI Sector
PDF
Choreo - The AI-Native Internal Developer Platform as a Service: Overview
PDF
[Roundtable] Choreo - The AI-Native Internal Developer Platform as a Service
PPTX
WSO2Con 2025 - Building AI Applications in the Enterprise (Part 1)
PPTX
WSO2Con 2025 - Building Secure Business Customer and Partner Experience (B2B)...
PPTX
WSO2Con 2025 - Building Secure Customer Experience Apps
PPTX
WSO2Con 2025 - AI-Driven API Design, Development, and Consumption with Enhanc...
PPTX
WSO2Con 2025 - AI-Driven API Design, Development, and Consumption with Enhanc...
PPTX
WSO2Con 2025 - Unified Management of Ingress and Egress Across Multiple API G...
PPTX
WSO2Con 2025 - How an Internal Developer Platform Lets Developers Focus on Code
PPTX
WSO2Con 2025 - Architecting Cloud-Native Applications
PDF
Mastering Intelligent Digital Experiences with Platformless Modernization
PDF
Accelerate Enterprise Software Engineering with Platformless
PDF
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
Demystifying CMS-0057-F - Compliance Made Seamless with WSO2
Quantum Threats Are Closer Than You Think – Act Now to Stay Secure
Modern Platform Engineering with Choreo - The AI-Native Internal Developer Pl...
Application Modernization with Choreo - The AI-Native Internal Developer Plat...
Build Smarter, Deliver Faster with Choreo - An AI Native Internal Developer P...
Platformless Modernization with Choreo.pdf
Application Modernization with Choreo for the BFSI Sector
Choreo - The AI-Native Internal Developer Platform as a Service: Overview
[Roundtable] Choreo - The AI-Native Internal Developer Platform as a Service
WSO2Con 2025 - Building AI Applications in the Enterprise (Part 1)
WSO2Con 2025 - Building Secure Business Customer and Partner Experience (B2B)...
WSO2Con 2025 - Building Secure Customer Experience Apps
WSO2Con 2025 - AI-Driven API Design, Development, and Consumption with Enhanc...
WSO2Con 2025 - AI-Driven API Design, Development, and Consumption with Enhanc...
WSO2Con 2025 - Unified Management of Ingress and Egress Across Multiple API G...
WSO2Con 2025 - How an Internal Developer Platform Lets Developers Focus on Code
WSO2Con 2025 - Architecting Cloud-Native Applications
Mastering Intelligent Digital Experiences with Platformless Modernization
Accelerate Enterprise Software Engineering with Platformless
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation

Introducing Ballerina