Ferdek - An Esoteric Programming Language Inspired by 'The Lousy World' TV Series
What is Ferdek?
Ferdek is a humorous, esoteric programming language based on the cult Polish TV series “The Lousy World” (Świat według Kiepskich). Similar to how ArnoldC uses quotes from Arnold Schwarzenegger movies, Ferdek uses colorful Polish expressions from the show as programming language keywords.
This is obviously a joke and programming experiment - but it actually works! The language was implemented in OCaml and has both an interpreter and a compiler to C.
Project Philosophy
The inspiration for Ferdek was ArnoldC - a programming language that replaces standard keywords with quotes from Arnie’s movies. I thought to myself: “Why not create something similar in Polish?” And so Ferdek was born - a language where instead of boring while we write CHLUŚNIEM BO UŚNIEM (roughly: “I splashed because I fell asleep”), and instead of print we use PANIE SENSACJA REWELACJA (“Sir, what a sensation, what a revelation”).
Syntax Examples
Hello World
The simplest program in Ferdek looks like this:
CO JEST KURDE
RYM CYM CYM Hello World program in Ferdek language
PANIE SENSACJA REWELACJA "Cześć, tu Ferdek!"
MOJA NOGA JUŻ TUTAJ NIE POSTANIEBasic Constructs
Here are some examples of Ferdek syntax:
CO JEST KURDE- program startPANIE SENSACJA REWELACJA- print to screenCYCU PRZYNIEŚ NO- variable declarationCHLUŚNIEM BO UŚNIEM- while loopNO JAK NIE JAK TAK- if statementA DUPA TAM- elsePASZOŁ WON- subtraction operatorBABKA DAWAJ RENTĘ- addition operatorMOJA NOGA JUŻ TUTAJ NIE POSTANIE- program end
FizzBuzz the Kiepski Way
The classic FizzBuzz in Ferdek looks like this:
CO JEST KURDE
PANIE SENSACJA REWELACJA "=== FizzBuzz ==="
CYCU PRZYNIEŚ NO i
TO NIE SĄ TANIE RZECZY 1
CHLUŚNIEM BO UŚNIEM i ŁYSA PAŁA 16
CYCU PRZYNIEŚ NO mod15
O KURDE MAM POMYSŁA mod15
A PROSZĘ BARDZO i
PROSZĘ MNIE NATYCHMIAST OPUŚCIĆ 15
NO I GITARA
NO JAK NIE JAK TAK mod15 TO PANU SIĘ CHCE WTEDY KIEDY MNIE 0
PANIE SENSACJA REWELACJA "FizzBuzz"
A DUPA TAM
NO JAK NIE JAK TAK mod3 TO PANU SIĘ CHCE WTEDY KIEDY MNIE 0
PANIE SENSACJA REWELACJA "Fizz"
A DUPA TAM
NO JAK NIE JAK TAK mod5 TO PANU SIĘ CHCE WTEDY KIEDY MNIE 0
PANIE SENSACJA REWELACJA "Buzz"
A DUPA TAM
PANIE SENSACJA REWELACJA i
DO CHAŁUPY ALE JUŻ
DO CHAŁUPY ALE JUŻ
DO CHAŁUPY ALE JUŻ
O KURDE MAM POMYSŁA i
A PROSZĘ BARDZO i
BABKA DAWAJ RENTĘ 1
NO I GITARA
A ROBIĆ NI MA KOMU
MOJA NOGA JUŻ TUTAJ NIE POSTANIEAdvanced Features
Ferdek is not just fun - the language has genuinely advanced features:
Exception Handling
HELENA MUSZĘ CI COŚ POWIEDZIEĆ
PANIE SENSACJA REWELACJA "Trying to do something..."
O KARWASZ TWARZ "Something went wrong!"
HELENA MAM ZAWAŁ blad
PANIE SENSACJA REWELACJA "I caught an error!"Classes and Objects
ALE JAJA Osoba
CYCU PRZYNIEŚ NO imie
TO NIE SĄ TANIE RZECZY "None"
ALE WIE PAN JA ZASADNICZO przedstawSie
PANIE SENSACJA REWELACJA "Hello, I'm "
PANIE SENSACJA REWELACJA imie
DO WIDZENIA PANU
DO WIDZENIA PANU
CYCU PRZYNIEŚ NO osoba
TO NIE SĄ TANIE RZECZY DZIAD ZDZIADZIAŁY JEDEN OsobaArrays
PANIE TO JEST PRYWATNA PUBLICZNA TABLICA liczby
TO NIE SĄ TANIE RZECZY [1, 2, 3, 4, 5]Importing Modules
O KOGO MOJE PIĘKNE OCZY WIDZĄ MojModulBreak and Continue
A POCAŁUJCIE MNIE WSZYSCY W DUPĘ RYM CYM CYM break
AKUKARACZA RYM CYM CYM continueNull Value
W TYM KRAJU NIE MA PRACY DLA LUDZI Z MOIM WYKSZTAŁCENIEMDevelopment Tools
VS Code Extension
Ferdek has full support in Visual Studio Code! Ferdek Language Support offers:
- Syntax highlighting
- Auto-completion
- Code snippets
- IntelliSense
You can install it directly from the VS Code Marketplace.
Installation and Usage
Quick Installation
curl -fsSL https://raw.githubusercontent.com/kupolak/ferdek/main/scripts/install-remote.sh | bashRunning Programs
# Interpreter
ferdek hello.ferdek
# REPL (interactive mode)
ferdek --repl
# Compile to executable
ferdek -c hello.ferdek -o hello
./helloMore examples can be found in the examples directory on GitHub.
Summary
Ferdek is proof that programming can be fun! It’s a tribute to the cult Polish TV series and an experiment showing that a programming language can be built on any set of keywords - even quotes from Ferdek Kiepski.
Is it practical? No. Is it funny? Absolutely! Does it work? Yes!
The project is open source and available on GitHub. If you have ideas for new features or just want to experiment with your own esoteric language, contributions are welcome!
MOJA NOGA JUŻ TUTAJ NIE POSTANIE 🎉
P.S. All rights to the characters and quotes from “The Lousy World” series belong to their rightful owners. This project was created solely for educational and entertainment purposes.