Nue Logo

Nue

A fast and coherent scripting language without compromise 🌸

Learn More GitHub Feature Request Discord

What is Nue?

Lightweight but Powerful

Nue is written entirely in C, prioritising performance and minimalism without sacrificing expressiveness or depth.

Typed Yet Flexible

Variables in Nue can be declared with multiple acceptable types, striking a balance between safety and versatility.

Intuitive Syntax

From match constructs to Lua-style variadic handling, Nue is built for human comprehension, not compiler worship.

Fast to Learn, Fun to Master

Nue is designed to be coherent, approachable, and epic. Whether you're writing scripts or crafting full programs - it just flows.

What does Nue look like?

// 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)
}

VSCode Extension

Even in its early days, Nue already has an experimental VSCode extension with syntax highlighting and more coming soon.

VSCode Extension Preview
VSCode Marketplace Open VSX GitHub

Feature Requests

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 Feature

Timeline

Major development efforts begin 20 June 2025. Expect significant advancements throughout July, with a polished milestone expected by August-September 2025.