Slashdot Mirror


A Warrior's Programming Language

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."

17 of 298 comments (clear)

  1. There are many more esoteric programming languages by J.D.+Hogg · · Score: 5, Interesting
    My all-time favorite is Chef, which uses food recipes to create functional programs. Check out the Hello World souffle :-)

    If you're into esoteric languages, the reference page is the Cat's Eyes page.

  2. Real Warriors by Kopretinka · · Score: 5, Funny
    Real warriors code using the command

    cat > prog.tgz

    --
    Yesterday was the time to do it right. Are we having a REVOLUTION yet?
    1. Re:Real Warriors by geggibus · · Score: 5, Funny

      Speak for yourself!.. personally i boot with a ramdisk and begin:
      cat > /dev/hda
      ;)

      /K

  3. What do humans know about Klingons, anyway? by wormyguy1 · · Score: 5, Funny

    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. How the hell does this guy know that there isn't a famous Klingon computer scientist or mathematician? I'd like to see some credentials here, buddy! "Damnit Jim, I'm a doctor, not a programmer!" Suffice to say, this guy is a bigger geek than I could ever hope to be.

    --
    NerfOnline - Because Nerf Guns aren't just for kids -
    1. Re:What do humans know about Klingons, anyway? by ameoba · · Score: 5, Funny

      What do humans know about Klingons? Well... we -did- invent them.

      --
      my sig's at the bottom of the page.
  4. karma whoring by einstein · · Score: 5, Informative

    google's cache of the site
    you're welcome
    ---

  5. Not a real language by DoorFrame · · Score: 5, Interesting

    When I saw this two or three weeks ago at first I was kind of excited about it... the last link I followed implied that it was a finished language. I thought that was hysterical, a programming language written in Klingon! How nerdy can you get.

    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.

  6. Karma whoring... by wormyguy1 · · Score: 4, Informative

    Here's what part of the page I could get before Geoshitties killed it...

    -------

    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:62oDEag2flo C: www.geocities.com/connorbd/varaq/+&hl=en

    --
    NerfOnline - Because Nerf Guns aren't just for kids -
  7. confusing by 0123456789 · · Score: 4, Funny

    Like Perl wasn't confusing enough....

  8. klingon. by buckrogers · · Score: 5, Funny

    This is an interesting question. What kind of programming languages will a klingon develop. But I think that I want to examine the character of a klingon programmer (from the internet, original attribution lost):

    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!

    --
    -- Never make a general statement.
  9. This Is Wonderful by Tim+C · · Score: 5, Funny

    Every time I fear I may be in danger of becoming too geeky, someone somewhere demonstrates that I have absolutely nothing to worry about ;-)

    Cheers,

    Tim

  10. Cautionary warning! by Nathdot · · Score: 4, Funny

    Never trust any source of programming information that has a high likelihood of close proximity to badly photoshopped vulcan porn.

    Just a warning...

    ...It'll be hard to explain to your boss.

    :)

  11. OS and Hardware by Bazman · · Score: 5, Funny
    Surely software design is greatly influenced by hardware and operating system design. So what would these be like on the Klingon homeworld?


    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.

  12. Ferengi? by hughk · · Score: 5, Funny
    Actually, I like the idea of point 16:

    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:

    1. Builtin transaction orientated database
    2. Data hiding
    3. Ability to maintain several sets of books in parallel
    4. Ability to charge an automatic percentage of any calculation made

    Note that any Ferengi Computer would feature price negotiated scheduling and routing.

    Any other suggestions?

    --
    See my journal, I write things there
  13. Basic info by Alien54 · · Score: 4, Interesting
    from the FAQ:

    * 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.

    --
    "It is a greater offense to steal men's labor, than their clothes"
  14. Re:There are many more esoteric programming langua by rar · · Score: 5, Funny

    Now, if there is a recipe doing de-css in the program language 'Chef'...
    ... 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"...

  15. editors of slashdot. by gimpboy · · Score: 5, Insightful

    do you think it would be possible to post links to google cache in the main story? i'm sure the owners of the web sites would prefer it. what would it take to be a little more responsible and try to avoid squashing the little guys that provide your content? it must be nice to have so much bandwith that you loose perspective and forget that the rest of the world does not.

    --
    -- john