[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
Hello World thread
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 38
Thread images: 4
File: ss (2015-10-15 at 10.27.42).png (77 KB, 977x794) Image search: [Google]
ss (2015-10-15 at 10.27.42).png
77 KB, 977x794
what's the best language to write the best "Hello World" program?

print "Hello World!"
>>
Any language that isn't retarded
>>
Hello, world!

It's H9+, and also a quine.
>>
>>54433624
MSIL.
>>
File: 138819901580.png (35 KB, 213x96) Image search: [Google]
138819901580.png
35 KB, 213x96
>>54433624

std::cout << "Hello World" << std::endl;
>>
>>54433874
Doesn't compile
>>
>>54433624
int main() { puts("Hello World!"); }
>>
>>54433624
Probably Python

print ("hello world")
>>
>>54433921
>choose python
>hello world takes 7 seconds to print
>>
>>54433624
>open terminal
>type
echo "Hello World"


can't get more effective than that
>>
puts
>>

public class Hello {
static class HelloWorldClass {
public HelloWorldClass(){}

public String getHelloWorld(){
String hello = "Hello";
String wordl = "World";
return "Hello World";
}

}

public static void main(String[] args){
HelloWorldClass helloWorldClass = new HelloWorldClass();
String helloWorld = helloWorldClass.getHelloWorld();
System.out.println(helloWorld);
}

}
>>
cat
Hello World
>>
-[------->+<]>-.-[->+++++<]>++.+++++++..+++.[--->+<]>-----.---[->+++<]>.-[--->+<]>---.+++.------.--------.
>>
>>54434328
unfortunately, helloworld is all you can do in brainfuck
>>
>>54434116
How?
print("hello, world!")

Save it as hello.py and run it
one line
>>
Any assembler language. Honestly if all you want to do is something that simple then you don't deserve anything else.
>>
Malbolge

 (=<`#9]~6ZY32Vx/4Rs+0No-&Jk)"Fh}|Bcy?`=*z]Kw%oG4UUS0/@-ejc(:'8dc
>>
>>54434383
>not writing a mandelbrot set viewer in brain fuck
http://esoteric.sange.fi/brainfuck/utils/mandelbrot/
>>
package main
import "fmt"

func main() {
fmt.Println("MAGA2016")
}
>>
(princ "Hello world!")
>>
File: image.jpg (57 KB, 540x419) Image search: [Google]
image.jpg
57 KB, 540x419
const int main[] = {
-443987883, 440, 113408, -1922629632,
4149, 899584, 84869120, 15544,
266023168, 1818576901, 1461743468, 1684828783,
-1017312735
};
>>
https://gist.github.com/lolzballs/2152bc0f31ee0286b722

Java of course
>>
>>54434757
what?
I am very interested, does the compiler not care that main is defined as an array and that there is no 'int main()'?
>>
class HelloWorld { public static void main(String[] args) { System.out.println("Hello World™"); } } 
>>
Powershell
"Hello World!"
>>
>>54434131
/thread
>>
BASIC is so good. I always wanted to get into programming, but I always found it difficult whenever I tried. Then I installed Brandy, the BBC basic interpreter for linux, and I was soon doing all kinds of programming stuff.

The 80s was probably a great time, since every home microcomputer came with BASIC.
>>
>>54435418
Tried it, got a segmentation fault using g++
>>
ASM

section     .text
global _start ;must be declared for linker (ld)

_start: ;tell linker entry point

mov edx,len ;message length
mov ecx,msg ;message to write
mov ebx,1 ;file descriptor (stdout)
mov eax,4 ;system call number (sys_write)
int 0x80 ;call kernel

mov eax,1 ;system call number (sys_exit)
int 0x80 ;call kernel

section .data

msg db 'Hello, world!',0xa ;our dear string
len equ $ - msg ;length of our dear string
>>
fn main() {
println!("Hello World!");
}
>>
>>54433874
 
>>
File: 145953913743.jpg (17 KB, 251x249) Image search: [Google]
145953913743.jpg
17 KB, 251x249
>>54433874
#include<iostream.h>
#include<conio.h>
using namespace std;
int main(){
cout<<"Hola Mundo!!!, inmundo animal\n";
getch();
return 0;
}
>>
>>54433874
>std::
>no using namespace std
pleb
>>
>>54437391
Where the hell do you get conio.h?
>>
>>54437958
my error
>>
>>54437707
using namespace std is for script kiddies
>>
>>54435623
Platform specific, the int[] is just x64 machine code for linux system calls. The first known instance of this kind of program was the first ever winner of the IOCCC: http://www.ioccc.org/1984/mullender/mullender.c
Thread replies: 38
Thread images: 4

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.