Code Golf: Code Golf: Difference between revisions
Content added Content deleted
mNo edit summary |
(→Joy: add) |
||
Line 205: | Line 205: | ||
(Note: if we were careful about the current directory we were in when we executed this program, we could eliminate the part that swaps <code>-</code> and <code>/</code> characters ((a.C.~<45 47){~a.i.). Removing those 19 characters and creating four directories to hold the program and invoking the program as "exit'Code Golf'fwrite'"/proc/self/fd/"1'" might even be within the spirit of this task. However... we'll leave that as an exercise for the reader...) |
(Note: if we were careful about the current directory we were in when we executed this program, we could eliminate the part that swaps <code>-</code> and <code>/</code> characters ((a.C.~<45 47){~a.i.). Removing those 19 characters and creating four directories to hold the program and invoking the program as "exit'Code Golf'fwrite'"/proc/self/fd/"1'" might even be within the spirit of this task. However... we'll leave that as an exercise for the reader...) |
||
=={{header|Joy}}== |
|||
By using a string literal (20 characters): |
|||
<syntaxhighlight lang="Joy">"Code Golf"putchars.</syntaxhighlight> |
|||
Without string literals (48 characters): |
|||
<syntaxhighlight lang="Joy">[35 79 68 69 0 39 79 76 70][32 + chr putch]step.</syntaxhighlight> |
|||
=={{header|jq}}== |
=={{header|jq}}== |
||
Line 220: | Line 226: | ||
'''Extra credit''': |
'''Extra credit''': |
||
The jq executable on my Mac is 461,864 bytes; gojq's is over 8 times larger. |
The jq executable on my Mac is 461,864 bytes; gojq's is over 8 times larger. |
||
=={{header|Julia}}== |
=={{header|Julia}}== |