« first day (2190 days earlier)      last day (2661 days later) » 

3:00 PM
In the context of the blog, receiving graduation status is an accomplishment. Receiving a design would be another accomplishment, so we would have two accomplishments. That's why it's a countable noun in that context, and thus needs an article.
In the context of the poet, suppose they receive another literary award. Their list of accomplishments (countable) has grown, but they are still "a poet of considerable accomplishment" (uncountable).
 
brute-forcing my challenge gets really computationally unwieldy very fast. how should i handle this when writing the challenge?
 
English is hard.
@sirpercival Are you intending a challenge? Or a challenge? If the latter, don't worry about it; many golfing answers here will have the heat-death of the universe occur before they finish computation, and that's perfectly acceptable.
 
Python tip
 
@AdmBorkBork i'm not sure which would be more interesting, honestly.
 
import signal, pdb
signal.signal(signal.SIGQUIT, lambda s, f: pdb.Pdb().set_trace(f))
If you put this at the top of a Python file
 
3:05 PM
You can still submit challenges that have time constraints
 
Code golf challenges with a maximum time complexity can be more interesting sometimes.
 
you can type ctrl + \ to drop into the Python process anytime to debug with pdb
 
i guess that would work nicely
is time-constraint a tag?
 
I don't think we have a specific tag for that for code-golf challenges.
 
(i haven't written a challenge in a couple years, i'm trying to remember how, lol)
 
3:08 PM
We have but that's not quite the same thing.
 
That's the same thing I was referring to.
 
what does restricted-complexity mean?
in this context?
 
@feersum Oh, I understood your statement to mean "answers should complete every test case in under a minute."
 
If there is a prime test which is prime question, can i make a primey prime test test which is prime question
 
3:11 PM
And that is restricted
 
ahhh
i just have to figure out how to word the restriction...
and i haven't analyzed the challenge mathematically, lol
not beyond the most basic level, at least
 
Restricting complexity doesn't necessarily make the algorithm not-unwieldy. For example, "for every grain of sand on this beach, output the number 1" is O(n), but is still going to take a long time.
 
@AdmBorkBork brute forcing this challenge is O(2^product(x_0,...x_N))
for N inputs
or rather, an input of length N
 
3:32 PM
ok i finished posting in sandbox...
0
A: Sandbox for Proposed Challenges

sirpercivalBinary Grids code-golfrestricted-complexity Consider the N-dimensional binary grid, with dimensions {d1,d2,...,dN}. Here are a few examples: 6 (N=1): 100101 3x7 (N=2): 1001001 0110110 1001001 3x3x3 (N=3): 010 001 100 100 011 110 011 110 001 What each of these example grids h...

 
0
A: Sandbox for Proposed Challenges

sirpercivalBinary Grids code-golfrestricted-complexity Consider the N-dimensional binary grid, with dimensions {d1,d2,...,dN}. Here are a few examples: 6 (N=1): 100101 3x7 (N=2): 1001001 0110110 1001001 3x3x3 (N=3): 010 001 100 100 011 110 011 110 001 What each of these example grids h...

 
lol whoops
 
kek
 
3:51 PM
@sirpercival Yeah, we have several bots that automatically post items into chat.
 
indeed
 
Also, your sandbox challenge reminded me of when we were playing around with binary tiling here in chat.
 
@Downgoat What exactly is the type of a return type of a function*? Can I modify its prototype?
 
4:07 PM
We've got a third-party software here that proudly proclaims "Version 10.0.000006" in the corner of every screen. Seems like oddly small increments.
 
probably rounding error
 
@muddyfish the real problem is the inconsistent formatting. It is bad formatting for C
 
4:21 PM
@sirpercival If they use floats for version numbers then they have another problem >_>
 
When you are supposed to be working in your AP comp sci class online but insted you lurk on 19th byte XD Then the teacher calls your name. Needs your computer help :P
 
@ChristopherPeart AP?
 
that was asking for a definition
 
Advanced Placement
Collage board does it
 
4:28 PM
@ChristopherPeart that's a US thing isn't it?
 
yep
Basically a intro comp sci class at the collage level
Super easy
Bad part is it is allllllllllllllllllllll java
 
that's the equivalent of university?
 
wat
yep AFAIK
us education system is weird
 
The US system confuses me
@wat what country are you in?
 
4:29 PM
Same. And I use it
 
if you don't mind me asking?
 
wat
@muddyfish united states
 
Todays "lesson"
8.3 Accessors, Mutators, and Immutable Classes (pg. 341-341)
Immutable classes define objects which never change value after creation, such as the String class. A variable of an immutable type may only be changed by re-assigning to that variable. Remove all mutator methods from an immutable class. All fields must be private. If your class gets extended, it could add extra fields that are not immutable, or the methods could be overridden to return a different value each time. The preferred way is to make the class final. A class is final if its definition is complete and no s
 
wat
aka trumpland
 
Trumpville
 
wat
4:30 PM
Trumpcity
Wallland
 
Could u'all stop with the Trump things
 
Anyone have a simple CG challenge?
Trying to do something useful during my class
 
hello, world
 
And learning jelly
 
4:31 PM
@ChristopherPeart quine?
 
I tried last night to do that
You don't want to see what happened
ask Pavel or ATaco
 
@ChristopherPeart like a CMC or one that was already posted?
 
CMC?
Define please I am still new here
 
Chat Mini Challenge
 
Chat mini challenge. A short challenge made up in chat
 
4:34 PM
A CMC would be nice
 
CMC: Prove P=NP or P≠NP
 
CMC: reverse every line of input while leaving the order of the lines the same.
 
@TuxCopter Remember a chat mini challenge. Not a Collage Mega Can't
 
For example, if the input was "hello\nworld" you should output "olleh\ndlrow"
 
@TuxCopter P=NP only when N=1 or P=0
 
P=NP when N=1
 
@DJMcMayhem Haskell, unlines.map reverse.lines
 
Or when P=0
 
@muddyfish AP classes are very district-specific and usually in conjunction with a local university or community college. It provides a way for students still in normal public education (high school) to obtain both high school and university credit for the same class without paying tuition.
 
4:40 PM
Idea: CMC: Quine that prints the quine with more code inside the result: khanacademy.org/computer-programming/golf/5822532111368192 2nd function
 
that sounds kind of cool
 
AP classes?
 
yea
 
They kinda are
Huge pain to take however
 
I'm somewhat worried that I'm not going to learn that much in my first year at uni
 
4:43 PM
Yeah. My AP classes my final year of high school basically gave me a full semester of university credit for free.
 
I have used SO for about a year or so. Have 300 rep. Used Sci-Fi for about 3 days. 400 rep and still going up
 
I mean I think the only thing I've learnt at A level comp sci is about how the internet works and I'm not very interested in that right now
 
It was kinda weirdly frustrating, though, because the university I attended designated its vehicle parking tags based on obtained credits, so every semester I needed to obtain a different tag and park in a different spot.
 
@AdmBorkBork that sounds annoying to have to remember
 
4:46 PM
@muddyfish At my university the first CS lecture uses functional programming. I know nobody who did this in school, so it was new for everyone.
 
@Laikoni We just did that in our classes. Haskell is a really nice language that I should get to know more
 
I can only recommend learning Haskell as well as functional programming.
 
wat
I have no idea how to wrap my mind around Haskell
 
var b = "and b a na nan fdfjldkfjf ";var d = b.split(" ");var c = "";for(var k = 0; k <= d.length-1; k++){c+=" ";for(var i = d[k].length-1; i >= 0; i--){c+=(d[k][i]);}}println(c);
@DJMcMayhem not very golfed
 
4:59 PM
CMC: Given an URL, output the resulting URL after it stops redirecting.
 
guys I think I've solved P = NP
N = 1
 
We covered that orlp
22 mins ago, by Christopher Peart
@TuxCopter P=NP only when N=1 or P=0
 
really?
what
are the odds
I swear I didn't read that
not even subconsciously, I was away
 
XD We were talking about it for a CMC. But then DJ gave me a real CMC: I gtg class ended
I will be on next Sunday and I would like another CMC then DJ
 
@ CMC: Testcase: https://goo.gl/CV0ABq
For some reason codingground on tutorialspoint generates those shortened links instead of direct links ...
 
5:02 PM
@ChristopherPeart you could just do a regular challenge ya know. :P
 
every time I see the gamma function it makes me so angry
whhyyy (n-1)!
the pi function is so much better :(
 
@orlp Or P = 0
 
33 mins ago, by TuxCopter
Or when P=0
ninja'd
 
I just realised, I hit 100 answers on PPCG! \o/
 
5:23 PM
I found the hole in this proof
e^(-2P) = 1 implies only -2P = 2 Pi n i for some integer n
so P might equal n Pi rather than 0.
In that case, we have 1 = n i
Oh, but then n can't be a real integer.
Never mind, P = NP stands.
Ooh, a bounty for JS answer to Incident Tokenizer.
Maybe I'll translate my answer to JS.
 
You can't argue with this bulletproof logic
 
OK guys, how do I make a pointer in Javascript?
 
1
Q: Which Day of Christmas is it?

FlipTackPreface In the well known carol, The Twelve Days of Christmas, the narrator is presented with several gifts each day. The song is cumulative - in each verse, a new gift is added, with a quantity one higher than the gift before it. One Partridge, Two Turtle Doves, Three French Hens, and so on. W...

 
@feersum var pointer = [<initial value>];
 
I guess it really is like Java.
The way to make a pointer is the size-1 array.
 
5:33 PM
Yeah :/
 
6:19 PM
Does anyone know if Java has tail-call optimization?
 
Anonymous
@Pavel HotSpot and OpenJDK don't
 
Figures. Would be nice tho...
 
Similar to Pavel's bounty, I'm offering 50 rep for a quine in Del|m|t
In case anyone's interested
 
Have we fully resolved the issue of quines with command-line arguments?
 
I can't quine in any language except V. I don't know why, but I just can't figure it out in other languages even though it's perfectly intuitive to me in V
 
6:29 PM
2i2i isn't rocket science.
 
Ah, yes.
 
@Pavel Oh yeah, forgot about that bit. Del|m|t doesn't require a command line argument, but it's helpful
 
@Pavel also, it seems perfectly resolved to me. I agree with Megos answer, and I don't see any lingering debate
 
@DJMcMayhem Link?
 
6:31 PM
Sure, just a sec
 
Anonymous
 
There's an argument about -d in C, but I suppose that doesn't really apply to Del|m|t
 
13
A: Command-line flags in quines

MegoA quine outputs its source code verbatim That sounds like stating the obvious, but the answer is right there - nowhere in the definition of a quine is there any reference to command-line arguments. For the purposes of quining, the only output should be the source code. Any non-standard command-l...

 
@Mego ... thanks /s
 
@Mego That was beautiful. You sir, are a genius
 
6:32 PM
It wasn't that funny.
 
Made me groan
 
Anonymous
I should add a speech bubble that says "searching isn't that hard"
 
"Just smash some pots, it works for me"
 
 
Here's the plural:
 
6:36 PM
There's a Twitter account I follow called "vimgifs", and their description is beautiful.
 
Anonymous
 
> Using a file format from the 80's to explain a text editor from the 70's
 
Would make more sense as Skyward Sword Link
 
Anonymous
There, 0 effort Link image with speech bubble, for when people put 0 effort into searching
 
Since he could just dowse
 
6:37 PM
Aw geez, for some reason can't upload one of these
 
Anonymous
@BusinessCat You misunderstand "0 effort" - I picked the first image that was free for noncommercial reuse
 
Fair enough
 
@Mego ... No one will sue you for using a copyrighted Link in SE chat
@DJMcMayhem Vim was 1990s tho
 
Anonymous
@Pavel Nintendo is very aggressive with their copyright enforcement. I'm only slightly joking when I say I wouldn't be surprised if they did.
 
How would you even begin to enforce copyright compliance in all the chatrooms?
Reddit alone probably pushes thousands of violations daily.
 
6:50 PM
 
Copyright lawsuits against content aggregators like reddit or chatrooms are almost always futile. Remember FunnyJunk vs The Oatmeal?
 
Another copyright story (perhaps more popular): Oracle vs Google
 
7:17 PM
1
Q: Inverse Pi function

orlpThe Pi function is an extension of the factorial over the reals (or even complex numbers). For integers n, Π(n) = n!, but to get a definition over the reals we define it using an integral: In this challenge we will invert the Π function. Given a positive real number z, find x such that Π(x) =...

 
0
A: Sandbox for Proposed Challenges

zeppelinImplement a Stopwatch Implement a simple digital Stopwatch, which will display the time elapsed in seconds and minutes, like described below. Display Time elapsed, should be displayed in the MM:SS format, by replacing the previously displayed time string, either by erasing it, or by clearing t...

 
Are the Eigenvalues of an NxN matrix computable?
 
Anonymous
Sometimes, under certain conditions
 
Anonymous
7:32 PM
4x4 and smaller are always computable (assuming |A − λI| = 0)
 
Anonymous
5x5 and higher get trickier - you usually have to diagonalize them, rather than solve the |A − λI| = 0 equation, since there's no closed-form solution for quintic-and-higher polynomial roots
 
@Mego Would a question to find the Eigenvalues of a NxN matrix be well accepted (or doable)?
 
7:54 PM
@Dennis looks like we both were interested in seeing what J was doing internally
 
Anonymous
@WheatWizard It would be closely related to this, but I think it would be a good challenge (assuming it doesn't already exist)
 
@WheatWizard I think it depends on how it's framed, otherwise it might just boil down to finding roots of a polynomial
 
@miles Does that challenge exist?
 
I think so, but I'm not sure
 
@miles Yup. :) I had looked at that once before, when I still though implementing J's inv in Jellybwould be easy...
 
Anonymous
7:58 PM
@miles There's more than one way to find eigenvalues. Diagonalization/decomposition sidesteps the issue.
 
Anonymous
(assuming you can manage to diagonalize the matrix without the eigenvalues, which is admittedly difficult)
 
@Dennis if only it was easy to read J's source to see how they implemented inversion
 
is that matrix inversion? function inversion?
 
function inversion
 
when Brachylog beats Jelly, that's the normal reason
a general function inverter is really helpful in golfing
(even though Brachylog's inverter has a tendency to get stuck in infinite loops)
 
8:06 PM
@miles They seem to store an inverse for suitable verbs. Once that's done, it should be easy to extend to monadic chains.
 
@WheatWizard I've found this challenge but it's constrained to arithmetic operations for root-finding
@Dennis Similar to how J knows the Taylor series for a few primitives and uses it to build more complex functions
 
8:38 PM
0
Q: Starting Indicies

JohnI'm asked to do this question: Write a program that prompts the user to input some text and a word. The program outputs the starting indices of all occurrences of the word in the text. If the word is not found, the program should output “not found." I don't understand what this is asking and was...

 
Inpainter update (cc @flawr): imgur.com/a/phcW8
 
@mınxomaτ Would be useful to use that program in my garden IRL...
Looks amazing, I think this is a rather difficult example usually
 
Huh, one can now use P99 to get exceptions in C. Sadly it requires advanced C11 features that cygwin doesn't implement yet.
 
Anonymous
Hey cool, we got special mention in the 2016 Year in Review!
11
 
8:51 PM
Neat
 
Anonymous
@Pavel Really? You had to harass Jon in the Year in Review comments?
 
.-.
 
>_<
 
7 hours ago, by AdmBorkBork
We got called out on the Official Blog!
 
We're willing to look into this, but you need to flesh out what you'd want for close reasons. I'd start with a new feature request similar to what was done here and get buy-in for new reasons and we'll look into it. No guarantees though. — bluefeet ♦ 2 days ago
 
Anonymous
9:06 PM
@AdmBorkBork Yeah but I got a star :P
 
tfw you accidentally touch production data while testing something locally
 
wat
hey @noɥʇʎԀʎzɐɹƆ I think I saw you on Reddit yesterday
 
at least nothing broke :]
 
Anonymous
@Poke I give it 5 seconds before you realize you broke something
 
It has been more than 5 seconds already. I clenched big time.
 
wat
9:11 PM
pls
halp meh pls i neeed halp
 
with what
 
wat
ok, please ignore the broken english
I am having major issues with a project I'm doing involving writing an inventory system using Ruby on Rails
 
ok?
 
wat
I basically have a Transactions model and an Items model, I want to make a Transaction and set the item to be checked out, but I'm getting user input and getting a set of items instead of one at a time.
This is a semi minor setback that I have (compared to the other problems), but a. what would be the best way of having the user select, and b. how would I update the Item on transaction?
 
"best"?
define best
like, the most user-friendly or the golfiest or the fastest or none of the above
 
wat
9:20 PM
A and C
Not golfiest
maybe most idiomatic/supportable?
 
ye
 
0
Q: Find the smallest file

12Me21Goal: Create a program to find the smallest file in the current folder. File size may be measured in bytes or characters. You can assume there will be at least one file in the folder, and no files will have a size of 0. Assume that all files in the folder can be accessed by the language you're...

 
@wat are you using GUI?
 
wat
@Riker GUI for what?
 
the selections and stuff
 
wat
9:21 PM
There is a frontend GUI system, yes
it is Ruby on Rails, so it is a website
 
hm
 
9:42 PM
0
A: Sandbox for Proposed Challenges

P...Words in italics are for sandbox readers only. Other words are meant to remain in the final challenge. Is a binary string 'maximized'? The Problem: write a program or function that takes in a binary string, and determines whether or not it is 'maximized' as defined below: Consider a number ...

 
@NewSandboxedPosts This guy is encroaching on my name
he gets kudos for posting in the sandbox, though
 
@mınxomaτ Ḿ͠oǹ̰͎̣a ̾̇Lisa
 
9:59 PM
Jan 29 '16 at 22:35, by mınxomaτ
user image
No Mo Lisa
 
10:11 PM
Creepy ^
 
10:28 PM
ye
 
I improved an algorithm and fixed a memory bug in C and don't know how I did it. This can't be good.
 
@Mego Why shouldn't I have asked when we're getting a design?
 
Anonymous
@Pavel Because we've bugged them to death about it already, and we know that the site-specific text is going to come first. Also the way you said it.
 
because the lack of design is the least of the problems with this site, in terms of what requires work from SE
 
I agree with Mego, the way you said it was harsh ^^
 
10:41 PM
@mınxomaτ you can't C how you did it? I'll excuse myself.
 
@LuisMendo How is it harsh? It looks alright to me
 
@Qwerp-Derp it's quite demanding and rude.
 
@ConorO'Brien You mean the three words "PPCG Design when"? IMO that doesn't sound demanding (keep in mind this is IMO)
 
@Qwerp-Derp okay. Well, say it out loud. And further, would it be something you said to your, say, employer? "New desks when?"
 
@Qwerp-Derp I do find it harsh. If anything, I would have said something like "Do you have any information when PPCG will get its design?" Something that sounds more polite
 
10:52 PM
Huh, yeah that's true. I didn't think of it in that way, cause I'm used to the chat environment I guess.
@LuisMendo 2manypings
@ConorO'Brien I'm still in like early high school... but that doesn't really detract from the message, I understand the message you're trying to send
 
@Qwerp-Derp lol, same
 
wat
 
Invisible space?
 
wat
ye
 
@wat pointless and spam. please refrain from doing this >_<
 
11:06 PM
 
:35054758 smooth moves from the passive aggressive duck
 
wat
sorry, I'm having a really bad day
 
that's okay, we all do. hope things turn out in your favor
 
which loophole is this guy talking about?
Doesn't this fall into the "using other programs" loophole? — Micheal Johnson 2 mins ago
 
I have successfully made meatballs for the first time without them turning into little chunky pebbles
 
11:15 PM
congrats
now eat them
 
About half are partially frozen and the other half is scalding
 
uh
eat them anyway!
 
I ate all the other attempts too.
IKEA meatballs, regardless of how poorly made, are still amazing
Disclaimer: by "made" I mean "microwaved"
 
I like IKEA hot dogs.
 
If I could live in IKEA I would
 
11:18 PM
There's like barely any IKEAs in Aus I'm sad
@Pavel Move to Sweden
 
I want to
 
@Qwerp-Derp Heh
 
Become the next Pewdiepie
 
I've been thinking of doing just that when I get out of school
 
Oh god please no.
 
11:19 PM
why not?
 
@mınxomaτ I like the sudden change in emotions
 
just wondering your reasons
 
I'd rather become the next AdmiralBulldog
 
oh teh next pewdiepie
 
But no Pewdiepie is now drama channel which therefore = bad
 
11:19 PM
I thought he meant "no don't move to sweden"
I was like "aww poor sweden dude on the internet hates you"
 
He was bad before IMO
 
@quartata It returns a mix of a normal function and the class "GeneratorFunction" which may not be exposed by default. However you can still modify stuff on it's prototype like any other element
 
I know a few people from Sweden. They are nice, but somehow a bit intense.
 
lol
 
Sweden's awesome.
 
11:23 PM
@mınxomaτ hey, what's the status on the PPCG podcast? I'd mostly forgotten about it, is it still happening?
 
Yes. Expect an update in the week of Feb 4 +
 
ah ok
 
@Downgoat "Show Answer Leadboard"
In the PPCG userscript thing
 
If you are going to ping me, please at least finish the sentence :/
 
11:39 PM
@Downgoat are you talking about JS generators I am a JS generator master
hype
 
11:49 PM
@ConorO'Brien yes
 
:D
who needs education? pulls up sleeves
 
Ugh that's a nuisance. Why the hell isn't it exposed
(function*(){})().proto then?
I need to modify .next in case you're wondering
 
@quartata I have no idea what that does, or what language it's in, but the fact that that syntax is valid scares me.
 
@Pavel JS
And I don't care about looks here. If I could write in bytecode I would.
@ConorO'Brien Is this the only way?
 
@quartata oh, I didn't get a ping
@quartata oh wow, I'm actually writing an article right now on prototype inheritance for JS
heck, I actually asked a question about this on SO
TL;DR:
const Generator = Object.getPrototypeOf(function* () {});
const GeneratorFunction = Generator.constructor;
 
11:59 PM
Oh right I have to do .constructor.prototype
 
what are you trying to set Generator.prototype.next to?
 
My own function
 

« first day (2190 days earlier)      last day (2661 days later) »