3
Write a program that prints "Hello, world!" without using any kinds of literals. Don't use string literals, numeric literals, byte literals, char literals, etc. Default values are allowed in languages that have them.
Printing data from external files/websites/arguments is not encouraged.
edit: probably don't use Boolean literals either.
double edit: I don't necessarily want the code to be obfuscated. results that are clearly understandable are better.
triple edit: this is not duplicate because the other questions require obfuscated answers or are code-golf.
Voted to reopen. – Erik the Outgolfer – 2016-05-25T13:48:27.347
This is a very much duplicated question. A search for hello world will reveal how many times things like that have been tried. – orion – 2014-06-02T11:18:50.170
2hmm? searching for "hello world literals" doesn't result in anything too similar. Am I missing something? – Pyromuffin – 2014-06-02T11:25:26.267
1Is the punctuation necessary? Or can it just say "Hello world"? – Glen O – 2014-06-02T11:25:48.007
Why is this a popularity contest? It seems to work perfectly fine as code golf. – Martin Ender – 2014-06-02T11:26:27.637
Very duplicated indeed. The recently active question about obfuscated "Hello world", for example, has quite a few answers that didn't use literals. – Tal – 2014-06-02T11:27:26.533
@Pyromuffin a lot of answers in here could be copied verbatim to this question, which is a good indication for this being a duplicate. Same goes for this question.
– Martin Ender – 2014-06-02T11:27:50.383I think you need the ! at least! I can think of a few ways to do this without the ! using reflection, but not many ways with the punctuation. – Pyromuffin – 2014-06-02T11:28:06.507
I suppose that I don't necessarily want it to be obfuscated. I will edit this to make it more clear. – Pyromuffin – 2014-06-02T11:33:22.133
2
for instance
– edc65 – 2014-06-02T11:53:10.193alert(atob((function SGVsbG8sIHdvcmxk(){}).name))
copied from http://codegolf.stackexchange.com/a/22559/213482Dang, hope this gets edited and reopened so I can post my answer. – histocrat – 2014-06-02T13:22:30.037
1The duplicate is code-golf. My COBOL solution wouldn't be much use there :-) – Bill Woodger – 2014-06-02T13:55:13.917
4This is definitely not a duplicate of the linked question. Of my Julia solution, the Cobra solution, and the JavaScript solution by user23057, none is "obfuscated" - they may need a few tricks to get the whole expression, but anybody looking at them could guess pretty quickly that they would output "Hello, world!". None of them attempts to be particularly short, nor do they avoid certain letters or numbers as per the requirements of linked challenge. – Glen O – 2014-06-02T14:33:48.943
2Furthermore, the JSfuck solution is very long. As such, the only answer that is even remotely code-golfish is the HQ9+ solution, which is of course just demonstrating one of the very few capabilities of the language. – Glen O – 2014-06-02T14:36:08.327
1Reopen this question please. – graphicdivine – 2014-06-02T15:51:50.300