Rockstar
- This article is not detailed enough and needs to be expanded. Please help us by adding some more information.
Rockstar is a dynamically typed Turing-complete programming language designed for creating computer programs that are also song lyrics. Rockstar is heavily influenced by the lyrical conventions of 1980s hard rock and power ballads. It was created by Dylan Beattie in 2018, inspired by a tweet suggesting that "to really confuse recruiters, someone should make a programming language called Rockstar." On November 30th, 2024, Rockstar 2.0 was released, keeping most of the major grammar of Rockstar 1 while adding some new features and overhauling the type inferencing system.
Although Rockstar is a fully-specified language with multiple implementations, it was created primarily to satirise the use of the phrase 'rockstar developer' in IT job listings and recruitment - the joke being that if Rockstar is a real programming language that's easy to learn, then anybody who wants to invest a few minutes in it can legitimately call themselves a 'rockstar developer'.
Rockstar is superficially similar to the verbose English-based syntax of languages like COBOL and Visual Basic, and includes some unique language features intended to "give the programmer an unprecedented degree of poetic license when it comes to the composition and structure of their programs."
Examples
Hello, World!
Say "Hello World"
(If you can write this, you are a qualified rockstar developer. Congratulations.)
Truth-machine
Listen to the box If the box is gone Say the box. Else While the box is not gone. Say the box.
FizzBuzz
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
Project Euler
Code for Problem 2: Please note that there are two blank lines before the last line
Henry is gone. Jack is harkworking. Jill is gone. While Jack is lower than 4000000 Let Jill be with Jack. Let Jack be with Jill. Let Jill be Jack without Jill. Let Jack be without Jill. Let Papa be Jack over 2. Turn it down. Let Papa be of 2. If Papa is Jack Let Henry be with Jack. Say Henry.
Code for Problem 6:
Jesus is a scratching rockplayer. Henry is gone. While Jesus isn't nothing Let Es be Jesus without 1. Let El be Jesus of Jesus of Es. Let Henry be with El. Knock Jesus down. Say Henry.
External resources
Project Pages
- codewithrockstar.com is the official site, including an online Rockstar interpreter
- The Rockstar programming language on GitHub
Implementations
- Satriani is the official reference implementation of Rockstar, written in JavaScript with peg.js
- Rocky is a a fully-compliant Rockstar interpreter in Java, including a REPL mode, a CLI debugger, and the option to use DEC64 numbers (as per the original Rockstar draft spec) instead of IEEE754.
- rockstar-js - Rockstar-to-JavaScript transpiler
- rockstar-lexer - Rockstar lexer written in Haskell with Alex
- rockstar-java - Rockstar interpreter in Java
- rockstar-ml - Rockstar interpreter in OCaml
- rockstar-py - Rockstar-to-Python transpiler
- kaiser-ruby - Rockstar to Ruby transpiler
- sublime-rockstar-syntax - Syntax highlighter for Sublime Text 3
- language-rockstar - Syntax highlighter for Atom
- maiden - Rockstar interpreter in Rust (online version using WebAssembly)
- Online Rockstar Parser and Transpiler: rockstar-webpiler source code online version
- vim-rockstar - Syntax highlighting for vim
- vscode-rockstar-language - Syntax highlighting for VSCode
- sellout - Rockstar to C# (dotnet core) transpiler
Social Spaces
- /r/RockstarDevs - Subreddit
- Rockstar Developers - Discord Group
Conference
Media Coverage
- Meet the boffin behind a computer programming language based on power ballads in Classic Rock magazine.
- Rockstar article on BoingBoing
- Rockstar on HackerNews
- Rockstar on /r/ProgrammerHumor
- Rockstar on dice.com
- The Rockstar Programming Language | Mitigated Frenzy - see also their solution to the Rainfall problem
- Proof by Induction - Rockstar usage in MIT mystery hunt on devjoe