« first day (3182 days earlier)      last day (1644 days later) » 

12:06 AM
CMC: Write two expressions, one with a falsy value and one with a truthy value, but prefixing the expressions with + should make the first one have a truthy value and the second one have a falsy value
 
12:19 AM
There's probably some language where you could do this with a + that becomes a ++
 
+($a=-1) in perl
 
12:51 AM
does anyone here speak french? I'm having trouble translate "Do not bring the website down"
the best I got is (ne is implied as its a list of things not to do) "Essayer de démonter le site"
 
1:07 AM
ah, nvm
 
 
1 hour later…
2:19 AM
0
A: Sandbox for Proposed Challenges

boboquackcode-golf math combinatorics algorithm Disconnect a social network A version of this question was used in the 2019 International Mathematical Olympiad, which is now public. Modifications italicised. A social network has n users, some pairs of whom are friends. Whenever user A is friends wit...

 
 
2 hours later…
4:44 AM
0
A: Sandbox for Proposed Challenges

Ed MartyReconstruct the ASCII art from a string I have a bunch of ASCII art that I have recovered from a failed hard drive. Unfortunately, all of the newlines were stripped out, and I don't know the resolution of the original artwork. To make matters worse, all the white space at the beginning and end w...

 
 
2 hours later…
6:25 AM
0
Q: Don't get banned from stack exchange!

tuskiomiI'm sure this is going to spark some controversy, but let's do a practical demonstration. The objective of this is simple, using the new code of conduct and no input, print out my pronouns ( "he/him", "he him" is also acceptable). Here's the challenge. This is a classical polyglot contest! ...

0
Q: type in a random mess of capital letters

SexyMan123SOMe PEOPle lIkE tO TYpE iN A LoGiCAL MAnNER, WITh CapITals aT tHe bEGiNnIng Of ThE SENtENCE and smaLl LETTErS EVeRYWHErE eLsE. NOT Us. NOt Us. Your joB iS to tAkE A SenTEncE Of A LL SMAlL LeTTeRS, And rANDOmly ChAnGe sOMe to caPiTAl. ThiS iS a Code gOLF so tHE SmaLleST coDE WIll win. here is ...

 
6:45 AM
@ConorO'Brien "Ne cherchez pas à rendre le site indisponible", or "Chercher à rendre le site indisponible" if it’s a list of "ne pas"
 
 
2 hours later…
A _
8:32 AM
Is MyLang particularly less golfy than Carrot? (I need a lot of advice because MyLang is still in its extreme early development stages, I have only made 2 commits to the language.)
 
In a function submission that outputs a result by returning, is it OK to print some garbage to stdout?
 
@Bubbler Yeah, if stdout is not the way you give your result you can print garbage there
 
8:55 AM
Great :)
 
9:08 AM
1
Q: Rational Number RNG

Dannyu NDosThe Objective Build a random number generator whose range is \$[0,1) ∩ ℚ\$. What's the fuss? This RNG is weird. Its range is nowhere connected, but is dense in the interval! The probabilty mass function For each element in the range, the probability for it to occur must be: X | 0|1/2|1...

 
0
A: Sandbox for Proposed Challenges

Dannyu NDosGolf you a co-quine for greater good! Build a program that halts if and only if the input matches the source code.

 
 
2 hours later…
A _
11:12 AM
: 52138149 Hi
 
A _
12:03 PM
In a complete-program submission that outputs a result to stdout, is it OK to return some garbage?
 
 
1 hour later…
A _
1:28 PM
I basically ran out of things to do on my TODO list to MyLang, therefore I am abandoning the language.
 
@A_ Goodbye, World!
 
A _
Oh no, Veskah is leaving this world!
 
Not yet (un)fortunately
 
A _
Or I need to reconsider what "world" means.
 
What is my function?
 
1:33 PM
As off topic as it is, we have many more relevant tags :/
 
@cairdcoinheringaahing They need a program that functions correctly, obviously.
 
A _
Functional programming is about making programs function without any problems.
 
Or the program has a function in it?
 
A _
A function is obviously a purpose of something that makes it work well.
Any program written has a function. Even the null program has a function: error in some languages, do nothing in other languages.
Yes, this challenge does need more specific tags.
 
@A_ No it doesn't, it'll be deleted within hours
 
A _
1:50 PM
I can't find the challenge anymore. (I guess it is less than 30min.)
 
2:36 PM
0
A: Sandbox for Proposed Challenges

caird coinheringaahingTranslate a simple sentence from Toki Pona Toki Pona is a linguist's code golf: A minimalist language with a vocabulary of around 120 words. Because of this, it has very few grammatical irregularities found in other languages, making it ideal for a code golf challenge. Your task is to take the ...

 
A _
It will be very easy to make a golfing language optimized for .
 
2:55 PM
1
Q: Make a haystack (with a needle)

AdmBorkBork(Essentially the inverse of Find the needle in the haystack) Given two tuples, (w, h) and (x, y), generate a haystack composed of a single random printable ASCII character of w width and h height with a needle made of a different random printable ASCII character at (x, y) when measured from the ...

 
3:16 PM
@NewMainPosts canvas.... does not have any random builtins. ಠ___ಠ
 
@dzaima Does your APL answer to ^^ make sure that the needle is distinct from the hay? It seems quite short to do so
 
@cairdcoinheringaahing APL has dyadic ? for deal which makes sure results are distinct
 
@dzaima That's a nice feature :P Had to add 12 bytes to my answer for distinctness :/
 
3:51 PM
@A_ all languages that are not functional must be dysfunctional
 
4:13 PM
I'm not sure if it's a good sign or a bad sign that I've had so many deleted answers to my haystack challenge.
 
0
A: Sandbox for Proposed Challenges

Sam DeanCreate a safe crossing. Given a string/number/array of any two distinct characters make the "squarest" 2D array that allows "someone" to cross from left to right or top to bottom "stepping" only on whichever character you have chosen as your stepping stone or Make the "squarest" array possib...

 
4:39 PM
0
A: Sandbox for Proposed Challenges

DJMcMayhemIs it rectilinear? code-golf geometry math Today's challenge: Given an ordered list of at least integer 3 points forming a polygon, determine if the resulting polygon is Rectilinear. A polygon is rectilinear if every interior angle is a right angle. The edges do not necessarily have to ...

 
@newsandboxedposts Thank you
 
>...of at least integer 3 points

I assume that's supposed to be "3 integer points" instead?
 
Aye
 
5:03 PM
@AdmBorkBork I feel like there's gotta be a better way of slicing a 1D array into columns and rows than a -join-replace'(.{$x})','\1`n'
 
@Veskah That was the shortest that mazzy and I (all mazzy) could come up with on the alphabet soup challenge.
 
Fair enough
 
5:44 PM
Hmm, I feel like I'll never default to thinking PSv6 is default until I bother to upgrade my workstation
Dammit, missed the grace period of an edit by 5 seconds
 
6:13 PM
hi
 
6:40 PM
0
Q: Plain Hunt Bell-Ringing

gadzooks02Your task is to create a plain hunt (a bell ringing pattern) with n bells. An example with 6 bells: 123456 214365 241635 426153 462513 645231 654321 563412 536142 351624 315264 132546 123456 Each number "bounces" off the side of the grid. From Wikipedia: Each bell moves one position at eac...

 
 
1 hour later…
7:48 PM
CMC: output all positive integers which cannot be written as the sum of two other positive integers.
lol
 
I call them the "additive primes"
 
Better hurry and get it into OEIS
 
@Veskah -1 doesn't work if signed zero since 1+(+0) = 1 :p
 
[Muffled screeching]
 
 
2 hours later…
10:05 PM
0
A: Sandbox for Proposed Challenges

flawrMeasure the Discrepancy code-golfmathsequence Given a finite sequence of real numbers \$ s_1, s_2, \ldots, s_n\$ and an interval \$I=[a,b]\$ that contains the whole sequence, find its discrepancy \$D_n\$. Definition* Let \$I = [a,b]\$ be an interval that covers the whole sequence \$(s_i)_i\$,...

 
 
2 hours later…
11:51 PM
@PhiNotPi Snails, 0 bytes:
Why does this seem to come up a lot
 

« first day (3182 days earlier)      last day (1644 days later) »