« first day (1560 days earlier)      last day (3292 days later) » 

2:00 PM
say i have a list of tuples, and i want to convert it into a dict where the keys are the sums of the tuples and the values are the list of tuples with that sum
 
@Geobits I think you can only do that yourself...
 
what's the golfiest way to do that
 
@trichoplax Yea, probably.
 
@Geobits Best make the next one REALLY good ;)
 
at the moment i have d = {s:filter(lambda x:sum(x)==s,l) for s in set(map(sum,l))}
is there a better way?
 
2:03 PM
@sirpercival I assume the spaces in ` = ` are just for clarity?
 
yes
i'm looking for an algorithmic golf, not a character-wise golf
 
Too. Much. Pressure. Can't. Think. Of. Great. 10000th. Message :(
 
I'm a knob.... You don't need to escape ' inside a "
-2 chars
 
@Optimizer I actually thought about putting it there last time it came up...
 
a list works as well as a dict, but i would need to throw a sorted around the set
 
2:05 PM
@Geobits I am disappoint.
 
@Geobits There's still time to edit...
 
No way, not after that kind of buildup ;)
 
how do you know its 10000th
 
He counted
 
I'll just have to think of something for my 11111th or 12345th one. That should give me some breathing room.
 
2:07 PM
@Optimizer go to the room info. hover about little number in the lower right corner of the user's panel on the right.
 
^ or user chat profile.
 
we should make a scatter plot of rep vs no. of chat messages
 
dammit, I already crossed mine
now I cannot ruin it :/
 
ha, [x for x in l if sum(l)==c] is shorter than the filter() by a couple bytes
 
but I would have anyways ruined it already :D
 
2:09 PM
@Optimizer Wow we're more talkative than Geobits...
@sirpercival Nice one
 
that's what happens when you are not full of Geobits
 
hm, I was thinking about doing a simple golf to generate/print the Pauli matrices (given an integer in 0..3)... but I can't think of anything clever that will feasible in non-golfing languages over just hardcoding all four of them. :/
 
@trichoplax it's still wordier than i'd like
@MartinBüttner thoughts on my astrometric tiling challenge?
 
@sirpercival sounds hard :P
 
link ?
 
2:11 PM
what's a version of "wordier" that applies to bytes instead of words? bytier? that seems weird
 
longer? :P
 
boring
 
@sirpercival bowler
 
how about information-sparse
:D
 
readable?
 
2:14 PM
Grotesque?
 
hahahahaha
 
The reason bytier doesn't work IMO is because a byte doesn't correspond to a word, but a letter most of the time. You don't say letterier.
 
keywordier
 
UnOptimized?
 
verbose?
 
2:15 PM
nonterselike
 
dumber ?
 
@Geobits stringier then?
 
verbose is p good
 
poorly ?
 
gregarious?
pretty
loquacious?
 
2:16 PM
@MartinBüttner I like that :D "Your code is a bit stringier than it needs to be."
"Eww, this is way too stringy."
 
This clearly needs a meta question to settle on a default 10 point scale
 
hahaha
 
@trichoplax a meta-golf ?
 
@Optimizer No I meant a meta discussion - how would a meta golf work with this though?
 
@trichoplax I meant, how do you consider top ten ? shortest ones ?
 
2:21 PM
Oh I see - no I meant a scale from golfy to stringy, with various adjectives in between
 
Do they all need to be superlative-enabled?
 
@Geobits Oh yes
 
so as i get the purpose of the rules , every challenge must be sandboxed when its not about code-golf ? so the author would be leaded to a good scoring ?
 
@AbdouAbdou It's recommended to sandbox every challenge, whether it's golf or not
 
@AbdouAbdou Not must, but just "it's a good idea", especially if you don't have much experience with posting.
 
2:23 PM
golfy -> dense -> terse -> abbreviated -> short -> long -> extended -> gregarious -> sparse -> stringy
 
yes , two challlenges of mine were been closed
 
yes short and long are adjacent on purpose
 
@sirpercival Some of those are superlative-challenged.
 
so i think i lack of experience
 
@Geobits then improve it :D
 
2:24 PM
Or just force it: abbreviateder
 
abbvdr
 
@AbdouAbdou My approach is this: post it in the sandbox. If it gets improved, that's good. If it turns out to be already perfect, there was no harm in waiting in the sandbox for a few days
2
 
back to Pauli matrices... how about you get a string of digits 1 to 3 (representing the matrices), and you need to reduce them to a single matrix plus leading - or i or -i depending on the phase.
 
@trichoplax aha , thanks
 
(and don't feel like you can't advertise it here if it doesn't get much attention, I think this is considered fine)
 
2:26 PM
@AbdouAbdou :)
 
@trichoplax unless lives depend on the posting of the challenge, where every day you delay, a kitten dies somewhere
 
@Optimizer Nobody here likes kittens
 
That's why we sandbox so much ?
:D
 
lol
 
the secret is out!!!1
 
2:47 PM
due to the overwhelming support I got for the Pauli matrix idea, I thought I'd sandbox it ;)
 
0
A: Sandbox for Proposed Challenges

Martin BüttnerMultiply Pauli Matrices code-golflinear-algebra The Pauli matrices are a set of 2x2 matrices which appear very commonly in quantum physics. If we include the identity in the set, the four matrices are: σ0 = σ1 = σ2 = σ3 = [1 0] [0 1] [0 -i] [1 0] [0 1] [1 0] ...

 
3:02 PM
this much support should have been enough for directly posting it though :P
 
@randomra although, you cannot give 2 50 rep bounties
second one will be minimum 100
 
Any woodworkers in the house? woodworking.stackexchange.com/q/1363/570
 
wow, silver for the poker card answer...
 
3:06 PM
@Optimizer even if they are not active at the same time?
 
@randomra yes. but I am not sure if you can have two bounties active at the same time anyways
 
@Geobits provided that gets a nice answer, that is bound to go crazy on the HNQ :D
@Optimizer not on the same question, I think
 
woodworking.se is popular ?
 
@MartinBüttner Maybe. Unlike some of my questions (especially here) I'd much rather get a "useful" answer than rep for this one ;)
Both would, of course, be optimal.
 
ok, increased the second one to 100
 
3:09 PM
@Optimizer no, but I believe a lot of people would click that question if they see it in the HNQ
 
@MartinBüttner its a cycle. it wont go to HNQ unless it gets more views and an anaswer with upvotes
(in a short period of time)
 
well yeah, but ww doesn't have a lot of activity, so the traffic scaling should make it easier to get into HNQ (as I said, provided it does get a nice answer)
 
there is traffic scaling in place ?
 
Yes, or I'd never have even heard of woodworking.se, most likely.
Who knew that giving my kid HP books would mean I got to make magic wands in my spare time? Go figure.
 
why do you have such tools for woodworking ?
 
3:14 PM
I don't, but family nearby does. Did it on a Saturday while visiting.
Besides, it's fun.
 
3:26 PM
do I get notification when my bounty is about to expire?
 
yes
 
Yes, when it expires, when it's close, when the grace period is almost over... it doesn't shut up about it.
 
Saturn's Rhea
 
Looks like a moon.
 
Rhea is the name
this is 11000 X 7000 px image by Cassini
 
3:28 PM
I know, I'm just saying it just looks like a moon. Is there any significance to the picture?
Oooh, got it.
 
cassini has taken some of the most amazing pictures in the solar system IMO
 
hubble has better
 
0
A: Sandbox for Proposed Challenges

Agawa001the challenge is about chat addressing , the program receives a list of chatter A,B,C,D,.. , then keyread a series of lines from a conversation , example: A,B,C A:B (means A talks to B) B:A,C (means B respond to A about C) C:D,A (means C talks about B and A in public) D:B,A (D talks to C ab...

 
I normally just use my smartphone camera and a magnifying glass.
 
camera was pretty obv
 
3:32 PM
prbly.bttr2obvthnntenf
 
twss
 
@MartinBüttner For the example where you have 7 = 3 + 2 + 1 + 1, should one of the 1s be blue?
Also, am I allowed to blow the stack if you're really unlucky? :P
 
@MartinBüttner edited in some suggestions, remove which you find unnecessary (meta.codegolf.stackexchange.com/a/5213/7311)
 
@Optimizer i said in the solar system; hubble doesn't really point at solar system objects
 
@sirpercival so of solar system
 
3:37 PM
of solar system objects, yes
 
because Hubble is also taking pictures in solar system
@Calvin'sHobbies in my defense, you are a team!
 
Hubble takes pictures of solar system objects, too, just not exclusively. For example, science.nationalgeographic.com/science/photos/hubble-images/#/…
 
@Sp3000 yes, thanks
@Sp3000 eh, nope... there aren't really any ridiculous limits to be taken into account in this challenge.
 
:( okay
 
@randomra those are good, thank you!
 
3:46 PM
I would like to see/make a normal-looking challenge, where your code can fail at a given percentage of the possible inputs so you can do some shortcuts
 
several identify gender, etc are like this
 
Most people in real life fail to identify gender at some percentage, so that seems fair.
 
Man, everything looks so CJam-able now
 
4:01 PM
Welcome to the real world!
I had an idea of doing a challenge where you have to append "That's what she said" to all the possible matching cases, while not to the non-matching ones.
but the cases are getting all dirty :D
 
That's what... oh.
 
and I am sure many people will find it offending :D
 
@Sp3000 @sirpercival do your submissions work for minutes that aren't multiples of 5?
 
... oh, shoot
 
@MartinBüttner integer division :D
 
4:14 PM
@Sp3000 I should probably make that clearer in the challenge.
 
Let me revert a little...
There goes my 9 byte saving :P
It's funny because I read the whole thing earlier, but still managed to forget
 
question : VB and Java seem hardly existent whats the secret behind ?
 
"hardly existent"?
 
exists hardly
 
I mean, where
 
4:23 PM
everywhere in codegolf.SE
 
because who would write in VB for fun?
also Java definitely exists
but neither are particularly well suited for golfing
 
java , is because its O.O nature
 
Java's quite common actually, considering
 
VB (there are some more, where it's called "Visual Basic" for instance)
 
4:25 PM
java is oriented object , which does mean , so many code sheets are needed
 
people usually just write lambdas to avoid the boilerplate code
 
but golfing , is one whole piece challenge
 
Man, I having a lot of trouble clocking in CJam :( too many assign to vars
 
@MartinBüttner well VB is alot of fun , see en.wikipedia.org/wiki/Visual_Basic_for_Applications
 
@Sp3000 should still turn out well under 200 though :P
 
4:30 PM
it doesnt beat ActionScript anyway
 
Should be sub 100 easily, but there's too much shuffling going on :/
 
4:42 PM
example test cases added for "Non-crossing X's and crossing non-X's" meta.codegolf.stackexchange.com/a/5197/7311
 
5:21 PM
has xnor revealed the solution for his 0-1 list printing mini-challenge?
 
@randomra yup, check the python golf tips
 
@xnor nice, I can picture some of it in horrible production code
 
I leave for an hour and all of you lose track of the main thing
 
@Optimizer That's what she said...?
 
@Geobits your code needs some fixing. that is a negative test case
I was talking about upvoting my answers :P
 
5:35 PM
It's a learning algorithm. That's why the question mark. It'll do better next time.
 
@Geobits That's what she said, but I was thinking about a partially language-recognition based challenge too.
 
As in "identify the language of this text"?
 
solving as much of a crossword as you can with a program no bigger than e.g. 2MB
and you have the clues for the words
(correct letter +X points, wrong one -Y points)
 
Oh hell. Are the clues like actual crossword clues? Some of them are tricky even for humans to parse.
 
you will probably need some letters already in the crossword so you don't rely on the clues so much
but you should ideally use them to help
 
5:42 PM
Ah, that sounds a bit less research-paperish.
 
and I'm sure there are generators for very easy crosswords on the net
 
Yea, for easy ones I could see. For good ones, not so much I'd guess.
I've been pondering something based on padlock letters, but I haven't found anything non-boring yet.
 
the problem is if the generator only using a small set of clues/words it's easy to hardcode that
maybe I can generate word-clue pairs by taking out a word from a sentence and the rest of the sentence is the clue (or something along these lines like definition of the word)
 
Maybe you can find a massive clue db somewhere online.
If using definitions, you could use a whole dictionary. Just take a random definition for each word.
Better yet, use urbandictionary O.O
> Clue: A person who has a limited posterior. One who cannot fill out a pair of jeans.
> Word: lackoass
 
and first I write a challenge which asks to generate random crossword puzzles
 
5:50 PM
Lazy and effective. I like it!
 
6:00 PM
I feel like I missed a massive golfing session...
 
That's what she said!
 
My workspace takes forever to build
 
6:17 PM
Never knew Alex was my neighbor! Such a small world!
6
 
Haha I came in here just to post that exact thing
 
for wider audience.
 
@Optimizer were you on the beach a lot?
 
@randomra yeah, good times.
 
I feel like I missed something here.
 
6:29 PM
:( there's not enough Fibonacci clocking going on
 
@Optimizer: Let's clear out our comments on sirpercival's post.
 
right
 
I started fibclocking, but having separate 1s made it really ugly really fast. Gave up on golfing at that point, to be honest.
 
What in the world is "fibclocking"?
Sounds like something that should be banned in schools.
 
6:32 PM
@Geobits Oh. Okay.
 
And it is banned in schools in some places.
 
...Seriously?
 
(note: I make stuff up sometimes)
 
(Note: I believe just about anything because I have no reason to believe any given person would lie to me.)
;)
 
Ah, youth. Must be nice :P
 
6:34 PM
I am youthful, I am Paranoid, I spent the best of a minute earlier punching myself in the face... I think there might be something wrong with me
 
@VisualMelon: Uh... yeah. Maybe.
 
Based solely on that sentence, you may be right?
 
and before someone asks, yes I am listening to 7s of the Psycho theme on repeat.
 
@AlexA. If Geobits says something which is too good to be true, no graduation is not happening in 3 months.
 
@Sp3000 That much I know.
 
6:35 PM
But it was on the SE blog! June 13th!
 
:P
 
I'm onto your dirty tricks, @Geobits.
 
That's.... what... she... dammit.
 
I now have no reason to believe that any given person would lie to me... Except Geobits.
@Geobits Oh booooooo
You can do better than that. :P
 
I'm also a professional ballet dancer, and once received a commendation for helping an old man across a road
 
6:37 PM
@AlexA. It was a callback to earlier chat: chat.stackexchange.com/transcript/message/21534963#21534963
 
big toes ⇒ big lies
3
 
Not big lies. Only bending conventional truths to further the humor of the room.
 
Yet another lie
 
:D
 
6:40 PM
I don't think you stood a chance
 
@AlexA. Why are you all over his lips ?
 
@Optimizer :(
 
@Optimizer That one would not be a negative test case.
 
@Geobits I see your algorithm is improving..
So what is the general opinion ? If I somehow filter out the really dirty ones, does the challenge sounds fun ?
 
What challenge?
 
6:42 PM
That's what she said
 
3 hours ago, by Optimizer
I had an idea of doing a challenge where you have to append "That's what she said" to all the possible matching cases, while not to the non-matching ones.
 
What's a matching case?
 
@Optimizer I was thinking for quite some time how that "Thatswhatshesaid" connects to CH's question
 
@Calvin'sHobbies where TWSS would suit. it would be a set that I define.
 
6:45 PM
What if we disagree about a case and code to match? :P
 
@Optimizer does the set will be known? so it's like the regex golfs?
 
yes
@Geobits then you ... lose ?
 
@AlexA. This is getting weird..
 
@Calvin'sHobbies Yep, I'm done.
 
@randomra you can use regex golf, or build a really impressive NL. I am still not convinced to make it a golf
@AlexA. That's what she said !
:(
 
6:47 PM
... *crickets*
@Calvin'sHobbies In my defense, those are the only two pictures of a tiger and goose together I could find.
 
That's because normally the goose is eaten before a picture is taken ;)
 
^ probably exactly why
 
How are you still alive with CH being here ?
 
I doubt llamas would fare much better, to be honest...
 
I'm hiding behind the llama and some giant toes.
 
6:51 PM
@Geobits you know, you seem very confident, being just toes
 
Haha
 
@Geobits Only Martins can escape
 
Holy crap those are the cutest things ever. (The fuzzy animals.)
 
They say the only foolproof way to catch a tiger is by his toes, but they don't really have to be his toes.
 
^ what
 
6:54 PM
> Eeny, meeny, miny, moe, catch a tiger by the toe...
 
@Geobits but they say, they have to be his toes
 
Geobits isn't the only person to have ever lied
 
Wiki says by the toe. And if it's on the internet, it's obviously true.
 
But how could you catch a tiger with someone else's toes?
 
Toe gun
 
6:55 PM
@AlexA. Trade secret. Geese don't have toes anyway, so you don't need to know.
Well, nothing I'd call a toe. Maybe technically.
 
@Calvin'sHobbies What happens after 10 shots?
 
Reload!
 
With what?
 
Umm... toes. It's a toe gun.
 
But you only have 10. (Presumably)
 
6:56 PM
The premise here is that you can use any toes.
 
I thought we were catching a tiger with your big toes.
 
Nah, I just meant that toes are useful for catching tigers, whereas llamas and geese are not.
 
Geese make good bait.
(See first picture of tiger and goose)
 
This is not something a goose should be admitting. I'm almost starting to think you're not really a goose and you've been lying.
Almost.
 

« first day (1560 days earlier)      last day (3292 days later) »