This is the Message Centre for gareis

PUUk

Post 1

gareis

Forthwith this space is dedicated to the programming language PUUk!

PUUk stands for "Painfully Underdeveloped Unreadable kode" (well, you can't win all the backronyms....) and is pronounced "puke". That's what it always makes me do.

Here's a sample of PUUk:
!z!o!n!t!d!q!r!l=n=d+l@d+o@t?%1+z@z?%1
(1)+t@l?%1+l@t+t@n?d+n?t+r@o`l&1
+t@n+q@t?z+t@q`t<r`t^*
(2)+t@r?%1<t+o+t@o?n+n@d?t<n

What does it do, you ask? It...well, I'm not quite sure. Let me check my notes. Ah, yes. It simulates a division function using integer division and remainders. Here's a breakdown:

!z!o!n!t!d!q!r!l creates variables named z,o,n,t,d,q,r, and l.
=n=d begs (inputs) values for n and d from the user.
+l buckets l (prepares the variable l for writing), and
@d milks d (copies the value in d to that space).
+o@t?%1 This has bucketing and milking functions, and the what (?) indicates subtraction of the value of 1 (the number).
+t@z?%1+z@t This assigns -1 to z.
(1) is a dogear. You can spaghetti to (goto) it.
+t@l?%1+l@t subtracts 1 from l. Since l <> 0, you can't do +t@t?%1 because that would always yield -1.
+t@n?d+n?t subtracts d from n.
+r@o copies the value of o into r.
`l&1 The computer skips back to dogear 1 if l > 0.
+t@n+q@t?z+t@q assigns to t the value of n-z.
`t0, then it craps (prints) the value of r.
`t^* If t>0, then skip to the end.
(2) Another dogear.
+t@r?%1<t Craps the value of r-1 after assigning it to t.
+o Blanks o.
+t@o?n+n@d?t<n Assigns n the value of d-(-n) or d+n, then craps it.

I shall post more anon.

~gareis


Key: Complain about this post

More Conversations for gareis

Write an Entry

"The Hitchhiker's Guide to the Galaxy is a wholly remarkable book. It has been compiled and recompiled many times and under many different editorships. It contains contributions from countless numbers of travellers and researchers."

Write an entry
Read more