« first day (1886 days earlier)      last day (3253 days later) » 

16:02
@ChrisJester-Young Oh yes, I've known this for a long time. :P
0
A: Sandbox for Proposed Challenges

mIllIbyteThis is a little codegolf challenge from codingame.com. I was wondering how much Python3 code is necessary (but of course answers are not limited to Python3). Input The first line contains one positive integer n. The second line contains n positive integers. Each consecutive integers on the seco...

Could some people please review the following tag edit suggestion. This edit needs to be rejected in order for me to propose a new one. I was going to copy/modify the tag from Stack Overflow.
@mbomb007 Done.
0
Q: Print the sum of the squares of some numbers

mIllIbyteThis is a little codegolf challenge from codingame.com. I was wondering how much Python3 code is necessary (but of course answers are not limited to Python3). Input The first line contains one positive integer n. The second line contains n positive integers. Each consecutive integers on the seco...

@El'endiaStarman Thanks.
16:16
Don't have the rep required for retagging but I suggest a tag for this be .
Darn, I came up with the exact same pyth solution as Denker
Oh shit, forgot about r7
...which muddyfish just posted
0
Q: Is ImageMagick a programming language?

SparrThis answer seems to be the popular definition of "programming language". I propose that a combination of image canvases and the fx operator available in ImageMagick satisfies this definition. The language must: Support a representation of natural numbers and of tuples. (We're talking ab...

If we can take input as a list it would just be ²S in Jelly
16:24
I've wanted to ask that meta question for a while, just never had motivation to bother writing a prime tester for it.
Now that I'm submitting an IM solution to a challenge, it's relevant
That prime tester is cool
added images for the last example
@Sparr do answers have to be in a programming language?
for most challenges, yes.
16:30
out of necessity?
or because we say so?
Awww, I wanted to golf in ants. :/
Wow, this input format is kicking Jelly's ass.
Even Pyth beat it...
@PhiNotPi I like the idea, but its not really Codebots unless there is competitive writing. Perhaps the bots aren't "owned" by anybody, and people are able to write X pieces of code?
I'm not sure how the game works, but even without competitive writing, it sounds like a good idea
Yeah, I don't think I'll call it code-bots.
that's fine
16:36
I want to see a code-bots competition where the bots are modular, and all the modules get mixed up together.
my moving code and your shooting code and someone else's scanning code
although, I did just look at the rules, and there is a "zap" function that lets you override programming
@Sparr that was my last challenge
10 answers, +3/-3 votes. Wow.
aww, I missed it? :(
given, the parts were different
There is a little bit of "hacking" though, in that there will be a ZAP command, which causes your next command to be executed by the bot in front of you.
16:37
24
Q: Code Bots 4: Functional Programming

Nathan Merrillsheesh, is this really the 4th? For all you oldcomers, the core challenge is the same, but we are using Java instead of a custom language. Here are the past three CodeBot challenges, in case you are interested. The goal of CodeBots is to make your bot as viral as possible. Each bot carries a ...

I saw that one. I wasn't thinking of copying code as an attack.
Instead I'm thinking that the contest actually shuffles the code and runs a bunch of permutations of everyone.
ah, I understand
how do you determine the winner?
add up the scores of all the frankenbots that had pieces of my entry in them
16:42
@orlp That's horrifying.
@orlp that's scary
and if you have 2 pieces, you get double the score?
maybe? probably want to avoid that, just to reduce the combinatorial complexity a little
@orlp soo cute
16:55
0
Q: Print the longest line in the shortest code

DopappThe challenge This challenge is very simple: print the longest line of code with the shortest code. However, your code must be less than or equal to 100 bytes, and you must be printing a string. Scoring Your score is the number of bytes printed to the console minus the number of bytes of your...

@MartinBüttner Can you update this? I want to make use of it for a challenge, and I can't get it to work in the new Retina when using {
stage types need to go after the parentheses/braces
@NewMainPosts I think I actually ninja'd Community to the close on this one, that's funny
Yea, that must've been some precise timing on your part :P
It's okay though, because I still got top billing for it >_>
17:12
0
Q: How do we close questions without an objective validity criterion?

Martin BüttnerAnswering the election questionnaire got me thinking: in addition to having an objective winning criterion, all challenges also need an objective validity criterion — there's no point in comparing answers if there's a fuzzy line of what even constitutes a valid answer. This has come up several ti...

@mbomb007 it's actually possible to save a byte now: retina.tryitonline.net/…
@MartinBüttner Nice. It doesn't help me though, since I needed it to work with non-empty input. Your other one still works (though there's a bunch of semicolons)
0
A: ETAOIN SHRDLU golf

mbomb007Retina, 81 bytes (not competing) The language (especially the Sort mode) is newer than the challenge. ; {T`;L`L`.$ }`[^Z]$ $0$0 T`l`L Os`. [^A-Z] (.)\1* $0¶ O#$^`.* $.0 ¶ (.)\1* $1 Try it online Explanation: ; # Add the entire alphabet plus a bunch of semicolons into the inp...

17:34
1
Q: Passwordify the string

DopappYour challenge is to passwordify the string! What is passwordifying, you ask? Take a string as input. This string will only contain uppercase letters, lowercase letters, positive integers, and spaces. You must replace all spaces with underscores and move all numbers to the end of the string in...

@orlp could you post the emoji for side-by-side comparison?
You can google "Lenny face" yourself.
That is amazing, more than 300 people already voted! I had the impression that there are way fewer active users.
I think there are, but everyone eligible gets a ping when voting starts and all, so it draws even "inactive" users to vote.
17:41
this is just ridiculous
So wikipedia gets around ~15b pageviews per month. They usually show the banner for like a month, each pageview requires half a second of scrolling to get past the banner, that's 7.5b seconds wasted, or 237 years. Everytime wikipedia shows the banner they waste the life equivalent of around 3 human lives.
Assuming that half second of scrolling is really wasted.
Doesn't it not appear once you close it the first time?
So you're suggesting not to show the banner anymore but randomly choose three people who looked up something in wikipedia and kill them?
@flawr I'm suggesting they should offer a high-profile hired killer service, and do around 3 assassinations instead of showing the banner.
@orlp lolwat
17:43
Right. Let us see, I think I could come up with at least 3 people every year^^
@orlp Do readers get to vote on the targets? If so, how do they notify readers? Oh, they could put up a banner telling people it's time to vote.
I can come up with at least 1 within 10 feet of me.
@Morgan'Venti'Thrappuccino o_o are you well?
@flawr Yeah, I'm just having to read my co-worker's code currently.
And he sits right behind me.
@Morgan'Venti'Thrappuccino Hopefully he's not reading this. :P
Also, your name makes me think of Mitt'raw'nrudo. :P
17:47
@El'endiaStarman I'm not too worried. :P
@Morgan'Venti'Thrappuccino Wait, is that you?
All this text isn't left aligned, so I'm pretty sure it'll break his brain.
@Geobits <_< >_>
...
10
Q: Evaluate a minimax tree

orlpAlice and Bob are playing a little game. First, they draw a tree from a root node (indicated by a thick dot), with no internal nodes, with numbers at the leaves. Any node may have any number of children. We start at the root, and first to play is Alice (A). She must select one of the current n...

MORE ANSWERS
@Morgan'Venti'Thrappuccino Then I feel so reassured^^
PLS
17:49
How about a maximin tree?
@flawr exactly the same problem, just with signs flipped :)
@flawr in fact, that's what bob is trying to do
You might need to pad out the maxi part though.
@Geobits ?
maxime in tree
I'm confused
17:51
@orlp Bad pun reply to maximin. Move along, nothing to see here.
I just find this so pretty
I could also provide some questions that do not have that many ansers.
I finally have a try-it page for Pyke
^ 502 Bad Gateway
503 i++
18:05
putting it in a screen now
back now
@quartata the prime tester could be made more pretty in a lot of ways, I just wanted a proof of concept for my post
hi.. what is the status of project euler questions on codegolf?
0
A: Sandbox for Proposed Challenges

PhiNotPiMeta Code Bots I'm just giving this a "code bots" title because that's the most similar previous KOTH. This version is based on the Twin Tin Bots board game, and will probably be given a better name before posting. On a far away planet, dozens of small mining robots compete for resources in the...

@Lembik "don't"
@MartinBüttner interesting...not even under code-golf?
that is find the shortest code that answers problem X
or maybe I should say.. why?
18:12
The community on PE generally prefers that people figure out the solutions to problems themselves. Having those problems on PPCG would defeat that purpose.
@El'endiaStarman oh I see! But aren't the answers to old questions all online already?
Yeah, but I still think we shouldn't become another repository of PE answers.
@El'endiaStarman but will people really copy our Jelly answers? :)
I'm not focusing on practicality so much as the principle.
Also, questions will get Python answers too...
@El'endiaStarman it's interesting..it's like the NSA classifying documents that have already been published :)
18:15
That metaphor doesn't work.
@El'endiaStarman :( It was a simile
(sorry.. that was meant to be funny)
but what I meant was that if the answers are immediately available on the internet
is there any harm in making new ones that are no use to anyone?
We shouldn't be legitimizing cheating.
@El'endiaStarman I like your attitude on this. I should mention that some students posed homework questions to SO. When I complained to some high rep SO people they said that was a great thing and it was what SO was for!
Like, people will cheat if they want to, but we shouldn't let them use us at all.
and the students would learn from the great answers that SO users will provide
18:17
0
Q: How should program size be calculated if an interpreter has multiple binaries with different behaviors?

SparrThis question is specifically prompted by my using ImageMagick in a challenge, but applies in general. This is somewhat an extension of All of the IM tools take the same syntax of operations and expressions. However, each tool has a different name and a different default behavior. convert -res...

so basically I agree with you
interestingly I think some of the PE questions are too hard to make good PPCG challenges
The crucial problem (I think) with homework questions on SO is when people just give the solution outright, so the student doesn't have to do any work. This is a problem on Math too (and Physics, I'd presume).
projecteuler.net/problem=344 is really hard for example
@El'endiaStarman yes and also in many universities outside the US, homework grades are really important for people's careers
so cheating is really really bad
@MartinBüttner Is there currently a way to introduce randomness in Retina?
18:21
@El'endiaStarman although I think that universities will just have to give up on this and return to exam only soon
who comes up with the PE questions?
@mbomb007 you'll have to make do with pseudorandomness!
@Lembik The community, including "mods".
For instance, PE 196 was my idea.
I haven't solved it (yet). :P
@El'endiaStarman oh that's great! Don't you have to have a solution to pose a question on PE?
I have some very nice problems I don't know how to solve too :)
which I would love PE people to work on
@Lembik Nope. I just put up the idea on the forums and a mod snatched it and put it in a subboard specifically for developing problems.
@El'endiaStarman oh so some mod solved it
18:25
@Lembik Yeah, at least three people solved it.
looks like 1662 people have!
but I assume you mean that 3 people have to solve a problem before it can be posed?
Something like that, yeah. Multiple people have to agree that a solution is the right one.
interesting.. do any of the answer involve heavy CPU usage or do they try to avoid that?
They also had to fiddle with a couple details of the spec (like the "input" numbers) so that it's not too easy.
I think you're generally always going to have heavy CPU usage. That's just the nature of programs that solve math problems by looking at a lot of numbers.
@El'endiaStarman I would love this to be put as a PE question codegolf.stackexchange.com/questions/62922/…
18:47
Anybody have advice on code golf/esolangs being displayed at an interview?
That has been my main work, and I need to show some proof and stuff.
Anybody have advice on what to do?
@easterlyirk They probably won't care about random challenges; if you've actually worked on developing a language and that has a Github page or something similar, that could be good as an example of work
I have one, so okay.
I also have other stuff, but most of it is golfed challenge code. I'll keep that in mind, thanks.
@easterlyirk Also, it depends on how old you are. If you're fairly young, they'd be impressed by the interest you have in languages, whereas if you're older, they're looking for more professional, realistic work
19:02
Young, so that's fine.
Then you should be fine, although I might try doing something that looks a bit more professional and focuses a little less on memes
@Doorknob What's the proper way to handle cookies with Net::HTTP?
I finally realized that it doesn't have automatic cookie management like HTTPClient
@quartata you have to do it manually
consider Mechanize instead
Did you ever see this movie?
which one?
The one from which @El'endiaStarman posted an excerpt.
@flawr There's a pretty good chance the only part of this movie I've seen is this gif. :P
(I don't remember the english title.)
19:13
@Doorknob I'd rather not use a library when I don't have to
@quartata something something Not Invented Here
Uh no
But I don't want people to have to install 10 million gems
I'm already relying on Shoes which is a pain in the ass to bundle
Plus I'm under the impression Mechanize is like Selenium which is really overkill for this
What are you trying to do?
I'm working on a SE chat client
I used Mechanize in se-chatty.
You probably should too. It does exactly what you want—simulate a real user/browser.
It handles all the things so that you don't have to worry about them.
19:18
It just feels extreme for this
It's basically a browser emulator right
No
It's an HTTP library
@quartata you has dropped out of PPCG elections? D:
in 2016 Programming Puzzles & Code Golf Moderator Election, 21 hours ago, by quartata
I'm probably going to withdraw in a few days anyways: the pro-tems are gonna crush this election (as they deserve to) and if on the off chance I actually win I will probably feel guilty for displacing a protem anyways
19:28
ಠ_ಠ
> "and nothing says fair and non-corrupt like an international football organization"
5
roflmao
19:47
I'm getting so sick of seeing a response code of 400
I swear I'm doing everything right too
@quartata Where?
From my ruby script
35 mins ago, by quartata
I'm working on a SE chat client
Man, has Marky got a mouth on him:
in The Block, yesterday, by Marky Markov
@Downgoat you said "" fuck "? you're a fucking fucking fucking shit
2
....wow. Where's the digital soap when you need it?
19:57
We need some oxi-clean for this
@quartata Until there's a chat API, that's...not likely to go well.
I've interfaced with the chat interface before from Java
Unfortunately here in Ruby land cookies are super annoying
See, a lot of the chat functionality is client-side JS. You'll have a lot of stuff to replicate.
If you mean stuff like one-boxing, pings and what not that'll be fairly easy.
20:02
@Zgarb, why doesn't Haskell allow lists with multiple types in them?
@ChrisJester-Young happily looks at
@ChrisJester-Young s/:shrug:/¯\\\\_(ツ)_/¯/
¯\_(ツ)_/¯
@Doorknob alright fine I'll use mechanize
Is it available as a gem
@quartata Yes!
gem install mechanize
20:10
in The Twentieth Byte, 16 hours ago, by Dennis
(╯°□°)╯︵ _/¯(\:)¯\_
@ChrisJester-Young The mods' room?
@zyabin101 Yes.
Its presence used to be not talked about, but apparently the silence was lifted a while ago.
@ChrisJester-Young Is the message from the 20th byte?
There's a room named The Twentieth Byte? Nope. No such thing exists. You're just hallucinating everything.
(I'm kidding, actually. The world wide government put drugs in your water.)
@flawr I liked when he tried for 11. :P
20th byte = afterworld?
20:20
Mod chatroom
Same thing.
There's also

 The Twenty-first Bite

When the sandwich is just too big. No mods allowed,
@El'endiaStarman Goes to show he's not a mod. Only mods can eleven.
@HelkaHomba nine-teeth byte
@ChrisJester-Young "Page not found" - then go and search again lazy bastard engine
@flawr Lol. Stack Exchange code uses 404 for access-denied errors, or pretty much most errors.
20:32
Thanks @Himarm.
ven
ven
omggg
@HelkaHomba Did you make this room just for the joke? :P
It now has a demographic
Error 442: stack did not overflow
20:35
@ven cuteness incarnate
ven
ven
This cat is scary.
@Roujo thx.
.oO(I wanted to post a photo of our cat that I took today, because she looks a lot like the cat in the above picture! But I suspect the image upload thingy doesn't do EXIF stripping, and I don't want the geotagging for all the world to see. So. :-P)
in The Block, 19 secs ago, by Marky Markov
@HelkaHomba you are the only one who can do anything to me.
Marky opens up...
20:47
@HelkaHomba he was making you think he killed you....
PLS DON"T DIE CHAT!!
Just got the silver notable question badge=)
I can't believe it.
> Space Travel
Because the red panda is not much larger than a house cat, and therefore definitely smaller than the average house dog, it would seem to be ideally suited for space travel following the experiments performed by the early Russian space program. Their reliance on bamboo as their primary foodsource is well suited to long distance voyaging, as it is easy to store for lengthy periods without deterioration.[38] Despite this, widespread adoption of these animals as astronauts has not been reported.
they're learning how to open .rar files. https://t.co/ePYrBlpvZg
morning
Afternooning.
20:58
@flawr Congrats!
' night
EVERYBODY FIND CUTE PHOTOS!!!

Aww!

To clarify, spiders are not on-topic here. Ever
latest email in my work inbox: "Dogs in the Workplace Pilot Program" - I really don't know what to make of this
Could be red pandas.
@DigitalTrauma Is it about the SE site?
21:01
@El'endiaStarman no - sorry off-topic
Darn. What was it about though? o.O
> (424) The Nineteenth Byte | chat.stackexchange.com
if you’re a <company name> employee in <location>, you may bring your dog to work on Wednesdays and Fridays.
I hope they checked for dog allergies, but other than that, that sounds awesome! ....... If the dogs are reasonably well-behaved, that is.
@DigitalTrauma @AlexA.
21:03
apparently its a thing cnbc.com/2015/10/15/…
One of my dogs would bark at every male and sniff everything, and the other would lick everything, especially people to get them to pet her. :P
@DigitalTrauma Can I bring my horse?
Or my donkey?
My dog's tail would probably fall off
but somehow I feel this is asking for trouble, I mean err, accidents happen
My pet snake!
And my bird spider.
21:11
@Sherlock9 Every Haskell value must have an unambiguous type. A list of type [a] can only have items of type a.
@Sherlock9 Use tuples.
If you had a list with multiple types and called head on it, Haskell doesn't know what type it should return.
@Zgarb Stupid head.
@Zgarb Coming from a Python background, this seems like a stupid problem/flaw to have. Why is Haskell designed this way?
It's called strong typing :P
@El'endiaStarman Avoiding errors.
Also, why would you need a variable-length list with multiple types?
@MartinBüttner Indexing instead of an if was such a good idea. I need to remember that!
@LegionMammal978 Yeah, why do you need PHP?
21:20
Huh, I now have a bit more respect for Python. :P
I may be misremembering this, but I think it was John Carmack who said that the reason to use strongly typed languages is that "every error that is syntactically valid will end up in your code base if your project is big enough". And strong typing allows to compiler to catch more potential errors before your program ever runs.
@flawr Because many servers already support it :(
@DonMuesli where are we? :D
You could really say that if a haskel program compiles, it will never produce errors
"never"
@MartinBüttner I mean this
2
A: Passwordify the string

Martin BüttnerCJam, 23 bytes lS'_er{60<}${eu_el+mR}% Test it here. Explanation l e# Read input. S'_er e# Turn spaces into underscores. {60<}$ e# Sort (stably) by whether the character is a digit or not. This moves digits e# to the end, without changing the relative order within digits or ...

21:21
oh right
thanks :)
I'm a CJam noob :-) But the language turned out to be much easier than I expected. It seemed daunting at first
@LegionMammal978 I actually do this in my Python interpreter for Minkolang.
@DonMuesli MATL seems more daunting to me :P
Strong typing also really helps with making sure pieces fit together for a large-scale project - you have to explicitly spell out some contracts that you would forget to document otherwise
@MartinBüttner That's only because you don't come from Matlab :-)
And maybe also because I don't really like it :P (Matlab that is... MATL seems quite interesting from the little I understand)
I do know some matlab, but I avoid it whenever possible.
@MartinBüttner How's that?
@MartinBüttner Oh and thanks :-)
Haskell's type system is awesome. It's somehow really strict (so catches lots of potential bugs) and really flexible (you can easily define complex types) at the same time.
I don't know... I just never really liked the syntax... compared with Mathematica, it just seems a bit shoddy for proprietary software :D (I know it's good at what it does, but it just seems a bit... antiquated... I don't know...)
@MartinBüttner Well, I don't know Mathematica, or many other languages for that matter, so I can't tell
I do everything in Matlab :-)
21:28
Mathematica has to many builtins.
@flawr I golfing language based on Mathematic would be all the rage :-)
In order to implement all the functiosn you'd still need quite long funciton names^^
Surely you can just acronymize and/or abbreviate all of them.
Someone was working on one iirc
@DonMuesli I thought about making a stack based language where each command is overloaded, and depends on the types that it is applied to
21:33
@El'endiaStarman That's why tuples exist in several strongly-typed languages; those lists are all fixed-length.
@flawr Nah. Two characters give you a lot of space
@flawr That happens in other languages such as CJam. In MATL to a certain (much less) extent
@MartinBüttner Yeah, I guess Mathematica's closest equivalent to a type is a Head
@DonMuesli Example in matl?
>> matl -h k
k   convert string to lowercase / round towards minus infinity
    1;  1
    lower for strings or cell arrays of strings; floor for numerical
    arrays
@flawr ^^ The k function
Oh ok, I wasn't aware of that one=)
21:34
It's pretty useful. lower on numeric arrays doesn't work anyway in Matlab
I mean, it doesn't change the ASCII code of the character
I think the problem in MATL is that almost everything is a matrix^^
Yes. Exactly
That's sometimes good, but other times it's a problem
Hedgehog or tumbleweed?
Hedgeweed. Tumblehog.
:-D
Definitely tumblehog
Ninja'd
21:38
The ground just.... falls.
Video ends way to quickly
Reminds me of this one
@flawr Oh yeah, I've seen that one. It's crazy.
just added a followup question to my meta post about imagemagick
Is there a term for having meta discussions that benefit a score in a challenge? meta-golfing?
I'm probably biased in trying to get my score down to 3 bytes, so I'm going to wait for more responses to the meta question
@quartata that seems to be more generally about scoring.

« first day (1886 days earlier)      last day (3253 days later) »