1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

"Hello World" in programming languages

Discussion in 'C, C++, C#' started by NetCrime, Mar 14, 2014.

  1. NetCrime

    NetCrime Regular Member

    Joined:
    Mar 9, 2011
    Messages:
    236
    Likes Received:
    103
    Location:
    Lithuania
    Hey,

    Today I was checking this wikipedia LIST on how to write "hello world" program in variuos programming languages and I found lots of "interesting" languages for example in BRAINFUCK programing language to write "hello world" you will have to write this code:

    Code:
    [COLOR=#006600][FONT=monospace]+++++[/FONT][/COLOR][COLOR=#006600][FONT=monospace]+++++[/FONT][/COLOR][COLOR=#666666][FONT=monospace][I]             initialize counter (cell #0) to 10[/I][/FONT][/COLOR][COLOR=#660000][[/COLOR][COLOR=#666666][I]                       use loop to set the next four cells to 70/100/30/10/40[/I][/COLOR]
        [COLOR=#000066]>[/COLOR] [COLOR=#006600]+++++[/COLOR] [COLOR=#006600]++[/COLOR][COLOR=#666666][I]              add  7 to cell #1[/I][/COLOR]
        [COLOR=#000066]>[/COLOR] [COLOR=#006600]+++++[/COLOR] [COLOR=#006600]+++++[/COLOR][COLOR=#666666][I]           add 10 to cell #2 [/I][/COLOR]
        [COLOR=#000066]>[/COLOR] [COLOR=#006600]+++[/COLOR][COLOR=#666666][I]                   add  3 to cell #3[/I][/COLOR]
        [COLOR=#000066]>[/COLOR] [COLOR=#006600]+[/COLOR][COLOR=#666666][I]                     add  1 to cell #4[/I][/COLOR]
        [COLOR=#000066]>[/COLOR] [COLOR=#006600]++++[/COLOR][COLOR=#666666][I]                  add 4 to cell #5[/I][/COLOR]
        [COLOR=#000066]<<<<<[/COLOR] [COLOR=#006600]-[/COLOR][COLOR=#666666][I]                  decrement counter (cell #0)[/I][/COLOR]
    [COLOR=#660000]][/COLOR]                   
    [COLOR=#000066]>[/COLOR] [COLOR=#006600]++[/COLOR] [COLOR=#666600].[/COLOR][COLOR=#666666][I]                  print 'H'[/I][/COLOR]
    [COLOR=#000066]>[/COLOR] [COLOR=#006600]+[/COLOR] [COLOR=#666600].[/COLOR][COLOR=#666666][I]                   print 'e'[/I][/COLOR]
    [COLOR=#006600]+++++[/COLOR] [COLOR=#006600]++[/COLOR] [COLOR=#666600].[/COLOR][COLOR=#666666][I]              print 'l'[/I][/COLOR]
    [COLOR=#666600].[/COLOR][COLOR=#666666][I]                       print 'l'[/I][/COLOR]
    [COLOR=#006600]+++[/COLOR] [COLOR=#666600].[/COLOR][COLOR=#666666][I]                   print 'o'[/I][/COLOR]
    [COLOR=#000066]>>>[/COLOR] [COLOR=#006600]++++[/COLOR] [COLOR=#666600].[/COLOR][COLOR=#666666][I]              print '[/I][/COLOR][COLOR=#666600],[/COLOR][COLOR=#666666][I]'[/I][/COLOR]
    [COLOR=#000066]<<[/COLOR] [COLOR=#006600]++[/COLOR] [COLOR=#666600].[/COLOR][COLOR=#666666][I]                 print ' '[/I][/COLOR]
     
    [COLOR=#000066]<[/COLOR] [COLOR=#006600]+++++[/COLOR] [COLOR=#006600]+++[/COLOR] [COLOR=#666600].[/COLOR][COLOR=#666666][I]           print 'w'[/I][/COLOR]
     [COLOR=#006600]-----[/COLOR] [COLOR=#006600]---[/COLOR] [COLOR=#666600].[/COLOR][COLOR=#666666][I]            print 'o'[/I][/COLOR]
    [COLOR=#006600]+++[/COLOR] [COLOR=#666600].[/COLOR][COLOR=#666666][I]                   print 'r'[/I][/COLOR]
    [COLOR=#006600]-----[/COLOR] [COLOR=#006600]-[/COLOR] [COLOR=#666600].[/COLOR][COLOR=#666666][I]               print 'l'[/I][/COLOR]
    [COLOR=#006600]-----[/COLOR] [COLOR=#006600]---[/COLOR] [COLOR=#666600].[/COLOR][COLOR=#666666][I]             print 'd'[/I][/COLOR]
    [COLOR=#000066]>[/COLOR] [COLOR=#006600]+[/COLOR] [COLOR=#666600].[/COLOR][COLOR=#666666][I]                   print '!'[/I][/COLOR] [COLOR=#000066][FONT=monospace]>[/FONT][/COLOR][COLOR=#666600][FONT=monospace].[/FONT][/COLOR][COLOR=#666666][FONT=monospace][I]                     print '\n'[/I][/FONT][/COLOR]
    But my TOP pick is SUPERNOVA programing language. To write "Hello World" program in Supernova you will have to write this:

    Code:
    I want window and the window title is hello world.
    I would love to see somthing like scrapebox programmed in supernova language I imagine it would be somthing like this:

    Code:
    When I click this button go to google and get me my links. Bitch
     
    • Thanks Thanks x 1
  2. neutralhatter

    neutralhatter Jr. VIP Jr. VIP Premium Member

    Joined:
    Jun 23, 2010
    Messages:
    430
    Likes Received:
    330
    Supernova looks like it's a programming language on top of some .Net language. nice idea but it's probably a bit to early to have something like this working practically.... this will (imo) take several decades atleast to be usable....

    The thing with computer languages is that they are very explicit while human language is not necessarely so. When a group of people know context and have a similar background a sentence open for interpretation will be understood. Typos are one thing, but shaping sentences can also be done in several ways and we still understand people who don't speak at the same level of proficiency in a certain language. Interpretation is different for many humans, so there will always be some sort of learning barrier in order to program... so, fun project but currently there are better solutions.
     
    • Thanks Thanks x 1
  3. Tanckom

    Tanckom Power Member

    Joined:
    May 4, 2014
    Messages:
    570
    Likes Received:
    172
    Location:
    ☯ Karma ☯
    Home Page:
    String "hello world" ; ?
     
  4. leets

    leets Registered Member

    Joined:
    Jan 20, 2014
    Messages:
    98
    Likes Received:
    13
    cout<<"hello world";
    :D
     
  5. bluehatface

    bluehatface Regular Member

    Joined:
    Oct 19, 2013
    Messages:
    232
    Likes Received:
    98
    Location:
    Here
  6. selina88k

    selina88k Newbie

    Joined:
    May 12, 2015
    Messages:
    14
    Likes Received:
    0
    WindowsScriptHost
    VBScript:
    WScript.StdOut.WriteLine "Hello, World";


    JScript:
    WScript.StdOut.WriteLine("Hello, World");
     
  7. Repulsor

    Repulsor Power Member

    Joined:
    Jun 11, 2013
    Messages:
    712
    Likes Received:
    267
    Location:
    PHP Scripting ;)
    Code:
    <? echo "Hellow World"; 
    Not a good practise though.
     
  8. DrFreemna

    DrFreemna Registered Member

    Joined:
    May 1, 2015
    Messages:
    52
    Likes Received:
    8
    Occupation:
    Software developer
    Location:
    Serbia
    Tripple dash is a minimalist language that consists of only one operation.
    Code:
    / world! world!/Hello,/ world! world! world!
     
    Last edited: May 15, 2015