Languages Features Creators Calendar CSV Resources Blog About Pricing Add Language
GitHub icon

Ballerina

Ballerina - Programming language

< >

Ballerina is a programming language created in 2015 by Sanjiva Weerawarana and James Clark and Sameera Jayasoma and Hasitha Aravinda and Srinath Perera and Frank Leymann.

#177on PLDB 8Years Old 6.6kUsers
2Books 1Papers 1kRepos

Try now: Web

Ballerina is a compiled, type-safe, concurrent programming language targeting microservice development and integration.It is an open source project started in 2015 by architects from WSO2 as code-based alternative to the configuration-based integration tools such as EAI, ESB, and workflow products.Ballerina has various constructs geared toward cloud-native development including support for modern data formats and protocols, reliability, distributed transactions, APIs, and event streams.. Read more on Wikipedia...


Example from hello-world:
import ballerina/io; public function main() { io:println("Hello World"); }
Example from Linguist:
import ballerina.lang.system; function main (string[] args) { system:println("Hello, World!"); }
Example from Wikipedia:
// The simplest hello world REST API // To run it: // ballerina run demo.bal // To invoke: // curl localhost:9090/hello/hi import ballerina/http; service<http:Service> hello bind {port:9090} { hi (endpoint caller, http:Request request) { http:Response res; res.setTextPayload("Hello World!\n"); _ = caller->respond(res); } }

Language features

Feature Supported Token Example
Strings ✓ "
"Hello world"
Print() Debugging ✓ io:println
Line Comments ✓ //
// A comment
File Imports ✓
import ballerina/http;
import ballerina/io;
Comments ✓
// A comment
Semantic Indentation X

Books about Ballerina from ISBNdb

title authors year publisher
Beginning Ballerina Programming: From Novice to Professional Fernando, Anjana and Warusawithana, Lakmal 2020 Apress
Beginning Ballerina Programming: From Novice to Professional Fernando, Anjana and Warusawithana, Lakmal 2020-02-25T00:00:01Z Apress

Publications about Ballerina from Semantic Scholar

title authors year citations influentialCitations
Bringing Middleware to Everyday Programmers with Ballerina S. Weerawarana and Chathura C. Ekanayake and S. Perera and F. Leymann 2018 3 0
eulisp.html · ballerina.html · sparc.html

View source

- Build the next great programming language · Search · v2023 · Day 205 · Docs · Acknowledgements · Traffic · Traffic Today · Mirrors · GitHub · feedback@pldb.com