“HHeelllloo,, EEaarrtthh!!”

1

Much like this challenge, write a program or function that takes no input and prints or returns the string

Hello, Earth!

with an optional trailing newline.

The catch is that your program must be an even number of characters long, and each two character chunk of your program must consist of identical characters.

For example, a valid program might look like

AAbb==11++♥♥

[[--  2222]]

because every two character chunk (AA, bb, ==, 11, etc.) is made of two identical characters (even the newlines).

A program such as

AAbB==11++♥♥

[[--  2222]]

would not be valid because the bB chunk is not made of identical characters.

The only exception to the rule is that \r\n should be treated a single, generic "newline" character since replacing it with \r\r\n\n wouldn't work or make sense for some languages and systems.

The shortest code in bytes wins. The example is 30 bytes long (not 15, not 13).

Calvin's Hobbies

Posted 2016-09-07T23:51:57.667

Reputation: 84 000

Question was closed 2016-09-08T00:49:08.963

3You are banning most non esolangs – Rohan Jhunjhunwala – 2016-09-07T23:56:41.857

1@RohanJhunjhunwala That's the way it goes. – Calvin's Hobbies – 2016-09-08T00:01:27.973

1-1 for trivial challenge masked by source-layout/restricted-source (something new users are heavily bashed for). Also I dislike the narrow language restrictions – Downgoat – 2016-09-08T00:05:23.593

5@Downgoat I think this a perfectly valid/interesting challenge, and I don't see any language restrictions. – Conor O'Brien – 2016-09-08T00:06:45.060

4@ConorO'Brien you may vote how you like. I am entitled as so too, I always comment when I downvote – Downgoat – 2016-09-08T00:09:50.043

@Downgoat s/downvote/downgoat most non esolang like languages are arbitrarily disqualified like this. I support the downgoat. +1 to your comments – Rohan Jhunjhunwala – 2016-09-08T00:11:43.320

1@RohanJhunjhunwala To be clear, no languages have been disqualified, it just may be impossible in many. And I think it's good once in a while to have a challenge that lets real esolangs shine. Most challenges are invariably full of mainstream and golfing language answers as there is no need for anything more exceptional. – Calvin's Hobbies – 2016-09-08T00:20:48.437

@HelkaHomba I understand that no language has been explicitly banned, but I feel most good challenges should at least remain theoretically possible in most Turing Complete challenges. It is nothing personal. – Rohan Jhunjhunwala – 2016-09-08T00:24:01.257

"Hello, Earth!" has an odd number of characters. That'll make it harder... – Blue – 2016-09-08T01:06:26.017

2Not trying to start/prolong a discussion, and you're certainly entitled to vote as you see fit, but new users usually create yet another incarnation of perform task T without using the characters XYZ or the built-in B, which is utterly repetitive and on occasions unclear. – Dennis – 2016-09-08T02:40:37.523

@Sp3000: It´s not an exact duplicate. The other challenge has the subsequent restriction only on certain positions. – Titus – 2016-09-08T12:48:20.443

@Titus I think you may have misread the other specification. The wording is a bit more convoluted than in this challenge, but it's also saying that every pair of characters needs to be identical. – Martin Ender – 2016-09-08T13:36:01.003

@MartinEnder: Oh right. I misread 2n as 2^n. – Titus – 2016-09-09T19:55:30.170

Answers

6

Lenguage, 1354616599400377002855073561913010716386821416114463012 bytes

It's 1354616599400377002855073561913010716386821416114463012 zeroes:

0000000000000000000000000000000000000000000000000000000000000000000000000000000000...00000000

It's this BF program:

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

Converted into binary:

001110001001001001001001001010000011111010001100001110001010000000000000000011111010000000100000000000000000000000100100000000000100110001010000000000000000011111010000100001001001001001001001001001001001001100000000110001010000000011111010000100000110001001001001001001010000011111010100001001110001001001010000011111010001001001100000000100001001001001001001001001001001001001100001001110001001001010000011111010001100

Converted into a decimal number:

1354616599400377002855073561913010716386821416114463012

With that many zeroes. Hooray for lenguage!

Conor O'Brien

Posted 2016-09-07T23:51:57.667

Reputation: 36 228

I had a 70 byte fish answer but didn't finish before this was closed... – Blue – 2016-09-08T01:16:30.743

@Blue Do you mean the shell? – Erik the Outgolfer – 2016-09-08T15:36:13.587

@EriktheGolfer it was pretty much the same as the fish answer of the duped questions, just like this is kind of like the unary answer of the duped question. – Blue – 2016-09-08T16:26:49.477

@Blue I mean, is it ><> or is it fish? I guess it's ><>, but that's not called 'Fish', it's the Esolang page that has technical limitations. – Erik the Outgolfer – 2016-09-08T16:31:10.963