« first day (1750 days earlier)      last day (3096 days later) » 

12:00 AM
Bash bashing
 
@El'endiaStarman I haven't tried r=13 yet.
 
@MartinBüttner :'( I had you beat by a byte for a few precious minutes...
 
What is the algorithm everyone is using for the chessboard?
 
What I do: read ASCII, read number, add, modulo 2, then print "dark" or "light" based on that.
 
@El'endiaStarman don't know much Befunge, but I'm sure it's more likely that you'll be able to golf yours even further than I mine
 
12:02 AM
I'm actually pretty doubtful of that.
 
Anonymous
Read string, explode to ordinals, add, mod 2, print "dark" or "light"
 
oh right, I could have added them as well...
 
5 bytes for the read, add, and modulo 2; 1 byte for the decision; 6 bytes for "dark" and 7 bytes for "light", and 6 bytes for output. That's 25 bytes altogether. The other 8 bytes are taken up by 3 newlines, 4 directional arrows, and 1 space to avoid outputting "dar k".
Well, that's in the latest version of the program, which has no advantage over the previous 33 byte solution because it too is 33 bytes.
 
Anonymous
The actual guts of the Befunge program are basically the same as Seriously :P
 
Yayyy I'm getting rep again! \o/
 
Anonymous
12:11 AM
Yay I can upvote again! \o/
 
Anonymous
23 answers, 7 upvotes on the chessboard question. Shame on you people.
 
@Mego That's what happens to really simple questions. ¯\_(ツ)_/¯
 
Anonymous
@El'endiaStarman Simple is good. If you answer a question, you should upvote it :P
 
@Mego hahaha
 
12:24 AM
Should I post my answer in brainfuck and shadyasfuck separately?
Or both in the same answer?
 
Anonymous
Both in the same answer
 
Anonymous
Trivial substitutions are the same language
 
Nope=)
 
0
A: Determine the color of a chess square

flawrShadyAsFuck, 91 bytes / Brainfuck, 181 bytes NKnmWs3mzhe5aAh=heLLp5uR3WPPPPagPPPPsuYnRsuYgGWRzPPPPlMlk_PPPPPP4LS5uBYR2MkPPPPPPPP_MMMkLG] This is of course the translation from my brainfuck answers: ,>,[<+>-]++<[->-[>+>>]>[+[-<+>]>+>>]<<<<<]>[-]>>[-]++++++++++[>++++++++++<-]<[<+>>+<-]<[>+<-]+>>[>

Still better than Java.
2
 
Anonymous
12:33 AM
@flawr Low standards my friend
 
Do you expect any better from brainfuck?
 
@flawr Still shorter than Java
oh darn you already said that
i fail ;-;
 
Haha, pre-ninja'd ^^
 
@quartata oh no not this guy
i mean... hello
 
>:(
 
12:38 AM
<3
I think I finally figured out what was wrong with my IDE
 
@flawr I'm going to do something about this Java hate.
 
Anonymous
@quartata Ban Java?
 
I'm going to develop a revolutionary new Java library for code-golf.
 
@quartata I never said I hate Java! I even submitted answers in Java!
 
Here's a sample:
 
12:39 AM
@Mego how do you do if, else, while, and for statements in Seriously?
 
@TanMath You do not.
 
class A{public static void main(String[]a){new C("ri){mf1>},,_,f{){_@\%}h)=}1b");}}
 
@flawr how come?
 
that would be so funny
 
12:40 AM
I bet you can't figure out how it works.
 
just import the CJam interpreter and Java can be super short!
 
Anonymous
@TanMath There's not an explicit for loop, only while. W<code>W executes <code> while the value on top of the stack is truthy (it doesn't pop). If is done with I: it pops a, b, and c, and pushes b if a is truthy else c
 
hehe
 
@Mego example code please?
 
That would be fun, implement a whole cjam interpreter in java, and submit it with the cjam code. I bet you would still be shorter than conventional java answers=P
 
12:42 AM
@flawr The CJam interpreter is in Java
 
That sounds as if there was only one CJam interpreter?
 
Anonymous
@TanMath 5W.DW will print 5 4 3 2 1 (separated by newlines, instead of spaces). "divisible by 2""not divisible by 2"2,%I. will print "divisible by 2" if the input number % 2 == 0, and "not divisible by 2" otherwise
 
@flawr is there another one?
 
Anonymous
Except apparently I broke loops
 
@flawr All the web interpreters just call the Java one
 
12:46 AM
@aditsu The online interpreter
Oh, I thought it was implemented in Javascript.
 
oh no no no no no honey
 
it's mostly the same java code, automatically translated to javascript
 
Why no honey? Honey is delicious.
Well then it is javascript=)
 
