« first day (1760 days earlier)      last day (3237 days later) » 

12:08 AM
42 mins ago, by El'endia Starman
For once, ESMin will do fairly well... :P
:P
Is this right? It seems that their expected output has an extra 0 on the front.
It's a hexadecimal number, after all...
Anonymous
Hi people
@Mego hey! i have been waiting for you!
@Mego i missed you
@Mego the commands.txt has an upside down exclamation mark in 161 for some reason.
Anonymous
12:18 AM
@TanMath You're viewing it with the wrong encoding
cp437
Anonymous
Hold ALT, and type "161"
@Mego i am on mobile
@Mego on mobile, cannot do this
Anonymous
@TanMath How are you expecting to test Seriously code, then?
@Mego using your online interpreter... I also have another trick up my sleeve! hehehe
Anonymous
12:21 AM
@TanMath Hate to break it to you, but it's broken right now
@Mego seriously?!
@Mego you should make the hex dump editable and have it compile to the correct symbols
^
that would be very useful
@phase agreed! i wanted to do that.. but couldn't
why does this code not work?!:
Anonymous
@phase That will be happening soon
12:23 AM
i=raw_input()
if int(len(i)) % 2==0:print chr(((ord(i[len(i)/2])+ord(i[(len(i)/2)+1]))/2))
else: print i[-1+int(len(i)+1)/2]
it is for the find the center challenge...
here is what I have tried:
1.it works for cases when the length of the string is odd
o-o
that's pretty long XD
@TanMath An if/else for the length waists a lot of bytes, though I don't know how to reduce it in Python
2. when the length is even, it is supposed to go through the if, but instead goes through else.... why?!
int(len(i)) why not len(i)?
@phase idk.. i am dumb.. lemme see if that fixes
didn't fix it... now when I put "Hiya" it prints m instead of q...
@phase any other ideas?
I am never the first for answering challenges...
Anonymous
12:32 AM
print[chr(((ord(i[len(i)/2])+ord(i[(len(i)/2)+1]))/2)),i[-1+(len(i)+1)/2]][len(‌​i)%2]
Anonymous
That's how you shorten if/else in python
@Mego cool! thanks man!
question is, does it work?
Anonymous
idk try it
trying
Anonymous
It should work the same as the code you posted
Anonymous
12:33 AM
All I did was shorten it
Anonymous
><
12:38 AM
vv
0
Q: May I create my own programming language, which uses existing compiler?

ZeregesSo, I like golfing, and I like modern C++. I am golfing in regular C++(11(14)) now, so obviously, I did not win a single challenge yet. I noticed, that both Pyth and CJam (probably languages, that win most of the time) were designed entirely for this purpose. I thought at designing my own languag...

0
Q: Negate a condition if a bool is FALSE

lorenzo-sLet's say I have a condition expression x and that I want to check if it is TRUE or FALSE depending on the value of a boolean y: y ? x : !x Is there a way to express it without repeating x expression? Something like how we can get a number or its opposite depending on a bool, without repeating...

