Questions tagged [scoring]

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

Filter by
Sorted by
Tagged with
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
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 ...
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
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
19 votes
1 answer
208 views

Tag proposal: [self-scoring]

I'd like to propose self-scoring or a similar tag, but I'd like to get some feedback on whether this is useful and how the tag might work. First the proposal: self-scoring is a scoring criterion ...
Wheat Wizard's user avatar
  • 97.8k
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
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
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
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
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
  • 30.1k
14 votes
3 answers
147 views

Should we standardise how percentage bonuses combine?

Some questions have a number of bonuses stated as percentages. For code golf (where the majority of these bonuses are seen) these will be percentage reductions of the score. If an answer achieves ...
trichoplax is on Codidact now's user avatar
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
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
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
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
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
12 votes
2 answers
504 views

Is the PHP opening tag mandatory in byte count?

After answering the first time on PPCG on "Source code ecological footprint" I had a little discussion about it. I found it's OK if your program throws notices or warnings. But I couldn't find ...
insertusernamehere's user avatar
12 votes
5 answers
417 views

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

On January 4th, 2022, it was decided we would allow scoring in fractional bytes. A decision I mostly agree with. Just to recap, the main reason this is beneficial for the site is: It allows comparing ...
mousetail's user avatar
  • 12.4k
12 votes
5 answers
422 views

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

Here is a checkbox I made in wireworld, for the "Create a checkbox!" question. The problem is, we don't have a way to score answers like these. Do we score these by pixels, like piet did, or ...
Matthew Roh's user avatar
  • 5,337
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
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
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
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
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
10 votes
3 answers
545 views

Byte count for named, recursive lambda expressions in C# answers

I have been questioned about the byte count in my C# answer for the The Snail in the Well challenge. Usually C# answers only need to count the following bytes: ...
Charlie's user avatar
  • 12.9k
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
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
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
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
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
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
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
2 answers
556 views

How should I count bytes with SQL?

First of all I want to mention that I use declarative set-based approach. So most (if no every) of my answer will be one statement without procedural part(user-defined functions, loops, control flow ...
lad2025's user avatar
  • 409
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
7 votes
0 answers
208 views

Does the initial `:` in a TI-BASIC program count?

According to this meta post, TI-BASIC is scored in tokens rather than characters, to more accurately reflect the byte count in-memory. On my graphing calculator (TI-84 Plus C Silver Edition), the ...
Bbrk24's user avatar
  • 2,775
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
6 votes
1 answer
210 views

How should taking in string input be scored in GeoGebra?

I have recently started to use GeoGebra for some code golf challenges involving strings, and have come across a conundrum which I want to ask the meta about, and prompts the more general question of ...
Aiden Chow's user avatar
  • 13.1k
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
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
5 votes
1 answer
649 views

Zsh: Functions and Math functions

I have been using functions for Zsh submissions for some time. I typically submit the body alone, as the body can be run as a full program with no modification: ...
GammaFunction's user avatar
5 votes
0 answers
173 views

Tag / challenge type proposal: Size coding [duplicate]

This question and proposal is different from this one, since this proposal includes a scoring mechanism that is vastly different from code-golf. What is size coding? Size coding as a form of ...
user avatar
4 votes
3 answers
386 views

Online tool to determine number of bytes for UTF-8 characters?

Is there an online tool that will tell me the number of bytes in a UTF-8 character? Or, if not, how do I determine this? I'm currently trying to determine the number of the bytes for the left and ...
theorist's user avatar
  • 1,477
4 votes
1 answer
193 views

How should a full program in R be invoked?

Related to the discussion in this post. There are multiple ways of executing an R-file. Each of these methods have either challenges in input or output. Which are acceptable to count as "Full program"...
JAD's user avatar
  • 2,984
4 votes
1 answer
114 views

How can I ask a question scored by complexity?

I want to post a challenge where the scoring is based on complexity but I don't know a) how to define this and b) how well it would be received. As an example, say the FPU (Floating Point Unit) has ...
CJ Dennis's user avatar
  • 4,276
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
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
3 votes
2 answers
371 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