You have 1 minute to write the most inefficient "Hello World" in known human existence

You have 1 minute to write the most inefficient "Hello World" in known human existence.

Go.

Other urls found in this thread:

pastebin.com/CwKLX3aW
gist.github.com/lolzballs/2152bc0f31ee0286b722
twitter.com/SFWRedditVideos

...

So a C program that callocs all available system memory, sleeps until the end of time, then outputs Hello World?

Powershell:

-join ((33..126) | Get-Random -count 11 | % {[char]$_})

Randomly generates 11 characters (the length of hello world). Will produce numbers, letters special characters, and given enough time hellow world and a Shakespearean play.

...

package org.fourchan.g;

public class HelloWorld {
public static void main(String[] args) {
String hw;
do {
hw = "";
for (int i = 0; i < "Hello World".length(); i++)
hw += (char) (Character.MAX_CODE_POINT * Math.random());
} while (!hw.equals("Hello World"));
System.out.println(hw);
}
}

...

>Go.

You just did ;^)

Too stupid to put it into proper code

>Take random string of 11 ascii characters
>check if matches "hello world"
>if it does print hello world
>if not goto 10

see

This is Hello World in Malbolge
(=

This image.

Just think of all the code that's going in to transmitting, storing, and distributing this across the internet, sending it to your browser where it has to be reassembled and displayed as an image.

>using the smiley with a carat nose

no, that's C#

((lambda (s)
(loop for c across s do
((lambda (c)
(princ c))
c)))
"Hello, world!")

#include
#include
#include
int main(void) {
srand(time(NULL));
int r[3];
for (;;) {
r[0] = rand();
r[1] = rand();
r[2] = rand();
if (
(r[0] & 0x000000FF) >> 0 == 'H' &&
(r[0] & 0x0000FF00) >> 8 == 'e' &&
(r[0] & 0x00FF0000) >> 16 == 'l' &&
(r[0] & 0xFF000000) >> 24 == 'l' &&
(r[1] & 0x000000FF) >> 0 == 'o' &&
(r[1] & 0x0000FF00) >> 8 == ' ' &&
(r[1] & 0x00FF0000) >> 16 == 'W' &&
(r[1] & 0xFF000000) >> 24 == 'o' &&
(r[2] & 0x000000FF) >> 0 == 'r' &&
(r[2] & 0x0000FF00) >> 8 == 'l' &&
(r[2] & 0x00FF0000) >> 16 == 'd' &&
(r[2] & 0xFF000000) >> 24 == '\0'
) {
printf("%s\n", r);
}
}
}

((lambda (s)
(loop for c across s do
((lambda (c)
(princ
(code-char
(loop
for i = (random 128)
while (not (eq i (char-code c)))
finally (return i)))))
c)))
"Hello, world!")

/bin/bash -c /usr/bin/ruby -e "puts URaFaget"

assemply?

>Moving esp up instead of just popping the argument
KYS

poping is objectively worse
Since you aren't going to use what you just popped you just dirtied up a register unnecessarily.

hello world

underrated post

>his cpu doesn't have a null register

This clearly meant to be x86 asm where there is no null register

bogo world!

>extern _printf
>calling a library function

Step back, guys. I got this. :^)

#include
#include
#include
#include

using namespace std;

const int MAX_CHARS = 12;

int main()
{
srand(time(NULL));

bool is_hello = false;
char *letters = new char[MAX_CHARS];
string a = "";

do
{
for (int i = 0; i < MAX_CHARS; ++i)
{
letters[i] = rand() % 255 + 0;
}

for (int i = 0; i < MAX_CHARS; ++i)
a.push_back(letters[i]);

printf("%s", a);
cout

>something something pick random unicode character and display if it matches substring, then go to next substring etc

static void Main(string[] args)
{
List tasks = new List();
for (int i = 0; i < Environment.ProcessorCount; i++)
{
tasks.Add(Task.Run(() =>
{
var ran = new Random();
var bytes = new byte[12];
while (Encoding.ASCII.GetString(bytes) != "Hello World.")
{
ran.NextBytes(bytes);
}
Console.WriteLine(Encoding.ASCII.GetString(bytes));
}));
}
Task.WaitAny(tasks.ToArray());
}

H
e
l
o

W
o
r
l
d


better make sure to validate it!
























$ xmllint --noout --schema string.xsd hello.xml
hello.xml validates

All good! Next we transform...



$ xsltproc print-string.xsl hello.xml
Hello world
$

#include
#include

int main()
{
char *buf = "Hello World!\n";
volatile int i;
volatile int c;

for(i = 0; i < strlen(buf); i++)
{
for(c = 0; c < buf[i]; c++);
fprintf(stdout, "%c", c);
fflush(stdout);
}
return 0;

}

I feel dirty.

I'd have the code to post here, but it's stuck in QA.

not sure if retarded or joke about python

char unary(char *s) { char c = 0;
for(char c = 0; s; s++) if (c=='1') c++;
return c;}

static const char target[13] = "Hello world!";
int match(char** s) {int ret = 1;
for (int i=0; i

>using the smiley with a carat nose

pastebin.com/CwKLX3aW

I see your .png and raise you a .gif

void helloWorld(){
char[] allCharacters = ['a','b','c','d','e','f','g','e','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z',' ']
char[] helloWorldArray = ['h','e','l','l','o',' ','w','o','r','l','d'];
for (int i = 0; i

++++++++++[>+++++++>++++++++++>+++>+.

youtube.com/watch?v=tBQ69ZnuMbc

a = []
a.append('h')
a.append('e')
for i in xrange(2):
a.append('l')
a.append('o')
a.append(' ')
a.append('w')
a.append('o')
a.append('r')
a.append('l')
a.append('d')

for x in a:
print x,

function getRandomInt(min, max) {
return Math.floor(Math.random() * (max - min + 1)) + min;
}

var s, c;

for(;;){

s = '';

for(var i = 0; i < 18; i++){
s += String.fromCharCode(getRandomInt(0,255));
}
if(s == 'Hello World!'){
console.log(s);
break;
}
}

(aBA@?>==

>pastebin.com/CwKLX3aW

Swift

>C lib calls from assembly
>Not using syscalls or interrupts

sleep( 4294967295);
cout

kek, it hurts so bad.

Sure
section .data
hello db "Hello World",10
section .text
global _start
_start:
mov rax,1
mov rdi,1
mov rsi,hello
mov rdx,12
syscall

Junior Java dev here, there are people who wouldn't bat an eyelid at something like this...

brainfuck

gist.github.com/lolzballs/2152bc0f31ee0286b722