« first day (2462 days earlier)      last day (2676 days later) » 

20:00
@DJMcMayhem Uhmm, barely
@J.Salle earthworms I meant, yes. One tends to think they would be related, having so similar shapes...
@Mr.Xcoder STDIN, any whitespace seperator
@LuisMendo hahah perhaps, but snakes are vertebrates.
@DJMcMayhem I'd say preferably newline-separated
Yes, that is preferable so that input/output formats match, but either one is accepted by the interpreter
20:01
@Mr.Xcoder Well... I have a solution, but it's... painful.
or because that's how you do input in other languages
80 bytes.
@Mr.Xcoder Wait, a second it isn't technically STDIN. Are you using local or TIO?
@ThomasWard I can help you with it. Sure post it.
@DJMcMayhem tio.
import sys,json;j=json.loads(sys.argv[1]);k=[j-i for i, j in zip(j[:-1], j[1:])] [TIO‌​\
20:02
@Mr.Xcoder OK, then for all intensive porpoises, it's STDIN
Anonymous
@ThomasWard What in the world? Why are you using JSON?
@Mego loads = loads from string.
@ThomasWard you can just write is as a function
@ThomasWard ...json?
also, eval
20:03
eval didn't work right for me
Anonymous
Write it as a function, use eval, use ast.literal_eval...
but also, the actual part that does the zip is actually (almost) correct :) (you can remove two bytes of whitespace)
Also, zip automatically truncates lists that are too long, so just do zip(j,j[1:])
but that storing in k isn't correct
20:04
Then, please remove the whitespace.
Proton barely wins against Python: x=>[j-i for((i,j),):zip(x,x[1to])]
(yeah you can learn them by heart they're just 8)
I remember the monads but not the nilads
20:07
@Mr.Xcoder Nice, but I got that down a little too, 38 bytes: lambda j:[j-i for i,j in zip(j,j[1:])] (TIO)
@ThomasWard Perfect! This is the shortest non-built-in solution! Congrats.
@ThomasWard optimal
@Mr.Xcoder thanks! I know I'm new to golfing, but thank you for all the assistance and teaching :)
i think like a programmer, not a code golfer, by default xD
code golf isn't just shortening code, it's a way of thinking
indeed.
I need to reprogram my mind :)
20:09
@EriktheOutgolfer False. It's a way of living.
thinking... about how to shorten code
@J.Salle Didn't you mean this?
2 hours ago, by Mr. Xcoder
CMC: Given two non-empty lists of integers A and B, return the deduplicated elements that appear at the same index in both A and B
@Adám yup. I can't edit the message anymore though
@Mr.Xcoder I'd have said that, but if your only life is code golf then something is wrong
3
no offense
20:10
Proof: You can spend five hours thinking about a 58 byte Python answer, and someone else can spend 1 hour thinking about a 57 byte Python answer. The other guy still wins, even though you thought more.
@Rainbolt not the case for me
I'm thinking in a way that tries to optimize almost everything
there's a third stack room? hacks links
I have 36 bytes with taking the list reversed.
@EriktheOutgolfer Good point - , & are important too
(Brain-Flak)
@DJMcMayhem thanks
@Adám MATL, 4 bytes: y=)u
@HyperNeutrino I can't remember what my solution is lol
it seems like one message doesn't belong there though :p
20:12
@DJMcMayhem oh lol :P
@J.Salle You can just do ∪⊢(/⍨)=
You moved my Proton message :( :PPP
1 message moved from The Third Stack
@HyperNeutrino What are you talking about...
20:13
@HyperNeutrino Same
@Adám I tried using for a while but I couldn't figure it out. Also I don't think I learned what / does on it's own
MD5 of mine is 6ccf331f881abb753837517baf35f99c
@EriktheOutgolfer shush that's fake news :P
@J.Salle ⍺/⍵ replicates each element in as many times as indicated by the corresponding element in . If is Boolean, it is a simple filter.
20:16
@Adám oh, okay. Sounds way easier than I thought
@J.Salle A more obvious solution is {∪(⍺=⍵)/⍺}.
@Mr.Xcoder I hope you don't mind me trying these CMCs. (Remind me what CMC means again? I'm not fluent on PPCG acronyms other than PPCG xD)
Chat Mini Challenge
@Adám I've been trying for a while now to iterate over a list. Can't seem to figure it out. Also we should probably move to APL? :p
@ThomasWard Of course I do not mind, I love it :-)
20:18
27
Q: What are the PPCG specific abbreviations and terms?

AdámNewcomers to PPCG are often compelled to ask what many of our abbreviations and terms mean. Let us list them here so this information always will be easily available.

