« first day (4039 days earlier)      last day (808 days later) » 
00:00 - 18:0018:00 - 00:00

12:01 AM
guys
wat does jonah mean by "standard site rules for output"?
 
im still new....
 
112
Q: Default for Code Golf: Input/Output methods

Martin EnderIt looks like we have a consensus that we want certain defaults for the format which answers are expected in for code-golf. On that poll, the question arose twice, which input/output formats should be allowed for programs and functions. So here is another poll. This one works different though. A...

(fun fact, I have that as a chat shortcut :P)
 
er i cant find anything that answers my qns there tho
 
back
@lyxal okay so I was looking through my old code and I found a program that I originally wrote to test machine-generated abstract art but is PERFECT for NFTs
 
12:10 AM
@DialFrost maybe he meant to take out the requirement of outputting in the form prime number#power, because that just adds extra steps that are easy to implement
maybe do smth like a list of lists instead
 
here's one of its beautiful masterpieces:
 
a lists of lists
 
so 22 would be [[11,1], [7,-1], [5,-1], [3,-1], [2,1]] instead of 11#1 7#-1 5#-1 3#-1 2#1
 
hmmm
wont that change the qns too much alr
ppl alr answered
 
@DialFrost yeah thats a problem
 
12:12 AM
No
 
which is why we try to iron this out in the sandbox
 
Because fluid I/O allows that sort of output format
As well as others which people prefer
 
@emanresuA no to what?
 
As in no, it shouldn't be a problem
 
oh?
 
12:15 AM
loosening i/o after the fact is a problem to the extent that it semi fucks over people who answered before in the case that they did something significant in order to conform to the stricter i/o
but i doubt that really happened here
 
but then everyone has to change their answers or wat
 
they wouldn't have to, but it would probably reduce the length of most significantly
 
@DialFrost i think you shouldnt change now, but keep in mind flexible i/o in future challenges
 
oh ok
 
@DialFrost yeah, read this for more info: codegolf.meta.stackexchange.com/questions/8047/…
 
input formats
 
The chess one looks like an interesting enough challenge. I'd rename the Input and Output section to just Input, since there's no rules regarding output there. Also, your rules for input suggest people will take one line with the dimensions, then read in some more lines based on that. Rather than that, just say people will get a WxH board as a list of strings or a character matrix. Languages that also need the dimensions beforehand will just put that in themselves
 
knight ones probably dupe
 
Second also looks interesting, though I don't entirely understand it myself
 
1:14 AM
i edited it @user thx for ur suggestion
 
1:41 AM
 
@Adám when is part 2 of the APL problem solving beta testing coming through?
The first part said it'd be ready by the start of February, but I haven't gotten anything yet.
 
wats that @emanresuA
 
2:01 AM
Something that usually shouldn't appear in mathematics
Also, the answer is -1/12
 
2:12 AM
Oh hey the site is in read only mode
Fun.
 
lol
lmaooooo
at first i didnt know wat @lyxal meant
until i realised i was logged out and CG was under maintenance
 
2:33 AM
Well, since I can't post a comment, I'll ask here:
@emanresuA Are trailing spaces allowed when pretty printing your arrays?
 
Sure
 
Cool. I've already gone a different direction where it's probably not necessary, but it might help someone else.
 
3:17 AM
anyone can check my posts?
 
3:45 AM
I'm kinda wondering if the concept of art is one worth having in the first place
The definition is just so fuzzy, and I don't think there's any way to unambiguously define it, and you don't even "know it when you see it"
Do other languages have words that mean "art", or do they do it more sanely?
 
@RadvylfPrograms Well, I'd say art is definitely worth having, and it's useful to be able to talk about it, however ambiguously
This also reminds me of one of my all-time favorite quotes from a Wikipedia article: "Critics, frustrated by their inability to pin down the term's meaning, have urged its complete abandonment." (source)
 
4:05 AM
@emanresuA fun limits
@DialFrost ^
 
4:20 AM
@RadvylfPrograms fuzzy definitions are fine, a lot of stuff humans talk about is fuzzy
Like tennis balls
What we probably shouldn’t do is argue what’s real art
 
