« first day (1940 days earlier)      last day (2894 days later) » 

3:00 AM
What does the *_ do?
 
* is splat, _ is just a var name.
 
allows variable num of args
 
Is there any challenge that does not count on the code length, or the time elapsed, but the space used?
 
Like a "Memory-golf?"
 
@QPaysTaxes I believe you can
what's the context?
 
3:08 AM
Assignments in lambdas are possible, but not straightforward.
 
^
why don't you just use def for that case? It's even shorter
lambda must follow an expression, not a statement
but you can make a statement into an expression
 
Because if you're using lambdas like that you are DoingItWrong™
 
what do you want the lambda to return?
because lambda a,b:xxx is same as def c(a,b):return xxx
 
Lambdas are for short things. It's fugly to have long inane statements in lambdas. Use an actual function
 
lambda thing, another_thing, dict: dict == (dict[thing] = another_thing)
Does this work?
 
3:11 AM
The whole point of a lambda is to return something. They're not replacements for named functions.
 
^
12
Q: The game of Sevens! Who said what?

Sherlock9The game of Sevens is played as follows: n players sit in a circle, and start counting up from 1, passing to the left (or from player A to player B). When a number p that has a 7 in it OR is divisible by 7 is reached, then the player who spoke the number p-1, after the next player says p, must s...

 
interesting observation: parasitic relationships over time will always converge towards symbiosis
 
I may instantly give you the bounty if you write it in J
@orlp For example?
 
@LeakyNun mitochondria
 
@Dennis that too although I assumed Q was also returning something and had clipped that off
 
3:13 AM
@QPaysTaxes that's not a counterexample
 
@orlp I don't think mitochondria were parasites...
 
@quartata Q?
 
@LeakyNun they were separate organisms
 
@quartata Doesn't mean they were parasites
 
@Dennis guy who pays taxes
 
3:14 AM
OIC
 
@El'endiaStarman that's much longer, not better at all
 
@QPaysTaxes Global? Two dozen lines away? Python functions can be nested.
 
anecdotes are irrelevant
you have to see it from an evolutionary perspective
a parasite has a positive interest in the well-being of its host
 
@LeakyNun Pretty sure the definition of a parasite is thing that lives inside another thing to get some form of advantage
 
@quartata ... that also harms the host
 
3:15 AM
there is a selective pressure against parasites that do not help their host survive
@QPaysTaxes at that point it's not a parasite anymore
 
@LeakyNun No. plenty of things in symbiotic relationships would definitely qualify as a parasite
 
@QPaysTaxes Not really. Look up ERV.
Some viruses do become symbiotic with the host.
 
@QPaysTaxes when I destroy a chicken to rearrange into molecules for my own body I'm not being a chicken's parasite
@QPaysTaxes a virus doesn't live inside another thing
it consumes it
 
@QPaysTaxes I said "some" viruses.
We wouldn't exist if it wasn't for virus
 
viruses that do infect eukaryotes have evolved to give slow lingering deaths to maximize the time to spread
 
@orlp What about retroviruses
 
> If not for a virus, none of us would ever be born.

In 2000, a team of Boston scientists discovered a peculiar gene in the human genome. It encoded a protein made only by cells in the placenta. They called it syncytin.

[...]

What made syncytin peculiar was that it was not a human gene. It bore all the hallmarks of a gene from a virus.
 
@QPaysTaxes Why have a lambda in a dict if it doesn't have a important return value? I'm envisioning x = {1: (lambda y:'randomThingReturned')(7)}
 
@HelkaHomba it is a dispatch table
 
again, counterexamples are meaningless
if a virus mutates such that it can replicate itself without destroying its host cell, selective pressure will favour that virus
 
3:20 AM
^
 
@QPaysTaxes yes, it is always true
the convergence is always true
not the end result
and they can still be around for billions or trillions of years
 
@orlp Then why hasn't all viruses become symbiotic, after so many years of evolution?
 
Retro doesn't mean old. It means it mixes its RNA/DNA wiith the host
 
Viruses evolve faster than human because their lifetime is shorter
 
OK carry on
 
3:22 AM
you guys know the harmonic series?
it diverges to infinity
you guys are constantly stopping after N terms and say: look, it's still not infinity
 
@QPaysTaxes His original statement was
> parasitic relationships over time will always converge towards symbiosis
"over time"
 
"converge"
do you know what that means?
 
@QPaysTaxes Counter-examples don't disprove the trend
 
always converge
don't take it out of context
 
are not always converging
 
3:25 AM
@QPaysTaxes that's just a self-fulfilling definition
by definition that species will not change
because that's the species
if it mutates, it's a new species
 
