« first day (1765 days earlier)      last day (3075 days later) » 

2:00 AM
0
A: Very Simple Grid Marks

anOKsquirrelCJam, 19 Bytes q~:Z;:Y*,{Z%!}%Y/N* Takes input as H W N.

 
Neck and neck
 
yep
18 q~:Z;_@*,{Z%!}%/N*
 
@anOKsquirrel Actually looks like you're Xing the first character. That's wrong. e.g. see W = 5, H = 3, N = 3 example
 
oh ok
fixed, but 20
 
To site things for a programming class's essay, can I just do something like "import wikipedia"?
4
Then something like "wikipedia.Langtons_ant()"
?
 
2:11 AM
I think you mean import java.util.plagarism.wiki.wikipedia.
 
No, java.util.plagarism.wiki.wikipedia.* I need it ALL
 
?
 
Don't question it. Just accept.
 
@AlienG *cite
(sorry, it was bugging me a little)
 
2:15 AM
XD
 
Had to debug!
 
Compile now, debug later.
 
25 min to hnq :O
 
It was a parser error.
 
@Justin Good point.
 
2:18 AM
ayyy I figured out why my "fun with creepers" in minecraft wasn't working!
 
@El'endiaStarman Why is there no implicit stop on your language? It makes functions always have a +1 disadvantage.
 
@VoteToClose Lemme know how to implicitly stop on a toroidal codebox.
2
 
@El'endiaStarman fixed arity?
 
When moving right from the rightmost position on the final line.
 
.... it's toroidal.
 
2:24 AM
Oh, damn.
Well.
That makes life hard.
 
@Maltysen Most if not all of the commands are fixed arity.
 
Side note: Vitsy is in the lead. :D
 
Anonymous
Character encodings suck
2
 
Anonymous
I couldn't figure out why my Seriously code wouldn't work - turns out I had my terminal on utf-8
 
2:28 AM
OSX is always UTF-8. c: Makes things easy.
 
Anonymous
No it makes things impossible when you use 1-byte chars
 
@VoteToClose Not anymore. :P
 
I meant between us two. I was getting owned by Pyth and CJam anyways.
 
lolz :P
 
2:31 AM
I mean - let's face it, Vitsy, Simplex, and Minkolang will always be duking it out.
 
@VoteToClose Not sure what you mean. Ask if stack snippets allow external JavaScript? That should be rather easy to find out.
 
@Calvin'sHobbies, are we allowed to have spaces between characters? Like 0 0 1 0 0 1?
 
@Dennis @Doorknob ?
 
Drat.
I figured not, but there was a chance to save 4 bytes...
 
2:34 AM
@VoteToClose yes, they do
 
@Dennis ^ So, tryitonline via StackSnippets is possible?
 
It was always possible, but external JavaScript means I can provide a one-step solution that won't break if I change stuff on my server.
 
Anonymous
Yay my unit tests passed
 
Consider them .
 
\o/
 
2:38 AM
Oh, somebody already posted the Python answer I had found.
 
@Dennis for what?
 
0
A: Count sums of two squares

RikerWPython 2, 68 bytes def x(n):r=range(-n,n+1);print sum(a*a+b*b==n for a in r for b in r) Defines a function called x() that takes a number n. As far as I know, this is allowed by default. Try it online. http://ideone.com/aRoxGF

 
@Mego Sweet.
 
It's a very minor improvement over the next shortest answer, so I didn't want to post it.
 
Anonymous
2:40 AM
 
Anonymous
@VoteToClose Yeah but people actually know how to use my language :P
 
When you declare ;ext, the text following ;ext (with a space afterward) will be declared this class's superclass.
Oh dear lord, what?
 
Technically, it's ;e now.
vitsy1, 2, and 3 demonstrate class functionalities.
chat goes silent
 
Beep.
 
2:49 AM
xD So what do you all think of my horrifying attempt at class loading/using?
 
Vesty
IMO
 
Vesty?
 
Vesty. Your attempt is vesty.
 
Goodbye
 
I have no idea what that means.
 
2:50 AM
@Mego Just to let you know, I'm getting real tired of your constant effort to discredit me.
 
^ See, that's what I thought you meant, @Calvin'sHobbies
 
Anonymous
@xsot Just to let you know, it's not "constant". It became relevant again. You know that what you did is unacceptable by our rules.
 
@VoteToClose When were you talking to CᴏɴᴏʀO'Bʀɪᴇɴ?
 
Anonymous
The Conor/Calvin mixup strikes again
 
2:53 AM
Have a moderator take down my submission then if you insist so.
 
@VoteToClose My name has no fake capitals >.>
 
@xsot I believe his intention was to point out that there was a similar method Python answer already. It is common practice, when seeing an answer in the same language with the same method, to suggest improvements rather than posting a separate, but similar, solution.
@Calvin'sHobbies This is true - I talk more to Conor, though. Plus, I'm tired.
 
It's alright, Stay vesty.
 
WHAT DOES VESTY MEAN? c:
 
Right now I really wish I had implemented easy matrix output...
 
2:57 AM
@VoteToClose The thing is, the problem is simple and doesn't lend itself to much variation in approaches. Anyone who saw it would have trivially arrived at the same answer as Mego's. I thought the fact that I spotted a non-trivial optimisation justified my submission.
 
@Mego To clarify: There's no rule that you have to suggest improvements to other answers or that you cannot post highly similar ones. That's just a personal choice.
 
@xsot ¯\_(ツ)_/¯ Very well. However, 2 bytes is bound to make someone rage at you in the future. ;) Maybe next time, pointing it out instead might be more popular. c:
 
Anonymous
@xsot You took literally the same approach to the main part of the problem, but rearranged the code so that it was shorter. That is a trivial optimization. A non-trivial optimization would be finding a way to do the main task in a significantly different way (such as calling a different function from time or a different module).
 
Anonymous
14
Q: Why can't I post my answer after others use my language?

TheDoctorI've been getting a lot of grief lately about posting Python answers after other users have already posted a Python answer. Not only do I come up with these independently, they sometimes are shorter/different solutions. I'm getting really tired of this. Sources: http://chat.stackexchange.com/tr...

 
That's an entirely different discussion. The Doctor's answer were longer than the pre-existing answers in the same language.
 
Anonymous
3:02 AM
The +25/-0 answer (and my +7 comment) support the notion that an answer that is in the same language as another answer should only be posted if it accomplishes the task using a significantly different approach
 
@Dennis But the answers are relevant.
 
Anonymous
The discussion was about same-language answers in general, not specifically TheDoctor's answers
 
Not exactly the same, but relevant.
 
I think we have very different notions of what makes an optimisation interesting.
 
@xsot I actually agree with @Mego - 2 bytes is cutting it a little close, I think, especially when the rest of the code is exactly the same.
 
3:06 AM
AH-HA! Got down to 23 bytes @VoteToClose!
 
If it counts for anything, my vote is that this was a pretty clever optimization, and deserved a separate answer.
 
@Mego All content you post on SE gets a CC-BY-SA license, so even if somebody takes your code, golfs off a byte and posts it, he doesn't violate any rule, as long as he provides attribution. That doesn't mean the answer shouldn't be downvoted into oblivion; I'm just nitpicking on the word rule.
 
1
A: Output the Current Time

sysreqJava, 300 bytes This is the first time I've ever written Java and... wow. Just wow. import java.util.Date;import java.text.DateFormat;import java.text.SimpleDateFormat;import java.util.Calendar;class Main{public static void main(String[]args){while(true){DateFormat dateFormat=new SimpleDateForm...

^ This is optimization (see comment thread)
 
@VoteToClose A bit of context, the optimisation I made is not using ctime over asctime. Look at the previous edits of our posts.
 
Anonymous
@Dennis True, but by community consensus (which constitutes a policy/rule), doing so is not valid.
 
3:08 AM
consensus ≠ rule
 
^
 
My perspective on this is "why are you all making such a fuss?". Specifically, @Mego, you still have more upvotes on your answer than he does, and xsot did make a fairly clever optimization.
 
Anonymous
It's a community-agreed-on policy
 
Also, it is usually the case that the last few bytes take the most effort and ingenuity to cut.
 
Anonymous
@El'endiaStarman It's a matter of principle, not upvotes
 
3:10 AM
@El'endiaStarman I agree, this is quite a petty thing to dispute over. I just wanted to clear my name.
 
completely unrelated to the current debate, do we have a question on numerical differentiation?
 
I'm sure we do, but I haven't seen one.
 
Anonymous
@Maltysen I tried to make one as part of a multiple-holes challenge I had sandboxed. It didn't go over so well.
 
Then again, I'm a 4-month-old member... (effectively)
 
@SuperJedi224 I believe those are called bookends.
...and just noticed that you said that two minutes later
:P
 
3:13 AM
Can't sleep?
 
> Vesty
 
what about a question on newton raphson for arbitrary functions?
 
@VoteToClose That haunts you, doesn't it?
 
@VoteToClose spoooky vests
i'm the ghost of vesty git commits past
 
GODDAMMIT. WUT IS VESTY? cries
 
Anonymous
3:15 AM
The issue here is, I cannot golf my answer further without it being a direct copy of his, because he took my answer and golfed it further, initiating what became essentially a golfing arms race, despite my answer being posted 2 hours prior to his. So now I'm stuck with an unoptimally golfed answer that would typically be deleted by the author in favor of a more-golfed answer using the same approach, despite posting first.
 
Anonymous
And on top of it all, he tried to claim that he came up with it independently.
 
@Mego he probably did
 
^
This is why Vitsy is so good - nobody else will've answered in it by the point you answer.
 
Anonymous
19 mins ago, by xsot
@VoteToClose The thing is, the problem is simple and doesn't lend itself to much variation in approaches. Anyone who saw it would have trivially arrived at the same answer as Mego's. I thought the fact that I spotted a non-trivial optimisation justified my submission.
 
@Mego What are you implying?
 
3:17 AM
@Mego I read that as meaning that he came up with his solution, saw yours, noted the difference, and thought it worthy of submitting as a separate answer.
 
Anonymous
@El'endiaStarman Fair enough
 
Anonymous
Also it's worth noting that the original difference was 1 byte:
 
Anonymous
from time import*
while[sleep(1)]:print strftime("%H:%M:%S")
 
Anonymous
vs
 
I have an idea: drop it. It's no use talking about it anymore.
 
Anonymous
3:17 AM
from time import*
while 1:print strftime("%H:%M:%S");sleep(1)
 
^^ (what vtc said)
 
just make it community wiki
 
ಠ_ಠ
 
Sure
 
So! How's Seriously's development coming?
 
Anonymous
3:19 AM
6
A: Output the Current Time

MegoPython 2, 47 bytes from time import* while[sleep(1)]:print ctime() No online link because ideone times out (huehuehue) before printing anything. Thanks to @xsot for the while[sleep(1)] trick and the ctime trick. Prints out the current date and time like so: Fri Nov 27 21:23:02 2015

 
Anonymous
There, it's now CW
 
\o/ ^ and vv
 
I've removed my submission. Feel free to edit yours.
 
Anonymous
And in the interest of putting this behind us, I credited you for the optimizations
 
Anonymous
I'm sorry I was such an ass about it
 
3:21 AM
No worries, it was an unfortunate culmination of misunderstandings.
 
@Maltysen I agree.
@Mego @xsot I think any improvement on code is worth being a new answer; sometimes it isn't nice to write a new answer when the optimization is trivial, but we shouldn't give all of the credit and rep, no matter who wrote the code, to the first person who posts an answer in a langauge.
 
@VoteToClose: If we disregard the always-necessary ., then I beat you. :P
 
Shame that you do require it. ;)
 
@El'endiaStarman Here's an idea: How about if the code doesn't have a . in it, one is automatically inserted at the end?
 
ಠ_ಠ
 
3:25 AM
Oh wait, I don't need it! It crashes with an error! :D
 
Because . isn't always necessary, I presume
(e.g. infinite output code)
 
oh, right
 
Anonymous
@Doorknob Hey that sounds kinda neat and familiar
 
HAHAHAAA!
 
Anonymous
:P
 
3:26 AM
Well, that's significantly rarer, and I suppose there's a jump instruction that could be used?
 
Sp has appeared o.o
 
@Mego haha, is it in one of your languages? I wasn't aware.
 
@Calvin'sHobbies Actually busy on weekdays now, so I can't lurk 18/7 any more :P
 
Anonymous
@Doorknob Well since I have only one :P
 
@xsot Won't comment on the discussion you guys had, but nice while[...] trick :P
 
Anonymous
3:29 AM
Seriously implicitly pops and prints the stack until empty at the end of the program
 
@Mego Unlike Conor...
Seriously, that guy can't help but start new languages... :P
 
Anonymous
@El'endiaStarman ಠ_ಠ
 
@Sp3000 Thanks. I think I just spoiled a few of the endless problems over at anagol heh.
 
Well. :P
 
@El'endiaStarman You deserve this.
 
Anonymous
3:35 AM
@xsot I have just one question. Are you @xnor's sock?
 
That would be xnand
 
@VoteToClose ಠ_ಠ
 
@Mego No, but I can see how one might think so haha
 
Anonymous
Headcanon: @xnor == @xsot, @quartata == @quintopia, @AlexA. == everyone who hates me for all of these pings == everyone
 
Anonymous
(especially @AlexA. == @ಠ_ಠ)
 
3:37 AM
@Mego /me doesn't hate you because you didn't ping me
(yet)
 
@El'endiaStarman
 
Anonymous
@El'endiaStarman Oh right
 
/me therefore, is not alex
/me still does not hate
 
Anonymous
@El'endiaStarman == @VoteToClose
 
/me You have failed, your highness. I am a Jedi, like my father before me.
 
3:38 AM
@El'endiaStarman == @Sp3000
 
I'm glad I'm genuine according to Mego
 
Anonymous
> == everyone
 
Oh, even better, shaved off another byte. c:
 
@feersum D: whyyyy
 
@Mego >:{
 
3:39 AM
Language design :P
 
That's what, 1 sample point? :P
@Calvin'sHobbies Calvin == Watson - exceedingly good at asking questions
 
@Mego Seriously stop calling these updates of the century. See my average update.
 
@Sp3000 :P Come on, anyone could have thought up my last two questions
 
@feersum Hey, mine's better!
;)
 
3:41 AM
@El'endiaStarman I am now definitively beating you.
 
:(
I don't think I can golf off any more bytes. I concede. This time...
 
> any more bites
 
@feersum I'd say Sp and Optimizer are more related. @Sp3000 is the good twin and @Optimizer is the evil twin.
 
Nov 13 at 3:00, by Sp3000
Generic stack language seems to be true for the shorter problems, but necessarily all of them (e.g. Minko's 3var).
This is proof that @Sp3000 = @El'endiaStarman.
I asked how 2D was useful in Sp's language and the answer was a link to Minkolang.
 
^_^
I actually had another 2D-is-useful answer last week. This one.
 
3:44 AM
They both like their dimensions
 
@xsot Damn, '%*d'%(n,0)*w*w is the same length :/
Gonna see if using space/zero helps with the approach I was trying though
... 66 nope
 
@VoteToClose It's 4 days old and only now you just told me? =_=
Eh. I'm not gonna bother.
 
I thought you saw it!
 
3:48 AM
Alrighty.
Jussayin', Vitsy wouldn't be that hard to tack on.
Just use some stack manipulation, you'll be fine.
 
Gol><> too.
 
@Sp3000 Does your approach involve the string representation of powers of 10?
 
But y'know, I don't know any of those languages.
 
Gol><> is a ><> derivant.
Then again, ><> is a fungoid. So ignore me. :D
 
I'd be better off adding in Python 3 and Blitz 2D/3D, but I'd rather not take the effort to figure out how to pick and choose which part to run.
 
3:50 AM
@xsot Nope, just the naive way of for h in range(H):print(('.'*~-N+'X')*W*H)[h*W%N:][:W]. Powers of 10 sounds nuts
 
I think Gol><> is as much a ><> derivative as Pyth is a Python derivative.
 
^ This is accurate. I shut up now.
 
Anonymous
Just like Seriously is a derivative of CJam, Pyth, and Golfscript
 
@El'endiaStarman Currently, yeah. I'm still trying to find good use cases for 2Dness, apart from switch (which can be emulated with one liners given the right commands anyway)
(just to reiterate feersum's concerns)
 
@Sp3000 I thought about doing $t to do switch-case, but just ternary alone was hard enough that I abandoned the idea.
@Mego It's not a derivative of any of those at all.
 
3:54 AM
What is Vitsy a derivative of? o.o
 
@xsot btw should it be '%%%dd'%n%0*w*h rather than '%%%dd'%n%0*w*w, e.g. when height is much larger than width?
 
Anonymous
@El'endiaStarman thatsthejoke.jpg
 
@Sp3000 Good catch. As you can probably tell, I'm not good at testing code.
 
Anonymous
@VoteToClose vests
 
@Mego I kinda got that but at least the examples I listed had some similarities...
 
3:57 AM
Seriously though, Vitsy is such an amalgamation of just everything.
 
Technically, I guess you could say Minkolang started off as a derivative of ><>, but it went off the beaten path very quickly. :P
 
@xsot :P I guess it's easier on anagol when there's autotesting (@Calvin'sHobbies wanna add test cases for extreme W/H ratios, e.g. W=1, H=10, N=1?)
 
Pretty sure it's the only 2D language with a built-in for matrix inverse. :P
 
Anonymous
@El'endiaStarman Seriously was named after a challenge involving those 3 languages :P
 
35
Q: Seriously, GolfScript, CJam, or Pyth?

coredumpSome time ago, the following question was asked: GolfScript, CJam, or Pyth? Based on the title only, I thought that it would be a very nice challenge, but unfortunately, it turned out to be a question asking for tips. Here is the challenge I wanted to read: Who said golfing languages were not...

Side note: Please answer ^ in Seriously.
 
4:01 AM
@Sp3000 Added a couple like that
 
:) thanks
 
Anonymous
@VoteToClose I could, but it'd be only 2 more bytes
 
Anonymous
And require a feature I just pushed
 
¯\_(ツ)_/¯ Do it for the poops and chortles.
 
Anonymous
∞<my python answer here>∞
 
4:10 AM
1
A: Paradox of time travel

Peter AbolinsRuby, 510 bytes p=[0] w=[0] n=0 x=0 i=gets.split(' ').each do |s| if x!=1 then if s[0]=="A" then w<<n else if s[0..1]=="T+" then t=n q=s[2..-1].to_i if w[-1]==t||(w[-1]>t&&w[-1]<n+q) then w<<w[-1] n+=q else n+=(t<p[-1]&&n+q>p[-1])?q%(p[-1]-n):q end elsif s[0..1]=="T-" then t=n p<<n n-=s[2..-1].t...

Any fancy gem golfers?
 
Hey, I've written the controller for my upcoming KoTH
if you guys could read the spec and possibly run the controller, that would be awesome
0
A: Sandbox for Proposed Challenges

Nathan MerrillYou are the Weakest Link, Goodbye This king-of-the-hill challenge is based off of the game show, Weakest Link. For those unfamiliar with the show, the crux of this challenge deals with who you vote off: If the other players are smarter than you, then you have less of a chance of getting the p...

 
See: not my answer. :P
Click on the link.
 
Oh :P
4 messages deleted
All of the thens are unnecessary and can be removed. Also, you should use {...} instead of do...end to save more chars. map saves a byte over each, and split splits on whitespace by default. The first four lines of initialization can be shortened to p=[];w=[n=x=0]. — Doorknob ♦ 18 secs ago
 
Yeah - he's a first time golfer, so I figured I draw attention to the answer.
@Mego Did you just correct a chunk of your weeks old answer?
 
@El'endiaStarman btw I like your rotating method for grid lines, just sayin'
 
Anonymous
4:22 AM
@VoteToClose Yeah, somehow a piece fell off during copying
 
Anonymous
That I just noticed
 
/me claps.
You should embed your Seriously answer in it. ;)
 
@VoteToClose Ditto last comment on Vitsy, didn't realise you guys were using the same method
 
Are we using the same method? Rotate, duplicate, output, repeat?
 
Yeah, basically
Joining in the fun: IR0PIjIFF}:n|ao|; (not posting though)
You should be able to do something similar so that you don't need to subtract 2 from N and reverse the stack and whatnot
(I'm assuming \0 works in Vitsy)
 
Anonymous
4:37 AM
I always get excited when I push cool new features for Seriously. Then I realize that I've probably added a ton of new bugs too, and the excitement turns to dread.
 
@Mego I always get excited when I add cool new Unicode aliases for 𝔼𝕊𝕄𝕚𝕟. Then I realize that the alias probably is in conflict with other aliases, and the excitement turns to dread.
 
Write more tests :P
 
Anonymous
> I always g□t e□□it□d w□□□ I a□□ □□□□□□□□□□□□□□□
 
@ןnɟuɐɯɹɐןoɯ you should write a 1 byte encoding for ESMin; it looks like you have fewer than 256 symbols.
 
^
 
4:49 AM
@ThomasKwa How should this be done? I've been wanting this too.
 
@ןnɟuɐɯɹɐןoɯ I don't know.
 
Say "This is my encoding!".
Then use it.
 
... Okay ...
 
Anonymous
Pick 256 symbols. Map each of them to a byte value. Boom.
 
^ Basically.
I've decided: blytes.
18
A: Output the Current Time

VoteToCloseMinecraft 1.8.7, 7 + 8 = 15 blytes (bytes + blocks) Only one command block involved: xp 1 @p Output goes to the client console like so: As part of the normal output. This is the system: xp gives a specified amount of experience to a specified player with the syntax xp <amount> <player>....

 
5:05 AM
:3
I like that. Blytes. :P
 
@Mego Sorry about my noob state of mind, but what do you mean by "byte value"? (Perhaps an example would be great if possible...)
 
@ןnɟuɐɯɹɐןoɯ Hexadecimal pair. c:
 
Anonymous
@ןnɟuɐɯɹɐןoɯ [0,255]
 
Basically, assign each command to a byte value, like I might assign \map(, for example, to the byte value 46.
 
^ character - because ESMIN already has symbols to show.
 
5:08 AM
Yeah, character.
 
Also, open a meta thread about it and link the declaration of "bytes" to it.
 
Ah, I see. Thanks!
https://github.com/molarmanful/ESMin/blob/gh-pages/encodingmap.txt
What I have so far for my custom encoding (I'm calling it Mines - anagram of ESMin).
Am I doing this right?
 
Anonymous
@ןnɟuɐɯɹɐןoɯ Looks good
 
5:34 AM
@ןnɟuɐɯɹɐןoɯ you might want to have the printable ASCII symbols match up with ASCII
 
Anonymous
@ThomasKwa It wouldn't be the first language not to :P
 
The definition of "byte" is literally 255 possible values
that doesn't make any sense
 
I should really be using regular expressions for what I'm doing, but I really don't want to.
 
5:49 AM
You too @GamrCorps
 
@AlienG I agree
 
Your bot is shitty without it.
 
Speaking of regular expressions, I'm going to need one. Well, three.
One for integers, one for floats, and one for complex numbers.
The reason being is that I want to implement parsing in base n for each kind.
 
Ask Martin, it will take him like 5 seconds each (and that is just the time spent typing it)
 
I'm having trouble deciding what I should fill up the remaining Mines byte values with...
 
5:52 AM
Well, I'm sure there's someone else here who knows regexes...
I mean, Martin won't be on for another 2-3 hours or so...
 
true
 
Anonymous
Integer: ([-+]?\d+) Float: (\d+\.?\d*) Complex: (\d+\.?\d*)\+(\d+\.?\d*[ij])?
 
Anonymous
I dunno why the backticks aren't working
 
well that sucks, mathjax is rendering them right now @Mego lol
 
5:53 AM
@Mego Multiple lines == no formatting.
 
@AlienG Usually people say the opposite.
 
wait... wouldn't integer be (-?\d+)
 
@ThomasKwa Meh.
 
Anonymous
Regex: now you have 2 problems
 
@Mego Alright, what about hexadecimal?
Or any symbol at all?
 
Anonymous
5:55 AM
@El'endiaStarman For hex, replace the \ds with [0-9A-Fa-f]
 
I'm planning to make base-256 possible, after all...
 
Anonymous
For any symbol, . instead of \d
 
alright
 
Anonymous
You may need DOTALL/multiline mode (name depends on flavor and language) to match newlines
 
I'll be using Python's re module, most likely.
 
5:56 AM
My two cents: -?\\d+(?:\\.\\d*)?(?:e[+\\-]?\\d+)? works for both integers and floats...
AND sci notation
 
Doesn't work for .1
 
Hmm. Methinks I might have to make base-(>96) (all symbols) invalid for floats and complex because I won't be able to tell which . or + to use if there's more than one.
 

« first day (1765 days earlier)      last day (3075 days later) »