Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
R

rockstar

> 编程语言
Open source

Home of the Rockstar programming language

6.9K stars0 likes3 views
WebsiteGitHub

About

Home of the Rockstar programming language

Do you wanna get rocked?

This is Rockstar, an esoteric programming language whose syntax is inspired by the lyrics to 80s hard rock and heavy metal songs.

What's Here

Rockstar has three main components:

  • /Starship contains the Starship interpreter for Rockstar, built in C# and .NET
  • /cm-lang-rockstar contains the CodeMirror editor used on the Rockstar website
  • /codewithrockstar.com contains the Rockstar website, docs and examples

Building Rockstar

To build the Starship engine, you'll need the .NET 9 SDK

dotnetcli
git clone https://github.com/RockstarLang/rockstar.git
cd rockstar
dotnet workload install wasm-tools
dotnet build ./Starship/Starship.sln
dotnet test ./Starship/

To build a Rockstar native binary on Linux, you'll need gcc installed, and then:

bash
git clone https://github.com/RockstarLang/rockstar.git
cd rockstar
dotnet publish ./Starship/Rockstar -o binaries -c Release

That'll create a standalone binary executable in binaries/rockstar.

The codewithrockstar.com website is built with Jekyll and hosted on GitHub Pages.

The embedded Rockstar interpreter is the Starship engine compiled to run on web assembly:

dotnetcli
dotnet build ./Starship/Starship.sln
dotnet publish ./Starship/Rockstar.Wasm -o codewithrockstar.com/wasm/ -c Debug

Building with GitHub Actions

Building codewithrockstar.com works like this:

build-rockstar-2.0

  • runs on Linux
  • Builds the parser and interpreter
  • Runs the test suite
  • Uploads artifacts for:
    • Linux native binary
    • WASM interpreter for the website

build-windows-binary

  • builds the Rockstar windows binary

build-macos-binary

  • builds the macOS binary

release-rockstar-engine

  • creates the GitHub release from the latest binaries

build-and-deploy-website

  • Downloads the Rockstar WASM binary
  • builds the CodeMirror editor
  • Builds the Jekyll site
  • Deploys the site to GitHub Pages

Debug/Dev Mode Setup

In dev mode, I use symbolic directory links between the various parts of the project. Rebuilding the .NET solution will rebuild the WASM interpreter, which Jekyll can see as /wasm/**, and trigger a site rebuild, and all the Rockstar code examples are part of both the Rockstar.Test .NET test suite project and the codewithrockstar.com site:

> cd codewithrockstar.com
> mklink /d wasm ..\Starship\Rockstar.Wasm\bin\Debug\net8.0-browser
> mklink /d examples ..\Starship\Rockstar.Test\programs\examples
codewithrockstar.com
  /wasm --> [ /Starship/Rockstar.Wasm/bin/Debug/net8.0-browser ]
  /examples --> [ /Starship/Rockstar.Test/programs/examples ]
  /index.html
  /example.md
  /js
 	/rockstar-editor.js (from codemirror)

Issues· 49 open

View all issuesOpen on GitHub
  • #358

    Can't roll / pop from nested arrays

    Updated Mar 7, 2026
  • #382

    Poetic decimals not working in standalone Linux interpreter

    Updated Aug 11, 2025
  • #318

    If only there was a "random number generator" feature....

    Updated May 5, 2025
  • #380

    rockstarlang added to nixpkgs

    Updated Mar 16, 2025
  • #379

    Between string and array

    Updated Mar 11, 2025
  • #377

    Support `every` keyword for second argument to loop statements

    Updated Mar 4, 2025
  • #356

    Inconsistent behaviour when accessing 2D arrays

    Updated Jan 10, 2025
  • #338

    Quines

    Updated Nov 26, 2024
  • #335

    Allow spaces between function arguments

    Updated Mar 24, 2024
  • #334

    Ambiguous syntax in nested function calls.

    Updated Mar 24, 2024

> Tags

JavaScript

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 23, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言