@HyperNeutrino ah, thanks . I see that meta post too :)
sigh, giving up on chat search.. maybe the conversation was actually on irc
CMP: To what (chat) names do you respond (in chat)?
what's a CMP?
20:25
@aditsu Chat Mini Poll.
@aditsu See above linked meta post.
Any that ping me
@HyperNeutrino I still respond to TimmyD, but mainly Adm or Bork. I respond to Bork in real life, too.
lol :P
I'd probably respond to "hyper" in real life, idk
nobody's called me that :P
To be fair, that question was really ambiguous.
20:26
ahh
can you check if my js works correctly on my site
@HyperNeutrino Uh, how would I know someone addressed me if it didn't ping me?
Assuming you're active in chat
like if someone said "hey hyper" I would respond to that if I saw it
In that case, I've also responded to "turtle" in the past
huh interesting :P
20:28
why a neutrino's avatar is a benzene
People changing names is so confusing. At least make them anagrams
good question. I don't think you're the first to ask either :P
@HyperNeutrino I guess Adám and Adam then. I'd be surprised if I saw NBZ.
huh ok
(no idea what NBZ is lol)
Nineteenth ByteZ
20:29
lol
I don't think anybody would call me anything other than "aditsu" in here
I think other than my initial name being Alex L, I haven't changed my name since (except once when I changed it to fancy chars for 2 minutes and then was notified that Dennis disapproves so I changed it back :P)
unless they're being snarky or something :p
@HyperNeutrino That was my original SE username, long before I came to PPCG.
20:29
ah ok
hi NBZ
Recently found out Gulp depends on this gem: github.com/ljharb/is-object
apparently we have learned nothing from leftpad
@Adám btw, I liked Denmark :)
@HyperNeutrino I changed name.
@aditsu Wait, what‽ Is Denmark gone‽‽‽
20:32
@quartata is it just me or is that 5
even worse
I miscounted
@Adám no, i'm gone (from it)
let's see what's shorter
typeof x === 'object' && x !== null; vs require("is-object").isObject(x);
20:33
lol
ok it's 4 characters shorter
so worth it
Hides sharp edge cases for safety
...sure :P
@trichoplax The former is literally the same code the module uses
keep in mind Gulp is something used in real world NodeJS production
it is presumably written by people who are good at programming
and so they are capable of putting the former statement in their own helper if necessary
@quartata I'm joking - avoiding the risky mental effort of being aware of the edge case x === null
20:36
ah yes, risky indeed
when is a thing not an object ._.
if it's a primitive
More seriously, isn't Gulp intended to help perform mundane tasks so you don't have to think about them? Checking for null seems like a mundane thing it might be nice to forget about...
I actually think leftpad was longer than this
20:41
TIL JS can do tail call optimisation (but only in strict mode)
@trichoplax APL always does.
Anonymous
@HyperNeutrino Mego and Punguin
why punguin? do you make a lot of puns?
anyway gtg o/
Anonymous
@HyperNeutrino Yes
ah ok :P
20:48
thats so cool
@Adám It doesn't surprise me in a real language ;)
java doesnt have it :P
nvm back now
20:52
deleted by community
21:03
@betseg the CLR supports it but C# didn't use it.
F# does, probably.
@betseg that's what spam flags do
@quartata huh, first spam in a while
i know
i was informing people
ah ok
sorry
When I got the ability to hammer edits the only thing I wanted was the ability to not
lol why?
21:06
if it's just stylistic sometimes OP or others should get a say
hm makes sense
I didn’t trust myself with them, I’d prefer peer reviw
Gosh darn phone... -.-
@HyperNeutrino moved to nethack chat
@quartata dnh OP plz nerf
I replied before you moved the messages
yep I saw
21:12
in The Third Stack, 37 secs ago, by DJMcMayhem
Brain-flak just passed 50 stars on github for the first time! \o/ \o/
yay :D
let's hope it's the last time it passes 50 stars lol
3
Anonymous
@DJMcMayhem Congrats! Also I didn't even realize Seriously/Actually also had >50 stars :P
@HyperNeutrino thought the same thing lol
21:15
:P
My most starred content is my userscript at 15 stars
15 stares?
Thanks autocorrect
@Dennis your solution codegolf.stackexchange.com/a/146431/60042 is recursive but doesn't include f=
21:24
@flawr YES
Beautiful use of typography to help convay a topic
Also, whilst reading it my inner voice is shouting nomatter how hard I try to avoid it
I had a similar issue whilst reading homestuck
8 messages moved to Trash
1 message moved to trash
@mınxomaτ I like how you used two different trashes there.
-1 lines by trashing the trashes
anyway gtg o/
@HyperNeutrino Actually, that doesn't work.
21:37
why not?
These messages are ignored by a move.
So it would produce a "moved to trash" message while doing nothing?
@mınxomaτ what is the difference between these trashes?
@Pavel Only if at least one normal message was moved.
21:39
@flawr ankit sharma couldn't find the normal trash so he made one
@flawr Users don't get invited to trash for one of them.
movies mod
> Trash
> trash
@Adám Oh yeah, This is cool
It would be interesting to see the sorting organized by best case scenario to least within each sort, so, say, the top row gets sorted first, followed by the second, etc, until the bottom row gets sorted last
Anonymous
21:57
@flawr The uppercase Trash room is a gallery room. It's the original Trash room that ROs use. It was made into a gallery because 1) people took it as an invitation to spam nonsense there, and 2) people were complaining about getting invites when their messages were trashed. For a few days, non-mod ROs couldn't move messages there because we didn't have write access, so trash (lowercase) was made as a temporary solution.
I quite enjoy jumping in the sandbox to see what kind of nonsense is there.
A big problem I have in regards to writing Funky is avoiding making it Esoteric, but at the same time I Really want to add a bunch of things to make it golfier.
does anybody have some "crossed out 44" link to link to?
22:12
@anyone help i still need a character for filter
@Uriel 44
19 secs ago, by Adám
@Uriel 44
@Riley thanks
@Riley newer @Uriel
@ASCII-only @Uriel September 11
22:16
@Riley yeah but no link so it doesn't count
CMQ: Do most [tag-code-golf] byte counts have 1 as first digit?
@ASCII-only True. Didn't look at that.
@Riley no link ;(
@Adám likely
it's like that thing about tax returns or smth
1 is the most common number
22:18
Benford's law?
Benford's law, also called the first-digit law, is an observation about the frequency distribution of leading digits in many real-life sets of numerical data. The law states that in many naturally occurring collections of numbers, the leading significant digit is likely to be small. For example, in sets that obey the law, the number 1 appears as the most significant digit about 30% of the time, while 9 appears as the most significant digit less than 5% of the time. By contrast, if the digits were distributed uniformly, they would each occur about 11.1% of the time. Benford's law also makes ...
yep that
@Riker Hm, I wrote "most". Probably 1 is the most common leading digit. How about "most"?
8 I'd say
@Riker what
I was thinking that it is very common for golfing langs to have 10-19 byte solutions.
22:21
7-11 seems to be around the point where most good challenges end up with a jelly answer
@Riley oo it has a comment-bent link codegolf.stackexchange.com/a/123404/65326 quite dangerous :P
@Riley codegolf.stackexchange.com/a/48101/68942 unfortunately this chain ends here
at least, that's what I've seen
@Adám and 100-199 to a lesser extent :P
or just 1, cuz of all the 10-19 byte ones yea
22:22
I'd assume 1 has the highest rate, due to a combination of 1 byte answers and 1xx byte answers.
@HyperNeutrino yea, that's the origin to all
@ASCII-only That's for all the non-golfing langs.
oh rly? lol
oh right that's why it has so many upvotes
yep
@HyperNeutrino someone needs to write a crawler to map 'em all
22:23
yep :P
Anything higher than 2 is less likely, because 300+ answers are a lot less likely.
someone needs to start a thingy where every time someone links a crossed-out-44, it maps that as the most recent so you can build the longest chain possible
probably scrape recent-posts like Smokey does
@HyperNeutrino nooo! it's the most fun when you don't know what end is it
even if you map them out it would keep looking like some weird pattern
22:25
@HyperNeutrino that's what people do isn't it
I don't think so :P but idk
@HyperNeutrino iirc there's a reddit bot like that
for the switcheroo thing
oh lol :P
1: 30253
2: 22230
3: 16093
4: 11657
5: 10812
6: 9586
7: 7947
8: 7576
9: 6602
0: 5369
The amount of answers starting with a particular digit in the byte count.
huh cool
22:32
@ATaco 0: 5369 ಠ_ಠ
@ATaco How are there that many 0s???
@ATaco for some reason i don't believe this
The data is likely skewed by the method of searching, as it's just looking for a space followed by the digit, then the word "byte" somewhere later.
I'm assuming this is acceptable noise, however.
You are avoiding counting striked numbers, right?
Nope, this query was very simple, just to get an idea of the numbers.
22:42
ok
actually the way you're searching it, if you're scraping raw MD data then it will avoid striked numbers :P
@anyone does Charcoal need a grid builtin like Jelly does
22:57
@Neil yay Charcoal has more things now

« first day (2462 days earlier)      last day (2676 days later) »