
A Warrior's Programming Language 298
BlackNova writes "Var'aq is "a speculative glance at what a programming language on a Klingon computer system would look like." Make sure to read the Preliminary Specification and the Proposed Extensions."
There are many more esoteric programming languages (Score:5, Interesting)
If you're into esoteric languages, the reference page is the Cat's Eyes page [catseye.mb.ca].
Re:There are many more esoteric programming langua (Score:2, Interesting)
Re:There are many more esoteric programming langua (Score:2, Funny)
Lameness filter encountered. Post aborted! Reason: Please use fewer 'junk' characters.
Strange... Maybe I'll send an Unlambda [eleves.ens.fr] example at least:
It calculates and prints the Fibonacci numbers as lines of asterisks.It's quite challanging to parse that code, once you know the syntax.
Re:There are many more esoteric programming langua (Score:2)
I've also kicked around the idea of a programming language based on Latin based on Chris' thoughts on using inflection in a programming language, but it's not one of those things that seems to come together easily...
/Brian
Re:There are many more esoteric programming langua (Score:5, Funny)
... would cooking and serving a meal based on that recipe be illegal?
I think it would be hilarious to refer to a meal as "a collection of food carrying an illegal decryption algoritm"...
Re:There are many more esoteric programming langua (Score:2)
I think he would become very forgiving
Re:There are many more esoteric programming langua (Score:2)
Real Warriors (Score:5, Funny)
cat > prog.tgz
Re:Real Warriors (Score:5, Funny)
cat >
;)
/K
Re:Real Warriors (Score:2)
copy con: prog.zip
would be a reasonable winner-dows analogue.
Re:Real Warriors (Score:2)
*BZZZZZT* One of my DOS days guru abilities was to actually make fairly useful programs via "COPY CON PROGRAM.COM". Then I entered the opcodes via alt-numpad. Most simply loaded a string or two and had one or a few int20h and int21h calls (BIOS and the DOS API). Beyond "Hello, World", I also knew a few useful ones to load and send modem init strings, change video mode, etc... the kind of things that most people had a few photocopied debug scripts from Byte magazine for. The init strings came in handy when I setup or fixed people's BBSes.
Not real useful, but it could be done... and if I really really trusted my typing (which I didn't), I could have written fairly complex programs with loads of time.
--
Evan "All hail Ralf Brown" E.
Re:Real Warriors (Score:3, Funny)
cat
and home for the best.
What do humans know about Klingons, anyway? (Score:5, Funny)
Re:What do humans know about Klingons, anyway? (Score:5, Funny)
karma whoring (Score:5, Informative)
you're welcome
---
Re:karma whoring (Score:2, Informative)
code snippets
(I C: www.geocities.com/connorbd/varaq/vcode.html+&hl=en
http://www.google.com/search?q=cache:y1Zz_tiIDh
)
It doesn't make much sense to me, but neither does klingon, so I gues its ok.
editors of slashdot. (Score:5, Insightful)
Re:editors of slashdot. (Score:2)
A much better criticism, in my mind, would be to ask why Slashdot doesn't spend more energy getting actual stories rather than engaging in essentially mindless link promotion. And then one might ask why the majority of the Slashdot generated stories are the drivel of Jon Katz. There are a couple of editors who write decent stories, and once in a while a submission is actually more than a blurb... but I'm guessing Slashdot sees itself more as a recorder of interesting tidbits and a place to discuss those tidbits than a place where serious journalism occurs.
Re:editors of slashdot. (Score:2)
Because that's not what Slashdot is. You might as well lambast the authors of a bok of movie reviews for not including copies of all the movies. Slashdot *is* a collection of links, a few original essays, some interviews (which we're due for, guys), and most importantly, a whopping big forum in which to discuss said stuff.
I'm guessing Slashdot sees itself more as a recorder of interesting tidbits and a place to discuss those tidbits than a place where serious journalism occurs.
Yup. And it's much more interesting IMO, than ZDNet, CNet, TechTV.com or any other so called "real journalistic technical site". YMMV - go to the site that interests you. For me, it's Slashdot.--
Evan "Did that sound like cheesy team cheering or what?" E.
Re:editors of slashdot. (Score:2)
Sudden fame is a risk inherent in making a public web page. Slashdot isn't the only way to get a surge of traffic, after all. The only reason Slashdot should worry about it is that a discussion full of "well, the site is Slashdotted" is pretty unproductive.
Re:editors of slashdot. (Score:2)
reader of slashdot: reality check (Score:2)
Charming idea, though.
Re:reader of slashdot: reality check (Score:2)
Re:editors of slashdot. (Score:2)
Or perhaps institute a "slashCache"?
(nice ring to it, eh?
Either way, the cool thing to do would be to have some sort of relay resource that would check to see if the site was up, and if it wasn't, then display the google/slash cache.
Of course, it will be implemented probably about the time I submit a patch, and I've got too many other things to work on....
Hmm all out already (Score:2, Insightful)
<grumble>
I suppose it would be possible for editors to realise geocities sites don't go well on the front page
</grumble>
Re:Good only for the worthless - OT (Score:2)
Sorry folks...
/Brian
Not a real language (Score:5, Interesting)
But it's not. I found it rather dull, it's just a little mini-essay about what such a programming language might be like, and what it might be called. I found the whole thing very thin at the time. Of course, the guy might have done some work on it since I last saw it, I haven't followed the link yet.
Since they had a tarball of the interpreter up (Score:2, Informative)
Karma whoring... (Score:4, Informative)
-------
I enjoy playing with "what-ifs" and that sort of thing. I've written a few fanfics for Star Trek and Babylon 5, and I've got my own grand scifi plan perking through my head (though it won't see the light of day for a long time to come). I've created a couple of languages a la Tolkien and I've run a few role-playing game campaigns. The idea of creating a culture from scratch is utterly fascinating to me, and that is where Var'aq came from.
This page is sort of a speculative glance at what a programming language on a Klingon computer system would look like. The language itself is named var'aq, which happens to be meaningless in standard Klingon but sounds like it might be named after some famous Klingon computer scientist or mathematician. It's really something of a Klingon Basic, a simple, loosely-typed programming language designed mostly just to be used for programming things like command displays and high-level control systems. In its eventual final incarnation, we're looking at concurrency, advanced mathematics, and even native support for distributed programs (try finding that in the C++ standard library).
This page is a bit more than that, though. In it I try to imagine what Klingon hacker culture is like based on what's known about Klingon culture in general. For example, it's a man's world on Qo'noS, Chancellor Azetbur's history-making tenure notwithstanding. Most men are warriors at heart, seemingly taking little heed of home life or those things that do not contribute to honor (why do you think Klingon sex is so rough? Klingon women get so little...). One assumes a rough-and-ready, make-do attitude that assumes that bigger-better-faster is at best a waste of time. A Klingon warrior might love to play Quake once in a while (but wouldn't admit it due to a lack of real blood), but would most likely see the 1GHz Athlon in the box being devoted to realtime, near-photorealistic slamming of texture-mapped polygons to be a dishonorable waste of computer resources. Far better, when you need power, to string a bunch of processors together Beowulf-style, yes?
Var'aq and its accompanying information aren't quite here yet, but until they are you're welcome to send whatever you think might be of interest to this page.
-------
There is a Google cache here:
http://www.google.com/search?q=cache:62oDEag2fl
Re:geocities. (Score:2)
Re:geocities. (Score:2)
They denied the site its honorable death in battle, fighting against overwhelming page-hits! Death is too good for them!
Chris Mattern
Interesting premise, but... (Score:2, Insightful)
Another way to look at a language is as an expression of certain believes. This seems to fit the bill better. Will, for instance, a programmer with anarchistical tendencies prefer a language like Perl?
Re:Interesting premise, but... (Score:3, Informative)
They have specification of snow.
Soft snow, hard snow, dangerous snow, etc.
It's like saying that we have 1000's of words for dog, because there is a word for each race.
Re:Interesting premise, but... (Score:2)
Re:Interesting premise, but... (Score:2)
IIRC, most of them have no unified word for rice either, a different word for whether it's in the field, harvested and cooked. Given that rice is such a big factor in their daily life and food, it's not too surprising.
A lot of language concepts are inexctricably tied to culture and vice-versa, and I bet that Klingons wouldn't be any different if they did exist.
Re:Interesting premise, but... (Score:2)
Niklaus Wirth spoke a language with Germanic roots, which has some pretty strong rules for construction. Thus Pascal has pretty strong rules about how and where the language constructs can be used.
C was created by Americans, a language with both strong and loose rules for sentence construction. It's a strong rule language with the ability to be very, very flexible.
If the theory holds, then the Chinese will be the first to invent a language that can adequately manage three states: yes, no, and whatever.
Discuss amongst yourselves.
Re:Interesting premise, but... (Score:2)
What I've seen in linguistics papers is that all of this variability is just conjugations of the same basic words. In English conjugation has been reduced to things like hot/hotter/hottest or smooth/smoothly or even priority/prioritize. But in other languages adjectives take the form of conjugation instead of separate words, so its akin to snowfreshly, snowcrustedly, snowicegrainedly, etc.
And a small handful of words for "snow" is hardly unreasonable. Fresh snow is very different from the stuff that's been on the ground for a while and is mostly large ice grains, and again that's different from weeks-old stuff which is solid ice. I would be surprised if skiers haven't created words for different type of snows, if they don't already exist.
confusing (Score:4, Funny)
Re:confusing (Score:2, Funny)
Perl was invented by Klingons to test the spirit of Earthlings.
Give a man a fish and he eats for one day. Teach him how to fish, and though he'll eat for a lifetime, he'll call you a miser for not giving him your fish.
If Klingons don't have bathrooms on their ships (Score:2)
There might just be something to those rumors of Guido van Russom's batleff collection...
Re:confusing (Score:2)
De duobus malis, minus est semper eligendum
Of two evils, the lesser must always be chosen
klingon. (Score:5, Funny)
Klingon Programmer
Top 20 things likely to be overheard if you had a Klingon Programmer:
1. Defensive programming? Never! Klingon programs are always on the offense. Yes, offensive programming is what we do best.
2. Specifications are for the weak and timid!
3. This machine is GAGH! I need dual Pentium processors if I am to do battle with this code!
4. You cannot really appreciate Dilbert unless you've read it in the original Klingon.
5. Indentation?! - I will show you how to indent when I indent your skull!
6. What is this talk of 'release'? Klingons do not make software 'releases'. Our software 'escapes' leaving a bloody trail of designers and quality assurance people in its wake.
7. Klingon function calls do not have 'parameters' - they have 'arguments' -- and they ALWAYS WIN THEM.
8. Debugging? Klingons do not debug. Our software does not coddle the weak. Bugs are good for building character in the user.
9. I have challenged the entire ISO-9000 quality assurance team to a Bat-Leth contest on the holodeck. They will not concern us again.
10. A TRUE Klingon Warrior does not comment his code!
11. By filing this bug report you have challenged the honor of my family. Prepare to die!
12. You question the worthiness of my code? I should kill you where you stand!
13. Our users will know fear and cower before our software! Ship it! Ship it and let them flee like the dogs they are!
14. Our competitors are without honor!
15. Python? That is for children. A Klingon Warrior uses only machine code, keyed in on the front panel switches in raw binary.
16. Klingon programs don't do accountancy. For that, you need a Ferengi.
17. Klingon multitasking systems do not support "time-sharing". When a Klingon program wants to run, it challenges the scheduler in hand-to-hand combat and owns the machine.
18. Perhaps it IS a good day to die! I say we ship it!
19. My program has just dumped Stova Core!
20. Behold, the keyboard of Kalis! The greatest Klingon code warrior that ever lived!
Ferengi? (Score:5, Funny)
16. Klingon programs don't do accountancy. For that, you need a Ferengi. I can only begin to imagine what a Ferengi program would be like:
Note that any Ferengi Computer would feature price negotiated scheduling and routing.
Any other suggestions?
Re:Ferengi? (Score:3, Funny)
Microsoft Office.
Re:Ferengi? (Score:2)
Rules of Acquisition (Score:2)
2048. Bugs are good for business
Re:Ferengi? (Score:2, Funny)
Re:Ferengi? - sounds like MS/NET (Score:2)
HTTP/1.1 402 Payment Required (Score:2)
ERROR 404. Your have not met the required funds to view this page.
The HTTP RFC [w3.org] actually specifies such an error code: HTTP/1.1 402 Payment Required
Re:klingon. (Score:2)
Re:klingon. (Score:2)
Re:klingon. (Score:2)
If you look for "Klingon Programmer" on google you can see thousands of pages of the same thing over and over.
Klingon Response (Score:2)
Virg
P.S. Although the Klingon people are a fictitious entity, the Klingon language is not. It was originally assembled into a partial vocabulary by a fellow whose name escapes me, which has since then grown into a moderately usable language, much in the stripe of J.R.R. Tolkein's Elvish tongue.
This Is Wonderful (Score:5, Funny)
Cheers,
Tim
Re:This Is Wonderful (Score:2)
-Restil
Problem's with the language (Score:3, Funny)
"It turns out Klingons have no function to save().
So in adapting the language we simply used:
stop(kill())
which imparts almost the same meaning but remains true to the fundamentals of the beautiful nature of the language which is Klingon. Bj'nrak!!!"
fuckwits.
Cautionary warning! (Score:4, Funny)
Just a warning...
...It'll be hard to explain to your boss.
:)
On Geekdom (Score:2, Insightful)
But I won't. Instead, I will remind people that those who laugh at, say, a Klingon computer language, and then, go back to work on making Linux work on their Atari 2600, ought to reconsider their opinion.
Kind of pointless (Score:2, Interesting)
They have one of the few "slashdot effect defense systems" that actually works. It goes something like this:
The web site you are trying to access has exceeded its allocated data transfer.
And puhleeese don't try to tell me a link to the Google cache is an acceptable mirror. It's not. Maybe if it altered all of the links to *also* point to the google cache it would amost be acceptable. I have a feeling the nice google people don't do that for exactly that reason -- they don't wanna be a free mirror whore.
"News for Nerds"? Any "nerd" who still uses geocities....
"Stuff that Matters"? If it's hosted on geocities, it probably doesn't matter. If it mattered, it would be hosted somewhere where everybody could see it on a consistent basis!
Re:Kind of pointless (Score:2, Informative)
http://web.archive.org/web/*/http://www.geocities
It "fixes" most of the links (a few still sometimes point back to the original site, but often or not a refresh will fix that)
OS and Hardware (Score:5, Funny)
Well, the operating system would be called 'Klingux' and would incorporate pre-emptive strike multi-tasking.
The hardware would obviously be a box with lots of blinking lights on it.
Re:OS and Hardware: What OS??? (Score:2)
Any OS they would want would be strictly limited in scope like an I/O executive a file system and a simple CLI.
Any system would run one application only, and extremely well. The GUI would be part of the application and touch screens whould be used for inputs. Mice would be banned due to being thrown across the room and destroyed by bad-tempered users.
Think of the way that our Military use/abuse computers in the field. I guess that is the way Klingons would want to work.
Re:OS and Hardware: What OS??? (Score:2)
Re:OS and Hardware: What OS??? (Score:2)
Re:OS and Hardware: What OS??? (Score:2)
P.S. I am not making this up.
Re:OS and Hardware: What OS??? (Score:2)
Re:OS and Hardware (Score:2, Funny)
Actually, that's GNU/Klingux.
Re:OS and Hardware (Score:2)
Ooh ooh ooh ooh! If there is an artist out there, *please* start working on a k'Tux logo!
Clean room?? (Score:2)
Re:I hate to get serious about this... (Score:2)
Use this post to line up for downloading. (Score:2, Funny)
therefore I propose that everyone who wants to
read the links picks a time (GMT) with 5-minute intervals when they want to use the links and puts it in a reply to this post to avoid that multiple slashdot users try to access geocites at once.
I pick 15.00.
Re:Use this post to line up for downloading. (Score:2)
Dealing with the cheaters would be a problem though.
Slashdot: "Your assigned timeslot is 02:45 GMT, August 22, 2028."
User: "Aw, screw this..."
The impossibility of Klingons (Score:3, Insightful)
The Federation would have had these guys for lunch in a heartbeat.
Not Necessarily (Score:3)
The Klingons actually do have a source of technicians and scientists. This is the female of the species. Smaller and weaker than her male counterpart, she is however often more intelligent, and almost always better educated (by our standards.) Roles without sufficient honour for the men, scientific and technical positions in particular, are reserved for them. The advances of Klingon women, supplemented by the technological gains achieved by conquering more advanced, but less canny and battleworthy races, is responsible for their ability to compete.
Not in a million years (Score:2)
Ok, you say that Klingon women who are weaker and therefore not able to do 'honorable' things much are responsible for Klingon advancement? Who builds the ships?
Would a great and honorable warrior lift a finger to implement the specs of a designed they do not see as an equal? Really.. If someone you look down upon told you what to do, how would you react?
Certainly a strong, honorable and enlightenned leader could require warriors to build according to their females design, but this would either:
a) Elevate the status of females to euqlly honorable to males, or
b) end with the death of the leader, probably premature, for the continual humiliation of honorable warriors by forcing them to do work they consider dishonorable.
The only alternative I see to all this, while still maintaining the intellectual role of the Klingon female, is slave labor.
Males fight and rule.. Females design.. Slaves implement the designs under guard of males. That's the only way it could work.. But, with the exception of prison camps (ST-VI) we've not seen Klingons as keeping slaves.
If slaves were used to such a degree as to build cities, space ships, power plants and so forth, they would necessarily be an integral part of the Klingon culture. They are not.
Re:The impossibility of Klingons (Score:2)
Oh wait, you mean the Mongols also had that kind of empire and they ruled a good part of Asia and Europe for over 200 years? Hmm, maybe the Klingon empire is not so far-fetched...
Geocities's Business Model (Score:2, Insightful)
"The web site you are trying to access has exceeded its allocated data transfer."
Anyone else missing something here? Or is it just me?
Re:Geocities's Business Model (Score:2)
What do you see under "The web site you are trying to access has exceeded its allocated data transfer.""The web site you are trying to access has exceeded its allocated data transfer."? An ad, of course!
(At least I presume it's an ad. I don't actually see anything myself except an eDexter placeholder, since I have Yahoo's image server blocked in my hosts file...
DennyK
The depressing part is... (Score:3, Interesting)
Basic info (Score:4, Interesting)
* I heard something about a "Klingon Forth". Is this it? And why isn't it called loSDIch?
Yes, in a way. It's a stack-based RPN language like Forth or PostScript; the reason for this has nothing to do with an original desire to emulate one of those languages, but simply the unusual object-verb-subject syntax of Klingon. This sort of dictated the required form of the language right up front, ruling out a more traditional ALGOL-like syntax (based on English). Stack-based languages are actually easier to parse anyway, especially in Perl: just chomp and process. It is also an impure functional language in the same vein as Lisp or ML; it supports local variables, but it is really intended to do everything off the stack.
As for calling it loSDIch (Klingon for fourth), that would be an obvious joke title to anyone who actually spoke Klingon; this being at least a semi-serious exercise in artificial culture development, such a title would be noticeably silly at best. var'aq is actually completely meaningless, though it suggests identification with a famous Klingon mathematician or computer scientist in sort of the same way as Pascal recalls Blaise Pascal or Ada recalls Ada Lovelace. In any case, the name var'aq came before the form of the language. (In any case, var'aq is based more directly on PostScript anyway. But they're all part of the same family.)
[...]
In terms of genetics, var'aq is the bastard child of a back-room tryst between PostScript and Lisp after a Star Trek convention.
[...]
* Why doesn't this construct translate to its PostScript/Forth equivalent?
The question is one of verisimilitude. The likelihood of a Klingon concept being an exact translation of its English equivalent isn't always good. Consequently, pure translation of an Earth language might make for a cute joke, but it would sacrifice plausibility. A prime example is the qaw/qawHa' instructions, which perform the same function as PostScript's mark/cleartomark instructions but literally translate to remember/forget; the idea is that the metaphor chosen in Klingon might more reflect the purpose of marking the stack than the actual act. Incidentally, It's quite true that many of the idioms chosen for var'aq are anything but obvious. This is the reason why; though mathematics is considered universal, it's not too likely that everything would be described in the same way. (That said, I did cheat in a few places; for example, the word for logarithm is a direct translation from the Greek logarithmos, meaning roughly "logic-number".)
For a rather thorough and creative discussion on the issues involved in translation, you might wish to look at Le ton beau de Marot by Douglas Hofstadter (the author of the hacker classic Goedel, Escher, Bach: An Eternal Golden Braid), an intricate and well-written look at the pitfalls of translation between languages.
Observation... (Score:2, Interesting)
Warrior Design Patterns (Score:2, Funny)
Help needed: Finding the legendary "ebonics C++" (Score:2)
I have searched in vain for this on the net... that was in '95. Does anyone have information on ebonics C?
:)
Re:Help needed: Finding the legendary "ebonics C++ (Score:2)
Get off Geocities...I would be happy to host you. (Score:2)
Need place to put you site and get away from eveil geocities...contact me.
"You made up a language based on a TV show..." (Score:2)
spoken by 'Cave Guy' aka 'Royce '
from the cartoon 'Freakazoid'
(quote approximate)
Not only are we making up a language based on a TV show, we're making up a computer programming language based on that.
var'aq (Score:3, Interesting)
Anyhow, the interesting thing about var'aq is that because it runs on Perl, it's pretty ubiquitous meaning that if you really hate your job and feel the need for revenge, just go rewrite the production administration scripts in var'aq and then quit.
Re:var'aq (Score:3, Informative)
You can get a similar effect by translating your scripts to use a source filter such as Lingua::Romana::Perligata [cpan.org] or the newer Lingua::Sinica::PerlYuYan [cpan.org]. Read Perl in the original Latin or Middle Chinese!
Re:var'aq (Score:2)
Contract back at 250 an hour, take 2 years to fixit and rub your boss nose in your new sportscar.
Klingon Programs (Score:2)
Oh My God... (Score:2)
The site has exceeded it's data limit, according to GeoCities!
PUNY HUMAN SITE (Score:2)
It has dishonored itself by crashing after just a few puny connections!
I would like to preface this by saying, yes, I know Klingons are fictional.
Consider, the only contact Terrans have had with Klingons is confrontational. Naturally are perspective of them is scued. The must be technical side of there culture and it has to have less confrontational means of imparting information. Other wise it would look something like this
"The compiler would optimize your code if you did this instead"
"How dare you insult my programming skills, we must battle to the death!"
Not the best way to get ahead.
OTOH it must be nice being able to challenge spammer to the death!
Klingon computing: i18n (Score:2)
I did not find a lot of useful responses on the tlhIngan-Hol mailinglist [kli.org] of the Klingon Language Institute [kli.org], but perhaps this is the right place (and time) to ask.
Please decipher my e-mail address and contact me if you're interested.
Warriors do not submit to anti-trust legislation (Score:2)
Vulcan programming language (Score:2)
A small http client written in SPOCK (Simple Programming-Oriented Computer Kode [yes, Vulcans use KDE
server=mindmeld(127.0.0.1:80);
if(server.type==Human)
server.send("rm -rf emotions");
if(server.state==illogical)
eyebrow->raise();
think("GET / HTTP/1.1\nHost: 127.0.0.1\n\n");
Release. (Score:3, Redundant)
"What is this talk of 'release'? Klingons do not make software 'releases'. Our software 'escapes,' leaving a bloody trail of designers and quality assurance people in its wake."
kapla" [technophile.org]
Re:Mirroring... (Score:2)
<META NAME="PleaseDon'tLinkToMeIfYourDailyHitRateIsAbov
=)
(incidentally, banning particular referrers at the server isn't enough, as the incoming connections would be enough to slashdot a server. It'd have to be done in the Slashdot submission script)
It's not slashdotted... ; ) (Score:3, Funny)
Jon Acheson
Re:Klingon Programmers (Score:2)
Base 3.... (Score:2)
We should all use Base 3. Maybe....
.