« first day (2342 days earlier)      last day (2505 days later) » 

9:31 AM
@Lembik did you read my message?
 
9:46 AM
What a good icon to indicate "reaction" or "quick reflexes"?
 
@LeakyNun about the time until the bounty ends?
 
@Lembik yes
 
@LeakyNun We could improve the question
 
edit it howsoever thou willest
 
Anonymous
@HelkaHomba Lightning bolt
 
9:48 AM
It should link to the coding question Arthur posed, and copy some of the examples over
 
@Mego ooh, yes, thanks
 
I don't have time today sadly @LeakyNun
 
CMC: animate a rotating fan, each iteration is shown separated by newline here:
 |
/ \

 /
-
 \

\ /
 |

\
 -
/
 
Jim
@isaacg What was the reason that prevented you from using characters in the range [128, 255] for Pyth? Like éçëà«
 
each iteration of the rotation takes 1 second long
 
9:55 AM
Is Science the knowledge of what is around us? Please give your opinion. I request you.
 
Jim
@isaacg Also, do you still add features to Pyth?
@Arjun Ono. Not this again
 
no that's a bad challenge, too much hardcoding
 
@Jim Have you changed your username recently?
 
Jim
@Arjun No, I just remembered exactly what someone else told last time you started talking about philosophical stuff.
 
@Jim what would that be?
 
9:59 AM
@Jim what features do you want?
 
@Jim Oh okay.
 
Jim
@Mayube "Ono. Not this again"
@LeakyNun It's not "the features I want", I just want to know if there is still room for improving Pyth
 
@Jim I wanted Pyth to be always typable, so I restricted it to printable ASCII. The most recent feature I added was a default function effect for arity 1 functions, added June 5.
 
Anonymous
May 27 at 5:47, by isaacg
To all those who use Pyth: I've finished my semester, and I'll be implementing issues and new features.
 
@isaacg what causes the double backslash error?
 
10:03 AM
Pyth's online interpreter blacklists lots of stuff to prevent hacking. Unfortunately, it's a little overzealous.
 
Jim
@isaacg And is there an official place where to make suggestions?
 
@isaacg but it works in other location
 
Jim
Other than making pull requests
 
just not the third argument of replace
@Jim issues
 
github.com/isaacg1/pyth Create an issue
 
Jim
@isaacg Okay. Actually I filled an issue once already for Pyth :)
 
@LeakyNun All I know is that it works offline, and fails offline in safe mode (-s).
 
@Mego What was Be Nice, people. for?
 
-s does nothing more than impose the blacklist.
 
Anonymous
@Arjun People weren't being nice to each other.
 
10:07 AM
@isaacg and what is the blacklist?
 
Anonymous
@Arjun If you don't see it, then there's no reason to bring it back up.
3
 
:38421176 please don't delete messages after they're replied to...it disrupts conversation flow
 