Anyway...
You guys should relax and have some 🍣
 
@QPaysTaxes I think his point is that viruses will eventually be forced to adapt when our immune systems evolve and that the only possible outcome will be symbiosis of some sort
 
mmm, I love square
@quartata that's not my point
my point is that evolutionary pressure prefers symbiosis over parasitism
and if at some point a species mutates into symbiosis, that species will have the advantage over the parasite version of it
 
That is kinda what I am saying just me poorly wording
 
ah
 
I don't like the word "adapt" in evolution though
 
38 secs ago
 
@Dennis :D
 
On mobile so I can't really articulate very well
 
holy
 
3:30 AM
@orlp "select for" would be better phrasing
 
on stackoverflow I have 20 golden badges
@QPaysTaxes evolution isn't an algorithm - it doesn't say what happens, anything could happen through sheer chance
look at the panda
it's useless and refuses to have sex
yet it exists (for now)
 
@orlp Doesn't the "fit" in "survival of the fittest" mean "adapted to the environment"?
 
@LeakyNun no, it means "survived while those not fit died"
 
@orlp Only because we kept it. We affected the evolutionary pathway lol
 
Not quite though since evolution has to work with existing traits. Humans won't sprout wings because they have no extra limbs to utilize as wings
 
3:31 AM
@Dennis Welcome to the club :)
 
@quartata looks at bats who turned their hands into wings
 
@HelkaHomba :)
 
@orlp What does "fit" mean?
 
Yeh, hands they already had
 
@HelkaHomba One day I will join this club!
 
3:32 AM
@LeakyNun good chance of survival given the circumstances (fitness function)
 
Maybe not soon, but hopefully eventually.
 
@Dennis Now go beat Martin in rep!
 
@orlp So who survives is the fittest and who is the fittest survives?
 
If we evolved into having wings they would replace our arms most likely
That would be interesting.
 
@LeakyNun no, who survives is whoever survived, and who is the fittest has the best chance of surviving
fitness is a prediction
 
3:33 AM
@quartata This is exactly what happened to birds and bats?
 
@HelkaHomba Working on that. :P
 
@orlp And how do you know who have a better chance of surviving?
 
@LeakyNun that depends on a lot of factors
 
Yeah. It was just an example though. Maybe it would have been better to specify "wings in addition to arms and legs"
 
for example, you might have white and black scorpions in a desert
black scorpions might be spotted more easily by predators vs white ones
and overheat more easily
s/beetles/scorpions/
so you'll likely see more white scorpions in a desert
you argue that a white scorpion is more fit
 
3:35 AM
"you might have yellow beetles and black beetles"
"easily by predators vs white ones"
bangs head against wall
 
yeah oops
 
@LeakyNun minor typo I'd say...
 
You get what he means though don't get mad salty over semantics
 
@orlp I call that "adapted to the environment"
 
but just because a species is more fit does not guarantee survival
@LeakyNun but there is no adaption
adaption is an active process
 
3:37 AM
adaption through natural selection?
 
it also implies a reasoned being that executes the adaption
 
I see
 
don't get me wrong
the term is not wrong
it's often used by biologists
but I feel that it causes people to misunderstand evolution
 
I see
 
evolution isn't a process or something that's done
 
3:38 AM
evolution is a theory lol
 
not even that
 
What do you mean?
 
"different species on earth came to existence through evolution" is a theory
 
@quartata "mad salty"? ._.
 
evolution is
that's what I meant
not the first origins of life
 
3:40 AM
@orlp That's exactly the theory of evolution
evolution has at least 3 meanings
 
yes
note the distinction
"theory of evolution" is a name for the theory I mentioned above
that's a proper noun
 
oh boy let's not open the religion can of worms please
 
evolution: the mechanism of evolution, the theory of evolution, and the theory of universal common ancestry
 
"the theory of evolution"
 
@quartata evolution has nothing to do with religion
 
3:41 AM
@LeakyNun One of which is doing a glowy transformation at level up .
 
ohai @Geobits
 
evolution vs creationism does not end well I meant. Sorry it just looked like the conversation was heading there
 
@Geobits which one?
 
@LeakyNun Except that it kinda does.
In the opposite way
 
@quartata I believe there's no creationist in this room
 
3:42 AM
@quartata One of them is secretly Marky2.0 I bet
 
@LeakyNun Oh lots of pokes evolve upon reaching a certain level.
 
"evolution" is a name for the phenomenon that favourable traits are more likely to survive, and a post-evolution observer will tend to observe mainly species which had those traits
"the theory of evolution" is a name for a theory that attempts to explain the differences in species through a reasoning of favourable traits and survival bias
 
