Code Monkey home page Code Monkey logo

rivet's Introduction

Rivet logo

The Rivet programming language

A general-purpose programming language, focused on simplicity, safety and stability.

WebsiteDocumentationRoadmapTODOChangelogSamples

issues status license

Rivet's goal is to be a very powerful programming language and at the same time easy to use, with a syntax that is the result of mixing Go + Zig + C# and other languages such as Python, Lua, TypeScript, D, etc.

Features

  • Easy-to-learn syntax: A syntax without overload of unnecessary elements.
  • Named and optional arguments: Very useful, my_func(arg0: 5).
  • Easy error handling: With result types, func my_func() !T { ... }.
  • Not NULL values by default: This is only possible with option types (?T) and none.
  • Immutable values: Variables and fields are immutable by default.
  • Polymorphism: Traits and Embedded Structs are supported.
  • Generics: Specialize and reuse the same code for different types (coming soon).

Why?

It is true that there are many programming languages and each of them specialized in a field; some with strange syntax in my opinion (like Lisp) and others with a high learning curve, but Rivet tries to be an exception by trying to become a unique language with a clear and simple syntax and a low learning curve.

Important note

Currently the language is in alpha state, and therefore its syntax and the language API is not stable, and may change in the long term. Not all features are implemented.

Only linux is supported. Windows is not well supported, and macOS is not supported yet. Any help is welcome.

Sample: The classic Hello World!

import std/console;

func main() {
    console.println("Hello World!");
}

More samples in the samples/ folder.

© 2023 The Rivet Developers

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.