DEV Community

Cover image for Introduction to Wave v0.1.4-pre-beta: Add optimization, method chaining, and image file build
LunaStev
LunaStev

Posted on

Introduction to Wave v0.1.4-pre-beta: Add optimization, method chaining, and image file build

Hello! I'm LunaStev, the developer of Wave.

We are pleased to announce Wave v0.1.4-pre-beta —
We've added CLI improvements, LLVMO2 optimization, and we've added commands to help build the image file, and we've added the most important feature, Method Chaining.

PR and Commits

Showcase

The showcase is available at Wave-Test.


Thank you for using Wave! Stay tuned for future updates and enhancements.


Features

CLI:

wavec run --img main.wave
Enter fullscreen mode Exit fullscreen mode

Method Chaining:

fun len(s: str) -> i32 {
    var count: i32 = 0;
    while (s[count] != 0) {
        count += 1;
    }
    return count;
}

fun main() {
    var my_string: str = "Hello World";
    var length: i32 = my_string.len();
    println("Result of my_string.len(): {}", length);
}
Enter fullscreen mode Exit fullscreen mode

Installation Guide

  1. Download:

    • Download to Curl.
     curl -fsSL https://wave-lang.dev/install.sh | bash -s -- --version v0.1.4-pre-beta
    


    `

  2. Verify Installation:

    • Open a terminal and type: bash wavec --version
    • If the version number displays, the installation was successful.

Contributor

@lunastev | 🇰🇷


Website

Website
GitHub
Community

Top comments (0)