Rockstar


The Art of Code

To understand what this is about you absolutely should watch Dylan Beattie’s brilliant presentation about The Art of Code.

Now you know Rockstar is a computer programming language designed for creating programs that are also hair metal power ballads.

The famous Fizzbuzz program looks like this.

Midnight takes your heart and your soul
While your heart is as high as your soul
Put your heart without your soul into your heart

Give back your heart


Desire is a lovestruck ladykiller
My world is nothing
Fire is ice
Hate is water
Until my world is Desire,
Build my world up
If Midnight taking my world, Fire is nothing and Midnight taking my world, Hate is nothing
Shout "FizzBuzz!"
Take it to the top

If Midnight taking my world, Fire is nothing
Shout "Fizz!"
Take it to the top

If Midnight taking my world, Hate is nothing
Say "Buzz!"
Take it to the top

Whisper my world

On the rockstar website you can try it online. There are several implementations of Rockstar interpreters and transpilers, but most only do a subset of what Rockstar offers. So I wrote my own Rockstar to C++ transpiler in C++, that generates C++ code that can be compiled with a C++17 compiler to a native executable.

/img/rockstar_test.png

Getting the Source Code

The source code of nederrock is hosted as nederrock on GitHub. You can use the following git command to clone the sources

git clone git://github.com/lowlander/nederrock.git


See also