Slashdot Mirror


Quadrilingual Crazy Programming

mtve writes: "Have you ever seen source code that is valid on four languages: Perl, C, Befunge, and BrainF*ck? During last Perlgolf season famous Perl hacker Jérôme Quelin submit such inconceivable masterpiece and now he published expanded explanation of his solution. Caution: that text can hurt your mental health. Play Perlgolf!"

16 of 194 comments (clear)

  1. Now.. by Anonymous Coward · · Score: -1, Offtopic

    Now try getting it to compile with 0 C compiler warnings (!), Linux has trouble enough with that.

  2. Re:I concur. by Anonymous Coward · · Score: -1, Offtopic

    I walk up to them and shit all over their heads, coz they can't get up and hit me WAHAHAHAHAHAHhahahahahahahhahahahahahaAHAHAHAHHAHA HAA

    all THEY do IS FUCKING grunt SOMETHING AT ME, BECAUSE they ARE TOTALLY fucked UP IN THE head!!!

    I also piss in their mouths, and laugh at them!!!!!!!!!

  3. MOD PARENT UP by Anonymous Coward · · Score: -1, Offtopic

    Thats hillarious, and its not every day you see an on topic first post

  4. Windows XP supports multiple languages too by Anonymous Coward · · Score: -1, Offtopic

    Because all operating systems are written by programmers, I assume that any operating system is much smarter than me. Thus, any good operating system should try to outsmart me by restricting my options at every turn. Linux, like all versions of Unix, is lousy at restricting my options because at the command line virtually any operation can be performed with ease. (For example, 'rm -rf /win' could 'delete an entire mounted directory, with no popup window warnings whatsoever.)

    I'm proud to say that there is no such danger in XP. Windows pop up when I want to make a change, and then more pop up to ask if I'm sure I want the change. Thankfully, Windows XP looks after my computer's well-being by occasionally switching configuration settings from the way I want them to what the OS programmers think they might probably ought to be. Boy, I'm just impressed with how smart they are. Once I learned to live with whatever the default settings are on any new hardware I install, I can't say the number of hours I have saved.

    I use that spare time to reboot my Windows XP machine multiple times a day. Technical support personnel recommend that I do it regularly-- kind of like brushing my teeth. To help remind me of this necessity, windows pop up to tell me to reboot whenever I make a configuration change. By now my machine is minty fresh, I figure.

    There is no such useful rebooting in a Linux system. It is as reliable as the sunrise, with uptimes in weeks, months and years. Virtually no configuration change requires a reboot, to boot. Imagine all that plaque in the computer. Gross!

    In XP I am prevented from making dangerous fundamental configuration changes unless I use a special "registry editor". I have found it so useful to have this separate editor that I hope in future versions they go all the way and supply a separate editor for each file on the disk-- in that way windows could pop up at every keystroke to warn me that changing any line in the file I am editing could cause the system to not run properly. If this were only the case, people would finally learn that it is best to just stick with the mouse and they would be freed of the need to constantly move their hands back to the keyboard. (If one stops to think about it, the mouse is a much better device to use than the keyboard. Ever hear of someone getting carpal tunnel syndrome from a mouse? No. It's comfortable and ergonomic. Like Morse code devices. That's how long distance communication started, after all.)

    Linux, by contrast, requires no special editor to change configuration files. The fact that there is no "registry" in Linux allows the abomination of using any text editor whatsoever to do the configuration. Can you believe that configuration files are usually stored clear text? Talk about dangerous!

    I am also happy to report that I have experienced no truth to the rumor that Windows disks become corrupt after improper shutdowns. Indeed, I have been forced to improperly shutdown the machine innumerable times after it locks up, and I have no apparent problems to report regarding the disk. No such claim can be made for Linux. They say something about lack of data points. Excuses are all I ever seem to hear from the Linux crowd.

    By sheer size alone, Windows XP beats Linux hands down. It is so much bigger, it is _obvious_ that it is better. Why would you want a small OS with the large disks and RAM sizes we have these days? For this reason alone, I heartily recommend Windows as a way to maximize resource utilization. Your CPU and disk will constantly be pegged to the limit, the way god intended. The Linux kernel and drivers accounts for only about 750KB. Why, even the Microsoft Win16 subsystem uses more space than that.

    It is no surprise that Windows XP costs $300 on the retail market and Linux doesn't cost anything. People know what they want, and they want Windows XP. Because Linux is free, that means it's basically worthless. The same goes for all the development tools, remotable GUIs, and applications, which all cost money for Windows (i.e., are worth something) and free for Linux (worthless!).

    Installing software is very easy in Windows XP. I usually slip in CDs without even reading instructions or warnings, and just double click on whatever window pops up. There is no need to read anything or touch the keyboard. (Did I mention that I hate that thing?) Well, OK, I have learned the hard way the machine locks up if I don't take the time to close all other applications.

    Linux, by contrast, requires typing on the keyboard to get anything to install at all. And you always have to know the NAME of program you want to install. For example, in Slackware, you have to type "pkgtool" to install a program. Linux needs to get with the 21st century!

    Windows XP follows the DOS convention of putting \r\n at the end of every line of a text file. While this is only a mild concern because of the relative rarity of text files on Windows machines these days-- thank god--it helps to differentiate between the text files and the other files. Sadly, Linux makes no distinction between text and other files.

    If I legitimately purchase Windows XP, I can call Microsoft customer support to get help with my problems. After a short hold time of an hour or so, they always help me. Ever since I told them that I was dual booting to Linux, they were able to flag my account and now each time I call even the entry level support personnel I am connected to say that Linux is the source of my problems. Everyone seems to agree that Linux is no good. The more I listen, the more I'm impressed with the knowledge of the support staff there.

    By contrast, in Linux, all I have is stockpiles of resources and documentation that I would actually have to read in order to understand. Sure, I could obtain Linux support from a commercial organization, but they would probably just tell me I have to use a text editor to fix up my system.

    In the end, I have no need for that old computer donkey Unix. I don't need to run big Unix tasks, after all. I refuse to become one of those a bug-eyed computer users, that's for sure. As soon as I can keep Windows XP from crashing for long enough, I'm going to delete my Linux partition, i.e., the equivalent of moving it to the recycle bin, saying that I'm sure, emptying the recycle bin, and again saying that I'm sure I want to empty it.

  5. Re:I concur. by I.H.O.S.W.R.K. · · Score: -1, Offtopic

    I have done that, but once they get up and give you oral pleasure, you realize that the beautiful little retards are good for something after all...

    --
    /*
    **
    ** I.H.O.S.W.R.K.
    **
    */
  6. Re:Wow, but slight dilemma by Anonymous Coward · · Score: -1, Offtopic

    Jeeez....suck your mother's cock with that mouth?

  7. Re:simpler version by Anonymous Coward · · Score: -1, Offtopic

    almost funny, but just almost

  8. Sad day ... Stephen King dead by Anonymous Coward · · Score: -1, Offtopic


    Horror/Fiction writer Stephen King Dead
    Sat May 11,10:24 PM ET

    Freetown, Maine. (AP) - Stephen King, the notorious writer known as "Stevie Bananas" who ran one of the most powerful pulp fiction groups in the 1980s and '90s, has died. He was 45.

    AP Photo

    King, who retired to Maine in 1998 and had suffered from a variety of health problems in recent years, died Saturday of heart failure, said his attorney, Alfred "Skip" Donau.

    At the height of his fame, King directed one of the five original horror movies in Hollywood. The public knew him as "Stevie Bananas" -- a nickname he detested.

    By his own admission, he was a member of "the Commission," which acted as an organized crime board of directors in New York and other major U.S. cities. He denied engaging in such "unmanly" activities as narcotics trafficking or prostitution, though authorities said otherwise.

  9. Re:Can I pop your cherry? by Anonymous Coward · · Score: -1, Offtopic

    Yes. Yes, you can.

  10. my source code is valid in more languages by Anonymous Coward · · Score: -1, Offtopic

    //bla bla bla bla

    beat that

  11. Re:4 Languages? Whoopty doo. by rufusdufus · · Score: 1, Offtopic

    Netscape 4 rules! I am writing cross-browser dhtml, and ns 4 has one thing going it for it: it is fast! IE in any version has fewer bugs, and is fast enough. But NS 6.2 is THE WORST. It has so many bugs coding for it is like walking through a mine-field. And, to top that off, its 10 times slower at many DHTML tasks than version 4 was.

  12. BrainFuck by Anonymous Coward · · Score: -1, Offtopic

    BrainFuck code is almost as hard to understand as Perl!

  13. Re:No, you're the one on drugs by Anonymous Coward · · Score: -1, Offtopic

    That's why I post AC when I don't have time to fact check. :)

  14. pathological by Anonymous Coward · · Score: -1, Offtopic

    There are medical doctors that can help with this type of illness. I'm not a doctor, but I think Zyprexa or Paxil could help control these self-defeating and destuctive compulsions.

  15. Esperanto... by xRizen · · Score: 0, Offtopic

    ... is the name of the language, and I fail to see what it has to do with this article.

  16. too navy or not to navy? by K5+Diary+Update · · Score: -1, Offtopic

    ok here is the question. I have wanted to Fly (fighters, commerical planes ect..) ever since I was a little kid.

    And now i have to chance to go into the Navy and they say that I would have a very high chance of being able to go into flight school. Now i know many friends who have done this and the recruiters lied through their shiny teeth, however this guy sat down and showed me some proof that he ment what he said. I am still not sure if I want to do this, but it would be fun and exciting, getting paid to go all over the world and finishing up the last year of college while onboard the ship.

    some people may say "why not wait unitl you graduate?" and I shall tell you. The age cut off to join the program I want is in nine months long before I would finish my classes. Not to mention my GF is totally against this, but it has always been a dream on mine. What do you all think i should do about this?