Hot answers tagged

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 ...
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 ...
user avatar
  • 32.4k
18 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 ...
user avatar
18 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 ...
user avatar
  • 70.5k
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-...
user avatar
  • 42.8k
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 ...
user avatar
14 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, ...
user avatar
  • 206k
14 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.
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 ...
user avatar
  • 62.7k
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,...
user avatar
  • 62.7k
13 votes
Accepted

Running PHP with `-r` instead of code tags

perl -e seems to be accepted without character penalty, so php -r should be OK as well. ...
user avatar
  • 206k
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 ...
user avatar
  • 206k
12 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 ...
user avatar
  • 32.4k
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 ...
user avatar
  • 206k
11 votes
Accepted

How to count languages?

Can we come up with some standard rules for when two languages are considered different enough for the purposes of these challenges? I seriously doubt it. Whether, e.g., C and C++ should count as ...
user avatar
  • 206k
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 ...
user avatar
  • 57.1k
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 ...
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 ...
user avatar
  • 42.8k
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 ...
user avatar
  • 206k
11 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. WW's answer implies that some sort ...
user avatar
10 votes

Fair size comparison across languages with different source alphabets

Most code-golf questions clearly include the winning criteria, and one of those is usually “the shortest code in bytes wins”. I don’t believe there are any restrictions on your asking a code-golf ...
user avatar
  • 619
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 <...
user avatar
  • 9,165
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 ...
user avatar
  • 24.2k

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