Hello World!

New? Introduce yourself here.
User avatar
charlou
arseist
Posts: 32527
Joined: Thu Jun 28, 2012 2:36 am

Re: Hello World!

Post by charlou » Tue Jul 14, 2009 9:54 am

Guy_Montag wrote:
Psi Wavefunction wrote:And OMFG, 42 posts in and not a single mention of NSFW yet? :think:
Yeah, if anyone wants to PM me the password... :biggrin:
PM sent. ;)
no fences

User avatar
FBM
Ratz' first Gritizen.
Posts: 45327
Joined: Fri Mar 27, 2009 12:43 pm
About me: Skeptic. "Because it does not contend
It is therefore beyond reproach"
Contact:

Re: Hello World!

Post by FBM » Tue Jul 14, 2009 9:54 am

Pappa wrote:

Code: Select all

// Hello World in C
 main() {
        printf("hello world");
 }

Code: Select all

<?php
  // Hello World in PHP
  echo 'Hello World!';
?>

Code: Select all

<!-- Hello World in ASP.NET -->
<%= "Hello World!" %>

Code: Select all

10 REM Hello World in BASIC
20 PRINT "Hello World!"

Code: Select all

// Hello World in C++ (pre-ISO)

#include <iostream.h>

main()
{
    cout << "Hello World!" << endl;
    return 0;
}

Code: Select all

C     Hello World in Fortran

      PROGRAM HELLO
      WRITE (*,100)
      STOP
  100 FORMAT (' Hello World! ' /)
      END

Code: Select all

;;; Hello World in Common Lisp

(defun helloworld ()
  (print "Hello World!")
)

Code: Select all

MODULE (HELLO);
/* Hello World in PEARL (Process and Experiment Automation Realtime Language) */
  SYSTEM;
   TERMINAL:DIS<->SDVLS(2);
  PROBLEM;
   SPC TERMINAL DATION INOUT
         ALPHIC DIM(,) TFU MAX
         FORWARD CONTROL (ALL);
   MAIN:TASK;
     DCL TEXT INV CHAR(30)
          INIT('HELLO WORLD!');
    OPEN TERMINAL;
    PUT TEXT TO TERMINAL;
    CLOSE TERMINAL;
   END;
MODEND;

Code: Select all

/* Hello World in Objective-C.
** Since the standard implementation is identical to K&R C,
** a version that says hello to a set of people passed on
** the command line is shown here.
*/

#include <stdio.h>
#include <objpak.h>
int main(int argc,char **argv)
{
    id set = [Set new];
    argv++;while (--argc) [set add:[String str:*argv++]];
    [set do:{ :each | printf("hello, %s!\n",[each str]); }];
    return 0;
}

Code: Select all

Hello World in BrainFuck. No comment character exists.

++++++++++[>+++++++>++++++++++>+++<<<-]>++.>+.+++++++
..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.


I was just about to post the same thing, but you beat me to it. :lay:
"A philosopher is a blind man in a dark room looking for a black cat that isn't there. A theologian is the man who finds it." ~ H. L. Mencken

"We ain't a sharp species. We kill each other over arguments about what happens when you die, then fail to see the fucking irony in that."

"It is useless for the sheep to pass resolutions in favor of vegetarianism while the wolf remains of a different opinion."

User avatar
Pappa
Non-Practicing Anarchist
Non-Practicing Anarchist
Posts: 56488
Joined: Wed Feb 18, 2009 10:42 am
About me: I am sacrificing a turnip as I type.
Location: Le sud du Pays de Galles.
Contact:

Re: Hello World!

Post by Pappa » Tue Jul 14, 2009 10:32 am

FBM wrote:I was just about to post the same thing, but you beat me to it. :lay:
Why the hell did it takes us 3 pages to think of it? :hehe:
For information on ways to help support Rationalia financially, see our funding page.


When the aliens do come, everything we once thought was cool will then make us ashamed.

User avatar
FBM
Ratz' first Gritizen.
Posts: 45327
Joined: Fri Mar 27, 2009 12:43 pm
About me: Skeptic. "Because it does not contend
It is therefore beyond reproach"
Contact:

Re: Hello World!

Post by FBM » Tue Jul 14, 2009 10:34 am

Pappa wrote:
FBM wrote:I was just about to post the same thing, but you beat me to it. :lay:
Why the hell did it takes us 3 pages to think of it? :hehe:
:oops: I just made that up. I didn't even put the 'hello world' part together with the thread title until just now... :shifty: I thought you'd posted something by accident... :biggrin:
"A philosopher is a blind man in a dark room looking for a black cat that isn't there. A theologian is the man who finds it." ~ H. L. Mencken

"We ain't a sharp species. We kill each other over arguments about what happens when you die, then fail to see the fucking irony in that."

"It is useless for the sheep to pass resolutions in favor of vegetarianism while the wolf remains of a different opinion."

User avatar
Guy_Montag
Forum fuckwit
Posts: 68
Joined: Fri Jul 10, 2009 2:43 pm
Location: North-East England
Contact:

Re: Hello World!

Post by Guy_Montag » Tue Jul 14, 2009 10:35 am

Just had to google Brainfuck - what great language!

User avatar
Pappa
Non-Practicing Anarchist
Non-Practicing Anarchist
Posts: 56488
Joined: Wed Feb 18, 2009 10:42 am
About me: I am sacrificing a turnip as I type.
Location: Le sud du Pays de Galles.
Contact:

Re: Hello World!

Post by Pappa » Tue Jul 14, 2009 10:46 am

Guy_Montag wrote:Just had to google Brainfuck - what great language!
Yeah, there's a whole Wikipedia category on esoteric programming languages... it's worth a read. :biggrin:

Here's a goodun:

http://en.wikipedia.org/wiki/LOLCODE
For information on ways to help support Rationalia financially, see our funding page.


When the aliens do come, everything we once thought was cool will then make us ashamed.

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests