28 votes
Accepted

Programming in Minecraft (Redstone) - how to measure program size?

There is now an MC Standard for bytecount. With the 1.10 update, they introduced a block called the "structure block", which creates a .nbt file representing a structure in its entirety that can be ...
Addison Crump's user avatar
24 votes
Accepted

How to count bytes in languages with autoformatters

Count code size before autoformatting Rationale: You can type or paste unformatted code into the interpreter, hit run, and it works. The fact that the interpreter adds whitespace or expands shortcuts ...
DLosc's user avatar
  • 39.4k
17 votes

How to determine the length of a Piet program?

Here's an encoding for Piet programs I've published an encoding (with a translator program) that represents a Piet program as a series of ASCII characters. It encodes each codel as one character, and ...
DLosc's user avatar
  • 39.4k
17 votes

Potential execution flag rule break

What should we do to prevent this type of shenanigan? Firstly, we should all solemnly commit to downvoting every answer we see in a language which is deliberately designed to try to exploit PPCG-...
Peter Taylor's user avatar
  • 43.1k
15 votes

How to count bytes in 7 (and other languages that use fractional numbers of bytes)

The answer's score is the source code's size Unless you can store your program somehow by using only 3 bits, you cannot claim a size of ⅜ bytes. That's the only rule that makes sense in the long run, ...
Dennis's user avatar
  • 210k
15 votes

How to determine the length of a Piet program?

Number of codels in the image All codels in the image will be counted. This includes codels that are never visited, and black and white codels.
Mike Bufardeci's user avatar
14 votes

Jelly- can we really score it by character count?

Jelly uses its own code page and the interpreter is capable of reading files encoded in this code page. Hence, it's actually possible to feed a working file of the claimed size to the interpreter and ...
Martin Ender's user avatar
14 votes

Scoring Desmos equations

Mostly agree with the proposal, but let's make it more formal Here is a more formal version of the proposal: A valid Desmos program is a piece of code that works when copy-pasted into the equation ...
Bubbler's user avatar
  • 76k
14 votes
Accepted

Tag proposal: [self-scoring]

Let's make both self-scoring and self-validating self-scoring as a scoring criterion tag The description of self-scoring as proposed is IMO well-defined enough to be a scoring criterion tag on its own,...
Bubbler's user avatar
  • 76k
13 votes
Accepted

What is our consensus for fractional byte functions?

Fractional byte counts are always allowed It seems like one very simple solution to this problem is to allow fractional byte counts, for functions and full programs. Wheat Wizard's answer implies that ...
Rydwolf Programs's user avatar
12 votes

Definition of a Function in Concatenative Languages

We already have a consensus that functions have to be reusable arbitrarily often. While that consensus arose in the context of side effects (such as changing global variables in a way that prevents ...
Dennis's user avatar
  • 210k
11 votes

Bytes for changing a configuration file before running a program?

On PPCG, languages are defined by their implementation. This includes any configuration files. Therefore, if you edit your local configuration files, you are essentially creating a new unpublished ...
DJMcMayhem's user avatar
  • 59.2k
11 votes

How to determine the length of a Piet program?

Number of bytes in the image file We should stop making up new scoring schemes for programming languages, which only serves to make things more difficult. Code golf contests are scored in bytes, so ...
Dennis's user avatar
  • 210k
11 votes

How should I score my new language?

Your score is the number of bytes in your code in your language's encoding This is how it works with every other language on PPCG, and there's no need to make an exception. In Java, this is a valid ...
ETHproductions's user avatar
11 votes

A proposal on command line flags

I haven't thought through all of the issues and arrived at a balance of pros and cons, but there is one con which comes to mind immediately and should be included in the discussion. This would affect ...
Peter Taylor's user avatar
  • 43.1k
11 votes

Scoring that rewards useability

In my dream world, I would rather have code challenges generate a code that's actually useful in the real world, a code that makes its way to be an idiom, to be used in real world projects, and put in ...
Dennis's user avatar
  • 210k
10 votes

Jelly- can we really score it by character count?

As Martin already explained, Jelly uses a custom code page that is incompatible with ASCII and UTF-8. This isn't a made-up way of counting bytes, but the Jelly interpreter can take the source code (...
Dennis's user avatar
  • 210k
10 votes

Leaderboard Snippet

Feature request: Column rearrangement In my opinion, the per-language results should be on the left since we emphasize competition within each language. It would simply be a swapping of the current ...
Alex A.'s user avatar
  • 24.6k
10 votes

Scoring mandatory but varying command-line arguments

They're evidently part of the program, and they're important information so they should be counted. That said, I'd probably count them as 3 bytes (not 5 as would normally the case when you have to add ...
Martin Ender's user avatar
10 votes

How do we count bytes in BBC micro:bit languages?

The length in bytes of a program is the number of bytes in its source file. If this means that Hello World is 600000 bytes, that's a problem with the language, not with the scoring system. If the ...
Peter Taylor's user avatar
  • 43.1k
10 votes

Allow answers to be scored in things other than bytes to stop the log byte madness

No change in rules is needed, simply a change in behavior This might not be a complete answer, but I would like to provide what I think is a solution to the issues that doesn't actually require ...
Wheat Wizard's user avatar
  • 98.5k
9 votes

Counting bytes in Scratch

Code golf and atomic code golf do not mix atomic-code-golf is a valid challenge type, but this style of scoring does not apply to code-golf. If you are entering a code golf challenge using Scratch ...
trichoplax is on Codidact now's user avatar
8 votes

Byte count for imports (or other things) not needed for definition, but for execution

Count all imports The rules for counting imports are vaguely spread across several meta posts, but the default and simplest rule is to count them: When looking into this, I first came across Scoring ...
Geobits's user avatar
  • 19.7k
8 votes

How do we score turing complete cellular automata (GoL, Wireworld, etc)

There shouldn't be a general answer for all cellular automata. People have pointed out that cellular automata are diverse. Some have only two states and square cells. Others have differently shaped ...
Mike Bufardeci's user avatar
8 votes
Accepted

What exactly is a "byte" here?

05AB1E uses this code page, which contains exactly 256 characters. The info.txt includes many two-byte tokens (such as ža and .€)...
Dennis's user avatar
  • 210k

Only top scored, non community-wiki answers of a minimum length are eligible