Friday, October 5, 2012

OMGROFL!!



(this post is still being edited)


                                                                         1. A little about the language  
             
Omgrofl is an esoteric programming language 
created in 2006 by Juraj Borza.

                                    An esoteric programming language ( sometimes  shortened to  esolang ) is a computer programming language designed either as a test of the  boundaries of programming language design, to experiment with weird  ideas or simply as a joke, rather than for practical reasons. There is usually no intention of the language being adopted for real-world programming. Such languages are often popular among hackers and hobbyists.

       
Omgrofl is equipped with a stack/queue, has support for
byte-sized variables  and keywords resembling Internet slang. 
The name comes from combining the slang "words" omg and rofl
Rofl is actually one of Omgrofl's commands.



Juraj Borza

      2. A little about the creator 



Juraj Borza is an esoteric programming language enthusiast in Bratislava Slovakia.      

 He has made two programming languages namely Omgrofl and  ReverseF*ck

                                

            

                                                                 3. More about the language 


       Variables in Omgrofl must be a form of 
         the slang word lol, like lol, lool, loool, looool, etc.
                       
                               example:    lol iz 9 ( lol = 9 )


     wtf condition is a conditional statement (like if in C). The statements until the matching brb are executed only if the condition is true.

                               example:   lol iz 1                  ( lol = 1 )
                                      wtf lol iz liek 1    ( if lol == 1 )
                                      rofl lol                ( print lol)
                                      lmao lol                ( lol++)
                                      brb                    ( end of if statement )



      Possible conditions are:
                        iz uber – checks if one expression is greater than another.
                        iz liek – checks if two expressions are equal.
                                  example:    x iz uber y ( if x !>  y )

            These may be modified by:
                        nope – negation (like ! in C) – needs to be placed
                                                    in front of liek or uber.
                                example:    x iz nope uber y ( if x !>  y )
                                       lol iz nope liek 8 (if  lol !=  8 )


             rtfm – begins a loop.
          The statements between rtfm and the matching brb are repeated indefinitely.  
          Thus, a loop must be  broken with tldr.

                        example:    rtfm       (start of loop )
                lol iz 64  ( lol = 64)  
                rofl lol       ( print lol)
                brb      (end of loop )


                MORE  INSTRUCTION  STATEMENTS:

               I/O

              stfw x – reads a value into x. A byte character is read from 
                                                           standard input, and its     value is stored into x.
              rofl x – prints out the value of x as a byte character. 


            Stack/Queue

                             The stack/queue is one data structure that acts as a stack and a queue
                                    simultaneously, aka. an input-restricted (as there is no way to push to the
                                      back of the queue) deque.
             
             n00b x – pushes x onto the stack / enqueues x.
             l33t x – pops a value from the stack and stores it into x. If the stack/queue is empty, 
                                               0 is  stored into x.
             haxor x - dequeues a value. If the stack/queue is empty, 0 is stored into x.

          Misc

            stfu – exits application immediately. It is unnecessary at the end of the program, use it 
                       only when you want to terminate the execution of the program in another place                           (like exit in C.)
          
             brb – serves as end in Pascal, } in C. See wtf or rtfm.
             afk x – pauses the program execution for x milliseconds.

                             w00t – starts a comment, characters after w00t until the end of the line
                                                       are treated as a comment (like // in C).
  

            Variable manipulation

             lmao x – increments x by one.
             roflmao x – decrements value of x by one.
                             x to /dev/null – clears x.

                 

     4. Sample Codes 

Hello, World!

w00t a Hello, World! program by poiuy_qwert
lol iz 72
rofl lol
lol iz 101
rofl lol
lol iz 108
rofl lol
rofl lol
lool iz 111
rofl lool
loool iz 44
rofl loool
loool iz 32
rofl loool
loool iz 87
rofl loool
rofl lool
lool iz 114
rofl lool
rofl lol
lol iz 100
rofl lol
lol iz 33
rofl lol
stfu



Addition of two numbers

Only a code snippet:
  • lol is the first number (addend).
  • lool is the second number (addend).
  • We want to add these two numbers together and store the result in loool without losing the values of lol and lool.
loool iz lol
looooool iz lool
rtfm
 wtf looooool iz liek 0 
  tldr
 brb
 lmao loool
 roflmao looooool
brb
The same code in C:
loool = lol;
looooool = lool;
while (true)
{
 if (looooool == 0)
  break;
 loool++;
 looooool--;
}
                                                                                           
 references:

 Chino M. del Mundo
 2010-19943
 T-5L

1 comment:

  1. To whom it may concern,
    Re: The Struggle of the Disabled
    In recent years, I participate in the struggle of the disabled in the State of Israel, a struggle that was significantly covered by the media. But it is a well-known fact that there are delays, slow turning of the cogs, neglection and evasion by the State of Israel toward the crisis of the disabled.
    This attitude is being carried on for many years, and every authority to which I address replies with the usual phrasing “it has nothing to do with us”, or its twin – “we are not the correct address for this.” Of course there are many cases in which no reply is provided at all, or many cases in which the disabled receives aggressive or threatening replies – for no good reason – and that I personally had to deal with it innumerous times in the past.
    To cut short: Today, this issue is not related to any specific person, nobody cares, and the disabled that continue to die in the streets do not bother or occupy the State of Israel.
    With this saddening understanding of reality, I approach many entities outside of Israel – different international organizations and private people, some of I reach on a random basis. This addressing has two goals: inviting external pressure on the decision makers in Israel to start taking the crisis of the disabled more seriously, and also an attempt to examine the potential for this or that cooperation between organizations for the disabled in Israel and other countries in order to improve the life of the disabled communities worldwide. My question for you is this: Do you know or are you familiar with such entities that might assist in this kind of activity?
    Best Regards,
    Assaf Binyamini
    115 Costa Rica St.
    Entrance A, Apt. 4,
    Kiryat Menachem
    Jerusalem, Zip Code 9662592
    Phone Numbers:
    Home 972-2-6427757
    Mobile 972-52-4575172
    Fax 972-77-2700076.]

    P.S.
    1) My ID No. – 029547403
    2) My emails:
    029547403@walla.co.il
    or, a815962@gmail.com
    or, hgf32urkw@gmail.com
    or, assaf197254@yahoo.co.il
    or, ass.benyamnini@yandex.com
    or, assaf46@outlook.com

    3) The therapeutic framework in which I am to be found:
    Reut Association – Avivit Hostel
    6 Avivit St.
    Kiryat Menachem
    Jerusalem, Zip Code 9650816
    Phone numbers of the hostel office:
    972-2-6432551 or 972-2-6428351
    Email address of the Social Worker that accompany me in the hostel’s assisted living:
    talotan39@gmail.com
    The hostel’s email:
    Avivit6@barak.net.il

    4) The Avivit Hostel’s Social Worker, on our meeting from Tuesday 12.12.2017 at 13:30 forbade me on providing any details on her and/or the other workers at the Avivit Hostel or Reut Association.

    5) The family doctor that supervises me is:
    Dr. Michael Halev
    Clalit Health Services – Borochov Clinic
    62 Borochov St.
    Kiryat Yovel
    Jerusalem, Zip Code 9678150.

    The phone number at the office of the medical clinic: 972-2-6440777.
    The fax number at the office of the medical clinic: 972-2-6439217.

    6) The psychiatrist that supervises me:
    Dr. Abadath Assad
    The Arye Yarus Jerusalem Mental Health Center
    Talpiot Mental Health Center – South Jerusalem,
    31 Shalom Yehuda St.
    Talpiot
    Jerusalem, Zip Code 9432646.

    Phone numbers at the health center offices:
    972-2-6721531 or: 972-2-6721579 or: 972-2-6721569.
    Fax number at the health center offices:
    972-2-6738199.

    7) Further personal details:
    Age: 46
    Familial status: Single.
    Birth date: 11.11.1972.
    8)Here is a link to my instagram account: https://www.instagram.com/assaf197254/
    9)Here is a link to my facebook account: https://www.facebook.com/profile.php?id=100012659225787


    ReplyDelete