Questions tagged [scoring]

For questions about scoring a challenge or how to score a particular language

Filter by
Sorted by
Tagged with
53 votes
0 answers
2k views

How to count bytes FAQ

We've got a lot of questions asking how to count the bytes in different situations. This question is here to put them all in one spot. General questions How to count "interactive" answers ...
63 votes
11 answers
3k views

Leaderboard Snippet

I've been using a stack snippet for a while to generate leaderboards for my simpler or more popular code golf challenges. I want to share the code for this snippet here so others can use it more ...
Martin Ender's user avatar
10 votes
6 answers
922 views

Fair size comparison across languages with different source alphabets

For fair comparison of codegolf solutions in languages with different source alphabets, there should be a common unit of information. Most sizes here are expressed in "characters" or "bytes", but not ...
John Tromp's user avatar
  • 1,176
33 votes
8 answers
6k views

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

Since programs may be created in vanilla (un-modded) Minecraft using redstone to create logic gates (and more), someone could create such a program for a challenge on this site. How would such an ...
mbomb007's user avatar
  • 23.3k
31 votes
7 answers
4k views

Counting bytes in Scratch

Scratch is a visual programming language, meant for teaching kids how to program. It's completely absent from this site, which, I think, is worth fixing. I have no specific challenge in mind. A ...
ugoren's user avatar
  • 17.4k
12 votes
3 answers
711 views

How to determine the length of a Piet program?

I noticed that Piet is not mentioned in the How to count bytes FAQ. How should we determine the length of a piet program?
Mike Bufardeci's user avatar
10 votes
2 answers
641 views

On scoring imported functions

There are lots of questions about whether to count the bytes in an import statement, etc. This question is not about that. Instead, this question is more inline with this question but I think it would ...
Ogaday's user avatar
  • 469
19 votes
1 answer
774 views

Running PHP with `-r` instead of code tags

Based on this manual, there is a -r option that allows you to run PHP code on the command line without specifying the code tags, ...
hmatt1's user avatar
  • 3,456
15 votes
4 answers
1k views

What is our consensus for fractional byte functions?

In a discussion about SBCSs and other code pages, fractional byte counts were briefly brought up. I brought up our consensus that fractional byte programs are disallowed, and it was pointed out that ...
Rydwolf Programs's user avatar
15 votes
1 answer
414 views

Is a transliteration tool enough to grant count as SBCS?

Prompted by this. I'll speak about Dyalog APL here, but this could really apply to any language. Background Dyalog APL has its own SBCS called ⎕AV. For backwards ...
Adám's user avatar
  • 30k
13 votes
2 answers
698 views

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

When we define a function that needs an import, we have to add it to the byte count. So far, so good. What about cases where the definition itself doesn't need the ...
nimi's user avatar
  • 35.8k
8 votes
1 answer
1k views

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

(See also this question, which is similar, but talks about the situation where the language is normally stored on disk with one command per byte.) This question originally came up in connection with ...
user avatar
2 votes
2 answers
156 views

Do I need to use imports or can I call a class explicity?

New to code golf and tried finding an answer to this question but couldn't (surprisingly) When scoring my golfed Java code I was told that I need to add in my imports as part of my score. My question ...
yitzih's user avatar
  • 111
25 votes
2 answers
2k views

Programming in LabVIEW - how to measure program size?

Inspired by this question, how would a LabVIEW program be scored? As one of the only graphical languages in common use today, LabVIEW is a bit of an outsider. As odd as it is, LabVIEW is a serious ...
Kyle G's user avatar
  • 870
15 votes
3 answers
745 views

A proposal on command line flags [duplicate]

I've been thinking about command line flags for a while, and I think that we should stop adding them to our byte counts. And instead consider different invocations to be different languages. Now ...
Wheat Wizard's user avatar
  • 97.8k
12 votes
2 answers
398 views

There's a new graphical language- how to score it?