CMQ: Which is more useful: fold and scan left to right or right to left (foldl/scanl vs foldr/scanr)
 
Depends on the language
 
golflang
 
If you have linked lists withs head at the right or an apl-like lang that’s right assoc, then right. Otherwise, definitely left imo
 
i really need to make a rainbow parenthesis plugin for (n)vim
 
4:22 AM
Having both is always good
 
@user i mean its for flax
 
@PyGamer0 a golflang should have both imo
 
ok
CMQ: fold on 1st axis useful for a golflang?
 
@PyGamer0 idk what paradigm flax is but you should add random number generators with flaxseeds
 
@user give me a cmc and you will know....
 
4:24 AM
@PyGamer0 might as well add a digraph to fold on arbitrary axis
 
yea
 
@PyGamer0 cmc: fivonacci
 
ŒF (assuming you asked for the nth fibonacci number)
 
Without builtibs lol
 

 flax

Discussion about flax. Github: github.com/zoomlogo/flax. Docs: ...
@user letmethink
 
4:34 AM
Holy frick TIL car salesmen are fricking intimidating
 
no shit
 
@user i think it is O{ᵝ˙+{{ᴹᵝ˙ᴹ˙<2ᴹˀ but it errors
 
@lyxal Would you like a car? Would you like a car? WOULD YOU LIKE A CAR?
 
Especially when they're walking into the dealership in a group/pack
 
oh yikes
 
4:36 AM
Like even being 5 metres away from them and not interacting with them intimidates me
Holy frick I'm low key scared rn
I'm not even the one buying the car
Heck, I don't even drive
There's something about the coordinated blue shirts, trousers and leather boots that is just unsettling
I don't think I like car dealerships anymore
 
@user i can port jelly for 4 bytes but ..... i have Implemented ¡ in a different way ......
 
How's screaming into the mic going?
 
@emanresuA I bet it went like "AAAAAAAAAAAAAAAAAAAA".
 
4:51 AM
@emanresuA haven't many any progress since Thursday
 
@lyxal they can mind control you, scary af
 
I have escaped from the proximity from any car salesman
 
slap dat car
 
@user that doesn't scare me, the actual people do
 
Oh yeah people scare me too
That’s why I hang out here with you bots
2
 
5:09 AM
shh, don't tell user I'm a person
 
IT WORKS! Variable scoping stuff is hard
Halfwit has a map lambda working now
Filter is working too now... now to see if I can do reduce
 
5:29 AM
1 + 2 + 3 + ...28 = 134217728
Yes, definitely
 
Well done
Good math
7/2.4
(that is how rating works right?)
 
@emanresuA should it be 406?
 
Issue is, a siingle arg is beign duplicated
 
28EΣin flax
beautiful
 
28ɾ∑ in Vyxal
 
5:34 AM
wow very similar
 
406 in Vyxal
 
@PyGamer0 Should be 12345678910111213141516171819202122232425262728 :P
 
lol
 
But seriously: $+\,28 in Pip (actually $+,29 because adding 0 doesn't change the sum)
 
1234567891234567891234567890123456789123456788123456781234567891234567812347899123456782345678987654323456789876543345678654323456787654345676543245676543567
i wonder how did Dennis design Jelly
 
5:45 AM
3.5 bytes in HBL: +(0(*/+
 
5:55 AM
@DLosc the /+ was confusing me for a bit because I thought it was reduce by addition, rather than 7 and 4
And I was like "what kind of weird postfix positioned prefix operator system does HBL have?"
But then I realised that the */+ evaluates as 28, the 0( generates the range 1 to 28 and the +( is what does the summing
 
6:12 AM
@DLosc How does HBL's number system work?
 
6:43 AM
0
A: Sandbox for Proposed Challenges

py3programmer Golfing Coins The challenge is to write a program that begins with a board like this: O O X O O X O O X The O's are coins. X's are empty. Rules Move the coins into random empty places in the board The coins can only move up, down, left or right 1 spot. Coins cannot move outside the board ...

 
7:12 AM
CMC: Guess who is: user165474
 
7:27 AM
0
Q: Golfing Coins In a Board

py3programmer Golfing Coins The challenge is to write a program that begins with a board like this: O O X O O X O O X The O's are coins. X's are empty. Rules Move the coins into random empty places in the board relative to their positions (see next rule) The coins can only move up, down, left or right...

 
@AidenChow are you achow#8887 in discord?
 
7:44 AM
looks like /q/243029 might be a duplicate of /q/144571
 
@PyGamer0 uh yeah... why ask?
and how did you even find that out in the first place???
 
@AidenChow i used my psychic powers
(its just a good biased guess)
 
@PyGamer0 . . .
ok... are we in any common servers?
 
nah i joined the desmos discord, for the secondth time
scrolled down the list of online users
and saw that
 
@PyGamer0 ohhhhh ok that makes much more sense
 
7:53 AM
lol
i used my psychic powers
 
was wondering how random ppl on code golf suddenly knew my discord out of nowhere :D
 
one admin also does code golfing
pretty sure i saw them in the CGCC discord
 
@PyGamer0 fireflame241?
 
(wow the community is so interconnected)
 
who
 
7:55 AM
@AidenChow no cyandduality (idk the name)
 
oh, thats cool
 
@AidenChow fireflame241 is on CGCC, and pretty sure, a mod on Reddit
 
@PyGamer0 oh really? which subreddit?
it doesnt look like it: reddit.com/user/fireflame241
he makes really cool desmos graphs though
@PyGamer0 wait theres a discord for code golf
is it possible to send over the link
 
0
Q: How can we get new users to use the sandbox properly?

pxegerThe problem Often, when we get new users, this happens: they post their first few challenges, which receive negative feedback they are instructed to use the sandbox, which they do not long after (typically in a few hours), they post on main again This last step is the problem: we need to get us...

 
Speaking of meta stuff, could y'all vote on this and/or add your own answers?
 
8:13 AM
@AidenChow well i thought he was a mod lol
@AidenChow @lyxal send em da lonks
@NewPosts something like codidact's sandbox?
something like https://codegolf.stackexchange.com/sandbox
a separate sandbox instead of it being in meta
 
0
A: Sandbox for Proposed Challenges

AnttiP Golfing Coins (suggestion) The challenge is to write a program that begins with a board like this: O O X O O X O O X The O's are coins. X's are empty. Rules Every round you will uniformly randomly choose a coin and a cardinal direction. You will move that coin 1 spot in that direction, if th...

 
it would be better since it can then force people to post in the sanbox and wait for 3 days
and can transfer questions to main without hassle
 
unfortunately that'd require SE to implement a feature that's primarily only used by one site and max only used by a handful of sites
i discussed this with the CMs at our last meeting (which was a while ago)
 
@hyper-neutrino yeah
 
i don't think they have plans to do anything close to that, at least not for the foreseeable future
 
8:25 AM
Thing is, there are exceptions
 
@user fibonacci is +ⁿ1 in flax
 
2 days ago, by emanresu A
I know you're meant to leave sandboxed posts for a few days, but this got +5 so I'm posting it
Also it seems to be accepted for people with socratic to not use the sandbox?
 
@emanresuA that can be a condition, or use a system like flags, "flag for ready to be transfered"
or "greater than 5 votes"
@emanresuA like WW?
give examples
 
¯\_(ツ)_/¯ I'm not sure
 
lol
uh ok lol
 
8:41 AM
still didnt receive the invite link, sad
 
@AidenChow for what
 
@PyGamer0 for the server you were talking about
the code golf one
 
@JoKing thanks!
 
8:55 AM
0
A: Sandbox for Proposed Challenges

DialFrostGame of GO Go is an abstract strategy board game for two players, in which the aim is to surround more territory than the opponent. Given a board (where some stones are already added) and a list of moves to be executed next, check whether the moves are valid and (if they are valid) execute them. ...

 
@SandboxPosts dang -1 already, harsh
 
:(
 
0
Q: Output input string in 'X' pattern

user3234709Output your string as 'X' pattern. If input string is: str=:'blessed then output should look like this: b b l l e e s s s e e d d Ideally, there should be a single character at the cross-section (as seen in above example), but your program should show the x pattern f...

 
@DialFrost idk if OP intends it to be or or smth else, probably wait before editing the post
 
9:01 AM
@NewPosts This is a dupe (I remember) but I'm having trouble finding it
 
presenting (wait):
 
lol
hiya pxeger
 
wow my trick didnt work
 
It's obviously needs details or clarity
 
0
A: "Hello, World!"

PyGamer0flax C, 14 bytes 'Hello, World! The first answer to use flax. Explanation The program is a niladic chain, which means it does not take any arguments. Even though 'Hello, World! looks like a string, in flax it is represented as numbers in ASCII. Hence we need the C flag to print as characters in...

 
9:09 AM
tadaaa ^
 
But is it a dupe of this?
 
nice @PyGamer0
 
@emanresuA huh yeah its really similar
 
@DialFrost You keep making edits like this which improve nothing about the post (and very often get rolled back). You should look at the criteria for rejecting Suggested Edits; if your edit would be rejected as a Suggested Edit for any of those reasons, then you shouldn't make it using your 2k privilege either.
5
In particular, a lot of your edits fall under the "No improvement" category
 
9:28 AM
can anyone check my challenges thx
 
 
1 hour later…
10:49 AM
wait why did i get downvoted
on the hello-world challenge
 
¯\_(ツ)_/¯
 
@Downvoter explain yourself please
 
11:06 AM
0
Q: Wiggle the tower

AnttiPYour input is the height map of a tower. The tower is made out of layers, each one being one unit shorter than the one below it. Every layer is completely on top of the previous layer. For example [1,4,5,3,2] is a valid input. Here is a visualization: # ## ### #### ##### 14532 Your task is...

 
11:28 AM
imma try to get electorate badge
gna take a long time tho
 
11:45 AM
any feedback if this is a dupe of this?
btw htf did that get 5 votes
 
errrr
idk if its dup
 
oh wait, it's probably because of puberty
 
its quite similar tho
LMAOOO
 
@mathcat no it isn't a dupe
 
what's the difference?
 
11:50 AM
yours allows self-intersections
 
ah right, thanks
I'll add an example
 
your examples already have loads of self-intersections
 
CMC: Given n, return x and y where 1/x + 1/y = 1/n
It's from a maths competition paper, in which I needed to give a generic formula to calculate n, but see if you can find out and code the formula.
 
any x and y? can x == y?
well x probably != y, but could it?
 
ah sorry
x != y != n
oh and x and y are natural numbers
n too
 
11:59 AM
???
 
who needs formulas when you can brute force it
vyxal, 12 bytes: Þ∞:Ẋ'Ė∑?Ė=;h
 
natural are > 0 right?
 
yes
 
well ofc it's > 0
you can't easily divide by 0
 
ofc lah bgil
 
12:00 PM
@lyxal currently, it's returning x = y
 
I see that
16 then: Þ∞:Ẋ'Ė∑?Ė=$≈¬∧;h
14 if I can return all pairs: Þ∞:Ẋ'Ė∑?Ė=$≈¬∧
 
nice but
 
gross
 
what if I say, that using the formula, it only takes 5 bytes in Vyxal? :P
 
s/thog/I
I'm a software engineering student, not a math student
 
12:03 PM
@lyxal how fast are you in Vyxal???
 
fast?
 
It would have took me at least 10 min in python
 
practice, experience and the fact that it's the naive brute force approach
also, the fact that there's built-ins for cartesian product, all equal, reciprocal, etc helps greatly
 
nice
Does anybody want to calculate the formula or shall I reveal it?
 
because apparently yes and no get highlighted
 
12:08 PM
lol why
 
¯\_(ツ)_/¯
 
¯_(ツ)_/¯
whoops messed that up
 
\
You dropped that ^
 
@mathcat okay, so it's just x=n+1 and y=xn
with flag though
 
4 flagless: ›~*"
 
12:12 PM
i have 0 zero idea that u guys r talking about rn lol
 
@lyxal ah, that epic modifier
 
grettings
user image
3
 
tf are those things in the 4th panel?
 
shadows of plant leaves?
 
no the other things
those things aren't part of the standard template
 
12:18 PM
@lyxal those are bullets
and yes, they are in the standard template
 
that's the first time I've ever seen that
 
congration, you're one of today's lucky 10,000!
 
wow
 
lol
 
I've seen that template so many times
and never noticed it
 
12:20 PM
@lyxal yes and no can be used as booleans in YAML
 
the joke is funny tho*
*to me
@pxeger does this work in other languages
 
not many that I'm aware of
 
@pxeger do Russian programmers use да and нет?
 
1:16 PM
@DLosc ha, that’s what you think
 
1:31 PM
Wordle 246 4/6

⬛⬛⬛🟨⬛
🟨⬛⬛⬛⬛
🟩⬛🟨⬛⬛
🟩🟩🟩🟩🟩
u jelly?
 
Thanks for reminding me to play Wordle
 
That totally wasn't a horrible pun that you'll get once you get the word.
 
Wordle 245 4/6

⬛⬛🟩⬛⬛
⬛⬛🟩🟩🟨
🟨⬛⬛⬛⬛
🟩🟩🟩🟩🟩
 
@lyxal no im PyGamer0
 
> Wordle 246
cries in timezones
 
1:33 PM
You'll get my joke soon
 
hopefully it isn't a spoiler
 
Got in 5 guesses :(
 
It'sn't
@pxeger ^
 
@lyxal No, I'm Ginger Industries.
 
@lyxal No, I'm ophact.
Sorry, couldn't resist.
 
1:39 PM
14 hours ago, by Ginger Industries
@lyxal okay so I was looking through my old code and I found a program that I originally wrote to test machine-generated abstract art but is PERFECT for NFTs
 
@ophact who's "couldn't resist"? You replied to lyxal
 
want some art?
@pxeger No, @ophact replied to lyxal.
 
@pxeger "couldn't resist" is a registered pseudonym for lyxal in my (tiny) database of pseudonyms.
I just made that database today.
 
there are pseudonyms and then there are sudonyms.
 
> sudo: nyms: command not found
 
1:43 PM
iNtelligent pYthon Module Setup
 
Yes, because the current module setup is far from intelligent.
 
exactly.
 
Wow, there's an xkcd for everything
 
yup
who wants a custom-generated piece of abstract art?
all I need is a seed
 
1:47 PM
seed 0, for instance?
lemme see what your generator can do
 
okay, running with seed 0
beautiful.
 
What's "Kandinsky 6af613b"?
 
@ophact Kandinsky is the name of the program, 6af613b is the art's ID
 
do yall know any apps for drawing (android)
 
Very nice... art I guess
 
1:48 PM
if not i guess ill have to make one on my own
 
@ophact it's a masterpiece
 
indeed
 
here's one for "Ginger Industries":
 
let's not spam the room with randomly generated polygons
 
it's a guy holding a knife cutting down a wall
@pxeger it's not technically AI, just an algorithm for generating random shapes
but it does a pretty good job imo
 
1:52 PM
AI lmao
random <-> AI
 
well kinda
 
@lyxal no i'm mathcat
 
hmm i bet these could be NFTs
update: New Minecraft Java snapshot! with warden and deep dark shit
also new dimension confirmed?!
 
2:36 PM
@GingerIndustries your late
i saw pheonixSC
 
3:04 PM
@emanresuA Currently, there are a limited number of integer builtins, and to get any other number you have to calculate it using math functions. Vague future plans include a numeric literal syntax and fractions.
So as lyxal said, to get 28 I multiply (*) 7 (/) and 4 (+).
 
3:26 PM

Timing implementations

15 mins ago, 14 minutes total – 34 messages, 1 user, 0 stars

Bookmarked 12 secs ago by PyGamer0

 
 
1 hour later…
4:26 PM
Why this was downvoted? I need to see the comments
 
Because it lacks some details: what does the cop's code do? Does the robber's code need to do the same? How would this be measured?
but it has the potential to be a very interesting challenge.
 
@mathcat yeah, allowing x = y makes it trivial since you just set them to 2n
 
5:17 PM
 
5:29 PM
@Neil right
wait
let me see if they forgot to say that
ah, unfortunately no
It says (translated) "Prove, that every Egyptian fraction 1/n can be represented as the sum of two different Egyptian fractions"
 
00:00 - 18:0018:00 - 00:00

« first day (4039 days earlier)      last day (808 days later) »