View Full Version : Most confusing languages ever
keyboard
09-13-2012, 08:35 AM
Hey everyone,
What is the most confusing programming language you have ever seen?
I put my vote for the language false (http://strlen.com/false-language).
Here's some examples of the language -
Copy Files { copy.f: copy file. usage: copy < infile > outfile }
ß[^$1_=~][,]#
Prime Numbers { writes all prime numbers between 0 and 100 }
99 9[1-$][\$@$@$@$@\/*=[1-$$[%\1-$@]?0=[\$.' ,\]?]?]#
bernie1227
09-13-2012, 08:45 AM
My vote goes to the novelty language, lolcode.
The most confusing language ever created, in my view, is most Definately the rather interestingly (and innapropriately) named 'brain[insert F word here]', examples:
this:
++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.
Will print 'hello world'
djr33
09-13-2012, 05:44 PM
Perhaps Regex. I understand it in theory but it's horrible to read a lot of the time.
(The languages you noted may be a bit crazier, but are they actually useful/used?)
bernie1227
09-13-2012, 09:39 PM
Surprisingly enoug, the ones I mentioned, Are in fact used. brain[insert F word here]
(hereafter mentioned to as brain), is in fact probably the language wit the smalles compiler, around the 250 byte mark, in which it is still possible to computer anything you wish. You may like to see this thread and a couple of the people who say the use it (http://stackoverflow.com/questions/1645615/what-is-the-use-of-brainfck). Another confusing
Language, in my view is P'' (brain was based on both False and P'') , in which:
R ( R ) L ( r' ( L ( L ) ) r' L ) R r
Will find the number before another number.
keyboard
09-14-2012, 06:42 AM
(The languages you noted may be a bit crazier, but are they actually useful/used?)
So, pretty much..... no
bernie1227
09-14-2012, 07:27 AM
click on my link in the earlier post, keyboard for claims refuting yours :P
wow... cherry blossom (http://vivin.net/projects/cherryblossom/).
beautiful jasmine
your lovely fragrance heals me
every morning
remembering you,
dreaming of your lovely smile,
when will you come here?
floating butterflies
sunshine and summer flowers
a lovely morning
blossoming hillside
on a fragrant summer day
blooming, flowering.
I can remember
my happy dreams of summer
it was beautiful
flying doves, sunrays
beauty flying in sunshine
rain in the valley.
snow falls in moonlight,
returns to the mountainside.
lovely, beautiful.
view from mountaintop
is a beautiful painting,
in summer sunshine.
the fragrant flowers
and the pretty butterflies
spring by singing creek.
beautiful morning
butterflies by riverside
floating in sunshine.
such a lovely sight,
the valley waterfall is
in the spring sunshine.
sunrays and sunshine,
the butterflies and flowers
loving the new spring.
the pretty flowers
are dreaming of a summer
with the smiling sun.
music from heaven,
is melodious and sweet,
dreamy and happy.
the river is cold
and misty in the moonlight,
in the autumn chill.
winter riverside,
lonely, icy, and chilly
darkening evening
the lonely winter,
barren riverside ahead
a dreaming poet
bernie1227
09-14-2012, 10:46 PM
For all of you not fluent in cherry blossom, that prints hello world
djr33
09-14-2012, 11:24 PM
The only thing that doesn't make sense to me about Cherry Blossom is that the NOP words are a closed-class. It inherently requires that every program be 17^n instructions long, unless you work around that using the exceptions words-- why not just allow any words to be ignored unless they're keywords?
Interesting read, though. I'd seen that on one of the earlier links, but the motivation/logic behind the language is intriguing.
And the linguist in me needs to add: any natural language, probably. Nothing on a computer could be as interesting/amazing/diverse/surprising as what's found in real world languages. And they've been used as codes, such as Navajo during WWII, which was never broken.
(Speaking of codes, I imagine Cherry Blossom would be a good way to send coded messages. But you'd practically have to publish a book to get the message to your recipient-- all the time disguising your code as some sort of strange obsessive love letters.)
Hmm.... I'm now curious. I wonder how difficult it would be to write a text-to-cherry-blossom translator that would automatically encode these things (with some vaguely sensible haikus from it).... I might just try it.
bernie1227
09-15-2012, 05:57 AM
the creator of cherry blossom, actually says that it took hi longer to write hello world, than it took to write the whole interpreter (in perl).
Another confusing programming language is spl (Shakespeare programming language), this code, I believe, reverses a string:
Othello, a stacky man.
Lady Macbeth, who pushes him around till he pops.
Act I: The one and only.
Scene I: In the beginning, there was nothing.
[Enter Othello and Lady Macbeth]
Othello:
You are nothing!
Scene II: Pushing to the very end.
Lady Macbeth:
Open your mind! Remember yourself.
Othello:
You are as hard as the sum of yourself and a stone wall. Am I as
horrid as a flirt-gill?
Lady Macbeth:
If not, let us return to scene II. Recall your imminent death!
Othello:
You are as small as the difference between yourself and a hair!
Scene III: Once you pop, you can't stop!
Lady Macbeth:
Recall your unhappy childhood. Speak your mind!
Othello:
You are as vile as the sum of yourself and a toad! Are you better
than nothing?
Lady Macbeth:
If so, let us return to scene III.
Scene IV: The end.
[Exeunt]
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.