« first day (2370 days earlier)      last day (2474 days later) » 

9:01 PM
I'm waiting for NSP for my new challenge :P
 
What should I do about the two answers being identical?
 
what are you talking about?
 
@HyperNeutrino he answered second, he should delete his
 
Sure. I'll comment.
 
9:03 PM
but you golfed it to the same state
it wasn't originally the same right?
 
No. Originally mine used lambda*a which was longer, but with the same algorithm.
 
ah ok
 
good meta discussion, i guess
but i gotta head out
ciao friends
 
I commented and invited the user to discuss it in chat with me if the user thinks I should delete my answer.
 
9:05 PM
bye
 
-2
Q: Killing the popcon

ChristopherTo come back to it after over a year. Should we end the popcon? I personally think we should, just like with code-trolling and underhand there was too much bad for the good. We just keep closing them over and over. If there is so much bad for the good why should we keep it.

 
well then
289 rep to 5k
 
0
A: Sandbox for Proposed Challenges

caird coinheringaahingReverse Maths Cycles Inspired by this Given an array of integers, cycle through +, *, -, //, %, ^, where // is integer division and ^ is exponent, while applying it to the reverse of the array. This may be confusing, so lets work through an example. Input: [1, 2, 3, 4, 5, 6, 7, 8, 9] Reverse...

 
0
Q: Four In A Row: AI Tournament

yummypastaFour-In-A-Row AI Tournament Today, we will be playing a Four-In-A-Row tournament. However, it is not us humans playing... instead, we must have our computers battle instead! This challenge is completely in C#. Rules Basic Game Rules If you have never played, there are simple rules. 2 players ...

 
9:18 PM
Hm. Alright. Right, I should have remembered that; I've seen that meta post before. In that case, then we should keep both answers :)
 
whoa
dennis out golfed in jelly by 9 bytes
 
:o
well
gg I lost that one lol
 
@ETHproductions its already got more upvotes than I've ever got on SO >.<
 
05AB1E is so confusing
 
9:25 PM
@HyperNeutrino so is Jelly :D
 
because you don't do stack based languages? :P
 
@WheatWizard if you have any more questions, I won't be able to answer them presently. I'm taking a break for myself
 
I have to leave anyway so good timing :)
 
@cairdcoinheringaahing Jelly has clearer docs lol
 
I have a tab open with JHT in it, that I haven't clicked on in 2 days with about 2000 unread messages in, and I really want to click it :D
 
9:27 PM
Logic Check, please: what does "Infinite Scrolling" mean to you?
 
@WheatWizard :D that's kinda neat
 
@StepHen a webpage with unlimited side edges :D
I really need to stop ending my messages with :D
 
OK, say you have a list on a website and it has a feature called "Infinite Scrolling". what now?
 
@StepHen A webpage that has a top but no bottom
 
I've spent a day or two trying to find a feature in this darned framework
 
9:28 PM
@ETHproductions or that wraps around?
 
That would do pagination
 
Or a left but no right, depending on the circumstance
 
And the pagination feature is freaking called Infinite Scrolling
 
@cairdcoinheringaahing Hmm, I hadn't thought of that
 
@ETHproductions You want the ES6 sticky (y) flag if I'm understanding correctly
 
9:29 PM
When you scroll to the end of the list it has a callback function that triggers and lets you add more to the list
 
@StepHen yeah, I understand that
 
Isn't 1e8 always 1 ? — sln 2 mins ago
lol
 
I think I need to just memorize this darned framework's docs, since the guy that made it is not a native English speaker and I keep finding new things I can use, with really weird names
@totallyhuman see that's why you have an e operator :P
 
it's not gonna be an operator
it's gonna be another way to represent numbers
 
@Downgoat then you're not understanding correctly :P
 
9:31 PM
@StepHen I have nothing against non-native english speakers, but I do have a rule that if they can't write comprehensible English, they should get someone who can to do it for them.
And here comes the backlash
 
@cairdcoinheringaahing Actually, this guy can write English fine, it's just that his vocab probably isn't as big as some peoples, and he's not the best at choosing section titles
His documentation is pretty thorough, once you find it
 
@ETHproductions can you explain why you need the g flag then?
 
@StepHen oh, ok, that's fine then
 
@cairdcoinheringaahing I guess that depends on whether they are aiming for an English speaking audience. There are plenty of people who aren't
 
(sorry if in question but I'm not understanding your question)
 
9:33 PM
i keep typing onject instead of object >_<
 
@totallyhuman I always hit enter instead of '
 
@trichoplax well, that goes without saying. There'd be no point in writing perfect English for a group of Hindi speakers (unless they spoke English)
 
@Downgoat I don't, I just can't control whether the regex has the g flag or not
 
@cairdcoinheringaahing In that case I don't see why you'd expect a backlash. Writing for any language requires someone who can write that language
 
@ETHproductions so can't you add a new RegExp(oldRegex.source, oldRegex.flags.replace(/g/g, ""))
 
9:35 PM
caird's just adding the write that language well
 
@trichoplax I go to a very sensitive school, so anything that doesn't conform to the norm, usually receives backlash.
 
or you can use exec and extract the match length
 
the well is pretty important
 
@Downgoat Huh, that... actually works...
 
@cairdcoinheringaahing Hopefully we're more reasonable here... :)
 
9:36 PM
@trichoplax puls, IME, the internet will usually devour anyone who doesn't conform to their ideals :O
 
var newregex = RegExp(oldregex, oldregex.flags.replace('g', ''));
 
brb, finding the appropriate Family Guy clip
 
@cairdcoinheringaahing Not really, the Internet is more anybody can talk about anything, but you should expect for it to be argued with
Not that you can't have opinions
 
you can't :P
 
9:37 PM
More like you're going to find every conceivable opinion
 
@ETHproductions in that case you'd probably also want to remove the y flag
 
@cairdcoinheringaahing Certainly people will misinterpret your words and argue with what you didn't actually say
 
CMC: Trim leading, extra, and trailing dots: ∙∙∙Programming∙∙Puzzles∙&∙∙∙∙Code∙∙∙Golf∙∙∙∙∙Programming∙Puzzles∙&∙Code∙Golf
 
@Adám str.strip
 
How much of a change to someone's answer constitutes a new answer? I further golfed an answer from 316B down to 187B, but that's not an easy change to post as a comment.
 
9:43 PM
lambda s:re.sub(' +','',s)
import re
 
@TemporalWolf post it as a link to TIO
 
@cairdcoinheringaahing Changed to dots to avoid built-ins.
@totallyhuman Really?
 
@Adám print(input().strip('.'))
 
@cairdcoinheringaahing That removes all but one from multiple internal?
@cairdcoinheringaahing Also, which lang?
 
@Adám Python, and it removes leading and trailing <argument> from the string
Oh, I didn't see the "extra" part. I can't read >.<
 
9:47 PM
@totallyhuman Looks like that only removes all spaces. Can you explain it?
 
Wherps
Just pretend there's a space there
 
@Adám Can they be periods instead of non-ASCII characters?
 
OK, so it replaces all multiple spaces with single spaces? That may lead to a single leading and/or trailing space, no?
@DJMcMayhem Yes, or any other char, just not spaces, to avoid built-ins.
 
$><<$_.split('.').join'.'
Uses -n
Actually, $_=$_.split('.').join'.' with -p
 
9:56 PM
@DJMcMayhem Nice.
I just invented a new on in APL: 1↓'∙'∘(∊⊣,¨≠⊆⊢)
But as my CXO said, if we show that to people, they'll run away screaming…
 
Nevermind
 
-1
Q: New challenge idea: Showcase

caird coinheringaahingI think that we should have a new type of "challenge": showcase questions. These questions aren't questions where answers compete for the lowest bytecount, or the best score, they are answers to a specific question that demonstrate interesting or unique features of languages. A showcase question...

 
$_=$_.split('.').reject!{|s|s.empty?}.join'.' with -p
 
@Phoenix Ouch.
 
yep
I think I might want a better method
 
9:58 PM
@Adám 3 bytes shorter: òÍ^®ü®$ü®“®
 
@DJMcMayhem I get it, I get it, its a trademark. Sheesh.
 
@Downgoat Hmm, good idea
 
Hehe
 
$_=gsub(/,+/,',').gsub(/^,|,$/,'')
Uses , instead of dot.
 
Though where I'm using it I don't expect anyone to use the y flag
 
9:59 PM
@Phoenix Right, dot is bad in regex.
 
@Adám Really what it is is that ® is a synonym of \. so that . can mean any character and ® means a literal dot.
But it doesn't cost an extra byte each time
 
@DJMcMayhem Oh.
 
@Adám Jelly, 5 bytes: ỴLÐfY
The char it uses is newlines, since you didn't say it couldn't be :P
 
@DJMcMayhem Ah, what? Newlines‽ No. I said "to avoid built-ins".
 
I know, I'm just abusing the rules :P
Here, I'll do a serious one in a second
 
10:04 PM
QuadR, 14 bytes:
^∙+
∙+$
∙+


∙
 
@Adám Serious Jelly answer, 9 bytes: ṣ”.LÐfj”.
 
@DJMcMayhem The main part is the same.
 
ṣ           # Split
 ”.         #   On '.'s
    Ðf      # Filter out all the elements...
   L        #   Where the length is 0
      j     # Join...
       ”.   #   On '.'s
 
@DJMcMayhem Oooh, we do explanations in TNB CMCs? Cool. And thanks.
 
:shrug: why not?
Do you have another one? I'm on a jelly kick :D
 
10:09 PM
@DJMcMayhem I'll think. They kind of just pop up.
 
 
@DJMcMayhem How about this: CMC: Cumulative sum restarting as indicated by given Boolean: 1 0 0 1 0 1 and 1 2 3 4 5 6 gives 1 3 6 4 9 6
 
Ooh
OK, I'll try it
 
Quick question before I go, what is the name of programming which follows this syntax? The entire code is essentially a series of functions like
F = lambda a,b:a+b
 
@cairdcoinheringaahing functional?
 
10:12 PM
G = lambda a,b: a-b
Print(g(f(10, 20),20)
@Adám I don't think so, I would have heard of examples.
 
@Adám Jelly, 6 bytes: œṗ+\€F
 
@DJMcMayhem Right, partition, cumulative sum each, join.
 
Exactly
Jelly is beautiful
(when you understand a tiny piece of it and you aren't ripping your hair out)
 
@trichoplax I just discovered that you offer a bounty for solving the "pop con problem" but I don't see much of a problem that has not been discussed yet?
 
@DJMcMayhem I could actually read that. œxtra functionartition+\cumsum (identical to APL)achFlatten
 
10:17 PM
The only reason so many get closed is that these people do not know what it is about and do not follow the recomendatiosn and rules.
 
Alright, I gtg
 
@cairdcoinheringaahing That looks like Python being used functionally, just the Print is a little weird
 
@flawr I don't see questions being closed as a problem. The problem I'd like to see solved is that there doesn't seem to be consensus on what a popularity contest should be.
 
@DJMcMayhem ∊(+\¨⊂) in APL. partition, +\ cumsum ¨ each nlist
 
@trichoplax In what way? I think the discussions in the beginning of last year were quite fruitful for defining that, we even updated the tag?
 
10:27 PM
@Adám Nice! That could make a good challenge
MATL, 8 bytes: Ysi12XQ!g
 
@LuisMendo Main, you mean?
 
@LuisMendo That output looks wrong
 
Oops, just updated
 
Nevermind
 
Yes, I meant main
 
10:29 PM
@LuisMendo Too trivial, no? Look at the short TNB answers!
 
@MDXF ಠ_ಠ lol xD
 
@Adám Yes, perhaps a little more complication would be good. Not sure in which direction, though
* 9 bytes
 
@LuisMendo How about 2D partitioning?
 
And cumulative-sum along the two dims?
 
@LuisMendo Yup.
 
10:32 PM
Sounds good. But I don't like it that in that case you need to specify order of dimensions, i.e. along which to sum first
Ah no, it gives the same result?
Yes, same result. I'm dumb
 
@LuisMendo So given a matrix and two Boolean lists, partition horizontally and vertically, and cumsum each box horizontally and vertically, then join.
 
@HyperNeutrino :P I saw it as I was going past and it bugged me
 
@Adám Yup. I think it would be interesting. Not too easy nor too difficult. Just in case, it may be necessary specify where the origin for summation is (at the lowest-index corner)
That is, cumsum along increasing indices
 
ok, will do. Give me a couple of mins
 
Are you going to post to sandbox or directly to main? You may need to think about minimum input size. Probably empty-input corner case is not interesting; I'd go with minimum 1x1. Also, the two partitioning Boolean vectors should probably have at least a 1 value
 
10:43 PM
Holy crap, setting up Github pages is so much easier than I thought
 
@ASCII-only yeah I based it off of Python as that's the best example I can think of, but I'm on mobile so the capitalisation of print was my phone's fault
@StepHen how are you discovering this now?
 
@cairdcoinheringaahing I set one up, because I actually have something I want to put online :P
 
@StepHen cQuents?
 
@cairdcoinheringaahing nah that's in Python, I'm making something, I'll show you when I'm done (not related to PPCG)
 
@StepHen I've put all the many languages I've made on GitHub, just because it's easier.
 
10:45 PM
@cairdcoinheringaahing No I mean github pages as in https://name.github.io, all my programs are on github
 
@LuisMendo Straight to Main. Thanks for the tips.
 
@cairdcoinheringaahing Like this
 
@StepHen oh right. Nah I never used that. This is the only thing on my GitHub that isn't a language.
 
@cairdcoinheringaahing well as I said it's extremely easy to set up, a lot easier than I thought it would be
you literally just name your repo <yourusername>.github.io and include an index.html
and boom
 
@StepHen that doesn't surprise me, GitHub is designed to be user friendly
Poll: Should there be a code golf only app, with chat support? (I know there's a Meta post about it, just wanting to know what people think)
 
10:49 PM
@cairdcoinheringaahing I think there should just be a decent SE chat app
unless one exists and I don't know about it
 
@StepHen no it doesn't exist, but I've been behind the feature request since the start
Anyway, I've got to go, bye (don't ping me with "Bye" or anything like that)
 
@MDXF ಠ_ಠ :P
 
|`÷`|`num, str`|Push the first `length(str) // num` characters of `str`|
can anybody give me a better way to phrase that
 
Can I get a name idea for a language that specializes in sequences?
@totallyhuman |`÷`|`num, str`|Push the first `1 // num` part of `str`|?
^^
 
11:00 PM
That's what I was going to say
 
oh nice
 
Also I need to name my language sometime :P
 
@HyperNeutrino Ceres
 
Huh. Not bad.
 
ok i'm literally looking at dir(requests.Response) for intrnt features >_<
 
11:02 PM
I should stop naming languages after deities
 
why xD
@BusinessCat lol true
 
:shrug:
 
@flawr Just had a look back through last year's popcon meta posts in case I'd missed anything. I was delighted to see the tag wiki rewrite at the time, but I still feel there is lack of consensus on how to apply it. The objective validity criterion seems to mean different things to different people at different times.
For example, Tweetable Mathematical Art and Images With All Colors both seem to be "draw whatever you like" with the objective validity criterion of "you must meet this strict restriction".
 
0
Q: 2D partitioned cumulative sum

AdámChallenge Given a matrix M with r rows and c columns, and two Boolean lists V of length r and H of length c, calculate the partitioned cumulative vertical and horizontal sums. Rules r and c are greater than or equal to one H and V begin with a true value The values in M are within your langua...

 
One of them is closed, the other is open. Ideally we would have a consensus that makes them both closed, or both open, unless there is some reason to consider them different types of contest?
 
11:07 PM
The difference with "Images With All Colours" is that it does have a criteria that needs to be achieved, although realistically, it should be closed, as it's technically just "Do this, but creatively"
 
Jelly shall crush that challenge
 
@ATaco Why is that a difference, since the other also has a strict criterion?
 
It has been foretold
 
Although the other restricts you to a byte count, it doesn't restrict you at all to an output.
And realistically, challenges are defined by their I/O, rather than their internals.
 
Neither restricts what images you can make, or gives any requirement of what they should look like. In both the output can be arbitrary provided it meets a criterion
 
11:10 PM
The second is expected to, atleast, on a theoretical scale, contain every colour if provided a high enough resolution, the first is not given such a restriction.
 
Fixed code length challenges don't really work because what would make a good length varies so much between languages, but for a language specific contest it just seems like an alternative to code golf
 
lol what how did I cap
 
Fixed code challenges don't really work because different languages will be vastly different in length.
Say "You must do X in under 5 bytes" and you've obliterated languages like C# and Java.
For no good reason, too.
 
@ATaco Both the byte count and the colour requirement are trivial to achieve. All of the voting was on what was produced with it (whether because the output was aesthetically pleasing or impressive to achieve)
 
lol even a lambda in Java would be like s->.. and there are then only two bytes left with which you could only apply a unary operator or return a constant value
 
11:13 PM
@ATaco Yes that is exactly what I meant - it only works for a language specific contest, like the example
 
Personally, I feel both should still survive in some form, especially the second, but I feel our definition of what makes a good Pop-con contest is incredibly difficult, as it's usually "Do X Creatively"
People like seeing X done creatively, but as it's almost impossible to actually quantify that, it doesn't fit with PPCG.
 
I definitely agree defining pop cons is still incredibly difficult. That's why I made these comments - in response to flawr asking why I'm offering a bounty since the popularity contest problem has been solved
I think there was a big improvement but it still seems fairly arbitrary which pop cons survive.
 
@totallyhuman In the old days, all programmers shouted.
 
I learned to program at the top of my voice
 
I want to bring up Paint By Numbers, which isn't a well defined PopCon, but one of the best in my opinion.
 
11:18 PM
My favorite was the christmas tree one, also just "be creative"
 
This essentially says "Make an image blobby", and that's it, the results are varying levels of sharp, correct colours, and outright unrelated images.
 
See above
 
Also "rearrange pixels from one image into another" - lots of great answers, but the criteria aren't all that objective.
 
@ATaco I actually think that one is pretty well defined, and I like that the program has to take input so it's less about the programmer just coding fixed output they find aesthetically pleasing
 
Although outputting a single bland colour is technically valid by the challenge's definition.
 
11:21 PM
@NewMainPosts 0/10 edit not funny enough :P
 
@JohnDvorak That's another one I think is a good fit for the site despite being subjective, precisely because it has to take input and work for a range of different images.
@totallyhuman New Main Posts is very tired today
 
The "Image with all colours" is actually fairly similarly specified, but allows much more flexible output, it's an example of a Bad question that should be good, in my opinion.
 
all colors wasn't my favorite but it still was good.
 
Personally, I think "Do X Creatively" shouldn't be frowned upon.
 
@ATaco I think a variation on that one that required an input image to match to would be interesting too, but as it is it specifically discouraged using a target image (as so many on allrgb.com do), which meant the contest focused on novel ways of generating pattern spontaneously, which I found very interesting too
 
11:24 PM
I keep saying "Personally" and "My Opinion", I'm being very safe with this discussion :P
 
@ATaco It's such a subjective topic... :P
I'd just like there to be strong consensus one way or another. Then we can either have creative but challenging contests here on PPCG, or if we know we can't we can put effort into setting up something externally
 
@Adám I saw. About to post an answer :-)
 
My strong consensus is to keep it here :P
 
Patch the Image is another technically poorly defined Popcon that is still a good question, as food for thought.
 
The top-voted answer is a copy/paste from a paper...
 
11:31 PM
@JohnDvorak I'd love that to be the answer, but I posted the open ended bounty on meta because I would rather either conclusion than no conclusion, as I think the current situation is putting people off writing popularity contests
I like the copy/paste to the dithering contest, with the disclaimer "By the way, I'm the one who wrote this"
31
A: Dither a Grayscale Image

Glenn Randers-PehrsonGraphicsMagick/ImageMagick Ordered Dither: magick B2DBy.jpg -gamma .45455 -ordered-dither [all] 4x4 ordered4x4g45.pbm Before complaining about my using an "established algorithm" please read the ChangeLog for GraphicsMagick and ImageMagick for April 2003 where you'll see that I implemented th...

Not copy/paste - I misremembered. Using ImageMagick...
 
ಠ_ಠ I was outgolfed 31-15 by Jonathan Allan in Jelly :P
 
11:49 PM
Should I have two built-ins: split by newline and split by specified string?
 
Three, Split by Spaces is also used a lot.
 
Hmm ok
 
RProgN implicitly splits by spaces if no input is given to its split command.
 
@totallyhuman Does split by specified string split for each separate char in the string of for occurrences of the entire string?
 
Entire string
 
11:56 PM
@totallyhuman How about split Hello, there: My world on , :?
 
Hi guys
 

« first day (2370 days earlier)      last day (2474 days later) »