CMC: highest digit (digit in the highest position) (for god's sake, when did highest digit mean biggest digit?)
restriction: you must take in an integer if your language allows it
 
@LeakyNun Jelly, 2 bytes (full program): ṾḢ
 
Anonymous
@LeakyNun Actually, 2 bytes: $F
 
10:12 AM
or 3 bytes if function: ṾḢV
or...Jelly, 2 bytes: DḢ
^ = both program and function
 
Jim
@LeakyNun Pyth, 2 bytes: h`
 
@Jim h`
 
Jim
@LeakyNun Disturbing, eh?
 
rip formatting
 
Anonymous
Yeah good luck with trying to escape a single backtick
 
Anonymous
10:15 AM
I think `h``` works
 
done
 
Anonymous
Urgh
 
@Dennis derp sorry
 
Anonymous
At least chat formatting sucks slightly less than comment formatting
 
@LeakyNun The one causing the issue is this one: github.com/isaacg1/pyth/blob/master/pyth.py#L751 removing imports. Imports can have too much power, like importing os, so they're disallowed.
 
10:19 AM
@isaacg I don't see how that causes the issue
 
@LeakyNun what does that mean?
 
Me neither, but that's the error message.
 
the first digit
I take it
 
yes
 
that'd be a not bad challenge
 
10:21 AM
0
A: Sandbox for Proposed Challenges

FatalizeDeep-dichotomize a list Given a list, dichotomize it, then dichotomize both resulting sublists, etc., until you reach sublists of length 1. For example, given [1,2,3,4,5,6,7,8]: Dichotomize: [[1,2,3,4],[5,6,7,8]] Map dichotomize: [[[1,2],[3,4]],[[5,6],[7,8]]] Map map dichotomize: [[[[1],...

 
Too trivial for my taste
 
yeah too trivial for main
 
Anonymous
@KritixiLithos Every solution would be of the form n.toString()[0]
 
>_< I did not see that coming for some reason
 
maybe if we disallow indexing...but then it'd be do x without y
 
10:24 AM
I just want to answer a challenge to get enough rep to get back to my position in the leaderboard, especially with ErikTheOutgolfer catching up
 
and then it'd again be python 2 lambda x:x/10**~-len(`x`)
 
Jim
@isaacg In Pyth how would you decompose an integer in a list of its digits? Other than msd` ?
 
j ... T
 
Jim
@isaacg Whoa, finally I got a shorter version!
For the time I searched for it…
 
jbT would be convert to base 10...but often there are other ways to cleverly manipulate with digits
assuming variable is b
 
Jim
10:26 AM
@EriktheOutgolfer Yeah, I've looked into the doc
 
unless you have set T to something, in which case it'd be either jb10 or sM`b (latter is preferred because no leading or trailing digit)
former would have golfability issues in e.g. +j 123456 10 7
 
Jim
@EriktheOutgolfer I don't understand what you mean by "no leading or trailing digit". The perk I see is that you can omit the variable in the latter version (for implicit input)
 
@Jim see ^^
 
@EriktheOutgolfer You could use h9 instead of 10 to half-solve it.
 
the latter would be shorter: +sM`123456 7
 
Jim
10:30 AM
@EriktheOutgolfer Got it
 
Also remember that if T is your lambda variable, you can use ; to mean 10.
For instance, f}TjQ;
 
@isaacg I'm talking about the case you have set T to something yourself, with =..T
 
Yeah, that comes up too.
 
Jim
@isaacg I remember having hard times before I knew this trick. Like: "Oh no, I cannot use k because I'm in .e…"
 
That's why I added it.
 
10:35 AM
of course the ; case would only be useful for f
btw how does Pyth still beat Jelly et al. sometimes? I just don't get it...
 
10:51 AM
.n0 u
 
-2
Q: Change text from string input

Pancake_Try to come up with something that replaces a random text with the given text below. Make it in Python or Java Doesnt matter how long the code is It has to replace all the text with the given simbols and code Ex: "I play pokemon go" or "i p l a y p o k e m o n g o" Outcome: "△⟓◪G⃞⟓ X/P⏂♓︎O...

 
@EriktheOutgolfer Pyth and Jelly are just good at different stuff. When Pyth can make all its variables implicit and Jelly has to use separator characters, for instance.
 
@isaacg not exactly...Jelly also has implicit variables, but it's tacit not polish
 
That's what I meant
The tacit system sometimes needs separator characters.
 
sometimes you would need ⁸⁹ to represent left/right arguments, and rarely you'd also need spaces
 
11:05 AM
Maybe somebody should make an alternative to PHP, that's just PHP with all the shit removed, and call it OGO
 
So, $s="PHP";$s-- ??
 
o_o
 
@feersum how is that at all related?
 
PHP isn't all bad. (It's horrible, though)
 
11:06 AM
@ZacharyT how does one decrement a string?
 
He's saying PHP is all shit.
 
1
Q: How many times should I press this?

Mr. XcoderWe are all used to the old-school telephone keypad, right? For reference, here is what it looks like: Given a String consisting only of lowercase ASCII letters and single spaces, your task is to return the number of taps one should make in order to type down the full String with a telephone ...

 
@Mayube Exactly, that's PHP.
 
I find the majority of PHP is actually quite usable if you focus on using the OOP side of it and avoid the procedural stuff
 
(It might come before, I don't remember)
 
11:07 AM
Not all... the part where it prints out a character literally can be useful.
Hence, text.
 
oh wait alphabeticaly OGO is actually PHP decremented
huh.. I just left-shifted it on the Qwerty keyboard
 
@NewMainPosts When did it become so fast?
 
LOL
KIK/KNK
CMC: determine whether a left shift is equivalent to a alphabetic decrement
If letter is 'A', decrement is 'A'. If Letter is 'Q' 'A' or 'Z', it stays that way when shifted.
 
that might be more a main-post thing, given you'd have to compare the alphabet with 3 separate lists (one for each row on a Qwerty keyboard)
 
@ais523 Your profile says Delete me. Are you leaving PPCG?
 
11:14 AM
sorry, I meant to type that in another textarea
 
@LuisMendo It has always said "Delete me" since I joined PPCG.
 
technically it's an <input>, but yeah
 
@Mr.Xcoder Ah. Weird profile text anyway
 
That's without doubt.
 
@ZacharyT Jelly has the QWERTY layout as built-in.
 
11:18 AM
Why on earth would it have a nonexistent keyboard layout as a builtin?
And how do you mistype QWERTY?
3
 
@ZacharyT Because it's Jelly.
 
And PHP has the string decrement.
 
string decrement is alphabetical shift though, still need to figure out the keyboard layout
 
Do you have a non-QWERTY layout on @Adám
 
@ZacharyT is the input a word or for a letter?
s/for//
 
11:20 AM
A sequence of capital letters.
 
He's got APL keyboard and must use Shift+Alt+⍋ to type a W.
9
 
Oh. What kind of APL keyboard is that?
 
@ZacharyT he was being satirical
 
@feersum :-D I have no idea how I ended up with that typo.
 
Oh, so star-worthy?
Hey, does anyone find any problems with this solution? codegolf.stackexchange.com/questions/128705/…
 
11:24 AM
WOW
 
WOW, what?
 
It's surprisingly golfed.
My Python solution was 1k bytes
Hence, I didn't post it
 
@ZacharyT No. I think I must have spelled qwerty phonetically without thinking.
 
My original was about that length, but I used all if statements.
xp disgusting, 1k code golf.
 
@ZacharyT Seems like it should be shorter to not have a string for every state name.
Have one long string and split it into chunks of 2 letters or something.
 
11:29 AM
@feersum Yes, split a very very very long string by spaces
 
I'll get on that later, if it saves bytes.
 
@ZacharyT If it doesn't, you just wasted 2 hours of your life :P
 
I'll probably get going on a golf in a language like Jelly, 05AB1E, Actually/Seriously or something.
 
how does the x and y or z trick in python work?
 
Short-circuiting.
 
11:33 AM
or is lower precedence than and.
 
no I mean what's the syntax?
 
@Mayube if x (which is a bool), then y, else z. Like a ternary in Java, with this syntax x if y else z (only works in list comprehensions, I think)
 
I thought python had actual ternaries though?
 
@Mayube Nope.
 
and they were just x if y else z
 
11:35 AM
Yes, sorry
 
so how does x and y or z differ from x if y else z?
 
Doesn't really work
 
The former doesn't work right if y is falsey.
 
@Mayube The former is something if x and y else z
and x and y is a bool
@ZacharyT It is.
 
Sorry, I didn't see him change it.
 
11:37 AM
I've seen people use it as a ternary in golfing, is it just cos it's 1 byte shorter?
 
Duh.
 
@Mayube A ternary in python: True and x or y. This chooses x
@Mayube Or False and x or y. This chooses y.
 
Is that even valid syntax?
 
don't think so
 
@ZacharyT Yes, it is
 
11:39 AM
you typed else not or
 
ooh, sorry
 
Again.
 
ok so x and y or z will return y if both x and y are true, otherwise returns z?
 
@Mayube Better read this post. It explains stuff in detail
I've chosen wrong examples above, sorry.
 
@ZacharyT challenge is trickier than it seems, because if you let the keyboard indices wrap, Q will return true
 
11:49 AM
Yeah, I wanted to make it somewhat tough on Jelly.
 
@ZacharyT Try it online! not great, but works. Kinda bending input standards too >.>
 
Well, I said input is supposed to be a string. It's close though.
Not just one character
 
it also only works on single chars >.>
 
lambda n:all([c in'PAGHKL'for c in n])
 
aww that's no fun
 
12:14 PM
@ZacharyT Drop 2 bytes lambda n:all(c in'PAGHKL'for c in n)
 
Always forget that.
 
Why is SO always DIFFERENT from the other SE sites? 😞
 
@ZacharyT lambda n:set(n)<=set('PAGHKL')
 
@ZacharyT (Python 3 only): lambda n:{*n}<={*'PAGHKL'}.
 
> I thought Stack Overflow is part of Stack Exchange, network of sites, which should have the same design. You work really hard to make Stack Overflow different, and appear to NOT be part of the network. Well done.
 
12:18 PM
Are you people just going to keep improving on my golf?
 
@ZacharyT Yes.
 
^^^ is a quote from one of the comments there
 
@KritixiLithos I've now seen that
It's unethical.
 
@ZacharyT yes, even though I haven't the slightest idea what the code is for
 
LOL, That's how I golf other people's code as well.
 
12:20 PM
it's , deal with it.
 
Do you guys have the PPCG userscript installed, as we were talking about being different?
 
@Mr.Xcoder disabled
 
@EriktheOutgolfer Doesn't work anymore?
 
oh wait that's not that userscript
 
12:21 PM
that's a large onebox
 
Hey, whoever said something about me possibly shaving off bytes by not using a dictionary and using .split(' ') thank you!
 
Jim
@Mr.Xcoder I don't understand what this is
 
A template that would make the design of PPCG better
I personally don't use it.
I have 2403 on SO and 2402 on PPCG
One more upvote, and it all changes...
@ZacharyT You can shave bytes off by using .split() instead of .split(' ')... Golfing the golfing idea
 
@ZacharyT what challenge is this for?
 
Does .split do that by default?
3
A: Generate a US License Plate

Zachary TPython3, 861 821 819 714 678 674 670 662 661 658 596 bytes. -8 bytes thanks to @DestructibleLemon (b=a+... and d=B...) from random import* C=choice Z='000' A='AAA' B=A+'-0'+Z a=A+' '+Z b=A+'0'+Z c=a[::-1] d=B[1:] print((lambda s:C(''.join([C(['ABCDEFGHJKLMNPRSTUVWXYZ','0123456789',i]['A0'.find(...

 
12:27 PM
@ZacharyT yes, it does
@ZacharyT It can be golfed a lot now.
I am going to post a golfed TIO link shortly.
 
I won't need the .split, I used zip to split every 2.
 
@ZacharyT I was going to suggest that
 
@ZacharyT Actually, it can be golfed a lot a bit
 
Can you give me the link.
 
'AK IA MS MP VT AS AZ GA WA AR KS KY LA ND OR CA DC CT FL IL IN MD MI MN NV NH NJ NM NY NC PA TX VA WI OH OK PR RI SC TN UT'
[*zip('AIMMVAAGWAKKLNOCDCFIIMMMNNNNNNPTVWOOPRSTU','KASPTSZAARSYADRACTLLNDINVHJMYCAXAIHKRICNT')]
 
12:31 PM
@ZacharyT 594 bytes? I am not completely sure it works
 
40 bytes off @ZacharyT
 
@ZacharyT please don't overexaggerate...
I'm sure that if you go calm you can golf better
 
@ZacharyT Be ZEN.
@ZacharyT Just replaced the .join([... for x in ...]) with .join(... for x in ...)
The same trick as above, you always forget it.
 
[a,a,a,a,a,Z+'0',b,b,b,c,c,c,c,c,c,
[a]*5+[Z+'0',b,b,b]+[c]*6+[
 
@LeakyNun Wait, what's that?
NOOO, I received an up.......vote
 
12:34 PM
s/upper line/lower line @ZacharyT
 
0
A: Sandbox for Proposed Challenges

Nathan ShirainiDisplay the Undisplayable I have sometimes seen answers to challenges, written in binary machine code. The users who post them usually display them in hexadecimal representation. This representation makes the code extremely long, and does not do them justice! Thus, we should give them help, and...

 
@NewSandboxedPosts you messed up cthulhu a bit...
2
 
@EriktheOutgolfer 😂😂😂😂😂
"but no bonus, unless it can also summon Chtulu", for those who did not get it
 
@ZacharyT did you see my two golfings?
 
For some reason the [*zip('AIMMVAAGWAKKLNOCDCFIIMMMNNNNNNPTVWOOPRSTU','KASPTSZAARSYADRACTLLNDINVHJM‌​YCAXAIHKRICNT')] one doesn't want to work.
 
12:40 PM
@ZacharyT show me your code
 
I think the problem is zip creates tuples, where we need strings.
 
@ZacharyT you're right
@ZacharyT then find tuple(input()) instead of input()
what about my second golf?
 
That should work too, I'm not fast enough to put all those golfs in.
@LeakyNun I got it down to 555 bytes. And I needed to parenthesize the array, though.
 
there is also 6 consecutive B inside
 
@ZacharyT Now it's half of my original 1105 bytes :)
Well, nearly there
 
12:55 PM
HOW MANY EDITS TO THIS ARE YOU GUYS MAKING?
(on the repl)
 
@ZacharyT Aleph-naught edits.
I think I'll hit recap today :)
 
@Mr.Xcoder What?
 
@ZacharyT Which of the comments? The first or the second?
Hi @SIGSEGV
 
Second.
 
hi
 
12:59 PM
@ZacharyT You are only allowed to get 200 rep per day
 
Should I make my name invisible
 

« first day (2342 days earlier)      last day (2505 days later) »