Make a longer lenguage program
$begingroup$
Lenguage is a brainfuck dialect that is notorious for breaking source restriction challenges. That is because Lenguage cares only about the length of it's source and not the contents.
First, the length of the program is calculated. Then, said length is converted to binary and left-padded by zeroes to a multiple of 3. The resulting binary string is split into chunks of 3 bits each of which is translated into a brainfuck command as such:
000 -> +
001 -> -
010 -> >
011 -> <
100 -> .
101 -> ,
110 -> [
111 -> ]
Finally the program is run as brainfuck1.
From here the challenge is pretty simple, write a lenguage program that takes no input and produces an output consisting of one byte repeated $n$ times, where $n$ is strictly greater than the length of your program.
Answers will be scored in bytes with fewer bytes being better.
Here's a hacky program to calculate lenguage from brainfuck
1: For this challenge we will use wrapping cells and a non-wrapping tape.
code-golf quine brainfuck
$endgroup$
add a comment |
$begingroup$
Lenguage is a brainfuck dialect that is notorious for breaking source restriction challenges. That is because Lenguage cares only about the length of it's source and not the contents.
First, the length of the program is calculated. Then, said length is converted to binary and left-padded by zeroes to a multiple of 3. The resulting binary string is split into chunks of 3 bits each of which is translated into a brainfuck command as such:
000 -> +
001 -> -
010 -> >
011 -> <
100 -> .
101 -> ,
110 -> [
111 -> ]
Finally the program is run as brainfuck1.
From here the challenge is pretty simple, write a lenguage program that takes no input and produces an output consisting of one byte repeated $n$ times, where $n$ is strictly greater than the length of your program.
Answers will be scored in bytes with fewer bytes being better.
Here's a hacky program to calculate lenguage from brainfuck
1: For this challenge we will use wrapping cells and a non-wrapping tape.
code-golf quine brainfuck
$endgroup$
1
$begingroup$
+[.]
Do I win? :P
$endgroup$
– Quintec
4 hours ago
1
$begingroup$
Perhaps it might be more interesting to score on the length of the output?
$endgroup$
– Jo King
4 hours ago
$begingroup$
@JoKing That's a good idea. Unfortunately it appears to be a bit late for that.
$endgroup$
– TRITICIMAGVS
3 hours ago
$begingroup$
@JoKing Actually since you are the only answerer do you mind if I change it?
$endgroup$
– TRITICIMAGVS
3 hours ago
$begingroup$
sure, i'll change my answer up
$endgroup$
– Jo King
3 hours ago
add a comment |
$begingroup$
Lenguage is a brainfuck dialect that is notorious for breaking source restriction challenges. That is because Lenguage cares only about the length of it's source and not the contents.
First, the length of the program is calculated. Then, said length is converted to binary and left-padded by zeroes to a multiple of 3. The resulting binary string is split into chunks of 3 bits each of which is translated into a brainfuck command as such:
000 -> +
001 -> -
010 -> >
011 -> <
100 -> .
101 -> ,
110 -> [
111 -> ]
Finally the program is run as brainfuck1.
From here the challenge is pretty simple, write a lenguage program that takes no input and produces an output consisting of one byte repeated $n$ times, where $n$ is strictly greater than the length of your program.
Answers will be scored in bytes with fewer bytes being better.
Here's a hacky program to calculate lenguage from brainfuck
1: For this challenge we will use wrapping cells and a non-wrapping tape.
code-golf quine brainfuck
$endgroup$
Lenguage is a brainfuck dialect that is notorious for breaking source restriction challenges. That is because Lenguage cares only about the length of it's source and not the contents.
First, the length of the program is calculated. Then, said length is converted to binary and left-padded by zeroes to a multiple of 3. The resulting binary string is split into chunks of 3 bits each of which is translated into a brainfuck command as such:
000 -> +
001 -> -
010 -> >
011 -> <
100 -> .
101 -> ,
110 -> [
111 -> ]
Finally the program is run as brainfuck1.
From here the challenge is pretty simple, write a lenguage program that takes no input and produces an output consisting of one byte repeated $n$ times, where $n$ is strictly greater than the length of your program.
Answers will be scored in bytes with fewer bytes being better.
Here's a hacky program to calculate lenguage from brainfuck
1: For this challenge we will use wrapping cells and a non-wrapping tape.
code-golf quine brainfuck
code-golf quine brainfuck
asked 6 hours ago
TRITICIMAGVSTRITICIMAGVS
34.2k10156366
34.2k10156366
1
$begingroup$
+[.]
Do I win? :P
$endgroup$
– Quintec
4 hours ago
1
$begingroup$
Perhaps it might be more interesting to score on the length of the output?
$endgroup$
– Jo King
4 hours ago
$begingroup$
@JoKing That's a good idea. Unfortunately it appears to be a bit late for that.
$endgroup$
– TRITICIMAGVS
3 hours ago
$begingroup$
@JoKing Actually since you are the only answerer do you mind if I change it?
$endgroup$
– TRITICIMAGVS
3 hours ago
$begingroup$
sure, i'll change my answer up
$endgroup$
– Jo King
3 hours ago
add a comment |
1
$begingroup$
+[.]
Do I win? :P
$endgroup$
– Quintec
4 hours ago
1
$begingroup$
Perhaps it might be more interesting to score on the length of the output?
$endgroup$
– Jo King
4 hours ago
$begingroup$
@JoKing That's a good idea. Unfortunately it appears to be a bit late for that.
$endgroup$
– TRITICIMAGVS
3 hours ago
$begingroup$
@JoKing Actually since you are the only answerer do you mind if I change it?
$endgroup$
– TRITICIMAGVS
3 hours ago
$begingroup$
sure, i'll change my answer up
$endgroup$
– Jo King
3 hours ago
1
1
$begingroup$
+[.]
Do I win? :P$endgroup$
– Quintec
4 hours ago
$begingroup$
+[.]
Do I win? :P$endgroup$
– Quintec
4 hours ago
1
1
$begingroup$
Perhaps it might be more interesting to score on the length of the output?
$endgroup$
– Jo King
4 hours ago
$begingroup$
Perhaps it might be more interesting to score on the length of the output?
$endgroup$
– Jo King
4 hours ago
$begingroup$
@JoKing That's a good idea. Unfortunately it appears to be a bit late for that.
$endgroup$
– TRITICIMAGVS
3 hours ago
$begingroup$
@JoKing That's a good idea. Unfortunately it appears to be a bit late for that.
$endgroup$
– TRITICIMAGVS
3 hours ago
$begingroup$
@JoKing Actually since you are the only answerer do you mind if I change it?
$endgroup$
– TRITICIMAGVS
3 hours ago
$begingroup$
@JoKing Actually since you are the only answerer do you mind if I change it?
$endgroup$
– TRITICIMAGVS
3 hours ago
$begingroup$
sure, i'll change my answer up
$endgroup$
– Jo King
3 hours ago
$begingroup$
sure, i'll change my answer up
$endgroup$
– Jo King
3 hours ago
add a comment |
1 Answer
1
active
oldest
votes
$begingroup$
8437495638205698686671 bytes
This translates to the brainfuck program:
-[>>[>]+[->[>]+.[<]+<]<-]
Which prints exactly $231584178474632390847141970017375815706539969331281128078915168015826259279614$ SOH bytes.
This is calculated by the function
f(n)=2*f(n-1)+n
f(0)=0
(submission pending change from code-golf to the shortest output)
664613997892457936451903530140172168 bytes
The program is $190096884071251415869242504183037647$ bytes long, which translates to the brainfuck program:
----[>+++++<--]>[>>[>]+[->[>]+.[<]+<]<-]
This is calculated by the function
f(n)=2*f(n-1)+n
f(0)=0
With an input of 118
.
$endgroup$
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["\$", "\$"]]);
});
});
}, "mathjax-editing");
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "200"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcodegolf.stackexchange.com%2fquestions%2f179325%2fmake-a-longer-lenguage-program%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
8437495638205698686671 bytes
This translates to the brainfuck program:
-[>>[>]+[->[>]+.[<]+<]<-]
Which prints exactly $231584178474632390847141970017375815706539969331281128078915168015826259279614$ SOH bytes.
This is calculated by the function
f(n)=2*f(n-1)+n
f(0)=0
(submission pending change from code-golf to the shortest output)
664613997892457936451903530140172168 bytes
The program is $190096884071251415869242504183037647$ bytes long, which translates to the brainfuck program:
----[>+++++<--]>[>>[>]+[->[>]+.[<]+<]<-]
This is calculated by the function
f(n)=2*f(n-1)+n
f(0)=0
With an input of 118
.
$endgroup$
add a comment |
$begingroup$
8437495638205698686671 bytes
This translates to the brainfuck program:
-[>>[>]+[->[>]+.[<]+<]<-]
Which prints exactly $231584178474632390847141970017375815706539969331281128078915168015826259279614$ SOH bytes.
This is calculated by the function
f(n)=2*f(n-1)+n
f(0)=0
(submission pending change from code-golf to the shortest output)
664613997892457936451903530140172168 bytes
The program is $190096884071251415869242504183037647$ bytes long, which translates to the brainfuck program:
----[>+++++<--]>[>>[>]+[->[>]+.[<]+<]<-]
This is calculated by the function
f(n)=2*f(n-1)+n
f(0)=0
With an input of 118
.
$endgroup$
add a comment |
$begingroup$
8437495638205698686671 bytes
This translates to the brainfuck program:
-[>>[>]+[->[>]+.[<]+<]<-]
Which prints exactly $231584178474632390847141970017375815706539969331281128078915168015826259279614$ SOH bytes.
This is calculated by the function
f(n)=2*f(n-1)+n
f(0)=0
(submission pending change from code-golf to the shortest output)
664613997892457936451903530140172168 bytes
The program is $190096884071251415869242504183037647$ bytes long, which translates to the brainfuck program:
----[>+++++<--]>[>>[>]+[->[>]+.[<]+<]<-]
This is calculated by the function
f(n)=2*f(n-1)+n
f(0)=0
With an input of 118
.
$endgroup$
8437495638205698686671 bytes
This translates to the brainfuck program:
-[>>[>]+[->[>]+.[<]+<]<-]
Which prints exactly $231584178474632390847141970017375815706539969331281128078915168015826259279614$ SOH bytes.
This is calculated by the function
f(n)=2*f(n-1)+n
f(0)=0
(submission pending change from code-golf to the shortest output)
664613997892457936451903530140172168 bytes
The program is $190096884071251415869242504183037647$ bytes long, which translates to the brainfuck program:
----[>+++++<--]>[>>[>]+[->[>]+.[<]+<]<-]
This is calculated by the function
f(n)=2*f(n-1)+n
f(0)=0
With an input of 118
.
edited 2 hours ago
answered 3 hours ago
Jo KingJo King
21.9k249113
21.9k249113
add a comment |
add a comment |
If this is an answer to a challenge…
…Be sure to follow the challenge specification. However, please refrain from exploiting obvious loopholes. Answers abusing any of the standard loopholes are considered invalid. If you think a specification is unclear or underspecified, comment on the question instead.
…Try to optimize your score. For instance, answers to code-golf challenges should attempt to be as short as possible. You can always include a readable version of the code in addition to the competitive one.
Explanations of your answer make it more interesting to read and are very much encouraged.…Include a short header which indicates the language(s) of your code and its score, as defined by the challenge.
More generally…
…Please make sure to answer the question and provide sufficient detail.
…Avoid asking for help, clarification or responding to other answers (use comments instead).
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcodegolf.stackexchange.com%2fquestions%2f179325%2fmake-a-longer-lenguage-program%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
$begingroup$
+[.]
Do I win? :P$endgroup$
– Quintec
4 hours ago
1
$begingroup$
Perhaps it might be more interesting to score on the length of the output?
$endgroup$
– Jo King
4 hours ago
$begingroup$
@JoKing That's a good idea. Unfortunately it appears to be a bit late for that.
$endgroup$
– TRITICIMAGVS
3 hours ago
$begingroup$
@JoKing Actually since you are the only answerer do you mind if I change it?
$endgroup$
– TRITICIMAGVS
3 hours ago
$begingroup$
sure, i'll change my answer up
$endgroup$
– Jo King
3 hours ago