Anonymous
From Meta:
Anonymous
Anonymous
12:41 AM
Dennis is not the only important person in here!
Anonymous
Also only 3 of those 6 are even still in here >_>
Anonymous
Meta get with the times yo
@Mego Ahem.
:P
Anonymous
@Dennis You're right, I should have said "Dennis isn't even an important person" :P
12:44 AM
bans Mego
Anonymous
@Dennis If abusing mods was bannable I would've been banned on day 3
Anonymous
@LegionMammal978 could you please stop just using ^/v? It's spammy
Anonymous
>_>
@Mego Seriously?
Anonymous
12:45 AM
@Dennis No that came much later
For realsies?
Anonymous
Yeah seriously
Actually right now?!?!
Anonymous
@phase right about now
So many great language names.
Anonymous
12:48 AM
@Dennis And then there's O
What's golfier than a single-letter language name?
Anonymous
One with a readable compiler/interpreter
A zero byte language name
4
Now there's an idea.
Look at my new language called !
12:51 AM
ESMin usually zero bytes for me. At least from my phone. :P
4
when did golfing tips questions become off topic? codegolf.stackexchange.com/questions/64611/…
That isn't a golfing question.
It's a programming question.
"Is there a way to express it without repeating x expression?"
he's specifically asking how to reduce his code size
@Sparr Specific, language agnostic golfing tips don't make a lot of sense IMHO.
12:53 AM
sure, code deduplication is ALSO a general programming question, but that doesn't make it not a golf question
No, he's asking about how to do it without re-evaluating the variable.
@Dennis want me to add the tag for every language my answer is valid in?
Like with his date.hour example.
@Sparr Tags describe the question, not the answer.
he doesn't care about evaluation. date.hour has no side effects. he appears to only care about the duplication of the expression.
@Dennis sure, and I'd add a tag for every language a solution was added for
12:54 AM
But the time can still change.
language agnostic tips questions make plenty of sense
A user could run it right at the hour boundary :P
@LegionMammal978 I don't know of a language where that is true
first, date.hour implies a member, not a method. and even if it was date.hour(), I'm not sure I've seen a language where two calls to a method in the same expression aren't evaluated in the same context.
@Sparr Language agnostic tips can be found here.
/me needs to investigate that...
12:56 AM
Also, have you seen JS's new getters and setters?
They look like regular properties, but aren't.
sure. back to my second assertion.
Can that actually happen? will date.hour()+date.hour() ever produce an odd number in any language you can think of?
Depends on the time.
A hacker could possibly run it at the moment the hour changes.
(Of course, that would just be poor code design.)
What is 𝔼𝕊𝕄𝕚𝕟 anyways?
@phase Blackboard bold.
@phase a terribly named language
1:00 AM
oh that's dumb
@Sparr Imo the name is good
@phase A language that only uses 4-byte squares (I think)
bunch of squares on every browser ever
@phase Not if you have a good browser
@CᴏɴᴏʀO'Bʀɪᴇɴ you also think your name here is good, so your judgment is questionable.
1:02 AM
@Sparr ...
All judgement is biased.
@CᴏɴᴏʀO'Bʀɪᴇɴ Actually, while I do usually see them, they show up as squares when in a header tag (i.e., when it's like ##ESMin).
@El'endiaStarman Huh.
Is it me or does the word unupvote just look plain weird.
deupvote?
@Vɪʜᴀɴ It looks like the name of an element :P
1:10 AM
@CᴏɴᴏʀO'Bʀɪᴇɴ "Scientist have discovered a scary element named 'unupvote', you loose 10 internet points every time it is within your presence"
Anonymous
@Sparr dupevote? wait that's something different
@Vɪʜᴀɴ ...
I got a downvote
jk XD
1:24 AM
Any feedback for my fibonacci cake proposal? I'd love to post it today (because today's fibonacci day)
@Vɪʜᴀɴ s/contracted/constructed/
Oh my god 𝔼𝕊𝕄𝕚𝕟 isn't winning the center challenge :O
0
A: Find the center

ןnɟuɐɯɹɐןoɯ𝔼𝕊𝕄𝕚𝕟, 41 chars / 66 bytes ϚĎ(((ï[˜(a=ïꝈ/2-½)]⋎⬯)ü⬮+(ï[МŠa]⋎⬯)ü⬮)/2) Try it here (Firefox only).

Which is so satisfying to see. :P
Also, it's funny how almost every single answerer put their score in bytes despite the OP's statement that characters be counted. :P
Granted, they're usually the same, but still...
Anonymous
1:45 AM
What I don't understand is why people upvoted such a horribly-defined challenge
@Mego It's simple.
Most REPLs do this in 1 byte... and the bonus was horribly unbalanced.
Hey all!
Anonymous
@ThomasKwa It's simple, but underspecified
But it was a very simple challenge, so it got +42/-8
Anonymous
What text encoding should be used for input/output? Just ASCII (0-127)? Latin-1? CP437? UTF-8? These things needs to be specified. — Mego 1 hour ago
1:49 AM
The best text encoding is binary
'0' = char code 0
'1' = char code 1
Anonymous
:P
Or unary
Quick, what's a language that prints 0 in 0 bytes?
Anonymous
Heh
Anonymous
Uhh
No wait, that wouldn't work; we need to print the character
Anonymous
1:53 AM
I think Microscript will work
@Mego your code doesn't work
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.7/py_compile.py", line 117, in compile
    raise py_exc
py_compile.PyCompileError:   File "prog.py", line 2
    print[chr(((ord(i[len(i)/2])+ord(i[(len(i)/2)+1]))/2)),i[-1+(len(i)+1)/2]][len(‌​i)%2]
                                                                                   ^