Anonymous
But Javascript is just Java, right?
3
 
Almost=)
 
12:47 AM
not really
 
Just remove the script.
 
Anonymous
@flawr So instead of <script>code</script> you do <>code</>?
 
No it really is quite different, I think I am quite good at Java, but JavaScript still leaves gives me headaches.
 
@phase Mmm, honey... ^_^
 
Anonymous
(I'm trolling btw)
 
12:49 AM
You could have announced that earlier ಠ_ಠ
 
it was like dead obvious dood
 
Anonymous
It should have been obvious
 
should
 
...well, it kinda was obvious to me...
 
Well I was not quite sure, but it is a bit more difficult to judge in a foreign language.
 
12:51 AM
yeah :/
On a different subject...
I'm trying to implement string escaping in Minkolang.
 
sounds fun
 
How do I go from having \t as two separate characters to one tab character?
 
Before you add the character to the string buffer, check to see if it is a `\`
 
In Python, that is.
 
If it is a `\`, don't add it to the buffer and set a flag to escape the next character
 
12:52 AM
Regexery?
 
then on the next char, if the flag is set and the char is t, append a tab to the string buffer
 
@phase That doesn't help. I still have two separate characters that have to become one.
 
@El'endiaStarman Don't think of it that way
 
I just read the news. :/
 
Are you going character by character in a loop?
 
12:54 AM
And it has to work for \n, \', \", etc...
Yes.
 
@El'endiaStarman youtu.be/Hqs_9p9iMRU?t=1050 (nsfw)
 
@El'endiaStarman Do you have a check for " to start/stop string parsing?
 
@phase Yep.
 
@El'endiaStarman Add another check for \` and set another flag for escape
 
Anonymous
12:56 AM
Hmm... Passing code via the -c flag in Seriously isn't working right now
 
@Mego There was a terrorist attack in France
 
Anonymous
@phase My Beatles reference is not as funny now
 
@phase I don't know how to escape the next character, like, automatically.
 
Other than doing a look-up.
 
12:56 AM
@El'endiaStarman Just append \<char> to the string buffer
 
Anonymous
@flawr did you get replaced with a spambot or something?
 
@phase But to do that I'd have to do += "\\"+c...
 
Anonymous
The terrorist attack is probably why Reddit is dead right now
 
NOpe=)
 
@El'endiaStarman That may be the answer you're searching for
 
12:57 AM
But I am trying to catch up with my youtube subscriptiosn=)
 
Anonymous
It's throwing 503s like there's no tomorrow
 
@phase Doesn't work. I tried it in the REPL.
 
Anonymous
@flawr So why post them here?
 
@El'endiaStarman Try individual checks for letters then
AFK
 
Anonymous
A lookup table is probably your best bet
 
12:58 AM
@phase But what if I want support for stuff like unicode escaping?
 
@Mego That is stuff I think you might be interested=)
 
Actually, if I want to be able to do \x0000 escapes, then I'd finish the string buffer and then escape-convert everything in it.
But \x0000 is \\x0000 internally...
Maybe I can use eval...
No, doesn't look like that works.
Ta-da! Googled and here's the answer I was looking for!
 
@El'endiaStarman The way I do this in Rotor is search for '\' while parsing the string, and then just take it and the next char and evaluate it using Eval.me
so like if you have \t it pushes Eval.me("t");
 
btw, your code only prints 5 @Mego
 
It's a terrible hack but it works
 
Anonymous
1:09 AM
@TanMath Yeah, I messed it up. It should be 5W;.DW
 
Anonymous
But the semicolon is breaking things
 
Anonymous
I think
 
7
A: Calculate Phi (not Pi)

n̴̖̋h̷͉̃a̷̭̿h̸̡̅ẗ̵̨́d̷̰̀ĥ̷̳Regex (.NET), 122 bytes ^(?=((?=.*$(?<=^(?:\2+(.+.))((?(3)\3.+?|.*?)))).)+(.*))((?=.*(?=\4$)(?<=(?!(.+.)\6*(?=\4$)(?<=^\6+))((?(7)\7.+?|.+?)))).)+ Assuming input and output are in unary, and the output is taken from the main match of the regex. Breakdown of the regex: ^(?=((?=.*$(?<=^(?:\2+...

His username is very fitting.
 
I should really get around to writing an answer for that challenge.
 
1:11 AM
I wrote a Rotor one but it relies on four unimplemented features :(
It's a pretty cool challenge, at any rate.
@El'endiaStarman \o/
 
@quartata and @phase: only took me 4 lines of code, and 3 of those lines are solely for setting the escape flag (for the whole string).
 
@El'endiaStarman Cool.
I probably should add something for not escaping strings in Rotor.
 
@PhiNotPi :D
 
Maybe I could make ` dual-purpose
 
Without looking, guess the length of my TI-BASIC answer to
9
Q: Determine the color of a chess square

AdriandmenYour challenge is to write a program, that outputs the color of a given square from the chessboard. This is how a chessboard looks like: You can see that the square a1 is dark, and h1 is a light square. Your program needs to output dark or light, when given a square. Some examples: STDIN: b1...

 
1:13 AM
@ThomasKwa Uh....hmm...35 bytes?
 
Anonymous
@ThomasKwa 10 bytes
 
@ThomasKwa 60
 
No way it's 10 bytes.
 
Anonymous
Huh
 
Anonymous
I looked
 
1:14 AM
You guys are forgetting lowercase letters are two bytes
 
Wow, dang.
 
I'm sure it is 50-60.
 
Anonymous
You are forgetting that I don't know TI-BASIC
 
@Mego You are forgetting that I don't know that you don't know TI-BASIC
 
I actually did forget that lowercase letters are two bytes.
 
1:15 AM
Well, was I right? @ThomasKwa
 
Okay, you can look
If you're too lazy, it was 66
 
66 bytes \o/
 
Which I think may be optimal.
 
The guesstimator strikes again
24
A: The Many Memes of PPCG

DoorknobMeme: A Manager Man's Ruse (anagram usernames) Origin: Bigtoes (Geobits) / Rainbolt Cultural Height: March - August 2015 Background: Geobits changes his username to Bigtoes after Rainbolt points out they are anagrams. Later, Digital Trauma becomes Maria Tidal Tug, only to discover that usernam...

Doorknob -> Dork Noob
 
@Mego what does the semicolon do?
 
Anonymous
1:22 AM
@TanMath Duplicates the top of the stack, so [2,3] -> [2,2,3]
 
Truth Machine is at 9259 views
pls
 
Anyway, not only did I need to spend 18 bytes in "light" and "dark", I spent 8 with the string "bdfh".
 
@Mego Really? Not [2,3,3]?
 
@Mego Semicolon is duplicate?
I thought it was pretty traditional to make that pop.
 
0
A: The Many Memes of PPCG

TanMathMeme: Seriously Origin: @Mego's new language Cultural Height from Nov. 9 or so to Nov 11 or so Background: @Mego wrote a new language called Seriously and everybody kept on using "seriously" puns. @Mego now regrets making the name "Seriously".

@quartata , is pop i think...
 
1:27 AM
Anyway, right now I have 0123456789lj which push their corresponding digit (10 for l and sqrt(-1) for j). What should I do for $0, $1, ..., $9, $l, $j? For the digits, I'm thinking just add 10, but are there better things I could do with them? (Must be a number literal of some sort.)
 
@TanMath Hmm. I guess it is just a matter of taste.
 
From the title, I was hoping this included a new esoteric language called "Seriously". — mbomb007 Sep 23 at 15:21
That is the origin.
 
Anonymous
@El'endiaStarman In my notation, top of the stack is on the left
 
, is array set in Rotor. <array>34, sets the fourth element of <array> to 3
 
@Mego Alright. It's just backwards from the usual. (Or may be better termed as a "queue".)
 
1:29 AM
I honestly don't know what the conventions for stack-based languages are. I made ; pop because that's what CJam did.
I actually did a lot of things because CJam did them. Maybe not the best design method
 
Anonymous
I need to expand the list operations in Seriously
 
I didn't know there were conventions for stack-based languages... :P
 
There aren't...
In ShapeScript, # is pop.
 
$ is pop in Befunge. x is pop in Minkolang. ~ is pop in ><>.
 
1:31 AM
@Dennis so you can edit it...
 
no one laughed at my relevant video
 
@quartata I actually did a lot of things because GolfScript did them.
 
In case you were confused, you aren't supposed to watch the whole thing. Just that little part.
@aditsu So I'm walking in the footsteps of the greats?
 
@El'endiaStarman And Lin GS2.
 
Wow, three whole bytes?!?
 
1:33 AM
@Dennis Why all of a sudden are you getting crazy good scores in GS2? I tried it a long time ago and it wasn't much shorter than anything else
Has there been an update for it?
 
...then again, .pop(), 6 bytes in Python...
 
I still don't understand mauris's 15 byte halloween one
 
@Dennis gs2 doesn't count; it doesn't have an encoding
 
Anonymous
-2
A: The Many Memes of PPCG

TanMathMeme: Seriously Origin: Seriously, GolfScript, CJam, or Pyth? Cultural Height from Nov. 9 until the heat death of the universe, probably Background: Mego decided to write an ultra-terse golfing language to compete with CJam and Pyth. He chose "Seriously" as the name, drawing inspiration from t...

 
@ThomasKwa It doesn't need one
 
Anonymous
1:34 AM
I edited it
 
@quartata There hasn't been an update. I just chose it for the right tasks. I don't think it would be very competitive in elaborate challenges.
 
@El'endiaStarman python is not a golfing language? But ShortPy, my first and latest language in creation will be!
 
@TanMath Do you know what Pyth is?
@Dennis Hm
 
The PhiNotPi challenge was basically builtin-weird_chars-builtin.
 
@quartata It's diverged from being short Python.
 
1:36 AM
@El'endiaStarman It's still basically short Python.
 
@quartata yes...
 
@TanMath Just wanted to make sure you knew it had been done before
 
Pyth is what happens when a mommy and a daddy love each other very much.
 
...o.O?
 
But if you can make it more like Python and not some golfing black pudding monster that's cool
 
1:37 AM
ShortPy takes inspiration from Python and C++, with shorter syntax, and 1 to 3 character syntax for builtin functions.
 
10 mins ago, by El'endia Starman
Anyway, right now I have 0123456789lj which push their corresponding digit (10 for l and sqrt(-1) for j). What should I do for $0, $1, ..., $9, $l, $j? For the digits, I'm thinking just add 10, but are there better things I could do with them? (Must be a number literal of some sort.)
 
Technically it would make more sense for CJam to be what happens when a mommy and a daddy love each other very much...
 
and then daddy takes out a chainsaw
 
Pls, suggestions!
 
@AlexA. now, one of the parents is Python, the mystery is, who is the other one!
 
1:38 AM
@aditsu oh jesus
 
@El'endiaStarman You know, I hate to suggest you rip off my language
 
@TanMath Isaac, of course ;)
 
But you should use control characters for 10+
 
@AlexA. um...
 
@quartata How do you mean? Control characters?
 
1:38 AM
Like ASCII control characters.
 
@AlexA. well, that's what it looks like :p
 
Like Control-C and all that.
 
@AlexA. the parents were supposed to be languages!
 
That way it is one byte.
 
@aditsu Haha says you, the creator of its competitor. :P
 
1:39 AM
Minkolang is strictly limited to ASCII 10 and 32-126.
 
Why strictly?
 
Because I want it to be easily type-able.
 
@TanMath Well Pyth didn't make itself; Isaac forged it using steel, love, and a bit of Python.
 
@El'endiaStarman You can type control characters easily in vim.
 
Minko 2.0 (whenever I make it) will certainly use a more inclusive encoding, like CP437.
 
1:40 AM
Control - V followed by Control - char
 
@quartata 1) Windows, 2) I'm keeping it within printable ASCII.
 
@El'endiaStarman Oh, fair enough
 
@quartata Nobody uses vi. Some people use vim, but mostly just Doorknob.
 
@AlexA. There fixed jeez
 
Much better. Seriously, who uses vi anymore?
 
1:41 AM
vi = vim on Ubuntu. That's why I typed that
 
@TanMath One thing to consider: Will it ever beat Pyth? If not, I suggest to make being fun to golf in a higher priority than being very short.
 
