Beatnik

Yuan LiYuan Li
4 min read

What is Beatnik

Beatnik is a simple stack-oriented language and esoteric programming language, by Cliff L. Biffle. It is syntax-free.

Why it named Beatnik?

By a little research, I found In webster dictionary, the definition of beatnik is: a person who participated in a social movement of the 1950s and early 1960s which stressed artistic self-expression and the rejection of the mores of conventional society broadly : a usually young and artistic person who rejects the mores of conventional society.

Rules

A beatnik program consists of any sequence of English words. Each word is assigned the score you would get for it in a Scrabble game. The value of the score determines what function is performed. Functions include pushing the score of the next word onto the stack, testing the stack and skipping forward or backward in the program and other stack operations.
Input: a sequence of english words
Output: a sequence of characters

ScoreFunction
<5Does nothing
5Finds the score of the next word and pushes it onto the stack. Skips the aforementioned next word.
6Pops the top number off the stack and discards it.
7Adds the top two values on the stack together (as described above)
8Input a character from the user and push its value on the stack. Waits for a keypress.
9Pop a number off the stack and output the corresponding ASCII character to the screen.
10Subtract the top value on the stack from the next value on the stack, pushing the result.
11Swap the top two values on the stack.
12Duplicate the top value.
13Pop a number from the stack, and figure out the score of the next word. If the number from the stack is zero, skip ahead by n words, where n is the score of the next word. (The skipping is actually n+1 words, because the word scored to give us n is also skipped.)
14Same as above, except skip if the value on the stack isn't zero.
15Skip back n words, if the value on the stack is zero.
16Skip back if it's not zero.
17Stop the program.
18-23Does nothing.
>23Garners "Beatnik applause" for the programmer.

A Example of "Hello World"

This is a example of "hello world".

Soars, larkspurs, rains.
Indistinctness.
Mario snarl (nurses, natures, rules...) sensuously retries goal.
Agribusinesses' costs par lain ropes (mopes) autos' cores.
Tuner ambitiousness.
Flit.
Dour entombment.
Legals' saner kinking lapse.
Nests glint.
Dread, tied futures, dourer usual tumor grunts alter atonal
  garb tries shouldered coins.
Taste a vast lustiness.
Stile stuns gad subgroup gram lanes.
Draftee insurer road: cuckold blunt, strut sunnier.
Rely enure pantheism: arty gain groups (genies, pan) titters, tattles, nears.
Bluffer tapes?  Idle diatom stooge!
Feted antes anklets ague?  Remit goiter gout!
Doubtless teared toed alohas will dull gangs' aerials' tails' sluices;
Gusset ends!  Gawkier halo!
Enter abstruse rested loser beer guy louts.
Curtain roams lasso weir lupus stunt.
Truant bears animate talon.  Entire torte originally timer.
Redo stilt gobs.
Utter centaurs;
Urgent stars;
Usurers (dilute);
Noses;
Bones;
Brig sonar graders;
Utensil silts;
Lazies.
Fret arson veterinary rows.
Atlas grunted: "Pates, slues, sulfuric manor liaising tines,
  trailers, rep... unfair!  Instant snots!"
Sled rested until eatery fail.
Ergs fortitude
  Indent spotter
Euros enter egg.
Curious tenures.
Torus cutlasses.
Sarong torso earns cruel lags it reeled.
Engineer: "Erase handbag -- unite ratification!"
oaring oaten donkeys unsold, surer rapid saltest tags
BUTTERED TIBIA LUGS REWIRING TOILETS
anion festers raring edit epilogues.
DIRGE ROTOR.
linnet oaring.
GORE BOOTIES.
Ironed goon lists tallest sublets --
Riots,
Raucous onset.
Ignobly, runners' diet anguishes sunrise loner.
Erode mob, slier switcher!
Loaners stilt drudge pearl atoll, risking hats' ends.
Rebind sitters.
Toga epistles -- crud lard.  (Pager purse dons souls.)
glob title a curio hired rites shed suds lade grease strut arctic revs toad
unless idlers rind stilt region land GERMICIDES SULTANA GUTS gill siting leans
nice spurs
tests gloves
roused asp
Holes!  Moles!  (Sores!)
Hygienists!  Scars!  (Asses!)
Smells spell rares.
Cubs instant sing in parse goodies.
Rosin.  Unhelpful sisal acres.  Slope told.
MALENESS PASTA LAB.  "Infirmary vine," rang illiterates (beans).
Rosin sours, insults truss abalones, nailed rules, helical atlases.
Dear remodeling stings mar rents.
Sunless shiner orb (silly idol.)
Clarity disses senna.
Vagabonds sauted; sloes performed gelds.
Alter post radial lip sectioning gums.
Saint Towellings.
Larger aeons telephone stolid char, pal!
Boats Dean forsook, rosters, tunas, terrariums -- united, traced.
Nude pagoda careens.

Difficulties in learning the language

Require familiar with the scrabble scoring method.

How to set up development environment

Don't know yet. Welcome to contact me if you have any ideas.

0
Subscribe to my newsletter

Read articles from Yuan Li directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Yuan Li
Yuan Li