A fast and coherent scripting language without compromise 🌸
Nue is written entirely in C, prioritising performance and minimalism without sacrificing expressiveness or depth.
Variables in Nue can be declared with multiple acceptable types, striking a balance between safety and versatility.
From match
constructs to Lua-style variadic handling,
Nue is built for human comprehension, not compiler worship.
Nue is designed to be coherent, approachable, and epic. Whether you're writing scripts or crafting full programs - it just flows.
// this one is quite obvious! :)
print("Hello from Nue!")
private var [string, number] myVar = "hello"
myVar = 123
print(myVar) //123
myVar = {} // error: myVar only allows strings and numbers
private var string input = {"yes", "no", "maybe"}[math.random(1, 3)]
match input {
case "yes" {
print("Confirmed!")
}
case "no" {
print("Cancelled!")
}
case {
print("Unknown response.")
}
}
private var boolean enabled = true
private alias mirror = enabled
mirror = false
print(mirror) // output: false, this is to be expected
print(enabled) // output: false, this is because when we made an alias of 'enabled' (mirror), we effectively made them share the same memory
private function customIterator(...) -> function {
private var table items = {...}
private var number i = 1
return function() -> boolean, any? {
if i > #items { return false }
return true, items[i++]
}
}
for value in customIterator("a", 2, true) {
print(value)
}
Even in its early days, Nue already has an experimental VSCode extension with syntax highlighting and more coming soon.
See something missing from Nue or wish for a feature that no other language has? Let Nue be your dream - let's rewrite history together!
Request a FeatureMajor development efforts begin 20 June 2025. Expect significant advancements throughout July, with a polished milestone expected by August-September 2025.