« first day (2636 days earlier)      last day (2208 days later) » 
00:00 - 16:0016:00 - 00:00

4:01 PM
@user202729 I found the answer...A[np.ix_(L,L)]
which was quite surprising
 
CMC: Given an integer n and a list of integers, return the list with all values equal to n removed.
 
@Pavel APL: ~
 
@Pavel Can we assume that all integers are positive?
 
Yes
 
Sweet
 
4:08 PM
@Pavel Jelly ?
 
Rod
@Pavel Python : lambda n,l:filter(n.__xor__,l) or lambda n,l:filter(n.__cmp__,l)
 
@Rod why not n.__ne__ :p
 
Why is NSP so busy today (which is good?)
 
@Pavel Can output be reversed?
 
Rod
@EriktheOutgolfer because int don't have __ne__ O.o
 
4:11 PM
@DJMcMayhem No
 
if we can work on sets lambda n,s:s-{n}
 
__ne__ is a standard method for the != operator
 
Brain-flak, 86 bytes. I'll hold off on posting mine so that someone else can compete if they feel like it.
 
Rod
@EriktheOutgolfer no, it doesn't
 
I know DJ is going to post a Brain-flak answer
 
Rod
4:12 PM
¯\_(ツ)_/¯
 
Oh huh, Pip 10 is out
Anyone know if anything interesting changed?
 
@Rod argh NotImplemented
 
@user202729 You can pretty much always tell I'm going to post a brain-flak answer as soon as I ask Can we assume that all integers are positive?
@Pavel I heard it broke stuff
in Charcoal HQ, Apr 14 at 15:17, by Andy
Those of you running Ubuntu 16.04, don't upgrade to pip 10 yet. It breaks the pip3 command: https://github.com/pypa/pip/issues/5221
 
@DJMcMayhem Why? ...
 
Because handling 0 (and negatives) is a PITA in brain-flak
 
4:14 PM
All I know is you can't uninstall distutils packages anymore
 
@DJMcMayhem heh, I felt that reading that question :p
 
It was deprecated for forever though
@DJMcMayhem That sounds like Ubuntu's fault
 
@DJMcMayhem wow, LotM sportsmanlike behavior 10/10
 
:)
@EriktheOutgolfer So everyone starts on the same foot, this page is super helpful
 
1
Q: A title goes here

Muhammad SalmanChallenge : Given a number N and another number P , find the biggest integer M such that P ^ M ≤ N. I&O : Input is given as 2 integers N and P while output will be integer N. (You can replace the names with what you want). First value is N and second value is P Examples : 33 , 5 ...

 
4:16 PM
0
A: Sandbox for Proposed Challenges

dylnanClebsch-Gordon coefficients Clebsch-Gordon coefficients are numbers that arise when adding two quantum mechanical angular momenta. If an angular momentum has magnitude j, where j must be a nonzero integer or positive half integer (0, 1/2, 1, 3/2, 2, ...) then its z component m can take on any v...

 
@user202729 yep!
 
No repro on the pip issue on Fedora
 
(of course in Brain-flak the two inputs must be combined into one)
 
Huh: On my system, python is python2 and pip is pip3.
 
why is python python2 ಠ_ಠ
 
4:24 PM
@EriktheOutgolfer To avoid consuming the second input, change [{}] into [({})] (peek instead of pop). Keeping the first around's a bit harder, but you can do it by duplicating it onto the third stack: (({})<blah blah>)
Although I think if you do both of those, it'll put the output between the two inputs, so a, b would become a, a==b|a!=b, b
 
Input format: ToS = number to remove, rest = list.
Wait I miscounted...
I think it's about 56.
 
@DJMcMayhem rn it's in the works :P
 
@user202729 Wow, nice. The output is reversed, so that's +18 you need to fix it. I used the not equals from the wiki without thinking, so that's the rest of the byte difference in my solution. Other than that, are solutions are identical
 
yeah that's why I think the wiki is problematic, in most cases you're not simply supposed to copy and paste the stuff in
 
Now that I think about it, @WhatWizard why does the wiki even have ({(<{}>)()}{}) on Not equals? ({}[{}]) is perfectly sufficient
I realize that's necessary to get a 1/0 value, but it seems kinda wasteful to me. Then again, I should have noticed my oversight
 
4:35 PM
I think that the more you develop your solution the less your logic functions properly, maybe that's why you had an oversight
 
@user202729 Actually, when you factor in my different not equals and the reverse at the end, are solutions are literally byte for byte. Even down to little things like using the return value of <> to break the loop. Cool how that worked out
 
@NewMainPosts whats that title
 
@NewMainPosts Can we get the title changed to something more appropriate to the challenge?
 
If you can think of one, go ahead
 
I wasn't aware it was my job to fix a challenge where the author has literally stated they're too lazy to use the Sandbox.
 
4:42 PM
16 answers and 1 answer has positive rep
 
I'm not saying it's your job or anything. I'm just saying if you dislike the title, you're welcome to improve it. Or downvote it if you don't feel like it :shrug:
 
Rod
Anyone that knows pyth online? How do I pass 2 parameters from the input to an function? i.e. how to fix this
 
@betseg Because scripts written before Python3 referenced Python2 as Python and they don't woant to break it. Python2 has been deprecated for a while and python will point to python3 in the next release iirc
 
@DJMcMayhem that was too brash of an action on removing ALL of those comments. Many of them were legitimate comments that weren't part of any conversation
IMO :)
there were definitely conversations in there, but there were many comments that pointed out significant issues that really should be kept on the challenge
 
I'm quite surprised that the latest xkcd doesn't have "the pronunciation of 'gif'" at the far, far right.
 
4:53 PM
@NathanMerrill I agree that a lot of them were useful, but 50 comments in a few days is clearly too many. They're all still around, just in chat now.
 
@DJMcMayhem Sorry, that came across a little harsh. Frustrated with something else today and I took it out on you.
 
isn't it possible to pick and choose which ones get removed?
 
Not when moving them to chat
 
that's lame
:)
 
@AdmBorkBork No worries :)
 
4:54 PM
@NathanMerrill Agreed. Take it up with SE and watch them do nothing about it. :P
Well, technically, I think specific comments can be undeleted afterward.
 
@DJMcMayhem I've editted the page to make things clear
 
@NathanMerrill I'm on the edge for that challenge. I haven't read the spec (or the controller) that closely, but if it really needs that many comments for clarification I'd say the challenge is unclear
 
the challenge isn't unclear, its just broken
the biggest problem is that he encourages reflection
it's a big game of one-ups, the style of challenge I despise
 
It's also horribly unclear what is or isn't allowed (without reading/testing the controller). The Darth Vader submission is clearly sabotaging other bots/breaking the controller, but I think it's allowed? Though it doesn't seem to work
 
which challenge?
 
4:59 PM
Dollar Bill Auction
 
@NathanMerrill If you think there are a handful of beneficial comments (preferably not too many) I could selectively undelete them.
But there are 51 deleted comments ATM, so you'd have to help me out
 
@DJMcMayhem I like the Darth Vader. It's pointing out the flaws of the controller and the spec, even though it feels like it should be wrong
@DJMcMayhem I'm a bit biased, but the one I want back is this one
but it's simply me complaining about the challenge, so it's up to you
 
Announcement: APL Cultivation in 25 mins.
 
Ok, I restored that and a few of the comments pointing out technical errors
 
thanks :)
the score one was actually fine deleting. He resolved it later
I deleted it :)
 
5:28 PM
@DJMcMayhem well, I had to go because unfortunately enough studying history this year is only second to basic survival needs
 
 
1 hour later…
6:36 PM
0
A: Sandbox for Proposed Challenges

Redwolf ProgramsPalindromic Programming code-bowling In English (And other languages), a palindrome is a word that is the same read backwards. This is your challenge: to build a program that is the same run backwards. For example: var rav f4x0 = 0x4f /racecar/ But one potential problem would be a string, re...

 
7:02 PM
What is the official stance on submissions that don't work properly because of floating point precision?
 
Did you obtain permission from the American Association of Anti-Aliased ASCII Aureoles and Areolas (AAAAAAA) to use their logo? — COTO Oct 9 '14 at 10:54
(read the entire thread, it's great)
 
I found this but it's not incredibly satisfying...
 
@totallyhuman IIRC, there's no singular policy, but if such issues come up, the OP needs to clarify
 
Maybe we should have a default of some sort...
 
the issue is that some challenges are better simply ignoring floating-point precision issues, while that would break other challenges
 
7:32 PM
0
Q: Tips for answering in unary/lenguage

l4m2I decide to not limit in "golfing" because when using unary it's usually not a pure-golfing. For golfing tips that also apply for brainfuck, answer here Here also discuss when it is suitable to use unary/lenguage

 
@NewMainPosts slow down there
 
8:06 PM
1
Q: Bots playing a counting game

akoziIntroduction A childhood game designed to help children learn to count in french in Canadian schools is played as follows: Students go around the room counting up to 11 A number greater than 11 cannot be said A student can say either 1, 2, or 3 numbers If a student says the number 11 then they...

 
Is it a bad idea to make a where the game that the bots are playing involves randomness? For example, Poker? (Not actually the game I'm thinking of, just an equivalent example)
 
Doesn't sound like a bad idea to me as long as the bots go through enough games to average out the randomness
 
Not if the leaderboard is roughly the same each time you create it
 
^ good way to test it
 
How much variance is OK?
 
8:11 PM
one sigma
jk
 
For reference, I "invented" a card game, and playing it once in real life (with 1.5 decks and 4 players) the scores were in the 20-40 range
 
I think you should run it enough times such that the leaderboard doesn't actually change, at least near the top
So if you get a histogram of the score of each player after many runs, for each player the center of all other player's histograms is outside of 1 sigma of it's own center
 
Mean or Median?
 
Mean
For 20-40. If it was a more fine scoring system it might not matter as much
 
@dylnan when 4 humans played. I'm confident that some bots will do much worse than that :P
Also, Max points that could be earned in a round is limited
 
8:22 PM
I see. I would still do mean but there could be an argument against depending on the specifics.
I still think it could be a cool challenge though
 
You don't even know any of the rules yet :P
 
Haha
true
"could be"
 
Anyway, it's basically a card game of wagering and deception. You wager cards from your hand to earn revealed cards, and with each wager the cost to stay in the next round goes up. But you don't have to tell the truth about the card you wagered
 
Nit
Sounds like the card-game 1000, but I don't know what name it's known by in English.
 
I've never played that.
Just looked it up on Wikipedia. That's a bit more like pinochle, but my game is more like Bluff/BS
 
8:53 PM
...I'm unsure what to do here: codegolf.meta.stackexchange.com/a/9546/20198
The commentor wants to use a challenge another has posted
but the poster has been banned for a year
 
@NathanMerrill from chat
not from meta
 
yeah, but their profile says that "their account is no longer in use" because of that
 
Last seen Feb 7 '17 at 16:13
/me shrugs
i'd let the dude take it over
 
exactly. I don't know how much I'd visit the site if chat didn't exist. Dunno. Both options don't sit right with me
anyways, it's not really my decision. @DJMcMayhem @Dennis may be worth discussing
 
@NathanMerrill wouldn't he get the notification on any SE website
 
8:58 PM
There's a rule about a specific amount of time passing without response = snarbox post can be taken over.
 
0
Q: find the pattern in this number sequence of 1's and 0's

john mangualHere is a sequence of 1000 numbers generated using 3 lines of Python (78 characters). I'd ask you find the rule, or to find another rule that produces the sequence of numbers in less space. Here are the first 1000 numbers of a sequence. What was the rule? [0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, ...

 
@totallyhuman I know. that rule is being followed. It just feels different when the user has been banned, and decided to not participate on the site due to that
 
9:24 PM
@NathanMerrill From chat. IMO that shouldn't affect any contributions on main
 
1
A: Sandbox for Proposed Challenges

Stephen LeppikThe Top Ten Elements You Wouldn't BELIEVE Are In This Array code-golf array-manipulation AKA: Generate Clickbait From an Array. Given an array of integers, generate some cringe-worthy clickbait based on its arrangement and length: If it's 20 elements or less, you can make a Top X List. Pri...

 
10:21 PM
@NewMainPosts heh, my SOGL code compressor compresses that string to 80 bytes :p
 
@dzaima If you regard golfing languages as compression algorithms, then Jelly can do 7x that.
 
@EsolangingFruit if there was a jelly autogolfer, then it'd count. Let it run for a bit more, and 74 bytes now :p
 
@dzaima 35 bytes, unless you mean with commas and brackets
In which case it's 102 bytes :(
 
It's just a bit array
You can encode it as a string an then convert it to binary in your code
 
10:37 PM
@Pavel ????
 
Well, every eight 1/0s can be represented by a character, so you can take all of them and represent it as a single string literal.
 
@Pavel which is 125 bytes...
how does Charcoal even manage to fit it in 35 bytes O_o
 
@ASCII-only Right, take that and then try compressing it.
 
10:52 PM
@Pavel also ETH has already figured it out
 
Think harder, not smarter
 
tfw you lock yourself out of your steam account after trying your pswd 20 times, being very worried about it being stolen, resetting your password, and then finding out you just suck at typing
I feel like a goat
5
 
> 20 times
 
@Riker I thought goats were flawless…
 
@ASCII-only I tried each pswd I use (disposable account, google account, steam account) each 6-7 times
 
11:05 PM
@Riker solution: type slowly
 
@Adám Goats can't type.
 
“I thought of a ‘prime FizzBuzz’ challenge: print all the prime numbers up to 100, but replace every multiple of 3 with ‘Fizz’, and every multiple of 5 with ‘Buzz’, and every multiple of both with ‘FizzBuzz’.” — @henkma twitter.com/henkma/status/189716348392321025
 
:O that sounds like a really difficult challenge /s
 
the only thing difficult to it is, well, gone if you use the worst translator in the world
 
@ASCII-only I did :/
 
11:11 PM
oh yeah @Lynn are you good at golfing Ada
 
(…I'm not hunting for Haskell FizzBuzz clues! Y-your face is hunting for Haskell FizzBuzz clues!!!)
 
@Lynn haskell fizzbuzz clues???
 
I don't know any Ada ^◡^;
 
uh...huh?
 
:|||||| so you just tried random things for the hello world
 
11:14 PM
I was looking through "@henkma fizzbuzz" on Twitter for… something
also trying to read anagol twitter is sort of fun
also the Hello World challenge was a wild rush of me poking at the whitespace and syntax in Hello World programs in like a couple dozen languages I don't really know
 
0/10
clues = how it's 81 bytes?
 
twitter.com/henkma/status/115431299824623617 “The 82-byte FizzBuzz answer is sort of normal, but also sort of not. Maybe notogawa-san feels the same way… It might be abnormal depending on who you ask. I'd like to see the rumored 84-byte solution.” hmmmm
yeah
 
@Riker one step closer to world dominate. huh
 
@Lynn uh, I would actually be afraid of doing that, just in case my answer wouldn't be seriously competing
 
@EriktheOutgolfer seriously competing?
 
11:26 PM
one of our rules is that an answer to a challenge has to be a serious competitor when it comes to that challenge's winning criterion
 
@EriktheOutgolfer define serious
 
like, it makes even a trivial attempt to compete (such as removing unnecessary stuff)
 
@EriktheOutgolfer ?
 
for example, an answer to a challenge shouldn't have lots of unnecessary spaces
 
@NewMainPosts @ASCII-only Should AtIndex automatically cast float to int? It would save a byte on Eφ§01⌊×·²⁹²⁵³ι thus tying Charcoal with Stax.
 
11:31 PM
and it shouldn't go too long that it's even longer than regular programming
 
@EriktheOutgolfer of course? but any sane person would try removing whitespace first...
@EriktheOutgolfer well sure but unless you're doing terrible then that shouldn't happen
 
the thing is that you don't know if you have absolutely no idea of a language
 
Nit
@ASCII-only Try telling that to the guys programming in Whitespace
 
the "unnecessary fluff" might not always be whitespace
 
@Nit that's the exception of course
@EriktheOutgolfer of course. for some languages you can even remove the braces in the method body if it's one statement long
i was so surprised when it worked
 
11:41 PM
@NathanMerrill They weren't banned on main and the chat ban should be over by now. If they choose not to respond, that's their decision.
 
00:00 - 16:0016:00 - 00:00

« first day (2636 days earlier)      last day (2208 days later) »