A dialect of Lua based on Lua, LJS, Pluto, and Ravi attempting to be an all-in-one language.
Program with a ultrafast, easy to learn, low-level, portable programming language.
- Insane performance that outperforms Lua
- Preprocessor written in 100% cobalt
- Extensive standard library
- Simplified API to make cross-platform development easy
- Easy to learn syntax, like C and JavaScript
- Based on Lua
- Enums, Custom Types, and more
- Manual memory management + garbage collection
- Use C macros, and access lowlevel features.
- Typechecker
- Optional transpiler from Lua to Cobalt
Bash
$git clone https://github.com/cobalt-lang/cobalt$cd cobalt$cmake .$make$make install
Click to copy
What's included
Memorable Syntax
Cobalt try's to be as memorable as possible, it has a JavaScript-like syntax, but with the power of C.
Use your code anywhere
The API has been designed to be as simple as possible, while doing the hard cross-platform work for you. Regardless if you are on Windows, Linux, macOS, or even a console, anywhere. Cobalt has you covered.
Standard Library
Cobalt comes with a simple and easy to use standard library, which includes everything you need to get started, from memory functions, I/O, even structs. Not only that but you can use C and Lua libraries too.
Ultrafast
Outperforms Lua in most benchmarks.
Types
Cobalt supports Type Annotations, and Type Checking.
Custom Types is in the cobalt24
beta