Code Golf: Code Golf: Difference between revisions

m
→‎{{header|Wren}}: Changed to Wren S/H
imported>J7M
m (add SmallBASIC example)
m (→‎{{header|Wren}}: Changed to Wren S/H)
Line 719:
=={{header|Wren}}==
The shortest possible program (25 bytes) to print the required string is:
<syntaxhighlight lang="ecmascriptwren">System.write("Code Golf")</syntaxhighlight>
The size of the executable needed to run this or indeed any other standalone program (Wren-cli on Linux) is 414,760 bytes. However, if Wren were being embedded in a minimal C program, then the size of the executable would be 17,320 bytes.
 
If the program itself cannot contain string or character literals, then the shortest program we've been able to come up with (68 bytes) is:
<syntaxhighlight lang="ecmascriptwren">for(c in[37,9,2,3,70,33,9,10,0])System.write(String.fromByte(c^102))</syntaxhighlight>
{{out}}
In both cases:
9,476

edits