@El'endiaStarman Link me teh code!!!
 
And now... a new and improved 4-bit adder!
 
@phase What codeh?!?
 
Some people make cool computer stuff in Minecraft. I stab monsters and eat apples and shit.
 
1:44 AM
Here's some...?
 
@AlexA. Stabbing monsters is fun as well.
 
@ThomasKwa true.. I am writing a language that is simple and intuitive to understand.. The major advantage will be its compatibility with Python, meaning Python code and ShortPy can be mixed with no error as the ShortPy code is converted to Python code (as with Pyth). Also, I will design a program converting Python to ShortPy so you can write it originally in Python, and a program will golf it for you.
@AlexA. what language is @aditsu writing?
 
@TanMath Aditsu wrote CJam.
 
He made CJam!
Ninja'd
 
That basically makes him our king around here.
 
1:46 AM
hahaha
 
Although, Pyth has more votes than CJam on Phi's meta post that lists languages made by users.
 
@AlexA. That reminds me. I need to make a Rotor post.
 
@AlexA. where is this?
 
But...Pyth? Then again, CJam was basically first...wasn't it? Golfscript was first, but wasn't made by a user?
 
GolfScript wasn't made by a PPCG user, no
 
1:47 AM
@aditsu i never knew that! bows down to a king of golfing
 
