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 ...
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
  • 37.8k
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 ...
Conor O'Brien's user avatar
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 ...
Doorknob's user avatar
  • 71.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
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 ...
DLosc's user avatar
  • 37.8k
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
  • 209k
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
  • 73.1k
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
  • 73.1k
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 ...
Dennis's user avatar
  • 209k
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
  • 209k
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 ...
Rydwolf Programs's user avatar
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
  • 58.7k
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
  • 209k
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 ...
Eumel's user avatar
  • 2,625
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
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 <...
es1024's user avatar
  • 9,175
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 ...
Level River St's user avatar
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
  • 209k

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