Sign inSign up

100hellos/tswizzle

By 100hellos

•Updated 4 months ago

"Hello World!" Written in tswizzle

Image
0

3.4K

100hellos/tswizzle repository overview

⁠Hello World! From tswizzle.

Language page⁠ — context, influences, and learning notes on the 100hellos site.

Source on GitHub⁠ (100hellos/tswizzle)

⁠Trying it

docker run --rm --platform="linux/amd64" 100hellos/tswizzle:latest

⁠Modifying it

Read the repo README⁠, or fork the project⁠ and customize it.

For an interactive shell:

docker run --rm --platform="linux/amd64" --entrypoint="" -it 100hellos/tswizzle:latest zsh

⁠TSwizzle

TSwizzle is a Taylor Swift lyrics-inspired esoteric programming language created by abhilipsasahoo03⁠. This implementation uses the upstream TSwizzle interpreter to bring the lyrical programming paradigm to 100hellos.

⁠About TSwizzle

TSwizzle transforms Taylor Swift's iconic lyrics into programming syntax, creating a unique celebrity-themed esoteric language. Much like ArnoldC uses Arnold Schwarzenegger movie quotes, TSwizzle uses Taylor's song lyrics to express programming concepts.

⁠Language Features

⁠Taylor Swift Lyric Commands
TSwizzle SyntaxFunctionEra/Reference
AND I'LL SHOW YOU EVERY VERSION OF "message" TONIGHTPrint statementFrom "Style"
COUNTER ALL YOUR QUICK REMARKS ~>Single-line commentsFrom "Mean"
IF YOU'VE GOT A condition I'M JEALOUS OF statementConditional logicFrom "Style"
GOODBYE GOODBYE GOODBYEEnd of file markerFrom multiple songs
SPEAK NOW OR FOREVER HOLD YOURInput statementsFrom album "Speak Now"
INVISIBLE STRING TYING ME TO YOUString type conversionFrom "invisible string"
NUMBER ON MEInteger type conversionFrom "Paper Rings"
ARE WE IN THE CLEAR YET?Clear screenFrom "Out Of The Woods"

⁠Hello World Program

Our implementation showcases multiple TSwizzle keywords:

COUNTER ALL YOUR QUICK REMARKS ~> This is a Taylor Swift themed Hello World program
COUNTER ALL YOUR QUICK REMARKS ~> Using as many TSwizzle keywords as possible!

COUNTER ALL YOUR QUICK REMARKS ~> Initialize our greeting variable
greeting = "Hello World!"

COUNTER ALL YOUR QUICK REMARKS ~> Check if we should display the greeting
should_greet = 1

COUNTER ALL YOUR QUICK REMARKS ~> Conditional logic using Taylor Swift lyrics
IF YOU'VE GOT A should_greet == 1 I'M JEALOUS OF AND I'LL SHOW YOU EVERY VERSION OF greeting TONIGHT

COUNTER ALL YOUR QUICK REMARKS ~> End of our Swift program
GOODBYE GOODBYE GOODBYE

⁠Cultural Significance

TSwizzle represents the intersection of pop culture and programming languages, similar to how:

  • ArnoldC uses Schwarzenegger movie quotes
  • Shakespeare uses Elizabethan English
  • LOLCODE uses internet meme speak

This demonstrates how programming language design can be both functional and culturally expressive.

⁠Interactive Mode

TSwizzle supports a REPL mode where you can:

  1. Enter your favorite Taylor Swift era
  2. Execute commands interactively
  3. Run .tswizzle files with the command: I KNOW THE BRAVEST THING I EVER DID WAS RUN filename.tswizzle

⁠Implementation Details

  • Base Language: Python 3
  • Upstream Source: abhilipsasahoo03/TSwizzle⁠
  • File Extension: .tswizzle
  • Paradigm: Lyrical programming / Celebrity-themed esoteric

Tag summary

Content type

Image

Digest

sha256:086aa9ba4…

Size

55.5 MB

Last updated

4 months ago

docker pull 100hellos/tswizzle