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 ...
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 ...
19
votes
Programming in Minecraft (Redstone) - how to measure program size?
Bytes ≡ Functionality
I love Minecraft! Here's my two cents:
Redstone-related items (i.e. items that interact with redstone) should be each 1 byte, except ...
19
votes
There's a new graphical language- how to score it?
Score the number of bytes by the number of bytes
This really seems pretty straightforward. If your program is run as
$ mylang somefile
then the score of your ...
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-...
16
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 ...
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, ...
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.
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 ...
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 ...
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,...
12
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 ...
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 ...
12
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 ...
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 ...
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 ...
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 ...
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 ...
10
votes
Programming in LabVIEW - how to measure program size?
I´m gonna propose some rules on counting Bytes in LabVIEW code, so tell me what you think.
As Bytes are not really what LabVIEW does they were renamed to LabVIEW Primitives.
wires: each wire is 1 ...
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 ...
10
votes
Accepted
Is the PHP opening tag mandatory in byte count?
As mentioned here, running programs via commands such as php -r "code here" is acceptable without penalty.
Since <? and <...
10
votes
Should we standardise how percentage bonuses combine?
This should be left up to the question writer
Each question has its own specific situation, so there is no formula to fit all cases.
The other issue is that many posters may not be aware of this ...
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 (...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
scoring × 88discussion × 86
code-golf × 37
answers × 12
policy × 10
rules × 4
support × 2
stack-snippets × 2
php × 2
tags × 1
status-completed × 1
asking-questions × 1
challenge-quality × 1
faq × 1
defaults × 1
new-genre × 1
challenges × 1
languages × 1
accepted-answer × 1
characters × 1
c# × 1
vyxal × 1