« first day (1821 days earlier)      last day (3037 days later) » 

12:06 AM
@Dennis I cannot test it right now (away from computer) but I have a hunch about what the error is from. Try running the groovy script while in the same directory as it.
 
@PhiNotPi Still listening=)
 
that feeling when you golf your answer down from 172 to 159 bytes
 
It is a glorious feeling indeed
 
One rev per upvote, what is the matter?
Can I ask for your opinion on this sandboxed challenge? I think it might be too difficult. I did some research and found some algorithms, but they all seem to be quite new (and I expect quite compicated.)
 
12:18 AM
@Doorknob 31 pages of revisions ._.
 
@Doorknob I've seen that before...
 
On the other hand I think people could come up with creative (but perhpas not as good) ideas for algorithms
 
@flawr It seems like a worthwhile challenge.
I like it a lot. Could yield some amazing answers too.
 
@flawr I like it
Look super hard, but then again I'm bad at image challenges
 
I'll add some test cases with images of dogs, and I'm sure you're going to bite=)
I thought about adding some more simplifications people can assume.
E.g. that the area is at least it's width away from the image edge.
 
12:22 AM
So I have a code challenge where you write a single function, but it needs to be called multiple times with different parameters for all the different test cases. I wrote a class in java where you fill in the method, but then answers can only be in java. Any ideas?
 
Is it in the sandbox already?
Uhm, what's the problem?
 
No
 
Or what do you need ideas for?
 
I don't want to limit the answers to just java
 
I think that should be easily translatable to other popular languages
E.g. python/javascript e.t.c
 
12:25 AM
I'll put it in the sandbox
 
If I happen to like the challenge I'm happy to help translating=)
 
Thanks
 
12:52 AM
@quartata That worked, both with the old a new version of Groovy. I finally went with -classpath /opt/rotor-lang, which seems cleaner than changing directories. rotor.tryitonline.net/…
Btw, is FizzBuzz supposed to take 30 seconds?
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Your fixes work (sorry for late response).
 
@Dennis I don't know why it is that slow but it does that on my machine too so I guess
Anyways yay it works
 
Rotor wins the award of least promising golfing language of 2015.
 
lol
 
Alright, it's in the sandbox
The bot takes way too long to post the link
 
1:03 AM
@AlexA. ?
 
0
A: Sandbox for Proposed Challenges

Daniel M.Language Guessing code-challenge parsing (Inspired by What's the Language?) According to the first Google result, the most popular programming languages are: Java C++ C# Python PHP (For our purposes, C and C++ will both be treated as C++, though the test cases may include C source code an...

 
It's only one byte longer than Pyth..
 
@quartata Well, you know our "Best Of" awards?
Rotor doesn't get one of those.
 
yes
if it is because it's slow blame groovy
 
Is it slow? I've never used it or even seen it in action.
 
1:06 AM
@quartata \o/ TIO has a 60s time limit though, so fizzing up to 200 would probably get killed...
 
@flawr though I hope it isn't too much a duplicate of codegolf.stackexchange.com/questions/58522/…
 
Just wondering, is asking how to golf a specific piece of code off topic/too broad here?
 

 Code Golfer's Corner

Discussion specific to golfing code. For general PPCG chatter ...
 
Okay.
Actually trying for @Sp3000's challenge
 
That doesn't mean you can't bring it up here, but for an extended discussion about golfing a particular submission, the other room is probably a better choice.
 
1:11 AM
No, like posting on main.
That is a definite no, huh.
 
No way!
 
@RikerW Let me find the meta post.
 
Okay.
I thought I saw some older posts like that, that had a positive score. IDR where they are though.
 
14
A: Let's decide what kind of non-challenge questions we want once and for all

DoorknobQuestions about improving code golf / code challenge skills Examples How can I make shuffling this array shorter? How can I shorten these nested loops? How can I alias member functions in a short way? Arguments For: These more basic questions might be attractive to new users (if they can...

 
"Attracting interest to see if someone can think outside the-" I see what you did there. ;D — FlagAsSpam 15 secs ago
 
1:23 AM
@Dennis So a yes?
 
@Dennis Haha apparently I downvoted every single one of the answers to that question
 
#unsurprised
 
?
 
You down vote a lot. :P
 
Well, what do you mean by piece of code? If it's something that could potentially be useful for others, consensus says yes. That doesn't mean you can dump a 300 byte answer of yours on main and ask people to make it shorter...
 
1:27 AM
Nah, that is @Geobits.
@Dennis A learning algorithm test thing.
 
@FlagAsSpam Well, on meta it's a sign of disagreement, and on that I guess I disagreed that any of those things should be on topic here.
 
Should I post the following comment on [this](http://codereview.stackexchange.com/q/115783/95606) post:

You know, if you wrap this up right, you might find some pretty out-of-the-box answers for this over at PPCG if you specify [tag:fastest-code] (NOT code golf) and ask for (but do not restrict to) C# answers... it probably won't look a lot like your current code, but if you want out-of-the-box stuff...
 
@RikerW Is that for an ongoing challenge?
 
Huh. Apparently, I can't do links.
 
Not in multiline messages
Markdown is ignored in multiline messages
 
1:30 AM
@Dennis No.
 
@AlexA. Oh dayum.
 
@FlagAsSpam I personally wouldn't do that.
 
@AlexA. Yeah, it felt a little too... advertisey to me.
That's why I asked.
 
@RikerW It's probably fine. Hard to tell without seeing the question though.
 
Okay, gimme a mo to pastebin the code.
 
1:33 AM
That, plus I don't think it's good to encourage people to ask specifically for answers in a certain language unless it's a bounty, and I don't think think that would make a terribly interesting . IMO anyway.
 
^
Okay, not gonna post my test taker, only my math problem generator.
 
@FlagAsSpam \o/
 
Hey, @CᴏɴᴏʀO'Bʀɪᴇɴ, how do you think I should organize my wiki for Vitsy?
 
@FlagAsSpam It depends. How much information do you have?
 
1:42 AM
Here we go...
0
A: Quine permutation group

ՊՓԼՃՐՊՃՈԲՍԼJavascript ES6, 68/1.8e16 (basically 0) $=_=>`$=${$};$(0)`.replace(eval(`/(${_})\\)/`),x=>++_%9e15+`)`);$(0) Based on my Bling Quine framework: $=_=>`$=${$};$()` Here's the output sequence starting from $(0): $=_=>`$=${$};$(1)`.replace(eval(`/(${_})\\)/`),x=>++_%9e15+`)`);$(0) $=_=>`$=${$}...

 
My github wiki - so, like, all the info on Vitsy, I just need organization ideas.
 
1:44 AM
No idea how that fits in here.
 
@RikerW It's not me it's markdown.
 
@FlagAsSpam Oh, I see. Well, I have absolutely no idea what github wiki is. I just wrote a bunch of .mds for Jolf. ¯\_(ツ)_/¯
Sorry I couldn't be of more use ^^"
 
oooo fancy
I would make a page for each command
 
1:46 AM
@RikerW That seems a tad too specific to me. Disclaimer: That's my personal opinion.
 
And then one for each of those bullets.
 
@Dennis Okay.
 
Are there any non-Firefox, non-Chrome people here?
 
Midori occansionally?
On my old computer.
 
No, I mean right now. I have a 12 kB permalink in an answer, and I'm wondering if that's a big deal.
 
1:49 AM
No.
 
@Dennis I have IE
 
BE COMPATIBLE OR BE ASSIMILATED!!!!!
NVM.
 
I have windows...
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Do you use it???
 
1:50 AM
@Dennis people regular users
 
@CᴏɴᴏʀO'Bʀɪᴇɴ I think IE has or used to have a problem with long URLs. Could you check?
 
@Dennis Tor?
 
@Dennis Yeah. Check what?
 
@ՊՓԼՃՐՊՃՈԲՍԼ You use that?
 
Sometimes for fun.
 
1:51 AM
@CᴏɴᴏʀO'Bʀɪᴇɴ If the permalink in this answer works.
 
But it's basically FF.
 
Okay.
 
Oh yeah, Safari.
 
I'm mainly worried about MS browsers.
Although I have no idea how Safari would behave in this case.
 
Oh, the link isn't the right code BTW.
 
1:52 AM
<h2>Pyth, <s>40</s> <s>36</s> <s>34</s> 32 bytes</h2>
<h2>Ruby (2.2.2p95), 124 bytes</h2>
<h1><a href="https://esolangs.org/wiki/TeaScript" rel="nofollow">TeaScript</a>, 16 bytes</h1>
<h1>Bash</h1>
<h1>Jelly, 29 bytes</h1>
<h2>Pyth, 17 bytes</h2>
<h1>JavaScript, 131238 - 10 = 131228 bytes</h1>
<h1>Vitsy, 40 bytes</h1>
<h2>Java, 81 bytes</h2>
<h1>Brainf*ck, <s>489</s> 466 characters</h1>
<h2>C# - 158</h2>
<h1><a href="https://esolangs.org/wiki/MATL" rel="nofollow">MATL</a>, 48 bytes</h1>
<h1>JavaScript (ES6), 70</h1>
That's what I get
On IE
 
The link is like 3 versions outdated
 
@flawr Glad you liked it. I just found it through random browsing.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ OK, that's truncated then.
Stupid IE!
Thanks anyway.
 
@Dennis Hey! If you use teh potato computer, IE works like a dream.
 
If you mean nightmare, sure.
Hahaha, that answer of mine just got flagged by Community.
 
2:02 AM
@Dennis Why?
 
Community has the annoying habit of flagging all posts that have been edited too many times.
 
I hate that image.
 
Hehe
Subliminal messaging!
(Stars and stuff)
 
I like this one better:
 
2:14 AM
In a comment thread, no doubt.
 
What?
The image isn't from one.
This one is though:
 
But the quote is probably.
 
Maybe.
 
Why else would we know the exact date
 
Oh, yeah.
Anybody wanna join the PPCG minecraft server? I am coming on.
 
2:20 AM
@RikerW I might
What's the IP?
 
@ՊՓԼՃՐՊՃՈԲՍԼ I just tried out LZString and it is indeed better than shoco. I'll be using it in Rotor.
thanks for shouting it from the rooftops
 
2:36 AM
0
A: Sandbox for Proposed Challenges

TheCoffeeCupYour task is to decompress a string (e.g. @@) to a decimal number (e.g. 16448 in this case). The string is decompressed in a special way, shown below. Challenge The strings are compressed in this way: Take a number, e.g. 1434. Convert it to binary, padding with zeroes until the number of digi...

 
Does anyone else think it would be useful to have a new separate meta question for discussing the challenge now that it has been posted? — trichoplax 9 hours ago
Upvotes on the comment itself (linked from the time) would be a useful measure of how many people would like to see this.
(or comments with opposing views)
 
2:59 AM
I HAVE INTERNET AGAIN
 
3:13 AM
@quartata Careful about the byte count tho
The reason why shoco is used is because it stays within [0:255] charset range
 
@El'endiaStarman a funny: If God created man from dirt then why is there still dirt?
 
@BrainSteel \o/
@orlp hahaha?
 
@CᴏɴᴏʀO'Bʀɪᴇɴ that's the spirit!
 
@CᴏɴᴏʀO'Bʀɪᴇɴ is a neural network and we must train him
 
x3?
 
random question: how would you guys design dice in a database?
 
@NathanMerrill [more information needed]
 
you can assume that each side has a number
 
dice?
 
3:21 AM
are you storing dice roll outcomes?
 
no, an actual dice
so D8
or D6
 
In a D&D game: "I want a quesadilla, can I role for it?" roles for quesadilla... critical miss
 
or maybe a dice with 1,2,3,1,2,3
lol
 
@orlp It's like :3
 
Dice notation (also known as dice algebra, common dice notation, RPG dice notation, and several other titles) is a system to represent different combinations of dice in role-playing games using simple algebra-like notation such as 2d6+12. == Standard notation == In most role-playing games, die rolls required by the system are given in the form AdX. A and X are variables, separated by the letter "d", which stands for die or dice. The letter "d" is most commonly lower-case, but some notation uses upper-case "D" (non-English texts can use the equivalent form of the first letter of the given language...
does that help?
 
3:23 AM
no, because those dice assume that numbers on a single die are distinct
 
all are you dice physical?
or are they theoretical dice?
 
5
Q: Exploding Cats!

ՊՓԼՃՐՊՃՈԲՍԼChallenge You will be making a program/function that takes a string input of length n, and: Puts the kth char at the center of the space, where k = (n+1)/2. This will be the location of your ground zero. Puts the rest of the non-whitespace chars randomly arranged around ground zero. The Pythag...

 
theoretical dice
 
No answer yet? I'm surprised.
 
so, they could be 2 sided dice, if you'd like
 
3:24 AM
how do I make rawgit load my commit i waitd 1 minute but no commit plz hlp
 
@NathanMerrill are they uniform dice?
 
as in, each side has an equal side of coming up?
 
@ETHproductions It just does that :(
 
then I'd just store it as an array of integer faces
e.g. [1,2,3,4,5,6] is the default dice
 
3:25 AM
@ETHproductions Ctrl-R repeatedly
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Yes, unfortunately :( I like to call this "What commit?" mode
 
as long as you don't care about any other special properties other than which side can come up
 
well, it needs to be in a database
 
that should do
 
@ETHproductions XD
 
3:25 AM
but it seems silly to store a row for each side
 
@ՊՓԼՃՐՊՃՈԲՍԼ ive done that one hundrd tims but no commt
 
@ETHproductions Stuff's faster if you do things from local Github.
 
(especially if a die has 100 sides)
 
@NathanMerrill all right
then you want two tables
 
@ՊՓԼՃՐՊՃՈԲՍԼ except that I can't load the online interpreter from local GitHub
 
3:26 AM
one with dice id -> [specification] as a string (in a format like 1,2,3,4,5,6)
 
@ETHproductions I meant committing from local Github.
 
and you make the specification sorted and unique
 
@ՊՓԼՃՐՊՃՈԲՍԼ I do commit from local GitHub. So it's slower if you do it online? Thanks for letting me know, I'll keep that in mind...
 
alternatively you can even use hash(<sorted die code>) as their id, to find the id without having to lookup in the database
 
@orlp and the second table?
 
3:28 AM
@NathanMerrill your dice linked to the ids :)
assuming you have some kind of inventory of dice
 
sure, I have "dice instances"
 
if you only want to store dice types, then you're done with table 1
 
the string isn't a bad idea
I think I could even expand it
 
@ETHproductions Oh. I thought you were doing things entirely online. (I used to do that.)
 
cdn.rawgit.com has it, why doesn't rawgit.com?
@ՊՓԼՃՐՊՃՈԲՍԼ Yeah, I used to as well
 
3:29 AM
@ETHproductions caching and stuff
 
thanks :)
 
rawgit.com has some comparisons.
 
yay commit finaly came thx for the hlp
 
The van Gogh challenge made a really good test for my autotracer. (Not for this challenge, but to test the general quality of the tracing): gist.github.com/minxomat/504f95c7ad421a0afe59
 
3:30 AM
@ՊՓԼՃՐՊՃՈԲՍԼ I still do.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Hmm... you should really try local.
 
It says "New changes will be reflected in minutes."... guess I just have to learn some patience
 
@mınxomaτ source?
 
SecurityError: The operation is insecure.
Not what I want to hear when trying out Web Workers :|
 
3:31 AM
@orlp The image or the tracer? (The latter is a university research and therefore not public (but will be soon)).
 
OK, pushing another debugging fix... I hope rawgit responds faster this time, otherwise I'll be stuck chatting in here all night :P
 
@mınxomaτ the tracer
 
But no-o-o-o, rawgit is taking its dear sweet time tonight
throws laptop
 
@ETHproductions stay with us
 
That didn't help either, let me try again
throws laptop CURSE YOU STUPID CACHEING!!!
 
3:36 AM
@ETHproductions NOOO LE COMPUTADOR ES WRECKO
Wow that was some serious fraspanglish fake stuff.
 
@ՊՓԼՃՐՊՃՈԲՍԼ AND IT DIDN'T HELPO UNO BIT-O
I need to focus on something else
Yay, it worked :D
Nothing changed >:(
Maybe I should read the Worker manual more closely
WHY IT NO WORKY-oh, cross-domain policy
well then how do I get it to work if I need to access rawgit from github.io?
Plan A: try the best hacky pure-JS solution I can find online
Whoa, rawgit was just like "Oh, you want your commit? Here you go." :D
 
3:53 AM
O-o
But yay for pure JS!
 
And now the Worker works! \o/
But the task it was supposed to accomplish doesn't. /o\
 
Should one post a second answer to a challenge in the same language if the approach is substantially different?
 
yea sure
although if they are both your answers you should just combine them into one
 
ΑtΜztd*~1HZa½~2t
and good night
 
I should come up with more descriptive commit names than "debugging"
> In January 2013, Curtis Cooper et al. discovered the 48th known Mersenne prime in the U.S.
Wait, so now they're hiding in different countries? O_o
 
4:09 AM
@ETHproductions ILLUMINATI
CONFIRMED
 
ReferenceError: alert is not defined
wtf
 
Hey @Doorknob
9
A: When is code that requires a REPL acceptable?

Thomas KwaAlways— but a REPL is a different language. We usually define languages by their interpreters. My Python shell is an interpreter, which satisfies our definition of a programming language. Therefore, it is a valid language. "Wait a minute", you say, "won't REPLs usually be shorter than their ful...

 
ReferenceError: window is not defined
 
can you undelete
 
There's obviously something I'm not understanding about Workers
 
@ThomasKwa hm? 'tis not deleted
ah
Alright, seems fair
 
4:21 AM
ctrl-r ctrl-r ctrl-r ctrl-r ctrl-r
 
@orlp First time I've seen that variant of "If humans evolved from apes, why are there still apes?". :P
 
I'm thinking about getting one of these massdrop.com/buy/infinity-ergodox?mode=guest_open
 
@orlp That is sick!
 
4:39 AM
Hello chat!
 
4:50 AM
0
Q: Longest output in 1024 bytes or less

PyRulezYour job is to generate the largest output in a program with 1024 bytes or less. Rules: Only finite lengths allowed Must be completely self-contained and deterministic In particular, standard input will be nothing Content of output doesn't matter Output consists of both stdout and stderr Pr...

 
5:32 AM
Turns out drawing is surprisingly effective:
6
A: Paint Starry Night, objectively, in 1kB of code

mınxomaτAutoIt, 9183.25 7882.53 UPDATE So it turns out that redrawing the image like a (drunk) toddler is more effective than storing any version of the image. (More effective than my old solution anyway). Every line that draws an element is crucial to decreasing the score. I suspect this program is ...

 
6:32 AM
0
Q: Fictional Operators

Dan PrinceInspired by this question, what is the most realistic looking, fictional operator that you can come up with for your language? The operator needs to be valid syntax, but it doesn't have to do anything. Try to come up with something that would leave even an expert wondering whether there was some...

 
I've now made posts in two different 4-bit machine code languages. There should be a badge for that.
 
 
2 hours later…
8:49 AM
0
Q: Find our neighbors

helloworld922You live in a rectangular neighborhood which is completely partitioned into N rectangular plots, i.e. there are no gaps or overlaps. Plots do not necessarily have the same width/height as other plots. All widths/heights are positive integers. Your goal is to output all shared edges between plots....

 
 
2 hours later…
10:32 AM
5 years later...
 
tumbleweed
 
11:09 AM
cricket cricket
∞ years later...
Hi guys, I'm a time traveller from the past!
@AlexA. Sea otters are cute too
 
11:29 AM
@flawr That doesn't work.
I'm making an operating system.
Ni80QZD/QZD/QZCnVmFvPQ==685393568
 
4004 REP!
/o/
\o\
\o/
 
@FlagAsSpam :D
 
@zyabin101 :DDDDDDDD
 
I encoded this with the following Python program:
import base64,binascii
f=open(r"C:\path\to\a.bin",'rb') # change this with path to file
data=f.read(512) # change this with file's size
data1=base64.b64encode(data)
data2=binascii.rlecode_hqx(data1)
data3=base64.b64encode(data2)
data4=int(binascii.crc32(data3)&0xFFFFFFFF)
if data3[len(data3)-1]=="=":print data3+str(data4)
else:print data3+" "+str(data4)
Bonus points for golfiness?
 
11:44 AM
I'm deeply confused.
 
@FlagAsSpam The Python program encodes the file with base sixty four, then run length encodes the result. The result is again encoded with base sixty four, because I can't send unprintables in chat.
 
OHHHH.
Okay.
 
A checksum is then produced using the result after the second encoding, and written at the end. If the program can golf the space between the encoded file and the checksum (the encoded file has a = at the end), golf it and write after the =. Else, write after the space.
 
I get it now.
 
Done. Now try to create the inverse of the program and decode the binary. :)
 
12:01 PM
Here it is:
Well, the only content is the iPXE ident and the cursor that's happily blinking on the screen. But it works.
Two bugs/features/you decide: the floppy motor stops after the system boots, and you can Ctrl-Alt-Delete out of the system.
For kicks try compiling this assembly language code:
cli
hang:jmp hang
times 510-($-$$) db 0
db 85
db 170
This clears the interrupts flag, which is one internal of the computer that makes that so the floppy motor stops and you can Ctrl-Alt-Delete out.
Using the code above, the floppy motor will still work and you are trapped until you hard reboot.
End of operating system talk While I was uploading the image of the OS, I stuck on one ad that advertises the Delete Blood Cancer Foundation/whatever. I obviously recommend visiting their site. You can help someone.
 
12:25 PM
0
A: Shortest program that throws StackOverflow Error

FlagAsSpamVitsy, 1 byte Obviously non-competing due to language creation date. This feature of my language was entirely unintended. Because of how loops work in my language, they can be finicky if you don't match braces. So, for a one-byte solution, I give you this: [ Try it online!

 
1:18 PM
I built an (almost) working decoder for the binary format I gave a hour and a half ago.
import base64,binascii
# This decoder does not support the golfed space!
f=raw_input()
data=f.split()
data1=int(data[1])
data2=data[0]
data3=int(binascii.crc32(data2)&0xFFFFFFFF)
if data3==data1:
    data4=base64.b64decode(data2)
    data5=binascii.rledecode_hqx(data4)
    data6=base64.b64decode(data5)
    g=open(r"C:\path\to\b.bin", 'wb') # change with the output file
    g.write(data6)
else:
    raise ValueError("c")
It's in Python, and it does not support the golfed space between the = and the checksum. So you have to add the space back in the input string.
But at least it works.
 

« first day (1821 days earlier)      last day (3037 days later) »