Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »

Posts by AndrewTheCodegolfer‭

38 posts
40%
+0 −1
Challenges Tiny Turing-completeness

Your challenge today is to golf a program to interpret something Turing-complete. You may use any Turing-complete system for this so long as it is not the source language of the challenge - even a...

0 answers  ·  posted 2y ago by AndrewTheCodegolfer‭  ·  edited 2y ago by AndrewTheCodegolfer‭

71%
+3 −0
Challenges Guess the language! (Robbers' Thread)

COPS THREAD A famous cops-and-robbers challenge whose source shall remain unnamed is brought to Codidact. You are a robber. Your goal is to find answers on this link which haven't been cracked an...

12 answers  ·  posted 3y ago by AndrewTheCodegolfer‭  ·  last activity 2y ago by m90‭

Question cops-and-robbers
81%
+7 −0
Meta Default Rules: Loopholes

Interpreting the challenge too literally If the challenge asks that you print the nth prime given input n, a program printing the nth prime given input n isn't allowed.

posted 3y ago by AndrewTheCodegolfer‭

Answer
77%
+5 −0
Challenges Guess the language! (Cops' Thread)

ROBBERS' THREAD A famous cops-and-robbers challenge whose source shall remain unnamed is brought to Codidact. You are a cop. You should write a program in a "famous" (has an English Wikipedia/Eso...

16 answers  ·  posted 3y ago by AndrewTheCodegolfer‭  ·  last activity 2y ago by Shaggy‭

75%
+4 −0
Meta How free is "free" for cops and robbers?

Languages with free online interpreters are free This includes all languages currently on tio.run, for example.

posted 3y ago by AndrewTheCodegolfer‭

Answer
66%
+2 −0
Meta How free is "free" for cops and robbers?

Platform specific languages are free if there is a free implementation on another platform (or of the platform which the lang is native to) Although Batch is exclusive to Windows, Windows can be p...

posted 3y ago by AndrewTheCodegolfer‭  ·  edited 3y ago by AndrewTheCodegolfer‭

Answer
75%
+4 −0
Meta How free is "free" for cops and robbers?

Free access must not be finite There has to be a time-unlimited, free way to run the language in question.

posted 3y ago by AndrewTheCodegolfer‭  ·  edited 3y ago by AndrewTheCodegolfer‭

Answer
77%
+5 −0
Meta How free is "free" for cops and robbers?

I have proposed that we shouldn't use nonfree languages to compete in cops-and-robbers challenges, but this proposal needs some demarcation. Matlab, Stata, LabVIEW all have finite free trials. Bat...

4 answers  ·  posted 3y ago by AndrewTheCodegolfer‭  ·  last activity 3y ago by Razetime‭

75%
+4 −0
Meta Default Rules: Loopholes

Storing information in the platform specs We should disallow requiring the program to be run on some platform to store information for the challenge. An extreme example would be Nullary, in which ...

posted 3y ago by AndrewTheCodegolfer‭

Answer
66%
+2 −0
Meta Default Rules: Random

My thoughts on the matter Does randomness need to be uniform? Nope, although it has to follow the specifications of the challenge (but if the challenge is too demanding with its randomness yo...

posted 3y ago by AndrewTheCodegolfer‭  ·  edited 3y ago by AndrewTheCodegolfer‭

Answer
60%
+1 −0
Meta Default Rules: Code Golf I/O

Image output may be a pixel shader A pixel shader inputs x,y coordinates of a pixel and prints the color of a pixel (scalar for grayscale, tuple for full color, bool for binary...). Relevant for S...

posted 3y ago by AndrewTheCodegolfer‭

Answer
57%
+2 −1
Meta Default Rules: Code Golf I/O

Programs/functions may use the presence/absence of output as a bool

posted 3y ago by AndrewTheCodegolfer‭

Answer
75%
+4 −0
Meta Default Rules: Code Golf I/O

Numerical I/O may be given as a character code Input 64 may be given as @ instead. This mostly exists for languages like Brainfuck that only take input through character codes.

posted 3y ago by AndrewTheCodegolfer‭  ·  edited 3y ago by AndrewTheCodegolfer‭

Answer
80%
+6 −0
Meta Default Rules: Loopholes

Multiple URL shorteners in a web-based challenge In challenges which require fetching data from the Internet, URL shorteners can be problematic. This is because: shorteners made after the cha...

posted 3y ago by AndrewTheCodegolfer‭

Answer
81%
+7 −0
Meta Default Rules: Code Golf I/O

Functions may take multiple arguments with currying For some languages like Haskell this is almost a necessity, as only one-argument functions exist and multi-argument functions are implemented wi...

posted 3y ago by AndrewTheCodegolfer‭

Answer
71%
+3 −0
Meta Default Rules: Loopholes

Empty answers to questions requiring an interpreter In particular, "simulating" a machine on this very machine by accepting the initial state as the simulation's initial state and returning t...

posted 3y ago by AndrewTheCodegolfer‭

Answer
66%
+4 −1
Meta Default Rules: Loopholes

Bypassing source restrictions by storing data in the file name In some languages, like Pxem, programs are usually stored in the file name and the file's contents are irrelevant. On Somewhere Else,...

posted 3y ago by AndrewTheCodegolfer‭  ·  edited 3y ago by AndrewTheCodegolfer‭

Answer
81%
+7 −0
Meta Default Rules: Loopholes

Using the lack of features in a language to trivialize the problem For example, in a challenge which requires your program to check if it is connected to the internet, using Brainfuck to always pr...

posted 3y ago by AndrewTheCodegolfer‭

Answer
77%
+5 −0
Meta Default Rules: Loopholes

Optimizing specifically for the given test cases Applies to "code-speeding" or fastest-code where your program must run as quickly as possible, as well as compression challenges. Obviously, there ...

posted 3y ago by AndrewTheCodegolfer‭

Answer
75%
+4 −0
Meta Default Rules: Loopholes

Abusing native number types It's common to restrict inputs, outputs, intermediate algorithm values, etc. to fit into the native number type of the language. This can be a problem for languages li...

posted 3y ago by AndrewTheCodegolfer‭  ·  edited 3y ago by AndrewTheCodegolfer‭

Answer
80%
+6 −0
Meta Default Rules: Code Golf I/O

Regexes may output via the list of matched strings (capture group 0)

posted 3y ago by AndrewTheCodegolfer‭

Answer
57%
+2 −1
Meta Default Rules: Code Golf I/O

Functions may return bools via the presence/absence of an error Crashing to mean false and not crashing to return true. Another branch of the exit code answer.

posted 3y ago by AndrewTheCodegolfer‭

Answer
81%
+7 −0
Meta Default Rules: Code Golf I/O

Programs may take input from prompts from the GUI For Mathematica, JS, Matlab, et. al. this is the closest thing they have to STDIN.

posted 3y ago by AndrewTheCodegolfer‭

Answer
77%
+5 −0
Meta Default Rules: Loopholes

Using inconsistent I/O An example would be a program whose only two outputs given some input can be 2 and 11. The program is print(11): claiming that it outputs in unary for some outputs and in de...

posted 3y ago by AndrewTheCodegolfer‭

Answer
77%
+5 −0
Meta Default Rules: Loopholes

Using a non-free (beer) language on a cops-and-robbers challenge For a discussion on what counts as "free", see this post. Cops-and-robbers challenges have two components: a cop posts a program o...

posted 3y ago by AndrewTheCodegolfer‭  ·  edited 3y ago by Moshi‭

Answer