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

ITT Convoluted ways to write Hello World

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 21
Thread images: 2

File: array_autism.png (10KB, 883x533px) Image search: [Google]
array_autism.png
10KB, 883x533px
Pic very related
>>
>>56393785
Why are you using printf instead of putchar? Think of all the wasted CPU cycles!
>>
>>56393785
Create a universe that spits out a creature that writes Hello Worlds.
>>
>>56393850
Well, I'm not writing this for an Intel 8086 am I now?
>>
++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.
>>
>>56393897
Nice burn
>>
>>56393785
$=String.fromCharCode(+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[],+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!+[]+!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+[]]]+$[+!+[]+!+[]]+([]+[]+{})[+!+[]]+(!![]+[])[+!+[]]+(![]+[])[!+[]+!+[]]+([]+[]+[][[]])[!+[]+!+[]]+$[(+![])]);
>>
import random

def random_char():
return chr(random.randint(ord(' '),ord('~')))

goal = "Hello World"
length = len(goal)

characters = [random_char() for _ in range(length)]

while ''.join(characters) != goal:
for i in range(length):
if characters[i] != goal[i]:
characters[i] = random_char()

print ''.join(characters)
>>
>>56393785
That font makes my soul cry.
>>
>>56394822
What? It's the good ol' UEFI font, it's great, especially for textmode editing
>>
>>56394856
i prefer the classic VGA BIOS fonts though
>>
from sys import stdout

a = "l"
b = "e"
c = "H"
d = "o"
e = "d"
f = " "
g = "W"
h = "r"
j = 68
k = 138
l = 255
m = 73
n = 258
o = 135

def hello_world(what, the, hell, were, you, thinking):
for i in range(what, the): stdout.write([hell, were, you, thinking][(i%3==0)+2*(i%4==0)])

hello_world(j, m, a, b, c, d)
hello_world(o, k, d, f, g, h)
hello_world(l, n, e, h, a, f)
>>
best I could do
import sys
def run(x, nn, g, read, write, q):
for i in range(x, nn): sys.stdout.write([chr(g), chr(read), chr(write), chr(q)][(i%3==0)+2*(i%4==0)])

run(68, 73, 108, 101, 72, 111)
run(135, 138, 111, 32, 87, 114)
run(255, 258, 100, 114, 108, 32)
>>
>>56393909
Shitty mentality, shitty programmer
>>
File: -Untitled 1 - Mousepad_002.png (10KB, 642x509px) Image search: [Google]
-Untitled 1 - Mousepad_002.png
10KB, 642x509px
>>
>>56395169
Shitty mentality, anal asshole
>>
(defun get-char (x)
(+ (/ (* -6607 (expt x 11)) 9979200)
(/ (* 2633 (expt x 10)) 64800)
(/ (* -26279 (expt x 9)) 24192)
(/ (* 71681 (expt x 8)) 4320)
(/ (* -24132961 (expt x 7)) 151200)
(/ (* 21694193 (expt x 6)) 21600)
(/ (* -1508562781 (expt x 5)) 362880)
(/ (* 143574137 (expt x 4)) 12960)
(/ (* -906700279 (expt x 3)) 50400)
(/ (* 14255329 (expt x 2)) 900)
(/ (* -8626347 x) 1540)
72))

(defun hello-world ()
(dotimes (i 11)
(format t "~a" (code-char (get-char i)))))
>>
void main()
{
string s = random_string(12);
while (s != 'hello world')
s = random_string(12);
print s
}
>>
int main() {
write(1,"Hello World", 14);
return 0;
}
>>
>>56396870

int main() {
write(1,"Hello World\n", 15);
return 0;
}


Code tags help.
>>
>>56395218
anal [purge]
Thread posts: 21
Thread images: 2


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

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
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.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.