@BetaDecay I don't like gs2 because it's conventionally represented in hex. If they wanted to use all eight bits in a byte, they should at least have come up with some awesome APL-like symbols
@quartata you might want to make some space in Rotor for increment/decrement (I don't know if they'd be better than what you currently have—space is limited because you're not overloading—but Pyth certainly makes good use of h and t.
Compressing your source code
Some language provide builtin facilities to compress data and execute the result as source code. I consider this to be a standard loophole, especially when the challenge is counted in characters instead of bytes.
@TheDoctor For one thing, it's hard to define when someone is compressing things or not. Using something like 8*'c' for cccccccc in Python is not not that far from run length encoding, which might be considered invalid by that post.
k (750+24 = 774)
Doesn't use any built-in decompression however it does use a system call to acquire the data.
{@[."\\gzip -dc x";x-1]}
The data file is 750 bytes and is just the gzipped raw list, named x. There are 24 characters in the above function.
Erlang, 748 bytes
A 7-bit clean version without gzip-9 is 748 bytes:
f()->[maps:get(C,#{$N=>"ing",$x=>10,$q=>"th",$z=>" Christmas"},C)||C<-s(t(calendar:local_time()))].
t({{_,1,D},_})->D+7;t({{_,12,D},_})->D-24;t(_)->1.
s(X)when X<1;X>12->L=" I wish it could bez every dayx","Well"++L++"When q...
gzip, 114 bytes
Hexdump:
1f8b080853f9975502006c006dd04b0a80300c84e1bde01dbc40218fa6697aff8309e2a6fa6f3f86cc10adb426a3b95ce62b6a0d398f07d59aeb8e4ed80983701026e1242cc0a9307e1aa11306615211b59710527b3961270cba9994fc7fc944829092faeedc313e7803993cfafb20020000
Create a file with the bytes described a...
This question has come up recently in my mind as I have been looking through popularity-contest challenges and shortest-code-wins challenges. This question specifically is:
How should I pick a winner when either
(a) the number of bytes in a shortest-code-wins challenge is equal between the s...
The stacks that the instructions, the main program object, and then each object hold 2 dimensions, 2 dimensions, and 4 dimensions of information, respectively.
Basically, each object in the object array each holds a three dimensional stack. All objects can be accessed as parts of a different instruction set, meaning that each object, and therefore, the program, is 4th dimensionally aware, but things are only executed and known by the program in a 1 dimensional set.
Hi guys. It bothers be that this question was put on hold despite my attempt at clarifying it: codegolf.stackexchange.com/q/63307/5163. Five people have answered it, proof that at least some of us got it. Please consider re-opening.
The Game of Life, also known simply as Life, is a cellular automaton devised by the British mathematician John Horton Conway in 1970.
The "game" is a zero-player game, meaning that its evolution is determined by its initial state, requiring no further input. One interacts with the Game of Life by creating an initial configuration and observing how it evolves or, for advanced players, by creating patterns with particular properties.
== RulesEdit ==
The universe of the Game of Life is an infinite two-dimensional orthogonal grid of square cells, each of which is in one of two possible states, alive...
The Rule 110 cellular automaton (often simply Rule 110) is an elementary cellular automaton with interesting behavior on the boundary between stability and chaos. In this aspect it is similar to Conway's Game of Life. Also like Life, Rule 110 is known to be Turing complete. This implies that, in principle, any calculation or computer program can be simulated using this automaton.
== Definition ==
In an elementary cellular automaton, a one-dimensional pattern of 0s and 1s evolves according to a simple set of rules. Whether a point in the pattern will be 0 or 1 in the new generation depends on its...
Conway's Game of Life is (almost) always played on a regular square grid, but it doesn't need to be.
Write a program that implements the standard cell neighboring rules from Conway's Game of Life on a two-dimensional tiling of the Euclidean plane that is not a regular tiling of squares, triangle...
Has anyone made a language where the checksum of the program is used as a seed which then generates a set of instructions that correspond to random GolfScript programs
1:N probability (Simple)
code-golfprobability-theorylogic
Because there are not enough simple code-golf challenges:
Create a named program or function that, given (by any means) an integer N ≥ 1, outputs your language's TRUE value with a pseudo-random probability of 1:N, FALSE otherwise.
Some...
The number e is an important mathematical constant that is the base of the natural logarithm. It is approximately equal to 2.71828, and is the limit of (1 + 1/n)n as n approaches infinity, an expression that arises in the study of compound interest. It can also be calculated as the sum of the infinite series
The constant can be defined in many ways. For example, e can be defined as the unique positive number a such that the graph of the function y = ax has unit slope at x = 0. The function f(x) = ex is called the exponential function, and its inverse is the natural logarithm, or logarithm to base...