Sign inSign up

purplebabar/wu

By purplebabar

Updated about 8 years ago

wu dockerfile

Image
0

1.4K

purplebabar/wu repository overview

wu_dragon

Wu

Foo MIT License

An expression oriented, strongly typed and sweet language

Syntax

A full walk-through of the language can be found over at the wu-lang documentation.

A decent language

Apart from being the best language ever, Wu strives to be a decently efficient, control-focused high-level language for use in game development as well as general purpose development. Its syntax is highly inspired by Rust's strong explicit syntax, combined with concepts from Jonathan Blow's Jai language and the sugar of MoonScript and the functional language family.

The language is meant and designed to be a solid alternative to MoonScript, and even superior on control and scalability.

Teaser
Structs
point: type<T> {
  x: T
  y: T
}

position := point {
  x: 100, y: 100
}

copy_point: def<T>(a: point<T>) -> point<T> {
  a clone()
}
Splats
fib: def(a: int) -> int {
  if a < 3 {
    return a
  }
  
  fib(a - 1) + fib(a - 2)
}

print_fibs: def(..numbers: int) {
  for n in numbers {
    print(fib(n))
  }
}

Disclaimer

Wu is built by a minimal team of people, all of which are basically kids working on the compiler when bored in class. The whole thing is currently in its very early stages, but is propably fine, go use it in production.

Contributers

License

MIT License

Tag summary

Content type

Image

Digest

Size

422.3 MB

Last updated

about 8 years ago

docker pull purplebabar/wu