About

Do I Need to Log in to Play?
No. Submitted solutions will be executed and checked without logging in, but nothing will be saved and you won't appear on the leaderboards.
Is Code Golf Free as in Speech?
Yes! It is written in Go, licensed under MIT, and available on GitHub; patches welcome!
Is Code Golf Free as in Beer?

Yes! However hosting isn't, so if you enjoy Code Golf consider donating to its continued existence and improvement via GitHub Sponsors.

Sponsors will receive a shiny “Sponsor” badge on their profile and a warm fuzzy feeling in their heart.

What Languages Are Supported?

><>

477 KiB
44b227e
github.com/primo-ppcg/fish-jit

Bash

1.15 MiB
5.1.8
gnu.org/software/bash/

brainfuck

4.55 MiB
6fe46c2
github.com/primo-ppcg/bf-jit

C

1.61 MiB
Tiny C Compiler 0.9.27
bellard.org/tcc/

C#

129 MiB
C# 9.0 on .NET 5.0.4
docs.microsoft.com/dotnet/csharp/

COBOL

4.09 MiB
GnuCOBOL 3.1.2.0
gnucobol.sourceforge.io

Crystal

284 MiB
1.0.0
crystal-lang.org

F#

119 MiB
F# 5.0 on .NET 5.0.4
fsharp.org

Fortran

85.8 MiB
GNU Fortran 10.3.0
gcc.gnu.org/fortran/

Go

124 MiB
1.16.4
go.dev

Haskell

332 MiB
Glasgow Haskell Compiler 8.8.4
haskell.org/ghc/

Hexagony

62.6 MiB
ac545d2
github.com/SirBogman/Hexagony

J

3.32 MiB
9.01.01
jsoftware.com

Java

69.2 MiB
16.0.1
openjdk.java.net

JavaScript

21.6 MiB
V8 8.8.278.17
v8.dev

Julia

287 MiB
1.6.1
julialang.org

Lisp

33.6 MiB
GNU CLISP 2.49.92
clisp.sourceforge.io

Lua

338 KiB
5.4.3
lua.org

Nim

21.6 MiB
1.4.6
nim-lang.org

Perl

4.29 MiB
5.32.1
perl.org

PHP

10.5 MiB
7.4.19
php.net

PowerShell

185 MiB
PowerShell 7.1.3 on .NET 5.0.4
docs.microsoft.com/powershell/scripting/overview

Python

57 MiB
3.9.5
python.org

Raku

53.7 MiB
Raku 6.d on Rakudo 2021.03
raku.org

Ruby

14.5 MiB
3.0.1
ruby-lang.org

Rust

669 MiB
1.52.1
rust-lang.org

SQL

1.02 MiB
3.35.5
sqlite.org/index.html

Swift

691 MiB
5.3.3
swift.org

V

98.1 MiB
0.2.2
vlang.io

Zig

216 MiB
0.7.0
ziglang.org

If you'd like to see another language added then raise an issue.

Are Warnings Ignored?
Yes. Only STDOUT is checked against the solution, STDERR is however shown back to you to ease debugging.
How Are Arguments Passed to My Program?
Some holes pass arguments, for those your program should read them from ARGV.
How Are Solutions Scored?
There are two scorings in use, bytes and chars. Bytes is the number of bytes of a solution encoded in UTF-8. Chars is the number of Unicode codepoints of a solution. Users may submit up to two solutions per hole per language. This is handled automatically when you enter two solutions and each minimizes a different scoring. Each scoring has its own set of leaderboards. For the chars scoring, both “A” (U+0041 Latin Capital Letter A) and “😉” (U+1F609 Winking Face) cost the same despite the 1:4 ratio in byte count in UTF-8.
How Is My Overall Score Computed?
For each hole, the shortest solution is awarded 1,000 points, with the points descreasing in uniform decrements per rank. Your overall score is simply the sum of your points in each hole.
Are Submissions Resource Constrained?
Yes. Execution time is limited to 7 seconds, CPU & RAM usage is unbounded but this will probably change soon. The length of each solution must be lower than 128 KiB as that's the maximum length of any program argument under Linux.
Is There an API?
An API is currently being developed and documented in standard OpenAPI format. A legacy API that just returns scores in JSON exists. The URL is /scores/all-holes/all-langs/all. Note that all-holes and all-langs may be replaced by the names of specific holes and languages.
Can I See Other People's Solutions?
No, that way all holes stay competitive. If you're stuck on how to shave a couple of bytes off your solution then why not drop by our Discord server for some advice.