It was pointed out on chat- and I agree- that scoring Golfical programs as 1 byte per pixel (as has been done with other graphical languages) would probably not be entirely fair. Therefore, let's ...
SuperJedi224's user avatar
  • 11.9k
9 votes
1 answer
416 views

Are languages targeting FPGAs or other non-standard/non-sequential computing platforms acceptable?

So far, almost all submissions on this site are ones that target "standard" computers, namely devices that execute code in a typically linear fashion, with a standard variety of inputs/outputs (...
nanofarad's user avatar
  • 288
9 votes
1 answer
398 views

Scoring Java lambdas with imports [duplicate]

In this answer, I used a java.util.List as a parameter to an anonymous function (lambda) answer. So, my question is, Should this import be counted to the byte ...
CAD97's user avatar
  • 1,337
8 votes
1 answer
257 views

Scoring mandatory but varying command-line arguments [duplicate]

I made a language (and its not based on Brain-flak for once!). My language, Klein requires that you specify a topological surface in which the program is embedded. Currently this means passing 3 ...
Wheat Wizard's user avatar
  • 97.8k
7 votes
2 answers
256 views

Definition of a Function in Concatenative Languages

Concatenative languages are languages where juxtaposition of functions represents composition. Programs consist of the primitives in the language combining to form a large function which takes program ...
Esolanging Fruit's user avatar
5 votes
2 answers
646 views

Scoring Algodoo and other physics sims with logic capability

Although physics simulator Algodoo has been used it to construct questions here, I just used it for a joke answer. For more involved answers, how would you score code length for something like a ...
wyldstallyns's user avatar
5 votes
3 answers
368 views

How should we score compiler/interpreter build-time options?

Prompted by this comment. The scoring of optional flags passed to compilers/interpreters has already been handled here and here. However there is another case of one more level of indirection. ...
Digital Trauma's user avatar
4 votes
1 answer
365 views

How do we count compiler/interpreter flags? [duplicate]

It's accepted practice to include non-standard compiler or interpreter flags in a program's byte count (most often used with Perl and Ruby, to run the program in an implicit I/O loop - but there are ...
Martin Ender's user avatar
3 votes
2 answers
370 views

How should the length of a Commodore 64 BASIC program be measured?

Commodore 64 BASIC has abbreviated forms for most of its keywords, ranging from ? being short for PRINT (common across many ...
Mark's user avatar
  • 2,395
-3 votes
1 answer
142 views

How should I score my new language?

Disclaimer: a symbol is in this post. This is not a swastika, this is a religious Hindu symbol. I apologise in advance if I cause any offence I am currently ...
caird coinheringaahin g's user avatar
16 votes
1 answer
478 views

On using multiple languages for a singular code golf submission

I was wondering if it were possible to use multiple languages in the same submission. Not a polyglot, but using each of the languages. I have two thoughts on this. One language invokes the other. Let'...
Conor O'Brien's user avatar
13 votes
2 answers
440 views

How to count programs in Folders?

Folders is an esoteric programming language without any files at all. Instead, the program is represented by the directory structure instead, so our normal rules for counting the file size of the ...
Martin Ender's user avatar
12 votes
5 answers
441 views

Potential execution flag rule break

I am currently developing a golfing language for a specific type of task. I was hoping to use some command line flags for different options in the language. Since the language is intended to be a ...
Wheat Wizard's user avatar
  • 97.8k
11 votes
5 answers
231 views

Should locale be explicitly specified?

Triggered by this comment. Some code-golf answers assume a specific locale. For example this answer assumes a locale of en_US.UTF-8. If the default locale on a ...
Digital Trauma's user avatar
11 votes
5 answers
475 views

How to count languages?

A common problem for rosetta-stone and polyglot challenges (and some code-challenges) is to decide when two different languages/dialects are different enough to be counted separately. Common ...
Martin Ender's user avatar
11 votes
1 answer
408 views

Scoring Desmos equations

The Desmos graphing calculator, commonly referred to as just Desmos1, has been used for a number of answers, by me as well as others. However, scoring (as well as I/O, but that's for another post) ...
Ethan Chapman's user avatar
10 votes
2 answers
317 views

How to count bytes in languages with autoformatters [duplicate]

In QBasic, VBA, AppleScript, etc., there is an autoformatter that adds spaces and expands some syntactic sugar. For example, if I type this code: ?x*2 QBasic ...
DLosc's user avatar
  • 38.5k
8 votes
3 answers
423 views

What is the best way to actually time an answer for fastest-code challenges

Is there a "best" way to do this? I imagine one could write a bash script that would print the time, execute the program, and then print the time again, but perhaps there are pitfalls with this. Is ...
Liam's user avatar
  • 3,205
7 votes
1 answer
243 views

Bytes for changing a configuration file before running a program?

In this answer using Python's turtle module, I discovered that some default settings for the turtles are set in a configuration file called ...
mbomb007's user avatar
  • 23.3k
7 votes
0 answers
215 views

A clarification on Vyncode [closed]

This was prompted by the recent meta post about byte compression in scores, as well as other bits of confusion and uncertainty I've seen on the site. If you've been around on the main site in the last ...
lyxal's user avatar
  • 32.9k
6 votes
1 answer
256 views

On byte count and language preprocessing [duplicate]

Related: Fair size comparison across languages with different source alphabets Scoring non-ASCII languages in code-golf has been long-debated. Since I primarily uses APL for code golf, I have seen ...
TwiNight's user avatar
  • 4,790
5 votes
1 answer
298 views

Measuring Sticky Tape in Bytes

This answer: https://codegolf.stackexchange.com/a/107882/64538 received a comment which reads: Hello, and welcome to PPCG! I don't know if tape is valid, but it should at least be 1 byte. Is this ...
12Me21's user avatar
  • 6,671
3 votes
2 answers
608 views

Jelly- can we really score it by character count? [duplicate]

Jelly is one of those languages that doesn't use ANSI text in its code. Why should we score Jelly by its character count when each character can take up to 4 bytes? For example, take this answer (...
user avatar
2 votes
1 answer
477 views

Score Brainfuck as 0.5 bytes per char (because it only uses 8 characters)? [duplicate]

I think that Brainfuck and many other esoteric languages almost never win code-golf, because they take many characters to express things. So, overall, Brainfuck programs are longer in bytes, because ...
user avatar
2 votes
1 answer
544 views

How to compile/score answers in .NET languages, specifically VB.NET

I recently submitted an answer to a code-golf question in VB.NET, and one comment pointed out that I could omit two System. statements from the code, because it ...
Jens's user avatar
  • 191
2 votes
2 answers
220 views

Scoring PHP GET Parameters

With PHP, GET parameters may be specified as command-line arguments, which is a valid form of input by our rules. However, they must be passed in the form ...
user avatar
2 votes
2 answers
76 views

Byte counting for BASIC style DATA / READ inputs

Background Many BASIC dialects idiomatically use DATA and READ commands to store and read input data from the source code. We ...
Taylor Raine's user avatar
  • 8,320
2 votes
5 answers
353 views

How to score Box-256 answers

Since asking what I believe is the first Box-256 based question on Code Golf (Box-256 Assembly - BIG SQUARE II) there has been some confusion with regards to scoring. I'd like this question to be a ...
Baldrick's user avatar
  • 261
0 votes
0 answers
91 views

Scoring tables in Desmos

There is not a way to copy-paste tables in Desmos & one of my golfs require a table. How should we score tables?
weatherman115's user avatar
-3 votes
3 answers
189 views

Byte compression in scores

I am asking this because Vyxal, and mainly Vyxal has a compression algorithm to shave bytes off. I think of this as a bit unfair, so I would like to propose the following: If a programming language ...
Joao-3's user avatar
  • 1,021
-3 votes
2 answers
232 views

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

BBC micro:bit is a piece of hardware wich allows to to run code, such as Python or Javascript, that is custom made for the micro:bit chip. However, it in itself is not a programming language. Instead,...
caird coinheringaahin g's user avatar