SyntaxError: invalid syntax
Anonymous
@TanMath You need to do i=raw_input() first
@Mego I know
@TanMath What is this code?
@ThomasKwa for the find the center challenge... In Python obviously
1:58 AM
Oh
I didn't see an answer by Mego
@ThomasKwa yeah, because it is mainly my code
I will post an answer
As of today, I have officially been on this planet for one more of its orbits.
Happy Birthday! :D
If you're doing a full program you should do l=len(i).
thanks!
2:00 AM
@GamrCorps happy birthday
@TanMath thank you!
Congratulations on surviving another year!
lol thanks
It's a harsh world
@ThomasKwa yep...
@Mego would you know why it doesn't work?
2:04 AM
Ah, you beat me to what my next task was going to be (had I not found 10 bytes to shave off) — sysreq 3 mins ago
How does one golf 10 bytes off of that?
@ThomasKwa you read his next comment?
Yeah, that was posted after ^^
allo
ello!
2:13 AM
@quartata auto
What is so ugly about this?:
3 hours ago, by Vɪʜᴀɴ
Awww, Dennis beat me :(
@TanMath Now I guess the proper response would be "Facebook"
@ThomasKwa ?
'allo':'Ello':'auto':'Facebook'
does anyone here put your PPCG solutions into github or any other source control?
2:18 AM
@Sparr No because inline code is required
We had someone who did that a while back actually
@Sparr I don't. My answers tend to be too short.
Doorknob fixed that with a nice trout to the face
@Sparr Some of the first PPCG solutions I did with Minkolang actually are on GitHub, but that was before I had the online interpreter so I had to save them to a file.
Oct 25 at 0:48, by quartata
Then we'll get @Doorknob to whack him with a trout until appropriate amounts of mod respect and understanding have entered his bloodstream
Oct 25 at 0:50, by El'endia Starman
@Doorknob Don't deny you'd love to do that... ;)
@quartata I'm not thinking of using github as the authoritative source for scoring. I just want people looking at my github to see more of the code I've written.
2:20 AM
@Sparr Ah.
I guess you could do it I suppose.
golf stuff doesn't necessarily belong on github, but there are a lot of non-golf things on PPCG
I think some people do that with really incredible stuff (like the chatbot challenge or the all color challenge thingy)
codegolf.stackexchange.com/questions/35328/… <-- I want future employers to see this
You could do it with whatever if you wanted obviously :P
@Sparr This would be something nice to put.
Your Penrose game of life would be good too.
so now I'm wondering... one repo per challenge? one repo per challenge website? one repo for all my competitive coding stuff?
@quartata yeah, that one too :)
2:21 AM
I'd say one repo for all of them.
That feel when you want to downvote a poor challenge like "Find the center" but also want to upvote it so your answer will gain visibility...
Like a "exceptional-ppcg-repo"
@ThomasKwa I will confess I have been secretly editing the truth machine catalog so it will stay on top of the home page
I'm like <100 views away from the gold badge for that and it's killing me
I have to say that the answer I'm the most proud of is this:
2
A: Time-Sensitive Echo

quartataGroovy, 202 bytes def b={System.currentTimeMillis()};def h=[];for(;;){def t=b();def s=System.console().readLine();h.add(s+" "+(b()-t));if(s=="")break};for(def s:h){Thread.sleep((s=s.split(" "))[1].toLong());println s[0]} Radical. Ungolfed version: def b = {System.currentTimeMillis()}; // Cre...

I don't think anything else I've done was anything special
The answer I'm most proud of is from the future
2
@ThomasKwa Your minimal nethack one had effort
Hell, all of your answers have effort
I don't think I've put effort into any answer I've made
...yet
I'm working on something special actually, but it's really difficult and it's on a challenge from liek two years ago
It was a pop-con
10
Q: Find the Interweaved Source Codes (Cops)

EridanThis is the cops' thread. For the robbers' thread, go here. Introduction For this Cops/Robbers challenge, the cops will write output-producing programs and interweave them together. It is the robber's job to pick apart the cops' programs to produce the desired outputs. Cop rules The cops may ...

I don't get teh scoring technique
;-;
2:31 AM
I also need to get some real code out of gists
I've got a few things in gists that is worth showing off, I think
Score ###/### what are the ###s ?!
@CᴏɴᴏʀO'Bʀɪᴇɴ Filler
@CᴏɴᴏʀO'Bʀɪᴇɴ The first ### is the cops score, you add the two scoring criteria. The second ### is robbers score
2:32 AM
Oh, sorry I thought you literally meant why are the #s there
3
A: Find the center

Vɪʜᴀɴ ²(x[t=xn/2]c+xv[t]c)/2) Uses @ETHproductions idea of reversing the string. Try it online Ungolfed && Explanation TeaScript is still JavaScript so it functions a lot like JavaScript too. C((x[t=xn/2]c+xv[t]c)/2)

