« first day (1864 days earlier)      last day (2989 days later) » 

Anonymous
12:01 AM
Is it?
 
Anonymous
I mean, other than being a synonym for
 
oooooooooooooh burn
I'll get the aloe
 
Anonymous
Any more comments on this before I throw it on main?
 
Anonymous
2
A: Sandbox for Proposed Challenges

MegoThe puppy command The puppy utility takes a filename as input, and does exactly what you would expect a puppy to do: it shreds it! How to shred Rip out the pages with your teeth Split the input file on newlines. Tear up each page with your paws For each line (not including the linefeed), pi...

 
Anonymous
12:03 AM
I would've liked it if the challenge was to generate as many different errors as possible — Hannesh May 24 '12 at 14:48
 
Anonymous
That's the goal with my not-serious proposal
 
I have something related in the sandbox.
@Mego What if a line has less than 2 characters?
And are the indices at the beginning or the end of the line inculded?
 
Anonymous
@feersum Good catch. It won't.
 
Anonymous
Or maybe for a more-serious idea, one that could be applied to more challenges, is create the most unique non-fatal errors (aka warnings) while still solving the problem
 
Anonymous
@feersum I'll reword that bit
 
12:05 AM
I sandboxed this about a program that can generate 10 different error types.
 
Anonymous
There, it should be clearer now
 
Can I somehow directly assign an expression (eg. A -eq B) as an integer value (0/1) to a variable in bash?
Nvm, yes there is, got it.
 
question about an adverb that I can't seem to think of: how do you describe the growth of f(x)=x/(x+1)?
as in, f(x)=x grows linearly, f(x)=x^2 grows quadratically
f(x)=x/(x+1) grows... how?
 
Anonymous
Take the derivative and it will enlighten you :P
 
Anonymous
d/dx x/(x+1) = 1/(x+1)^2
 
Anonymous
12:20 AM
Which goes to 0 as x goes to +infinity
 
@Doorknob I'd say "as a constant" or "bounded by a constant".
 
Anonymous
Which means x/(x+1) grows asymptotically
 
hm, okay, thanks
 
I've never heard "grows asymptotically"
 
@Mego The derivative of log(x) also goes to 0, and log(x) goes to infinity with x.
 
12:22 AM
That doesn't make much sense since a lot of things asymptotically approach something.
 
Anonymous
My college calc professor used "grows asymptotically to a"
 
Doesn't describe the rate of growth though
 
Anonymous
See #2
 
Sure, but that doesn't say anything about the rate
f(x) and g(x) can both approach a as x -> ∞ but f might approach it much faster than g
 
Anonymous
12:26 AM
But in the long run it doesn't matter
 
Right, but Doorknob is looking for a word to describe the rate of growth, e.g. quadratic, linear, exponential, etc.
 
1/x can be described as "hyperbolic".
 
@Alex I understand "rate of growth" as a big-O class of functions, and in that case, all functions that have a finite limit have the same rate of growth.
 
Oh, that's not the actual f that was asked about.
 
It grows "ever closer to one-ally". You guys are making this too hard >_>
 
12:31 AM
@Geobits ( ͡° ͜ʖ ͡°)
 
@Geobits Naming things is hard.
 
@Zgarb Personally, I think you had it right the first time with bounded.
@AlexA. Right back at ya, little pie bird.
 
._.
Speaking of naming things being hard, what's a good name for a variable that holds the number of bytes written to some output?
 
bytesWritten
 
^
 
12:34 AM
n
 
Never camel case
 
CRAP_PRODUCED
 
cumulativeBytesWrittenToSpecifiedOutput
 
@feersum I'll go with this one
 
"never camel case"? I see we have a blasphemer in the room.
 
Anonymous
12:35 AM
@AlexA. num_bytes_written
 
@Geobits Well, never for decent languages, anyway.
snake_case_is_best_case
 
Anonymous
Python irks me in that regard
 
SCREAMING_SNAKE_CASE_FOR_CONSTANTS
 
Underscores are a blight on variable naming.
 
no
 
12:36 AM
@Mego What do you expect a snake to use?
 
lel
 
Anonymous
Everything is snake_case (and PEP8 says to use snake_case), except the unittest module (and maybe a few others that I've missed)
 
___bytes_WRITTEN
 
Anonymous
unittest.TestCase.setUp is wrong
 
bIRDcAse
 
12:37 AM
How about snamel_Case?
 
Anonymous
@Geobits ಠ_ಠ
 
Well the other option was cake_Case, but the cake is a lie.
 
@mınxomaτ I ended up using this but with snake case.
 
Anonymous
I personally would use num_bytes_written because bytes_written could be confused as a boolean value
 
I would be willing to bet that nobody will be using this anyway so #yolo
 
12:40 AM
such a rebel...
 
Anonymous
Dance like nobody is watching. Program like everybody is watching.
 
Anonymous
(so put some pants on you damn hippie)
 
Birds don't wear pants, man. You should know.
 
Anonymous
I was talking to Donald over there
 
Penguins regularly wear tuxedos, and those have pants.
 
12:41 AM
2
Q: The puppy command

MegoThe puppy utility takes a filename as input, and does exactly what you would expect a puppy to do: it shreds it! How to shred Rip out the pages with your teeth Split the input file on newlines. Tear up each page with your paws For each line (not including the linefeed), pick a random integer...

 
@NewMainPosts -1
 
Anonymous
I think finding an appropriate image that was free for non-commercial use took the longest time in writing that challenge
 
Does the puppy not end up eating any of the bytes as a reward for his hard work?
 
Anonymous
@Geobits Nope. He is set to destruction mode, not eating mode.
 
Anonymous
puppy -e will destroy some of the bytes
 
12:43 AM
Gotcha.
 
Anonymous
Serious new challenge type idea: . You have a primary objective that must be fulfilled, and a 5x5 board of optional objectives. Shortest code to fulfill the primary objective and get a bingo wins, tiebreaker is earliest submission that fulfills the objectives.
 
Seriously?
 
_UNK
 
Anonymous
I hate you all >_>
 
I'm not sure I don't know how to do that but I'm not sure about that
 
Anonymous
12:47 AM
_UNK
 
I'm not sure if I'll be a good idea
 
It actually doesn't sound that bad. You could even leave out the primary objective, honestly.
 
I can't believe you've done this
 
(assuming a very well balanced board)
Thinking up 25 balanced objectives is going to be a serious pain, though.
 
Could use a smaller board
 
12:48 AM
Sure, if you want to insult bingo players everywhere :P
 
I tend to dislike challenges with multiple programs/objectives/bonuses/etc.
 
Anonymous
@Geobits The primary objective would be used to set the theme for the challenge. The bingo objectives would just be things you could do in the code, possibly unrelated to the primary objective, like "run in under X seconds for each test cases"
 
When there are too many parts, half of them usually end up being woefully underspecified.
 
@Mego Oooooh, I see. Still, thinking up that many good ones could be hard.
 
Anonymous
The best part about this idea is that we can finally kill off bonuses in code golf with it, since code bingo would be a better tag for a challenge with bonuses
 
12:50 AM
I'm with feersum. I'd be interested to see an example but in practice I don't know how well it'll work.
 
> finally kill off bonuses in code golf
hahahaha
I wish.
 
Anonymous
If people want to have optional objectives, they should make it code bingo. Code golf can be reserved for "shortest code to fulfill this one objective"
 
People will never stop trying to put bonuses in code golf.
 
Anonymous
Alternatively it could be a list of optional objectives, and submissions are required to fulfill X of them
 
The problem is that it isn't a 1:1 thing. In golf you often see a single bonus tacked on. You can't expect someone to go from that to 25 (or even 9) separate ones.
 
12:52 AM
It's just one of those things that'll never happen.
 
Anonymous
I'm still strongly in favor of making bonuses in code golf off-topic.
 
Oh I am too. I'm just saying I don't think bingo will be the coffin nail.
 
Anonymous
No, but maybe it could start building said coffin
 
At least "in favor", anyway, if not strongly.
 
Anonymous
Having bonuses in a code golf challenge is sufficient reason for me to downvote and comment. Only if the bonuses work really well and the challenge is really good will I not downvote, but I also won't upvote.
 
12:56 AM
Yea, that's what I mean. Sometimes they work out, but they're so easy to get wrong that people get slammed for them too often to be worth it.
 
I don't think code golf challenges should be closed as off topic if they have bonuses. All we have to do is make sure regular users don't put them in and if a new user puts them in, edit out and comment.
 
Anonymous
@Mego Err, s/off-topic/disallowed/
 
They're already listed as one of the things to avoid when making challenges. I think that's sufficient. If someone makes a challenge with bonuses, comment with a link to that.
 
Anonymous
Code golf should just be "length of the submission in bytes" imo. Anything else should be code challenge. Even length in characters, because then half the challenge is cramming your submission into UTF-16.
 
Anonymous
@AlexA. Commenting with a link to the post hasn't ever prompted the OP to remove the bonuses as far as I've seen, and more often than not prompts arguments.
 
12:59 AM
Do you have a specific example in mind?
 
Anonymous
2
Q: Write a radix sort

Patrick RobertsGoal As the title suggests, write a radix sort function (either MSB or LSB is fine) that accepts two parameters: an array of values of any type (you can assume that they are all of the same type / class, etc.) a function (or function pointer, depending on your language) that takes a single par...

 
Anonymous
Had to go through my comment history to find it
 
So then what need to happen is a meta post asking if they should be allowed at all (if we don't have one). At least then it would link to a rule instead of a "you should maybe probably not do this, but if you really want to, go ahead".
 
Yes, this ^
 
Anonymous
Like this one?
 
Anonymous
1:03 AM
15
Q: Should bonuses be allowed for [code-golf] questions?

Ilmari KaronenPrompted by a discussion between Peter Taylor and myself, I'd like to solicit the community's opinion on the following issue: Should awarding score bonuses for extra features disqualify a challenge from being tagged as code-golf, or is it enough that the primary scoring criterion is code leng...

 
Ah, so the problem then is that there just isn't really consensus, so it's not a rule :/
 
Anonymous
The things to avoid answer has +29/-2. The corresponding answer on that question has +8/-2
 
Anonymous
The main issue I see is that most people who agree with the policy from the newer question haven't voted on that answer
 
Sure, but there's a big difference between "should avoid" and "it's banned", and the support for the latter doesn't look nearly as strong.
@Mego That's very possible.
Some people though might think it should generally be avoided, but wouldn't want to ban it altogether.
 
@Mego The top voted answer on that post is barely an answer IMO
 
Anonymous
1:06 AM
Maybe it's worth having a new discussion now, since two-year-old meta questions never get noticed
 
Perhaps. I can't guarantee nobody will vote to close as a duplicate because people do that.
 
Does Pyth have a function to "chunk" a list?
 
Anonymous
It's a catch-22: you can't have a discussion on a relevant, old meta question because nobody looks as old meta questions, but you also can't start a new question without it being VTC'd as a dupe.
 
@Vihan c
It's literally called "chunk" in the docs
 
@Doorknob thanks
 
1:12 AM
With quotes and everything?
 
@Mego Yep. I'd say just post it and see what happens.
 
@Doorknob they'are docs? O.o
 
@Geobits "chunks"
 
if I'm looping through a list in Pyth, how do I get the index?
 
@Vihan fixes emoticon and not spelling error
 
@AlexA. But what if it gets downvoted and closed on meta? Think of all that precious rep lost! :o
 
0
Q: Fastest way to detect if we've left a 3D box (8x8x8)

FuzzymanOK so... Imagine a 3D box, with width, height, and depth all 8 units. So that is 8x8x8 "cells" in the box, for 512 cells. Assume 0,0,0 is the bottom-left-nearface corner, and 7,7,7 is the opposite corner. It's pretty easy to move around in the box. Each cell has a number. To move right, add ...

 
@NewMainPosts fastest code is an objective primary winning criterion
 
haha I was just about to mention that
 
Does Pyth have a like a spread operator? [1, ...[2,3,4]] -> [1,2,3,4]
 
Anonymous
1:16 AM
@Doorknob Not stating what the code will run on is a lack of an objective primary winning criterion
 
@Vihan .n?
 
^
 
Anonymous
Is it Windows? Is it Linux? Is it single-core or dual-core? 32-bit or 64-bit? What's the processor? How much RAM? etc etc
 
Fastest code to check if you're in a box? How many iterations to get something clockable? A billion?
 
Is Pyth's random uniform?
 
1:17 AM
@Vihan And I think the word you're looking for is "flatten," not "spread."
@Vihan Should be AFAIK
 
@AlexA. flatten is more bytes than spread
 
"Flatten" is searchable :P
 
@Vihan .n
ninja'd
 
Anonymous
@AquaTart sumo'd
 
Sumo'd
 
1:18 AM
@AquaTart by like... a minute...
@AlexA. rofl
 
Anonymous
@AlexA. ninja'd
 
noonj'd
 
@Mego Fuck, you ninja'd by sumo'd, you samurai
 
d'ninja
 
bearmonkey'd
 
1:18 AM
( ͡° ͜ʖ ͡°)
 
Anonymous
@AlexA. Samurai'd is now the official term for ninja'ing someone else in pointing out a ninja'd
 
what if you samurai a samurai
 
Anonymous
Emperor'd
 
Mt. Fuji'd
 
amaterasu'd
 
1:19 AM
LMAO I just forgot to title a game in Game Dev Tycoon. Now "Game #12" is my best selling game of all time
Perfect 10s from everyone
 
Anonymous
@AquaTart Are you The Behemoth?
 
It must be because of the catchy title
 
@AquaTart I kind of like the title
 
@Mego No.
 
Does Pyth have a way to add two integers as strings? e.g. 1 <operator> 2 = 12?
 
1:20 AM
Not a bad title. Song 2 worked, after all.
 
ermahgred it's making so much money
 
@Vihan You haven't found those docs yet?
 
@Geobits It's faster asking here than reading docs
 
@Vihan ಠ_ಠ
 
@Vihan No, you'll have to use backtick to make them strings
 
1:20 AM
Not once people stop answering it isn't.
 
@AquaTart ok
 
This reminds me of duct-tape coding :D
 
Anonymous
This chatroom is not google
 
I made 2.5 million dollars off of Game #12.
ok
The funny part is
It was a sports game
 
Anonymous
2 days ago, by Doorknob
debates over whether to add "this chatroom is not Google" to the description
 
1:23 AM
Of course not; it's better.
It has working NLP to understand your queries instead of just treating them as a bag of words.
 
Anonymous
I think you're giving too much credit to this room's inhabitants
 
Yea, but google doesn't usually avoid the question nearly as well.
 
Anonymous
For example, I'm a penguin. I type by slapping the keyboard with my wings.
 
> If your language is unable to perform file I/O, you may instead take the input file's contents as input, and output pairs of strings representing the output filename and the text for that file.
@Mego You should make it clearer that it's only if the language can't do file I/O.
 
Anonymous
How is that not clear?
 
1:25 AM
^
 
I don't know. Could have used some bolding or something.
haha
 
IMO that clause should be removed altogether.
That gives an unfair advantage to those languages.
 
Anonymous
Better idea
 
Oh yeah, because Jelly doesn't have file I/O and so it can take advantage of that output format and completely dominate.
 
Anonymous
> Iff your language is unable to perform file I/O, you may instead take the input file's contents as input, and output pairs of strings representing the output filename and the text for that file. However, your submission will not be eligible for winning.
 
1:27 AM
:/
 
@Mego s/Iff/If/
 
@AlexA. Yeah, maybe it will finally be competitive.
 
Anonymous
@Vihan Nope
 
@Vihan Iff is "if and only if"
 
@Vihan no
double-ninja'd
 
1:27 AM
oh
I have never heard that before
 
Anonymous
I made it clearer for Alex with the addition of one single letter
 
It's not used outside of math speak
 
Anonymous
In logic and related fields such as mathematics and philosophy, if and only if (shortened iff) is a biconditional logical connective between statements. In that it is biconditional, the connective can be likened to the standard material conditional ("only if", equal to "if ... then") combined with its reverse ("if"); hence the name. The result is that the truth of either one of the connected statements requires the truth of the other (i.e. either both statements are true, or both are false). It is controversial whether the connective thus defined is properly rendered by the English "if and only...
 
@AlexA. it isn't? Formal logic isn't only for math
Lojban folks use it too :P
 
@Doorknob I consider formal logic "math speak." ¯\_(ツ)_/¯
 
1:29 AM
@Doorknob In theory they do. In practice they don't exist.
 
haha
 
Anonymous
Hey Alex you got any of that aloe left over?
 
I personally see "iff" used a lot even in casual math/CS talk
 
@Geobits .i .o'onai je'u zasti .i do cusku lo jitfa
 
Anonymous
I think Doorknob needs some
 
1:30 AM
how do you do file writing in Pyth, I read the docs but I didn't understand it
 
@Doorknob That's not any sort of rebuttal as far as I can tell.
 
:(
 
Do you have a cat?
 
I misinterpreted @feersum. I thought he was suggesting that the file I/O requirement be removed altogether in favor of the STDIN/OUT thing. I like that.
 
Anonymous
@Vihan Clearly you didn't read the docs, because it's explained very well
 
1:30 AM
Write A joined on newlines with a trailing newline to the file B,
 
@AlexA. No no no.
I'm suggesting that there is no alternative allowed to the file I/O.
 
@Doorknob yes but what is file B supposed to be
 
@feersum Fixed.
 
@Vihan read line 31
 
oh
now I feel stupid
 
blob
 
@Doorknob Having issues...?
 
hahahaha I... I can't type
>_>
 
user image
5
 
1:33 AM
<_<
 
how do you read a file in Pyth, I can't find that in the docs
 
@Vihan @Mego literally linked the exact line for you
 
Anonymous
3 mins ago, by Mego
https://github.com/isaacg1/pyth/blob/master/rev-doc.txt#L54
 
oh
 
How do I read a documentation?
 
1:35 AM
with your eyes
 
I try for thirtee minut and no documen
 
Anonymous
Ugh don't remind me I still have to write docs for Seriously
 

Marky can't Pyth

46 secs ago, 14 seconds total – 4 messages, 2 users, 0 stars

Bookmarked 6 secs ago by Geobits

 
@Mego Hey Mego, you Seriously have to write docs.
 
Anonymous
I'll work on that after finishing srs2py
 
1:36 AM
@Geobits he's not wrong
 
I never said he was wrong :)
 
@AlexA. Stop it, seriousl— AHH
:P
 
@Vihan ' reads
 
@AquaTart Mego ninja'd you by 3 minutes
 
.w writes
@Vihan :/
 
1:38 AM
Oh I forgot to shove some food in my face hole
 
You should go put some stuff in your mouth.
 
@AlexA. thanks for reminding me
 
@AlexA. which face hole
 
I had chicken wings, fried squash/onions, green beans, and mashed potatoes earlier :D
 
./pyth.py -e ".e.e.wZ+`kYc/lb+2O-lb2b'z" asdf
Does anyone know why does that not run?
 
Anonymous
1:41 AM
Pulled pork street tacos, celery, and hummus
 
Anonymous
@Vihan Have you tried debugging it?
 
@Mego The code works but I can't run it, the shell just displays: >
 
@Doorknob All of them at once and hopefully some of the crap I cram in there will make it to my stomach
 
What's the fanciest/most complex dish you've made yourself? @eatingPeople
 
@AlexA. okay, good, that's what I thought, just making sure
 
1:42 AM
@HelkaHomba Most involved time-wise was probably when we did tamales. Not fancy at all though :P
 
@HelkaHomba Authentic Thai panang curry with tofu and vegetables. I made the curry paste myself, which took literally over an hour.
 
> eatingPeople
Calvin confirmed cannibal
 
TIL cannibalism is one of Calvin's Hobbies.
 
@Vihan that means there's something you need to escape in the code
 
the backtick
 
1:43 AM
I would just put it in a file
 
or just stick it in a file
ninja'd
 
I tried that
 
Anonymous
Double quotes means for bash to try to interpret the string
 
Anonymous
And the backtick is making it look for a subcommand
 
just put it in a file
 
1:44 AM
also, how do I give the pyth program input? I tried adding it as an argument and it didn't work
 
Anonymous
echo input | ./pyth.py whatever
 
@AlexA. I don't remember Calvin being a cannibal. I think something changed when he evolved into Helka.
 
@HelkaHomba Chicken enchiladas with mole sauce
Although that one time I made yokan was probably more time/effort
 
@Mego thanks
 
@Vihan You know how STDIN in Unix works right
 
1:46 AM
@AquaTart yeah. I just wasn't sure how Pyth took it though
 
Just type it in and hit control D.
 
Hm. I look in kitchen and I try for thirtee minut and no fod. I forget to goes to the groceries this weekemnd.
 
Or use <<<
 
@AlexA. :(
 
1:47 AM
@HelkaHomba What's the fanciest/most complex dish you've made yourself?
 
@AlexA. It started with a nice Chianti and fava beans...
 
@Geobits hahahaha
 
What?
 
Lemon meringue pie perhaps
 
1:49 AM
Oh shit get that copier some mayonnaise ASAP
 
@AlexA. From Silence of the Lambs
 
@mınxomaτ Starred for launching my son into an uncontrollable giggle fit.
 
o
 
-1 for not getting reference
 
1:50 AM
I still haven't seen that >_>
 
You have your homework assignment then.
 
Is it on Netflix?
 
Anonymous
Yep
 
okra
I'll have to do
 
1:52 AM
@AlexA. Tortillas + oil (fry them) + salt = easy chips
 
Or tortillas + cheese even.
 
@AlexA. Ooh, okra is good too
 
@HelkaHomba I have only oil and salt
@HelkaHomba Yes
 
I've actually never had okra.
 
Get bhindi masala the next time you eat Indian food
It will make you love okra
 
1:53 AM
Or just fried okra would.
 
Hmmm
 
Pickled okra is pretty good, too, assuming you like regular pickles.
 
bhindi masala eh
 
I tend to avoid frying things at home (beyond just pan frying) because I hate the smell of oil.
 
Anonymous
Roasted okra > fried okra
 
1:54 AM
@Geobits I like pickled vegetables yes
 
@AlexA. I live in the south. It's kinda a permanent feature around here.
 
haha
 
stahp talking about food. It's 3 AM, everyone's asleep and I'm getting hungry
 
@Mego Anything but plain soggy boiled, really.
 
Anonymous
@Geobits Boiling most vegetables should be a crime
 
1:56 AM
@AquaTart nor have I
 
@mınxomaτ That's the perfect time to eat. No sharing! :P
 
Anonymous
Cabbage is the only exception that comes to mind
 
Even cabbage is better just steamed.
 
Anonymous
Boiled cabbage is quite tasty, and is a fixture in many Irish dishes
 
1:56 AM
3 mins ago, by Alex A.
Get bhindi masala the next time you eat Indian food
 
Oh I'm not saying it's bad (nothing wrong with some corned beef and cabbage). Just that I like it steamed more often.
 
Anonymous
Corned beef and cabbage is life
 
Your life is a lie
 
Are truffles the fungus good? I've never had any
 
Anonymous
The local Irish pub serves a killer Dublin Coddle
 
1:59 AM
@HelkaHomba Not bad, but I don't see why people go crazy about them.
 
@HelkaHomba I'm not a fan of most mushrooms besides white button and the occasional portobello
 

« first day (1864 days earlier)      last day (2989 days later) »