Skip to main content

It's not
rocket science. Is it?

Started as a joke to learn the inner mechanics of a interpreted language, RocketLang quickly evolved into a long running project with more and more ambitious goals, such as being used forΒ Advent of Code to test it's limits.

πŸš€ Β» puts("hello from rocket-lang!")
"hello from rocket-lang!"
Β» nil

πŸš€ Β» langs = ["ruby", "go", "crystal", "python", "php"]
Β» ["ruby", "go", "crystal", "python", "php"]

πŸš€ Β» langs.pop()
Β» "php"

πŸš€ Β» langs.push("rocket-lang")
Β» nil

πŸš€ Β» langs
Β» ["ruby", "go", "crystal", "python", "rocket-lang"]

Get started quickly

$ brew install flipez/homebrew-tap/rocket-lang

You can also install RocketLang via APT, RPM, as a binary or from source. See Β the install guideΒ  for more detailed information.

πŸš€ Β» JSON.parse('{"test": 123}')
Β» {"test": 123.0}


πŸš€ Β» a = {"test": 1234}
Β» {"test": 1234}


πŸš€ Β» a.to_json()
Β» '{"test":1234}'

Strong and stable builtins

RocketLang ships some neat builtins such as handling HTTP requests and responses, marshalling and unmashalling of JSON objects.

It also comes with support of closures, modules and context sensitive variables in order to create complex programs.

Everything is an object

Inspired by Ruby, in RocketLang everything is an object.

This allows to treat unknown input in the same way and figuring out what kind of information your function passes on the go. Every object supports the same minimum default subset of methods to achive this.

πŸš€ Β» "test".type()
Β» "STRING"

πŸš€ Β» true.to_s()
Β» "true"

πŸš€ Β» 1.4.to_s()
Β» "1.4"