So, my challenge's score is 256/2^2+256/256=65; what is the second bit?
@Vɪʜᴀɴ While you're at it, why don't you just make your entire answer an image too? :/
@Doorknob hehe
I personally love the header
@Doorknob I don't know that much SVG
2:34 AM
I think it would be really cool if we had a header maker for a few esolangs
@quartata I think it's horrible and I'm very tempted to edit it out
So like a logo and then a generator for the byte counts
Unicode language names were bad enough...
@Doorknob Why?
I mean, it looks cool.
@Vɪʜᴀɴ How do I calculate the robber's score?
2:34 AM
I think it looks strange compared to the other text headers, but if they were ALL image headers then it would look amazing.
We'd definitely need a generator of some sort for it.
@quartata oh sure, so we should add text shadow and gradients to all of our answers and surround them with <blink> tags cause that's fancy too
Like give a logo and the byte counts
please no
2
@CᴏɴᴏʀO'Bʀɪᴇɴ 2^<num_langs>+<roundDown_Length_to_closest_power_of_two>
@Doorknob This is extreme.
2:35 AM
@Vɪʜᴀɴ ._.
Pʟᴇᴀsᴇ ᴇxᴘʟᴀɪɴ ᴛᴏ ᴍᴇ. I ᴀᴍ ᴏɴʟʏ ᴍᴏʀᴛᴀʟ.
From robbers thread:
"2 to the power of the number of different programs used in the cop's answer
Round the number of bytes in the interweaving down to the nearest power of 2."
^ sum of those two criteria
wait that was wrong
@quartata YES. I'm going to go make a generator (if it's okay)
I'm with Doorknob on this. The image header is extremely unnecessary.
and obnoxious :/
2:38 AM
Seriously, what's wrong with it? It doesn't seem that intrusive to me.
It might be a little annoying on mobile but that could be easily fixed.
@AlexA. I'd say it looks nice and it's won't interfere with questions that don't have leaderboard snippets
It feels like it's from a 10-year-old website.
@Vɪʜᴀɴ Hell, if you provide alt text the leaderboard would still work
@Doorknob That's a flaw with the Teascript logo in particular, not the idea.
no it's not
2:40 AM
Seriously, how many websites today use images for headers?
It's completely unnecessary and extremely prone to linkrot too.
There are basically no positive effects that could come from it.
@quartata That would be called a "logo."
0
A: Find the Interweaved Source Codes (Cops)

Cᴏɴᴏʀ O'BʀɪᴇɴJavaScript ES6, 2 programs, 255 bytes, Score 65/132 (if safe/cracked) trvya{"fru nxcti;on{;ale"r;Otb(j(fe=c>t(.kfe.yrs(efv)e}rcsate(cf+h(e~)~{ff,=Mast=h>!.posw?f((12),:M"a"t;hal.Ee)r))t)((nfe(wf A(rfr(a0y/(909)) +.f(7/f5il)l()0))+.fma(pf()(x,+`i$,{ff)}=>i`/.s3p)l).ijt`o`.imn(ap"("e)=.>repela.cce...

Did I do that right?
@CᴏɴᴏʀO'Bʀɪᴇɴ cracked
But yes you did it right
@quartata o_O
\You cracked it ?!
2:43 AM
Nah, I was kidding.
I can kinda see the pattern you used for interweaving it though.
If I cared at all I'd try to crack it
@CᴏɴᴏʀO'Bʀɪᴇɴ What is with the punctuation here? The space before the question mark makes me think you're Optimizer.
And who knows why that backslash is in there
Sadly I'm too lazy I'm just going to sit here and eat olive oil popcorn
> sit here and eat olive oil
2:45 AM
@AlexA. I do that sometimes.
I like to put it on something most of the time though.
Do you just... drink it?
Like from a cup?
I'm kidding.
Oh good.
I'm pretty sure you'll die if you drink straight olive oil.
2:48 AM
Now I did use to drink salad dressing.
ಠ_ಠ
My favorite kind of salad dressing consisted mostly of olive oil and lemon, so I guess that's pretty close to drinking olive oil.
I think Alex just died from sheer disapproval
0
Q: Happy Fibonacci Day!

VɪʜᴀɴBackground Today's is 11/23 or Fibonacci day! What better way to celebrate than to make a fibonacci cake? Examples 3 ii i_i_ii_i_i Challenge You're not really making a cake, just the candles because I can't ascii-art a cake To make the cake you must first get the first n fibonacci...

Anonymous
^ dibs on seriously answer
Anonymous
Actually nvm that's way too complicated
3:01 AM
There are no "dibs" on languages. Anyone can answer in any language.
5
Anonymous
Was a joke
I regret to inform the West Coast of the United States that for most of the world, 11/23 is over or almost over :( This has just turned from code-golf to fastest-codesysreq 2 mins ago
@AlexA. yes there is...
Giving a whole new meaning
@Doorknob :P
3:06 AM
@TanMath There really isn't.
@AlexA. yes there is!
@TanMath no, not really
Dammit he edited it
You can answer in whatever language you want
It said "gold it"
3:15 AM
Goodnight!
Peace out .
Goodbye! @CᴏɴᴏʀO'Bʀɪᴇɴ
Please please help me out with my code!
Somebody!
3:41 AM
Where did @Mego go?
shemgo left the building
@phase no...
Anonymous
3:57 AM
Hey @El'endiaStarman! 1139528832
Welp!
But at least you didn't have to wait another 2-3 days. :P
Anonymous
My processor is crying sweet tears of relief

« first day (1760 days earlier)      last day (3237 days later) »