Esoteric Languages
For the adventurous, Redlite includes bindings for several esoteric programming languages.
Available Languages
Section titled “Available Languages”Brainf*ck
Section titled “Brainf*ck”; SET key value (simplified example)++++++++++[>+++++++>++++++++++>+++<<<-]>++.>+.+++++++..+++.Redlite Set Recipe.
This recipe sets a key-value pair in the database.
Ingredients.72 g key101 g value
Method.Put key into mixing bowl.Put value into mixing bowl.Pour contents of mixing bowl into baking dish.MoO moO MoO mOo MOO OOM MMM moO moOLOLCODE
Section titled “LOLCODE”HAI 1.2 CAN HAS REDLITE? I HAS A db ITZ OPENZ ":memory:" db SETZ "key" "value" VISIBLE db GETZ "key"KTHXBYEVisual programming language where code is represented as images.
Shakespeare Programming Language (SPL)
Section titled “Shakespeare Programming Language (SPL)”The Tragedy of Redlite.
Romeo, a database client.Juliet, a key-value store.
Act I: Setting Values.Scene I: Romeo sets a key.
[Enter Romeo and Juliet]
Romeo: You are as lovely as the sum of a warm peaceful day and a cat.Whitespace
Section titled “Whitespace”Code written entirely in spaces, tabs, and newlines.
Because we can. These SDKs demonstrate Redlite’s FFI flexibility and provide entertainment value.
Testing
Section titled “Testing”Each esoteric SDK has a Makefile with test targets where applicable:
cd sdks/redlite-<language>make test