Post- a specific effect of evolution that is not evolution as a process
 
^^
 
@LeakyNun no, but I am christian.
 
3:44 AM
you can argue against the theory of evolution
 
@EᴀsᴛᴇʀʟʏIʀᴋ Doesn't make you a creationist.
 
but you can not argue against evolution
 
So please don't be rude about people you don't agree with.
 
it's not a theory, or something to be proven/disproven
 
3:44 AM
@EᴀsᴛᴇʀʟʏIʀᴋ When was I so?
 
I personally belive in both the christian god and evolution and parts of the the threory.
 
parts of the theory
which parts you don't believe?
 
it's just a phenomenon - the thing being argued is whether or not it's the explanation for biodiversity on earth
 
@LeakyNun that isn't really a polite question since it is loaded
 
how would I phrase it politely?
 
3:46 AM
@quartata why?
it's a literal restatement of what easterly said
 
@Geobits I choose you! to break up this interminable conversation.
 
let's break it up like this:
Leaderboard (evaluated):
Jelly:       !¡
05AB1E:      F!                (swaps order)
Actually:    `!`n
MATL:        :":p
CJam:        q~{m!}*
Pyth:        u.!GEQ
Pyth:        Mem=.!GH
Jolf:        e+*j"!Y                (swaps order)
Mathematica: #!&~Nest~##&
J:           4 :'(!^:y)x'
J:           4 :0\n(!^:y)x\n)
J:           ".@($&'!'@[,":@])
UGL:         iilRc%l$d:_l*%:%rd:_o
Haskell:     f 0 y=y\nf x y=product[1..f(x-1)y]                (swaps order)
Ruby:        ->a,b{eval'a=(1..a).inject:*;'*b}
Chat mini-challenge: given positive integers x and y, output the result of the application of factorial to x for y times
For example, 3,2 -> (3!)!
 
It's nice to see my answer near the top since I'm a terrible golfer.
=)
 
which one was yours?
 
@LeakyNun is this inspired by my discussion of meta-meta-meta operators?
 
3:48 AM
MATL
 
I see
@orlp perhaps
 
why is Ruby below Haskell when it's shorter :(
 
It isn't
the haskell has a newline
the Ruby postdates the haskell
 
oh, okay
 
Or we can break it up with another chat mini challenge. Given a character in a-z0-9, output the row of the keyboard it's on.
 
3:51 AM
which row is the first?
 
"1234567890"=1
"qwertyuiop"=2
"asdfghjkl"=3
"zxcvbnm"=4
 
Ooh I should add a modified l mode to cinnamon gum for char in string
 
I'm gonna go get ice cream while you guys are figuring out the challenge.
 
@HelkaHomba I tried and failed :/
 
@DrGreenEggsandHamDJ can I use my keyboard?
then I'll reprogram my keyboard to be abcdefg....
 
3:53 AM
What keyboard is it?
I think that would count as a standard loophole.
 
@DrGreenEggsandHamDJ ooh what flavor of ice cream?
 
 
standard loophole flavor
 
@DrGreenEggsandHamDJ nah, you just gotta specify QWERTY keyboard :)
@quartata I <3 green tea flavoured ice cream
it's the best
 
3:55 AM
@DrGreenEggsandHamDJ ahhhh the joys of having a disposable income
@orlp never tried that
 
Lol, I have more disposable income right now then I ever have in my life, since I live at home and work 30 hours a week at a non-food job.
 
@DrGreenEggsandHamDJ I believe all of us live at home
unless someone here is homeless?
 
home = with parents rather than at school I reckon
 
it's just an interesting part of perspective
 
3:58 AM
@DrGreenEggsandHamDJ Jelly, 20 bytes: ⁵R’ŒṘ€W;Øqz⁶FF€i’%4‘
 
"home" to you means "my parent's home"
 
That's a common idiom, right?
Or at least, I thought it was.
 
@DrGreenEggsandHamDJ definitely not
home is just where you live
that's why I mean it's an interesting part of perspective
because living at your parent's home is so ingrained into your life and your peers up until now, that's what it means to you
while those who haven't been living at their parents' home for most of their lives do not share that perspective or meaning with you at all :)
 
I suppose.
I still have heard people say that though.
 
sometimes it can have the appropriate meaning
 
4:00 AM
And Helka understood me.
 
for example, a college student often does not possess his/her own home
so when a college student says - in a conversation - "I live at home" it means as opposed to living in a dormitory
 
@DrGreenEggsandHamDJ Sure. Maybe "idiom" is not the correct term but many would understand what you mean (especially if it was known you went to college)
 
@DrGreenEggsandHamDJ Jelly, 17 bytes: ØDW;Øqz⁶FF€i⁸’%4‘
 
I'm actually not going to college right now.
I took a couple classes last semester, but then I decided I'd rather be able to work more hours this semseter.
And by "Last semester" I mean fall and "this semeseter" means spring, since it's still not in my brain that this semester is over.
 
4:06 AM
@DrGreenEggsandHamDJ Jelly, 7 bytes: Øqf€TḢ‘
 
@Dennis Damn.
How does it?
 
@Dennis does jelly have a qwerty builtin?
 
@EᴀsᴛᴇʀʟʏIʀᴋ not yet, haha. O(1) space usage is a huge problem
 
@orlp Yup.
 
ah
Øq
 
4:08 AM
@orlp That's beautiful.
 
@DrGreenEggsandHamDJ Filter each string in “qwertyuiop“asdfghjkl“zxcvbnm” by the input, get all truthy (1-based) indices, retrieve the first (0 if list is empty), increment.
 
@Dennis That's clever, I spent all my time trying to get the digits inside...
 
@LeakyNun I mean...
 
meh
 
it's basically using a builtin directly aimed at this challenge
cool, sure, but clever? I think dennis has done a lot of clever things, and calling this clever would be an insult to those :P
 
4:11 AM
@HelkaHomba Jelly, 3 bytes: r×/
Completely ignores the fact that they are placed on a standard keyboard
 
Right... :S
 
@LeakyNun rP
 
@Dennis oh... right
@HelkaHomba Jelly, 2 bytes: rP
@HelkaHomba Pyth, 4 bytes: *F}E
 
http://testing
[.](orlp.me)
 
it almost worked
 
4:14 AM
:(
apparently .com works, but .me doesn't
 
U+00A0 automatically converted to U+0020...
 
Better mc: Given two digits 1-9 print their min distance in vertical/horizontal jumps on a standard numpad. e.g. 7 5 -> 2, 8 9 -> 1, 1 9 -> 4, 3 3 -> 0
 
You mean taxicab distance
 
yes
 
is 0 undefined?
 
4:17 AM
only need to support 1 through 9
 
nice
 
Isn't 0 below 1 and 2?
 
@DrGreenEggsandHamDJ You can allow 0 if you really want :P
789
456
123
00
like ^
 
That would actually be a decent challenge on main.
 
Feel free to post it
 
4:19 AM
Lol, this feels like a repeat of what conor did.
 
>.>
 
wait, it's invalid
@HelkaHomba Pyth, 12 bytes: Lj+8b3saVyEy
 
Pyth, 11 bytes saMCm.Dtd3Q
 
ah, the mighty divmod
Pyth, 11 bytes: L.Db3saVyEy
Pyth, 10 bytes: saMCm.Dtd3
@orlp The final Q
 
0
A: Sandbox for Proposed Challenges

Sp3000Simultaneous variable updates Suppose we have the following code snippet: a = 2*b + c b = a - b + c c = a + 3*c In most programming languages, the above three lines would execute one after the other. This means that the a on the second and third lines would refer to the updated value of a, ra...

 
4:30 AM
0
Q: Calculate the Numpad Taxicab

Dr Green Eggs and Ham DJCredit goes where credit is due Given two integers, x, and y, calculate the shortes number of horizontal or vertical jumps to get from x to y on a standard numpad, e.g. 789 456 123 00 You can safely assume that all inputs will be 0-9, and you do not have to handle invalid inputs. The input ...

 
@HelkaHomba Jelly, 8 bytes: ’d3ZIFAS
port of the answer in pyth
^^^
 
@DrGreenEggsandHamDJ you added 0
that wasn't in the original
 
@orlp Too impulsive :p
 
is it that crazy to assume it'd be the same challenge?
 
@LeakyNun Erm... ’d3ạ/S
 
4:33 AM
14 mins ago, by Helka Homba
@DrGreenEggsandHamDJ You can allow 0 if you really want :P
 
@Sp3000 Where's the Zip?
 
Why zip when you can ạ/ :P
 
@DrGreenEggsandHamDJ you should add a testcase where the left 0 is the shortest
e.g. 0, 4
 
btw
if someone is out of challenge ideas
^ gogo
 
4:36 AM
@Sp3000 Wow....
 
@DrGreenEggsandHamDJ maybe put the credit on the bottom? It's not really crucial that it be noticed right away
 
@orlp I've been secretly hoping for a few months now that nobody decides to clear OEIS out for good challenges :P
 
4:53 AM
@DrGreenEggsandHamDJ "digit" rather than "integer" in the first bit might be clearer
 

« first day (1940 days earlier)      last day (2894 days later) »