|
-
Nov 20th, 2000, 05:41 PM
#1
Thread Starter
Frenzied Member
Here's a quick snippet of code that apparently produces the lyrics to "99 bottles of beer on the wall":
Code:
>+++++++++[<+++++++++++>-]<[>[-]>[-]<<[>+>+<<-]>>[<<+>>-]>>>
[-]<<<+++++++++<[>>>+<<[>+>[-]<<-]>[<+>-]>[<<++++++++++>>>+<
-]<<-<-]+++++++++>[<->-]>>+>[<[-]<<+>>>-]>[-]+<<[>+>-<<-]<<<
[>>+>+<<<-]>>>[<<<+>>>-]>[<+>-]<<-[>[-]<[-]]>>+<[>[-]<-]<+++
+++++[<++++++<++++++>>-]>>>[>+>+<<-]>>[<<+>>-]<[<<<<<.>>>>>-
]<<<<<<.>>[-]>[-]++++[<++++++++>-]<.>++++[<++++++++>-]<++.>+
++++[<+++++++++>-]<.><+++++..--------.-------.>>[>>+>+<<<-]>
>>[<<<+>>>-]<[<<<<++++++++++++++.>>>>-]<<<<[-]>++++[<+++++++
+>-]<.>+++++++++[<+++++++++>-]<--.---------.>+++++++[<------
---->-]<.>++++++[<+++++++++++>-]<.+++..+++++++++++++.>++++++
++[<---------->-]<--.>+++++++++[<+++++++++>-]<--.-.>++++++++
[<---------->-]<++.>++++++++[<++++++++++>-]<++++.-----------
-.---.>+++++++[<---------->-]<+.>++++++++[<+++++++++++>-]<-.
>++[<----------->-]<.+++++++++++..>+++++++++[<---------->-]<
-----.---.>>>[>+>+<<-]>>[<<+>>-]<[<<<<<.>>>>>-]<<<<<<.>>>+++
+[<++++++>-]<--.>++++[<++++++++>-]<++.>+++++[<+++++++++>-]<.
><+++++..--------.-------.>>[>>+>+<<<-]>>>[<<<+>>>-]<[<<<<++
++++++++++++.>>>>-]<<<<[-]>++++[<++++++++>-]<.>+++++++++[<++
+++++++>-]<--.---------.>+++++++[<---------->-]<.>++++++[<++
+++++++++>-]<.+++..+++++++++++++.>++++++++++[<---------->-]<
-.---.>+++++++[<++++++++++>-]<++++.+++++++++++++.++++++++++.
------.>+++++++[<---------->-]<+.>++++++++[<++++++++++>-]<-.
-.---------.>+++++++[<---------->-]<+.>+++++++[<++++++++++>-
]<--.+++++++++++.++++++++.---------.>++++++++[<---------->-]
<++.>+++++[<+++++++++++++>-]<.+++++++++++++.----------.>++++
+++[<---------->-]<++.>++++++++[<++++++++++>-]<.>+++[<----->
-]<.>+++[<++++++>-]<..>+++++++++[<--------->-]<--.>+++++++[<
++++++++++>-]<+++.+++++++++++.>++++++++[<----------->-]<++++
.>+++++[<+++++++++++++>-]<.>+++[<++++++>-]<-.---.++++++.----
---.----------.>++++++++[<----------->-]<+.---.[-]<<<->[-]>[
-]<<[>+>+<<-]>>[<<+>>-]>>>[-]<<<+++++++++<[>>>+<<[>+>[-]<<-]
>[<+>-]>[<<++++++++++>>>+<-]<<-<-]+++++++++>[<->-]>>+>[<[-]<
<+>>>-]>[-]+<<[>+>-<<-]<<<[>>+>+<<<-]>>>[<<<+>>>-]<>>[<+>-]<
<-[>[-]<[-]]>>+<[>[-]<-]<++++++++[<++++++<++++++>>-]>>>[>+>+
<<-]>>[<<+>>-]<[<<<<<.>>>>>-]<<<<<<.>>[-]>[-]++++[<++++++++>
-]<.>++++[<++++++++>-]<++.>+++++[<+++++++++>-]<.><+++++..---
-----.-------.>>[>>+>+<<<-]>>>[<<<+>>>-]<[<<<<++++++++++++++
.>>>>-]<<<<[-]>++++[<++++++++>-]<.>+++++++++[<+++++++++>-]<-
-.---------.>+++++++[<---------->-]<.>++++++[<+++++++++++>-]
<.+++..+++++++++++++.>++++++++[<---------->-]<--.>+++++++++[
<+++++++++>-]<--.-.>++++++++[<---------->-]<++.>++++++++[<++
++++++++>-]<++++.------------.---.>+++++++[<---------->-]<+.
>++++++++[<+++++++++++>-]<-.>++[<----------->-]<.+++++++++++
..>+++++++++[<---------->-]<-----.---.+++.---.[-]<<<]
Now if you didn't know about this language before, you'll see where it gets its name. So what the f*** is all that code about eh? I figure it's something to do with pushes and pops, or shifts, or.... f*** knows.
Anyone met this curious language before?
Harry.
"From one thing, know ten thousand things."
-
Nov 20th, 2000, 05:49 PM
#2
Frenzied Member
[joke][blinded people]
i checked the Qur'an, i coudn't find it so its not a language
[/blinded people][/joke]
-
Nov 20th, 2000, 05:50 PM
#3
I've seen it before... it's supposed to confuse dumb people and make them tell religious jokes that nobody laughs at...
-
Nov 20th, 2000, 05:57 PM
#4
Frenzied Member
dennis
your still funny
-
Nov 20th, 2000, 05:58 PM
#5
Hyperactive Member
Brainf****???
Isn't that what all you guys try to do to each other on this Chit-Chat Forum????
-
Nov 20th, 2000, 06:08 PM
#6
Thread Starter
Frenzied Member
Well if your brain survived that one, try this out, it's a language called Befunge:
Code:
----- begin beer.bf -----
v v0\1:\1:\0\0\!:p15-< Bottles of Beer for Befunge
0 \ {befunge} >" ekaT">v written by Brian Raiter, 5/97
0>>.0"llaw eht no "v<#,: [email protected]
"\, >"eno"^>0 #"^1^_v
c1,>51g#^_"ti"^. >vr : $
"::^" down, pass "^|\*25,<^ # i e ^g1<
,>052*":dnuor t"vbv:<
v0_^ . , ^< " "
>52*".ll"v >,^ fb e
v"aw eht no r"v
""" ,: >" ;"^ f ^<@
meo >^"bottle"< "o $
o m^"re:"52*^>"s"^v"les"<,:
"^< ^"99 bott"< >^>^<
>" yub ,erots eht ot oG"^
------ end beer.bf ------
Notice that some of the strings are written backwards.
.yhw aedi on evah I
Harry.
"From one thing, know ten thousand things."
-
Nov 20th, 2000, 06:45 PM
#7
Frenzied Member
where exactly did you find these languages, they look like they were written by an expert panel of mental patients.
-
Nov 20th, 2000, 06:54 PM
#8
Thread Starter
Frenzied Member
Harry.
"From one thing, know ten thousand things."
-
Dec 2nd, 2000, 05:35 AM
#9
transcendental analytic
Code:
<-------<
>-------<
>------<
>---<
<-------<
<---->
<----->
<-------<
>-------<
>------<
>-------<
<---------------<
<------<
>----<
<------->
>----<
<---------->
<---->
<------>
>--------->
<------<
>-<
>------<
>------<
Guess what this does?
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Dec 2nd, 2000, 06:00 AM
#10
Thread Starter
Frenzied Member
Harry.
"From one thing, know ten thousand things."
-
Dec 2nd, 2000, 06:58 AM
#11
Addicted Member
This is the left over food of a shark in an aquarium.
If you can't pronounce my name, call me GURU 
-
Dec 2nd, 2000, 07:29 AM
#12
Frenzied Member
it puts some -ve numbers into memory.
-
Dec 2nd, 2000, 08:39 AM
#13
transcendental analytic
it shows a diagram of my sleeping habits
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Dec 2nd, 2000, 08:55 AM
#14
PowerPoster
I like Orthogonal better
-
Dec 2nd, 2000, 09:17 PM
#15
PowerPoster
Kedaman: A Hello World program?
or:
Hm, what this does... maybe: Confusing us?
-
Dec 3rd, 2000, 01:33 AM
#16
transcendental analytic
-
Dec 3rd, 2000, 12:51 PM
#17
-
Jan 28th, 2001, 01:21 AM
#18
Thread Starter
Frenzied Member
Hey, I just remembered this thread and thought I'd add another language that makes my ears bleed.... I hope yours do too. Enjoy! 
Code:
>9999*++000s1100sXv< >#v100g5-v
X >100g3- |v _@
|-2g001_ v
v *39s1010pg000 s0012-#< <
vv*35s1010pg000< 1
v## *47s1011s0014g# <
v*35s10103100sv 0
^ < 1
^
{
000 > x
v s100+1g100 <
>001g101g9gp001g201g -|
s 0
1 0
0 0
2 xv# < 1
^ >000v s
v0pg< P
0 x
g
^_5100s^
{
100 bottles of beer.
{
In BefDC - a derivative of Befudge and dc, by Sam Holden
{
This code by Sam Holden, 1997.
{
Note: this language was actually designed to do my cryptography assigments,
which is why it is defined with 'infinite' precision math.
{
{
{
{
bottles of beer on the wall
Take one down, pass it around
Harry.
"From one thing, know ten thousand things."
-
Jan 28th, 2001, 05:15 AM
#19
INTERCAL
Ever heard of a language called Intercal?
Every statement must start with the phrase PLEASE !
Otherwise the error message generated is "The programmer is insufficiently polite"..
Smart ?
-
Jan 28th, 2001, 05:29 AM
#20
INTERCAL 2
Heres a sample Intercal program
Code:
DO (5) NEXT
(5) DO FORGET #1
PLEASE WRITE IN :1
DO .1 <- '?":1~'#32768$#0'"$#1'~#3
DO (1) NEXT
DO :1 <- "'?":1~'#65535$#0'"$#65535'
~'#0$#65535'"$"'?":1~'#0$#65535'"
$#65535'~'#0$#65535'"
DO :2 <- #1
PLEASE DO (4) NEXT
(4) DO FORGET #1
DO .1 <- "?':1~:2'$#1"~#3
DO :1 <- "'?":1~'#65535$#0'"$":2~'#65535
$#0'"'~'#0$#65535'"$"'?":1~'#0
$#65535'"$":2~'#0$#65535'"'~'#0$#65535'"
DO (1) NEXT
DO :2 <- ":2~'#0$#65535'"
$"'":2~'#65535$#0'"$#0'~'#32767$#1'"
DO (4) NEXT
(2) DO RESUME .1
(1) PLEASE DO (2) NEXT
PLEASE FORGET #1
DO READ OUT :1
PLEASE DO .1 <- '?"':1~:1'~#1"$#1'~#3
DO (3) NEXT
PLEASE DO (5) NEXT
(3) DO (2) NEXT
PLEASE GIVE UP
Note the last line (he he)
Here is an excerpt from its manual...
2.2 Uses for INTERCAL
INTERCAL's main advantage over other programming languages is its strict simplicity. It has few capabilities, and thus there are few restrictions to be kept in mind. Since it is an exceedingly easy language to learn, one might expect it would be a good language for initiating novice programmers. Perhaps surprising, than, is the fact that it would be more likely to initiate a novice into a search for another line of work. As it turns out, INTERCAL is more useful (which isn't saying much) as a challenge to professional programmers.
Want to know more about Intercal? You just need to post a reply!! 
-
Jan 28th, 2001, 06:05 AM
#21
Thread Starter
Frenzied Member
Harry.
"From one thing, know ten thousand things."
-
Mar 1st, 2001, 08:51 AM
#22
transcendental analytic
befunge
took me an hour to make this befunge app:
Code:
v >*"namadek"v
2 5 v,_v#<:< <
5 2 >:^$
* 0 v< >"eb"^
>1|:-1<|:<^"fung"<
>0"!!!looc s'e"^
@
guess what this does?
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Mar 1st, 2001, 09:12 AM
#23
Hyperactive Member
Does it print "Kedaman" to the screen?
-
Mar 1st, 2001, 09:28 AM
#24
transcendental analytic
yep, but it does more than that 
Code:
v
v v
v?<?>?v
12 v 56
v<3?4>v
>.@^@.<
? v @#
? 1v4
? 2v5
?3v6
>^^^
vvvvv.
i wrote two other apps just for the fun of it, they do the exact same thing though.
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Mar 1st, 2001, 09:50 AM
#25
transcendental analytic
the last one has a bug, it should be
Code:
? vv @#
? 1v4
? 2v5
## ?3v6
>v .
and now it's the most compact one too
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Mar 1st, 2001, 06:59 PM
#26
Lively Member
Don't all women speak Brainf**k?
-
Mar 1st, 2001, 07:40 PM
#27
Thread Starter
Frenzied Member
Less of a language, more of a lifestyle.
Harry.
"From one thing, know ten thousand things."
-
Mar 1st, 2001, 08:28 PM
#28
Originally posted by kedaman
the last one has a bug, it should be
Code:
? vv @#
? 1v4
? 2v5
## ?3v6
>v .
and now it's the most compact one too
Where did you learn to write that?!?
-
Mar 1st, 2001, 09:32 PM
#29
transcendental analytic
I looked up befunge on altavista and found some source, forgot to bookmark it though, befunge is really cool once you learn it 
the sixth and last version of befungdice i made looks like this:
yep it prints a random number from 1 to 6
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Mar 1st, 2001, 11:53 PM
#30
Thread Starter
Frenzied Member
"You're weird." -- John Cleese as Roman Centurion, Life of Brian
Harry.
"From one thing, know ten thousand things."
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|