Welcome to XCODX Online Compiler
Quick Start:
Ctrl+Enter Run code
Ctrl+S Save / Download
Ctrl+L Clear output
Select a language and start coding.
Welcome to XCODX Online Compiler
Quick Start:
Ctrl+Enter Run code
Ctrl+S Save / Download
Ctrl+L Clear output
Select a language and start coding.
Dylan Beattie invented Rockstar in 2018 after a viral joke about recruiters seeking rockstar developers, designing a language whose programs read as plausible rock ballad lyrics. Under the poetry lies a dynamically typed imperative language: Put and Let assign, Shout and Say print, loops read as While and Until, and its signature trick is poetic literals, where the word lengths in a phrase encode a number's digits. The language has an official specification, multiple interpreters, a certified developer meme, and a genuine community that holds lyrical-programming contests. It is a staple of joke-language lists alongside LOLCODE. On XCODX, Rockstar runs in a real interactive terminal, so Listen takes your typed input mid-song with nothing to install.
(Rockstar comments live inside parentheses)
Shout "Hello, World!"
Rockstar turns programming exercises into songwriting: FizzBuzz and 99 Bottles of Beer become creative-writing challenges where the goal is code that scans as believable lyrics, a format that has powered community contests and conference talks. It is superb for outreach and teaching, since non-programmers can read a Rockstar program aloud, and it features in popularity-contest golf where elegance of verse beats byte count.
They let prose encode values. In a poetic number assignment, each word's letter count modulo ten becomes a digit, so a line like Tommy was a big bad brother assigns 1337, reading naturally as lyrics while smuggling in data. Similar constructs initialize strings and booleans, and mastering them is the heart of writing Rockstar that truly sings.
Both, like the best joke languages. The specification is complete and earnest: variables, conditionals, loops, functions with Takes and Give back, arrays, and string operations all work, and interpreters pass shared test suites. You can implement real algorithms; people have. The joke is entirely in the surface grammar, which is exactly what makes writing it addictive.
Say, Shout, Whisper, and Scream all print a value followed by a newline, the synonyms existing purely for lyrical range. Listen to reads a line from stdin into a variable as a string, with casting available through Cast or arithmetic coercion. In this terminal Listen genuinely pauses the program until you type, enabling interactive call-and-response scripts.
main.rockplain text — no highlighter ships for this languagelisten toSay "Hello from Rockstar!"
Say "Welcome to XCODX Compiler!"
My heart is great
Say my heart