Thread: The world is coming to an end.

  1. #1
    Registered User NeonBlack's Avatar
    Join Date
    Nov 2007
    Posts
    431

    The world is coming to an end.

    http://lolcode.com/

    The scary thing is that there's even a working compiler for this.

  2. #2
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,195
    took me 30 seconds to spot the first bug in one of their examples

    Code:
    HAI
    CAN HAS STDIO?
    I HAS A VAR
    GIMMEH VAR
    IZ VAR BIGGER THAN 10?
        YARLY
            BTW this is true
            VISIBLE "BIG NUMBER!"
        NOWAI
            BTW this is false
            VISIBLE "LITTLE NUMBER!"
        KTHX
    KTHXBYE
    is either a bug that would print both big number and littel number in teh case of a buig number, or else they are not specifying that a new case implies KTHX for the previous case.

    so the code shoudl be
    Code:
    HAI
    CAN HAS STDIO?
    I HAS A VAR
    GIMMEH VAR
    IZ VAR BIGGER THAN 10?
        YARLY
            BTW this is true
            VISIBLE "BIG NUMBER!"
        KTHX
        NOWAI
            BTW this is false
            VISIBLE "LITTLE NUMBER!"
        KTHX
    KTHXBYE
    yay I just picked up a new language LOLXORZIHAVEALAZERGUNPEWPEW

  3. #3
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158
    shame shame shame

  4. #4
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158
    Actually, I think someone already mentioned this a while ago.

  5. #5
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    Quote Originally Posted by abachler View Post
    took me 30 seconds to spot the first bug in one of their examples

    [...]

    is either a bug that would print both big number and littel number in teh case of a buig number, or else they are not specifying that a new case implies KTHX for the previous case.
    What are you talking about? It's the equivalent of an if-else statement, not a switch.
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  6. #6
    The superhaterodyne twomers's Avatar
    Join Date
    Dec 2005
    Location
    Ireland
    Posts
    2,273
    The fact that there's a lolcode for dummies enhances the viciousness of circle.

  7. #7
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,079
    I don't like that N is an operator. I frequently use it as a looping variable, myself.
    Sent from my iPad®

  8. #8
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  9. #9
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    Actually, I think someone already mentioned this a while ago.
    Doubtful . . . the only two threads that turn up when you search the boards for "lolcode" are this current one and this one: http://cboard.cprogramming.com/showthread.php?t=91127

    Although it's not about the programming language lolcode, it's still rather amusing.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  10. #10
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    That has to be the dumbest language I've seen. I almost like VB more than lolcode.

  11. #11
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    At least the Shakespeare language as got some style about it
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  12. #12
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901
    Now cats can program.

  13. #13
    The Right Honourable psychopath's Avatar
    Join Date
    Mar 2004
    Location
    Where circles begin.
    Posts
    1,071
    Quote Originally Posted by indigo0086
    Now cats can program.
    As well as dogs, and the occasional hampster.
    M.Eng Computer Engineering Candidate
    B.Sc Computer Science

    Robotics and graphics enthusiast.

  14. #14
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    >hampster
    hamster.

    Not to mention ants! Teamwork all the way!
    Give me enough ants, and I can program that computer!
    http://thinkexist.com/quotation/give...on/220792.html
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  15. #15
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,195
    Quote Originally Posted by Sang-drax View Post
    What are you talking about? It's the equivalent of an if-else statement, not a switch.
    Then perhaps its a deficiency in the specification, becasue there is no terminator for the YARLY(TRUE) condition. In C this is explicitly done by both the endign bracket } and the subsequent else keyword. As I said, the NOWAI keyword may in fact be used as the terminator, but this behavior is not specified.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. help! Placement of nodes in a Linked List
    By lostmyshadow in forum C Programming
    Replies: 6
    Last Post: 12-17-2007, 01:21 PM
  2. The 7 New Wonders of the World
    By Mario F. in forum A Brief History of Cprogramming.com
    Replies: 36
    Last Post: 12-08-2006, 01:55 PM
  3. singly linked to doubly linked
    By jsbeckton in forum C Programming
    Replies: 10
    Last Post: 11-06-2005, 07:47 PM
  4. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  5. Religious Bull****
    By Witch_King in forum A Brief History of Cprogramming.com
    Replies: 119
    Last Post: 10-23-2001, 07:14 AM