A lightweight, expressive scripting language powered by VoltVM โก๐น
Watt is a lightweight programming language designed to assist developers. Built entirely in pure Rust, it offers great performance and a smooth development experience. ๐พ๐
Don't be shy, if you can help! We're glad to see your contributions.
Simple example is here. ๐น
// importing io
import 'std.io'
// a tractor ๐
type Tractor(storage) {
// amount of ๐พ
value := 0
// fill ๐ฟ
fn fill(value) {
if self.value + value > storage {
self.value = storage
return null
}
self.value += value
}
// print ๐
fn print() {
io.print('tractor value: ')
io.println(self.value)
}
}
tractor := new Tractor(100)
tractor.fill(50)
tractor.print()
tractor.fill(70)
tractor.print()
- std libraries: statistics, ffi, graphics, http, etc...
- optimizations.