@El'endiaStarman GolfScript is from liek 2007
 
Oh, not that long ago. Huh.
 
32
Q: What programming languages have been created by PPCG users?

PhiNotPiLanguage-creation has become a popular activity on PPCG. A decent portion of answers, especially code-golf answers, are written in languages invented by the community. These are also languages that might be unfamiliar to this site's wider viewing audience. What languages (esoteric, golfing, or...

 
@TanMath don't be silly :p ɥsɐɔ puǝs
 
@aditsu Why do I feel a sudden urge to throw money at screen
 
1:50 AM
@quartata @aditsu yeah.. weird, huh?
going through the meta post, saw this:
♪♫ Do you wanna build a language? It doesn't have to be a language. — mbomb007 Sep 9 at 18:26
♫♪ The code never bothered me anyway. — Timwi Sep 10 at 11:49
hehe!
 
oh crap, horrible news from Paris
 
@aditsu ?
 
Oh yipes
 
Anonymous
Seriously news: I've decided to approach version control like most people do, and have a master and dev branch. master will be stable, dev will almost certainly be broken. The dev branch online ide can be found here
 
1:55 AM
@El'endiaStarman leh code with teh escapering
 
@Mego Seriously?
 
@Mego You're missing a colon. Should be dev-seriously.herokuapp.com
 
Anonymous
@NinjaBearMonkey yeah that I no type gud
 
I am leaving.. I have stuff to do, including working on my new language and writing an answer to the simulate a universe challenge in python... If I stay here any longer, I will get nothing done!
bye!
 
Bye!
 
1:59 AM
o/
@AlexA. where did you come from <.<
 
@phase My parents in 1990
 
@phase Oh, you mean how I did it?
 
@El'endiaStarman yes :3
 

« first day (1750 days earlier)      last day (3096 days later) »