Skip to content

Releases: ballerina-platform/ballerina-lang-go

Release 0.2.0

13 Feb 09:43
94f6da7

Choose a tag to compare

🎉 Milestone 2 Release: Ballerina Native Interpreter

We're excited to announce Milestone 2!

Changes since milestone 1:

  • Support for union type descriptors
  • Support for module level type descriptors
  • Support for type cast expressions
  • Support for binary bitwise expressions
  • Support for singleton types
  • Initial support for static code analysis
  • Initial support for packages

Get started:

Download the release zip from the Release page and run Ballerina programs:

Create a new package:

  • Unix/Linux/macOS: ./bal new <path to bal package>
  • Windows: bal.exe new <path to bal file>

Run the Ballerina package:

  • Unix/Linux/macOS: ./bal run <path to bal file or project>
  • Windows: bal.exe run <path to bal file or project>

Resources:

• Release: https://github.com/ballerina-platform/ballerina-lang-go/releases/tag/v0.2.0
• Subset 2 examples: https://github.com/ballerina-platform/ballerina-lang-go/tree/main/corpus/bal/subset2

Full Changelog: v0.1.0...v0.2.0

Release for 0.1.0

30 Jan 09:30
090db96

Choose a tag to compare

Milestone 1 Release: Ballerina Native Interpreter

We're excited to announce Milestone 1! The native interpreter is now operational with a compilation and execution pipeline for Subset 1 of the Ballerina language.

What's Included

  • Core Language Features: integers, booleans, functions, control flow (if-else), loops (while, break, continue), nil type, and I/O
  • Complete Pipeline: parser → AST → BIR → runtime execution
  • CLI Tool: command-line interface for building and running Ballerina programs

Getting Started

Download the release zip and run Ballerina programs:

Unix/Linux/macOS:

./bal run <file.bal>

Windows:

bal.exe run <file.bal>

Example Program

Here's a complete example demonstrating loops, conditionals, function calls, boolean logic, and I/O operations:

import ballerina/io;

public function main() {
    int n = 50;
    int i = 0;
    while (i < n) {
        io:println("F(", i, ") = ", fibonacci(i));
        i += 1;
    }
}

function fibonacci(int n) returns int {
    if (n <= 1) {
        return n;
    }
    int prev = 0;
    int curr = 1;
    int i = 2;
    while (i <= n) {
        int next = prev + curr;
        prev = curr;
        curr = next;
        i += 1;
    }
    return curr;
}

Resources

New Contributors

Full Changelog: https://github.com/ballerina-platform/ballerina-lang-go/commits/v0.1.0