-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
05AB1E Corpus #182
Comments
A list of most common 1-byte builtins:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Similar to this issue opened in the Jelly repo and this issue opened in the Husk repo, I decided to run Lynn's method on 05AB1E answers (with a few modifications).
SEDE query used to get all 05AB1E answers on CGCC. Code used to analyze the data. Final corpus.
Remarks:
Digraphs:
I think pretty much everything here should be added as a one-byte builtin. If these were all 1 byte builtins, there will be a dramatic improvement in 05AB1E's golfiness.
vy
is the most common digraph here. So we need an enumerated map command that auto-pushes the current iterated variable.})
, a one-byte built-in should be made that 1) closes the current if statement/loop and 2) Wraps entire stack into a list..•
and.V
are very common in this list. 1-byte alternatives should definitely be made for those.Dg
(Duplicate + length) is pretty common, so a one-byte built-in should be made for this.2ô
(split into chunks of length 2). So we also need a builtin for this.Qi
: We probably need to make an if that compares equality in advance.ðý
: Command that joins by spaces.sè
: Indexing command with swapped arguments.2ä
: Apparently, splitting something into two halves is quite common as well.€g
: Map every item by length..Δ
: Make it a one-byte built-in, the other option is explained below..ø
: We need a one-byte command for surround.'.
and'-
: Apparently, these get used pretty often.4ç
: Guess it's caused by the lack of a quote (34ç
) builtinNè
: Index by iteration variable - sounds good for a one byte builtinÿ
: Implicit prepending space can be useful in string interpolation.}J
: Looks like people want to join after loopingTrigraphs:
34ç
is the most common trigraph. So this should just be a one or two byte built-in.∞.Δ
: A command that does.Δ
over[1 .. ∞]
. I think making.Δ
a one-byte built-in is better than making this a two-byte built-in, since.Δ
appears much more frequently.Quadgraphs:
I think all of the quadgraphs here are either 1) overly specific; 2) covered by Digraphs/Trigraphs; or 3) inside a string.
The text was updated successfully, but these errors were encountered: