« first day (1785 days earlier)      last day (3044 days later) » 

3:00 AM
><> does it implicitly with other information - a for(;;) loop has to have something following as well.
 
I'm saying that a 0-byte program throws an error though
 
Oh, well, yeah.
 
1 works but will crash eventually
 
` ` works.
 
Cool
 
3:01 AM
!, >, <, ", and '.
 
Minkolang also throws an error on a 0-byte program.
 
@El'endiaStarman Wuuuut.
 
Also ^ v \ / #
 
@Pietu1998 And variants thereof, but yeah. :D
 
Are we enumerating the number of 1-byte infinite loops now?
 
3:03 AM
LOOP, 0 bytes:
 
Pyth, 1 byte: # (I think)
 
@El'endiaStarman You should make it take a number as input and output the nth Catalan number instead.
 
@ThomasKwa ...
@El'endiaStarman Great minds think alike? ;D
 
@FlagAsSpam And fools rarely differ.
 
3:05 AM
@El'endiaStarman fools seldom* differ
 
Yep, I see that now.
 
@ThomasKwa Huh, apparently one version is "small minds rarely differ".
 
@El'endiaStarman Either way, you were wrong :P
 
3:06 AM
good night!
 
@Maltysen How can you sleep with that (slow) strobe light?!
 
'night!
 
G'night!
 
@El'endiaStarman wub wub wub
Anyways
 
@quartata Perhaps more like wuuub wuuub wuuub...
 
3:08 AM
@El'endiaStarman Actually, no, it just turns on - he has to turn it back off.
 
Aside from the built-ins I need for Catalan Numbers, basic arithmetic operations and primality checking (so it is a valid programming language), what other built-ins should I implement real quick for the first release of pl?
 
@FlagAsSpam That's even worse!
 
@quartata What kind of language is it?
 
I've decided not to implement everything then release it
 
Perl, golfed.
 
3:09 AM
It isn't really that anymore.
 
Like Jelly is J golfed.
 
@ThomasKwa The worst kind.
 
Like Pyth is Python golfed.
 
It's a stack-based language but it has more of an emphasis on variables
 
3:09 AM
Like CJam is.....uh...something golfed. Golfscript?
 
x bottles of beer. Where x is any complex number.
 
You manipulate variables and put them on the argument stack
 
I don't know any Perl.
 
@El'endiaStarman C...Jam...?
 
Then use functions to pop arguments off
@feersum Er..
 
3:10 AM
Alright.
I'm outie.
 
@FlagAsSpam *all right
 
Night all.
@quartata No, alright*
 
G'night!
 
@quartata Do you have basic stack manipulation (dup, swap, rot3, copy Nth from top, rotate whole stack)?
 
@ThomasKwa I have rotate whole stack and swap.
The emphasis isn't on the stack though.
It doesn't need that many manipulation built-ins.
 
3:11 AM
Okay; if you think that's enough.
What about math commands?
 
@ThomasKwa I'm going to (eventually) go pretty overboard on those.
 
Does it at least support positive integer bottles of beer?
 
But right now I'm just trying to think of a couple of essential built-ins to put in.
I need map for 11 byte three-fruit pies
And a few things for 4-byte Catalan Numbers
I might put in regex at minimum for string manipulation
 
do you have +-*/^%, trig, exp/log/lg, +1, -1, factorial, nCr?
 
I will have +-*/^%, +1, -1, factorial and nCr
Keep in mind though I'm not asking for what I should implement in the long run, I'm asking for what I should have for the very first release.
 
3:17 AM
> 30. “Now is the winter of our discontent.”

> There’s a great scene in Reality Bites where Ethan Hawke uses this quote for his answering machine, as an ironic statement on the existential darkness of his soul. However, the actual line from Shakespeare’s Richard III goes: “Now is the winter of our discontent made glorious summer by this son of York.” It doesn’t refer to darkness at all but is meant to indicate that something good has happened.
 
?
 
Ah.
 
I've only ever heard the first half.
It's one of those quotations that's totally different when you have the full thing.
 
Interesting.
 
3:27 AM
@quartata Consider double and halve, too; they're trivial to implement.
I can't think of anything that's absolutely necessary.
 
3:53 AM
Incidentally, (and bear in mind that I haven't read all of chat prior to this) how are you handling bignums, floats and loops?
 
Argh! Why does Python not have a char type?
 
...why should it?
 
You mean one that can be implicitly converted to an int?
 
Chars are 1-length strings...
 
@El'endiaStarman Exactly. You can't distinguish between the two. A character is an atom, not an iterable...
@Sherlock9 No, I mean a dedicated character type, as CJam has.
 
3:57 AM
Well, it is an iterable of length 1...
Also, yes you can distinguish them. len(s)
 
@El'endiaStarman For my auto-vectorizing operators in Jelly, having a character or a string of length 1 should be fundamentally different. I don't know how to handle that in Python...
 
You're writing Jelly in Python?
 
Ah, okay. Well, why wouldn't this work?
if len(s) == 1:
    pass
else:
    pass
 
Because strings should behave like lists, but characters like integers. For "chars", I'll have to decide.
 
4:03 AM
Ah, so you're really just upset that you have to make the distinction yourself instead of letting Python do it?
 
No, not really.
I'm trying to think of a good example, but I just started implementing things for strings.
Hm, if I have to try so hard to think of a problematic example...
 
Typically, in golfing languages, the distinction between char and string is unnecessary.
 
Tell that to aditsu. :P
 
In non-esoteric languages, they're generally distinct in systems languages (C, Rust, Java, etc.) and non-distinct in scripting languages (Ruby, Python, Perl, etc.)
 
The problem is that operators auto-vectorize in Jelly, so the distinction between an iterable and a non-iterable should be clear.
For example, [1,2]+10 is [11,12] in Jelly, but [1,2]+[10] is [11,2].
 
4:30 AM
this is one of my favourite questions on the whole SE network
188
Q: How can I make my shell prompt look like a cheeseburger?

Corey GoldbergI want my shell prompt to look like a cheeseburger! 🍔🍔🍔 It would be nice if it also displayed: username, hostname, and current directory.

 
Mini-challenge: Given an integer n>0, modulo the integers from 0 to n-1 by 3, index that into ["a","bc","def"], and concatenate. So 5 gives "abcdefabc".
 
> The source code for 🍔 is 🍞🐄🍅🍞
 
The Unicode character you used is the one for hamburger, not cheeseburger. We must petition the Unicode committee to include more fast food-related glyphs. Where are nuggets? Why is there no "with bacon" combining glyph? How on Earth can a Double Whopper and a Big Mac be conflated to the same code point, despite the enormous difference in significance? It's outrageous. — Federico Poloni May 19 at 17:33
 
On a serious note, why aren't there "rotate CCW 90 degrees" and "rotate CW 90 degrees" combining glyphs?
 
i think they could solve that problem the same way they did skin tones
hang on i guess skin tones are combining glyphs
i just realized i had no idea what we were talking about until just now never mind
@ThomasKwa this would be sick
 
4:39 AM
@ThomasKwa shouldn't 5 be abcdefabcdef? Assuming 0-indexing
if so, Perl, 32 bytes: say map{[a,bc,def]->[$_%3]}0..$n
 
my favourite things about that question:
- how excited the question is, even using three of the character in question
- how the accepted answer is written by the same user who asked, indicting that they just really wanted to share their cheeseburger prompt with the world
- how the accepted answer (again, written by the same person who wrote the question) begins with "great choice!"
 
@ThomasKwa CJam, 17 bytes ri,"a bc def"S/f= cjam.tryitonline.net/#code=cmksImEgYmMgZGVmIlMvZj0&input=NQ
@Doorknob冰 That's up to n, not n-1, no?
 
Oh, yeah, it is
llama@llama:~$ perl -ne 'use 5.10.0; say map{[a,bc,def]->[$_%3]}0..$_-1'
1
a
5
abcdefabc
10
abcdefabcdefabcdefa
There
(still haven't figured out how to configure Perl to version 5.10 globally on my system... -_-)
 
perl -nE 'say map{[def,a,bc]->[$_%3]}1..$_'
 
ohhhh, so that's what E does
 
4:49 AM
Dec 9 at 23:03, by Alex A.
It is kind of a weird letter.
 
@ThomasKwa ... that's from over a week ago how'd you find that O_o
 
'Twas in response to one of my messages, which was starred.
 
5:02 AM
@ThomasKwa Jelly, 14 bytes (non-competing) Rị“a“bc“def”+/ jelly.tryitonline.net/…
(dyadic vectorization was completely borken if one of the links had depth -1)
 
What does ị do?
oh, and how do you type it?
 
Reverse index. xịy is like x[y].
Dot below is AltGr+Shift+dash.
 
Option-shift-hyphen doesn't work on the Mac
 
I really should enable the SE font on TIO. looks so much better than ị.
Oh, Mac? Er...
Try Option+X.
 
5:27 AM
The game is complete! Spacewar!
3
Still to come: multiplayer capability with someone not at your computer and bots.
 
@El'endiaStarman why does the thingy teleport when I press c
(in case it wasn't obvious, I have no idea what I'm doing)
 
Oh, forgot to add that to the action list.
It was actually HTML-commented. :P
 
There's a bug that makes me randomly explode for no reason ;(
 
That's part of the danger of hyperspace.
 
Oh, when you teleport there's a chance you explode?
 
5:31 AM
Nice game!
Kinda reminds me of using vim.
 
@Dennis ಠ_ಠ ಠ_ಠ ಠ_ಠ
 
@El'endiaStarman Yup. Exactly like vim. All keystrokes come with a 25% chance of exploding (in my face).
 
hahaha
It's only C and , that have that danger though.
 
I can't wait for the KOTH.
 
5:34 AM
Woah! If you crash into the other kajigger, you... semi-explode, but you don't fully explode
 
Wings can be destroyed without dying.
If you hit each other's nose, though, both of you die.
@ThomasKwa Same. It's gonna be awesome.
Incidentally, have we had real-time KotHs before? Like, where you could actually watch the battle?
 
I managed to destroy both my wings and make my plane ship thingy into just a nose :P
 
yup
That's possible.
And I'm sure you've noticed that you can no longer maneuver...
 
This sounds like a really, really fun KotH
 
Stupid question: What is the objective? Not hitting the middle thingy seems to increase my score.
 
5:41 AM
@Doorknob冰 /me enters room, sees that, considers just turning around and walking out
 
@Dennis Survive longer than the other kajigger survives, I think
 
The middle thingy is the sun
the sun is very hot and burns things up
 
So high score bad?
 
5:43 AM
Higher is better. Means the other guy died more often than you.
 
Ah, right. Too tired to comprehend game.
Good night!
 
G'night!
 
Good night!
 
A demo of a thing I've been working on
(also serves as a demo of vim macros :P)
 
Wut.
You just selected only numbers with 9s in them, then put them all on one line.
 
5:52 AM
It records a window and overlays keystrokes being typed on that window.
@El'endiaStarman yes, but that's not the point :P
 
@Doorknob冰 That's pretty cool too.
 
@Doorknob冰 10/10
 
@AlexA. Now I can explain vim concepts to you more easily with animated GIFs. :P
(It's super easy, too: run the script, click a window, and start typing)
 
@Doorknob冰 You shouldn't have told me this. Expect nonstop vim questions.
 
(There's key mappings to clear the bottom bar thingy and end the recording)
@AlexA. haha, I'm fine with that! More chances to make fancy animated GIFs :D
 
5:55 AM
What's the quickest way to exit vim?
 
I might start asking more vim questions too... :P
 
@feersum ZZ to save and quit, ZQ to quit without saving
 
@feersum :wq
 
@feersum [ESC]:q
 
nope
slower :P
 
5:56 AM
darn :P
 
not golfy enough
 
@Doorknob冰 Is that not a special key mapping?
 
@AlexA. it's builtin
 
So if I tried to type PIZZA it would exit?
 
Depends on what I does.
 
5:57 AM
@feersum If you typed PIZZA in command mode, it would paste whatever's in register "0 before your cursor and insert "ZZA" at the beginning of the line
 
...uh-oh. Out-of-context grammar error.
 
@AlexA. incorrect
I is "insert at BOL"
didn't I tell you this before? :P
 
@Doorknob冰 I tried
 
@feersum If you typed PIZZA in insert mode, it would insert "PIZZA"
 
What's the quickest way to exit regardless of state?
 
5:58 AM
<esc>ZQ
 
And since you should be in insert mode at all times, you would end up with a pizza document.
 
@AlexA. ಠ_ಠ
 
Just stay in Insert mode and move with the arrow keys
 
On a scale of 1 to ಠ_ಠ, that's about [ಠ_________ಠ....] level of disapproval
 
¯\_(ツ)_/¯
 
6:00 AM
Does ZQ have to be capitalized?
 
Yes
 
^
More fancy GIFs!
 
wtf is visual mode
 
@AlexA. one of vim's most fantastic features
 
Also why is you no Ruby syntax highlight
 
6:02 AM
Do you not see the blue thingies? :P
 
Shouldn't puts be colored?
 
Do you use YouCompleteMe?
 
Why not?
 
6:03 AM
It's unnecessary
<C-n> completion (and sometimes <C-x>) is good enough
 
...wow.
 
Those GIFs are super cool
 
I agree.
You should write a vim tutorial.
 
^
@Doorknob冰 I don't know what this is
 
I mean, this might actually convince me to use vim more.
 
6:05 AM
visual line mode demo
(I do this all the time for answers here)
 
I spend little time typing compared to thinking about what I'm going to type, so I have little need for editors with learning curves.
 
@feersum Shouldn't the conclusion be quite the opposite? You want to get done typing as fast as possible so you can get back to thinking.
There shouldn't be a brain -> keyboard barrier, like there is in other text editors.
 
No.
Thinking about fancy text editor commands would dislodge the other things from brain registers.
 
hahaha
 
6:07 AM
You don't have to think
It becomes very natural
 
> becomes
 
yes >.<
 
What do you use, Thomas?
 
C-n completion @AlexA.
 
I don't use a fancy text editor
 
6:08 AM
So what, Notepad?
A physical notepad?
 
I don't really code, so I haven't had time to learn one
No, pyzo
 
A TI-84 calculator.
 
I pretty much only python
 
Oh hey it's past midnight. I should probably sleep now.
 
@feersum TI-84 plus.
 
6:09 AM
@Doorknob冰 Eh, it's Friday. :P
 
No, now it's Saturday :P
 
Well, for you it is, at least.
 
I am one day in the future relative to you! Spooooky!
 
On the US's only coast, it's 10pm.
 
So how are things yesterday?
 
6:11 AM
Things here are at least 80% spookier than they will be tomorrow.
Oh sorry, "spoopier."
 
@AlexA. I believe that meme has expired.
Tell me if you get get nauseated due to meme poisoning.
 
I saw a Chuck Norris joke calendar in a store today. Now that's a meme that's expired.
 
oops I made it too wide
 
I've seen wider
 
 
2 hours later…
8:35 AM
0
Q: Write an interpreter for 2B

KslkghWrite an interpreter for 2B I like David Catt's esoteric language 2B, having memory stored in a tape where each cell is a seperate tape of bytes (the 'subtape'). Write an interpreter for it! Language Specification Official specification can be found here. In this specification, " means a numbe...

 
 
2 hours later…
10:52 AM
Does anyone have LabView?
@AlexA. That's a meme I never understood. I thought memes were created almost exclusively by teenagers, and I don't know how teenagers have even heard of Norris. I think he was before my time.
 
 
1 hour later…
12:12 PM
@PeterTaylor Eumel does :P
 
Probably, but I was hoping for independent verification of whether his answer works. Or is even an answer.
 
12:30 PM
yeah, I wish someone could check them. I occasionally wonder whether we've got a new Timtech situation with those Labview answers.
 
12:48 PM
Who wants a KoTH about elevators in a skyscraper competing to carry the most passengers in the least time?
 
Ugh, we really need a theme. I was close to yelling at a life hacker, because his question did not have an objective winning criterion...
9
 
1:09 PM
I'll probably post these in a bit:
3
A: Sandbox for Proposed Challenges

Martin Büttnercode-golfdateascii-art I'm planning to post this as a pair of challenges to do both directions of the conversion. I think both are interesting tasks, but I squeezing them into a single challenge doesn't seem to make much sense. The intro is the same for both parts: Intro In his xkcd about the...

 
1:21 PM
@MartinBüttner Looks great!
 
1:35 PM
@MartinBüttner I can't tell what that is from that one page. I was thinking of some sort of auction and time management thing.
 
1
Q: Convert a date to xkcd notation

Martin BüttnerIn his xkcd about the ISO 8601 standard date format Randall snuck in a rather curious alternative notation: The large numbers are all the digits that appear in the current date in their usual order, and the small numbers are 1-based indices of the occurrences of that digit. So the above exampl...

0
Q: Read a date in xkcd notation

Martin BüttnerIn his xkcd about the ISO 8601 standard date format Randall snuck in a rather curious alternative notation: The large numbers are all the digits that appear in the current date in their usual order, and the small numbers are 1-based indices of the occurrences of that digit. So the above exampl...

 
any guesses for which challenge will require (on average) the longer answers?
 
My money is on Read a date in xkcd notation.
 
really? I would have thought the opposite
 
2:19 PM
we'll see ;)
 
@Dennis hahahahahaha, that made my day (even though I just woke up) :D :D
 
:)
 
2:51 PM
Hello
I don't remember why, but apparenty I added GNU Units to my PATH variable at one point
I guess it doesn't make much of a difference either way, so I guess I'll just leave it there for now
 
I'm with Martin. The part where you figure out how many spaces to put may add a few bytes
 
@quintopia You make a good point there.
 
3:11 PM
 
Well here's the news on the planet minecraft contest I was in: I didn't wind up making the top 50.
And noone seems to have found the secret easter egg I mentioned in the description
 
3:44 PM
Hello and welcome back to chat @PeterTaylor
@Doorknob冰 How on earth did you make those gifs, does that only work for vim, and can it be ported to Windows?
I have some spirograph animations that I'd like to make gifs of
 
2.) No, any window
3.) No
 
I searched on OEIS for a sequence I created. No result. I must have made a mistake in my code...
 
haha
or the sequence definition is just too obscure ;)
 
@PeterTaylor The ones I tried didn't look that good.
 
@MartinBüttner I hope that is true, but I'm skeptic
I had an offset of 1 from the OEIS sequence oeis.org/A016037
 
3:54 PM
Finally, my chat user image has updated
 
but that sequence feels like a good challenge if it wasn't done before
 
Is there a way in the Spacewar game to play with only one player? I want to experiment with it.
 
@randomra hm yeah, not a big fan of number-to-word conversion challenges though.
and since we already have those, wrapping them in a loop until convergence doesn't seem to add anything new.
 
@MartinBüttner you would only need the length of the word so you can might come up with simplifications, the looping doesn't add much, that's true
 
oh, right
that does make it nicer
was your own definition at all related to this?
 
4:09 PM
this is what I was searching for, just all numbers were offest by 1 in my sequence
(4,4,3,1,2,4, instead of 3,3,2,0,1,3,)
so yeah, this was my definition too
 
oh right
 
Is there an SEDE query for all answers in a particular language?
I could write it myself but I was wondering if someone had made one
 
cat
I think more people should use Objective C on PPCG. It's a great language!
/sarcasm
 
@quartata Probably.
 
cat
@quartata did you check the stack-snippets challenge? I bet there's one
 
4:19 PM
@cat What's wrong with Objective-C?
 
cat
@quartata everything
 
It's not as good as C++ performance wise but it is OK
 
cat
@quartata it's like a DSL version of C++, which is already pretty bad for most things, but /worse/ in so many ways
99
Q: Making Future Posts Runnable Online with Stack Snippets

Calvin's HobbiesStack Snippets were recently added to PPCG! Reminiscent of JSFiddle, Stack Snippets allow HTML, CSS, and JavaScript to be run directly in posts! Here is a very simple Stack Snippet: alert('This is JavaScript') h3 { color: red } /* This is CSS */ <h3>This is HTML</h3> This feature o...

 
@cat ?
 
cat
@quartata I thought I recalled seeing a snip for your request, but maybe not
 
4:22 PM
It wouldn't be a snippet
This is SEDE
 
cat
ohh, sorry, I see
 
'Tis fine.
Hmm
I want to get a list of all Pyth answers on the site.
 
@quartata @Doorknob冰 might have something
 
@quartata I have a script that detects the language of posts from the data dump
 
@Doorknob冰 !
 
4:25 PM
But the last dump was August 18
So many Pyth answers would be excluded
 
Hrmph.
 
first answer for Read an xkcd date. could that be an indication that this is the simpler challenge? @Dennis :P
 
It's FryAmTheEggman.
He has super Pyth powers.
I think it isn't an indication of anything.
 
@MartinBüttner ¯\_(ツ)_/¯
 
¯\_(ツ)_/¯
 
4:28 PM
ftfy
 
¯\_(ツ)_/¯
can't handle the shrugs
 
ty
 
Hi guys, I'm back with my sandbox challenge.
-2
A: Sandbox for Proposed Challenges

ASCIIThenANSIBroken FizzBuzz - Greg Is Confused underhanded code-golf popularity-contest (FizzBuzz suggested by quartata in chat) (Related: Deletion of a blank line in source code which causes unexpected functionality, What? No error?, and Write a line in program that looks useless) Meet Greg. Greg is the ...

This time I've changed it to have a code-golf requirement - what do you think?
 
Can't have both and :P
Oh I see.
I think 50 votes is too high though.
 
4:36 PM
@quartata What about 25/30? I'm trying to make sure that the change is well-hidden enough.
 
Maybe 20?
 
@quartata OK. I'll edit that in (unless anyone else has ideas).
Anything else I should change?
 
4:51 PM
Now with detailed explanation and pretty diagrams:
13
A: Unfolding the Hexagony source code

Martin BüttnerHexagony, 271 bytes I present to you, the first 3% of a Hexagony self-interpreter... |./...\..._..>}{<$}=<;>'<..../;<_'\{*46\..8._~;/;{{;<..|M..'{.>{{=.<.).|.."~....._.>(=</.\=\'$/}{<}.\../>../..._>../_....@/{$|....>...</..~\.>,<$/'";{}({/>-'(<\=&\><${~-"~<$)<....'.>=&'*){=&')&}\'\'2"'23}}_}&<_3.>

4
Writing that probably took me longer than actually writing the code... which might show that Hexagony isn't quite as unusable as it seems after all. :D
 
@MartinBüttner I think someone should give you a bounty for that answer
 
Jon Skeet has so many badges that the line showing his badges under his username on answers actually wraps.
2
He's broken SO.
 
@quartata What happens when he reaches 1 million rep?
 

« first day (1785 days earlier)      last day (3044 days later) »