« first day (2653 days earlier)      last day (2193 days later) » 

12:27 AM
@Downgoat law isn't even that hard
finance too I guess
 
would you say this is too much screen space taken up by comments
 
@Downgoat Yes, kill the image
nvm the image doesn't take that much
still...
What's the real size? ... (images are scaled of course)
 
around 350px in height
 
@Downgoat how much is that in %
@Downgoat depends. i'd say it should expand into a sidebar on displays that are large enough
 
@ASCII-only around 1/3 of the page on 1080p full-height browser
 
12:36 AM
@Downgoat ok yeah that's quite a bit
 
I'm thinking of having a seperate 'page' for comments. I am thinking of doing something like twitter for nested comments though
since the problem with like reddit, is that if you want to view a whole thread you have to click the [+] (expand button) like 1000 times
so instead we'll show the main thread, then you can click to see others
should work with enough JS. I'll probably have some indicator indicating that they are more comments
 
@Downgoat twitter doesn't have proper nested comments
 
@ASCII-only .________. twitter is like 1000% uber-nested comments
 
@user202729 lol why it's only like 4 msgs worth
 
@Downgoat don't think so
 
12:44 AM
like idc what you feel about twitter but it has nested comments like you can't argue that
 
@Downgoat it has threads but not properly nested comments
 
^
do something reddit-like but actually make the "show more" work on mobile
 
@ASCII-only you must use a different twitter than me
 
i.e. show top-level comments, allow hiding specific ones
 
@Riker who doesn't love a 2px click target on mobile :P
 
12:45 AM
reddit has proper nested comments but yeah it's terrible
 
@Downgoat well yeah that and it never loads for me
 
@Downgoat screenshot of actual nested comments pls
 
@Riker oh well speed is server job talk to mego if you encounter slowness
 
no I'm talking about reddit
like no matter your cell signal, wifi, etc. nested comments just plain don't load
 
@Riker :| what
 
12:46 AM
^^
 
@Riker maybe the button is just broken
 
idk
it becomes hte "loading..." but
 
@Riker I'd rather have a "stuck loading..." state though than it silently failing
 
1:01 AM
6
Q: Padding list within lists

jarheadConsider the following list: list = {{1}, {1}, {1}, {1, 6}, {1, 4}, {1, 3, 5}, {1, 3, 2}}; How can the sub-lists be padded to the length of the longest sub-list (in this case 3), with the last value of the sub-list? The expected result is {{1, 1, 1}, {1, 1, 1}, {1, 1, 1}, {1, 6, 6}, {1, 4,...

I feel like this would make a great challenge
I also suspect it may be a dupe, so CMC: That ^^
 
@DJMcMayhem JS 87 bytes: a=>a.map(i=>i.push(...Array(Math.max(...a.map(i=>i.length))-i.length+1).fill(i.‌​pop())))
modifies the source array
 
@Downgoat You can't see all replies to replies, only one thread
 
@DJMcMayhem Charcoal, 16 bytes: Eθ⁺ι…⟦¹⟧⁻⌈EθLλLι
 
If you want to see all the replies to a reply you have to click on it. That's what ASCII means
 
the funny thing is that i'm using wolfram lists for display
 
1:13 AM
@quartata that doesn't mean they aren't nested/threaded
@ASCII-only :O since when does charcoal do array
 
They're not arbitrarily nested though. The thread is essentially flattened
 
@Downgoat array input? for a couple of weeks now
 
@ASCII-only I think it's supposed to add the existing last elem as padding
 
@Downgoat ah oops
@DJMcMayhem Charcoal, 19 bytes: Eθ⁺ι…⟦§ι±¹⟧⁻⌈EθLλLι
 
Why longer?
 
1:16 AM
@DJMcMayhem I padded it with [1] the first time >_>
 
1:31 AM
@ASCII-only we should have chaining syntax for VSL
 
@Downgoat chaining?
 
goatDetector@processGoat(image: image)
            @processResults(format: .json)
where func class GoatDetector#ProcessGoat and func class GoatDetector#processResults
 
fluent interface?
imo that should be up to the user
 
@ASCII-only fluent interface? is that a C# term?
@ASCII-only what do you mean by that (you mean they should explicitly add -> Self and return self in all functions)?
 
@Downgoat no it's an every language term
@Downgoat yeah. because it'd be weird if void methods could just be chained
 
1:44 AM
@ASCII-only :/ ok
anyone else in TNB have opinions
 
actually that's not what you're talking about right? or is it
<vsauce music starts>
 
@ASCII-only not by default, but if you use a special "chain" operator to call a method it will allow you to use chain operator again and refer to the same method
e.g. let x = goatDetector@voidMethod() would still error
 
@Downgoat ah, i see. then you should definitely add that :P
 
do you have suggestion on what operator should be then?
 
not really. but @ should be apply like normal languages imo
 
1:52 AM
@Downgoat Seems like this might get a bit confusing if the method returns something
Adding a decorator to automatically make a void method return this might not be a bad idea though
 
@quartata but it would be inconsistent
 
0
A: Sandbox for Proposed Challenges

BlacksilverThe challenge Implement a command, !oldest, that gives the oldest user in the server that the command that was run in. Gracefully failing in DM channels is not required. Assume the bot's token is this invalid token: MjM4NDk0NzU2NTIxMzc3Nzky.CunGFQ.wUILz7z6HoJzVeq6pyHPmVgQgV4. If the token is co...

 
2:10 AM
@NewSandboxedPosts ...
 
2
Q: Enklactify these strings

DJMcMayhemInspired by this comment chain... I wanna enklact my way out of this challenge but I can't... @ETHproductions to enklact (v): to implement a lookup table using a subsection consisting of unique elements. Enklacting is a very useful way to compress a lookup table. For example, let's s...

 
Wowzers that was fast
 
@DJMcMayhem i wonder if they've finally fixed the feed bots
 
Anonymous
@ASCII-only Definitely not
 
@djm oh btw why does it link to mathematica question
 
2:22 AM
Cause I'm a dunce lol
@ASCII-only I had that in my clipboard because I posted that link in chat a few minutes ago, I forgot that I never copied the right link
 
hmm.
is it ok to return all strings :P
 
I mean, in theory I don't object to it, but challenge spec says no
 
2:42 AM
@Dennis wait why did you delete your answer
 
@ASCII-only It's back up
It was probably invalid for some case
 
@Dennis Added
 
@ASCII-only I'm using 0 as a filler element. Sadly, the column ['b', 'c', 0] contains three unique elements, so my answer considered it valid.
@DJMcMayhem Thanks. Fwiw, amending my answer to return all strings means I have to remove the last byte, so I wouldn't mind.
 
i'm sure for most people returning all is shorter :P
+ they have a [0] or equivalent somewhere
 
@Dennis Yeah, that would have been way better, but All or one sounds weird and I don't want to invalidate anything
Maybe there's a better solution but I'm not sure what it is
 
2:51 AM
:| the charcoal one is disappointingly long
 
@DJMcMayhem Not that weird. Sequence challenges usually use n-th (0- or 1-indexed), first n, or all.
@ASCII-only Unless it's a recursive approach.
 
or iterative, yeah
 
@DJMcMayhem Re: Throwing exceptions is not allowed. That's kinda overriding our defaults. STDERR can be ignored, and a full program that raises an exception "prints" the empty string.
 
Ok, removed that
 
3:57 AM
I just bought a copy of the The IEEE Standard Dictionary of Electrical and Electronics Terms First Edition (1977) at Half-Price Books for three dollars and that makes me really happy for some reason.
 
@Pavel :|
 
I gave it it my dad, he like collecting these kinds of old manuals. We have a printed copy of the Unicode Standard, Third Edition.
 
@Pavel perl -e'print":| "x2'
 
4:59 AM
0
A: Sandbox for Proposed Challenges

BeefsterBananagrams Solver code-challenge string Bananagrams is a tile-based word game where you race to make crosswords and use all your letters before everyone else does. In the original game, finishing your crossword allows you to say "peel", causing everyone to draw another letter tile. Whoever f...

 
5:15 AM
1
Q: Word Search on a Torus

BeefsterThe Challenge Given a list of words and a grid of letters, your job is to determine which of the given words can be found on the grid in all 8 directions (forward, backward, up, down, and the 4 diagonal directions), much like a word search. The grid is toroidal, so the grid wraps around on the e...

 
 
4 hours later…
9:15 AM
@Mr.Xcoder Mr-Xcoder created a repository Mr-Xcoder/test-website 20 seconds ago... hmm
 
@Soaku Yes?
 
@Mr.Xcoder Nothing, I entered github and saw this.
 
10:10 AM
@Downgoat in the grad-design userscript, the settings button (the one where we can change propose=>porpoise) appears to have disappeared from the navbar
 
 
2 hours later…
12:30 PM
oh no... what should I do if I don't want to hammer something I think is a duplicate, and just leave a close vote?
I'll leave a comment I suppose ><
 
12:54 PM
@Lynn You don’t have a choice, unfortunately...
 
1:09 PM
0
A: Sandbox for Proposed Challenges

flawrPalindromic Sum code-golfmathnumberbase For some all bases g ≥ 5, we prove that any positive integer can be written as a sum of three palindromes in base g. This is the theorem proven in this paper by Cilleruelo, Luca, Baxter. Challenge Given a positive integer n and a base g ≥ 5 find t...

 
1:24 PM
@Lynn Edit out the tag, VTC, rollback. (don't)
 
1:43 PM
0
A: Sandbox for Proposed Challenges

l4m2Take an expression containing these functions, check whether it's true: 1 int one() 1 - int neg(int) -a + int add(int, int) a+b * int mul(int, int) a*b > bool gt (int, int) a>b & bool and(bool,bool) a&b | bool or (bool,bool) a|b % bool any(var, expr) whether a be any value ...

 
Is there anything in J that is similar to Jelly С? (repeat with accumulation)
Wow. Why are there only 17 users here?
Normally there are twice as much...
 
CMP: what should Canvas return for 1/0? It's either 0 or 1 (or maybe the dividend?) but that doesn't make much sense, or Infinity, but breaks on pretty much every mathematical operator
 
Error out? Sometimes error can be useful.
 
@user202729 golflangs & erroring = bad golflang. 9/10 times it won't be useful
 
(for the Google challenge perhaps?)
 
1:54 PM
@user202729 yeah I noticed that and my first thought was that the user list was glitching out :p
 
Then...
I don't know. Ideally it should return a result that would minimize the bytecount for commonly generated constants.
 
I think imma go for just returning the dividend as that preserves the sign and acts like nothing happened
 
2:29 PM
36 mins ago, by user202729
Is there anything in J that is similar to Jelly С? (repeat with accumulation)
 
2:39 PM
0
A: Sandbox for Proposed Challenges

NeilQueuez A typical stack-based lanaguage uses nilads, monads, dyads, and occasionally operations with larger numbers of arguments. As each operation is processed, the values are stored on a stack, so that if you want to apply an operation to the result of other operation(s), you simply invoke thos...

 
2:53 PM
^:(1 4 5) is 1st 4th and 5th iteration in a table
^:(<5) is 0 to 5
saves one byte compared to ^:(i.5)
and ^:a: is like ^:_
@user202729 ↑
and there’s that thing where x f@[&0 y is equivalent to f^:(x) y
works with a: and _ but not negatives for some reason
 
3:08 PM
What does the m, u, v denote? Noun and verb?
 
m and n are nouns
v and u are verbs
 
@FrownyFrog It does work for negative for me. tio.run/##y/r/PzU5I18h3lBBw1BTTVtBw1Tz/38A
No it doesn't. That's only for specialized dyads.
 
that’s not even the @[&0 thing
or is it
 
If J were designed for code-golf, they would specialize that so it's invertible. In real life, there is no point in composing a verb to [ and then right-bond to 0 (that is, no-op).
 
i don’t understand
it works with a:
but not negatives
 
3:17 PM
Because f@[&0 ^: _1 doesn't work either.
 
NB. they both error
echo -:@[&0 ^:_1 (1)
echo _1 -:@[&0 (1)
 
I mean a: is an empty box, it already has to be fairly specialized to understand what I mean by a:
am I being dumb
 
^: is specialized. Dyadic & just converts to ^:.
 
right
 
3:22 PM
In chat.stackexchange.com/transcript/message/44426237#44426237, the latter directly converts to the former.
And @[&0 is not specialized to no-op.
 
>the latter directly converts to the former.
how do you know?
 
Because why not...
> x m&v y ↔ m&v^:x y
x u&n y ↔ u&n^:x y
 
ohhhhhhh
thanks
it’s a nop but it’s still there, and it messes it up
well it should have an inverse
it’s 2018
 
J is not designed for code golf.
(Because no one use it, no one specialize it)
(it would be good if they just specialize /:\. to construct a suffix array and +//.@(*/) to do FFT)
 
/:\.?
what do you mean?
 
3:33 PM
Sort by suffixes of (a string).
For example assume st=:'string$' then (i.#st)/:[\.st is its suffix array.
Oops, I missed a [.
 
 
2 hours later…
5:06 PM
Jan 30 '16 at 20:42, by Optimizer
> Jon Skeet can make PPCG graduate
Where is he when you need him...
 
5:26 PM
CMC: given number N, 1) calculate M = N mod 256, 2) convert M to binary and call it B, 3) pad B to 8 bits and call the result P, 4) reverse P and then join the bits in a string with ][, prepend [ and append ]
 
0
A: List of bounties with no deadline

xnorProve the black magic formula I'm offering 250 rep for a write-up proving my black magic formula for the number of triangular lattice points within a given distance to the origin. The proof should be well-presented, accessible without loads of math background, and self-contained. By self-contai...

 
@EriktheOutgolfer M=N, so the first step can be skipped
 
ngn
@EriktheOutgolfer APL: ,'[',']',⍨⍕⍪⌽(8⍴2)⊤N
 
can this be shortened using ⎕JSON?
 
@Cowsquack I mean M=N%256, you can see I used = and not , and it's mod 256 and not (mod 256)
 
ngn
5:33 PM
@Cowsquack I'm not sure, there's no , between ] and [
 
@ngn uh, you can't assume the input is in a variable...
 
ngn
@EriktheOutgolfer ok, then: ,'[',']',⍨⍕⍪⌽⎕⊤⍨8⍴2
 
@EriktheOutgolfer Canvas, 18 bytes
 
ngn
@Cowsquack actually, you were right about ⎕json: ∊⎕json¨,¨⌽⎕⊤⍨8⍴2
 
you missed the comma in between the ]['s
 
5:41 PM
because it doesn't exist, yes
 
oh, I misunderstood the cmc
 
@EriktheOutgolfer GolfScript, 5 bytes: ~]zip
 
@EriktheOutgolfer what
 
@EriktheOutgolfer what
 
6:00 PM
NaN%
 
6:17 PM
@FrownyFrog please use infix for percentages
 
6:45 PM
@flawr huh
I mean, X% doesn't even take a second argument
 
7:20 PM
@EriktheOutgolfer but it makes it easier to ad promilles etc
 
that kind of already exists, and it's called division
 
@EriktheOutgolfer 1%2‰3‱4
 
ah, so something like 0.12345 would be 12#3#4#5
 
(tenths)%(hundreds)‰(thousands)‱(ten-thousands)
not confusing at all :)
 
I now have the best possible reputation. It's a 502: Bad Gateway Error
now i just need 2 downvotes so i'm an internal server error
 
Anonymous
7:33 PM
@EriktheOutgolfer Actually, 22 bytes: ├8'0*+8±@tR"]["j'[+']o
 
hm, maybe you can save a byte if you can do something along the lines of Python's (. . .).join('[]')
 
@Mego for a second i thought you were correcting yourself/erik
lol
 
yes, that's pretty much the intention for naming the language as such
 
Anonymous
@moonheart08 That's the joke with the name :P
 
Anonymous
7:36 PM
@EriktheOutgolfer I do use str.join with j
 
I meant on the '[+']o part
well, if j takes arguments in the reverse order, then you're out of luck
(and, yes, I still get a weird feeling when I start reading the solution before my consciousness kicks in)
ah, it looks like you can't do that, what a pity
 
8:43 PM
wait ive just noticed
week starts with sunday in the us
and sunday is weekend? wut
 
ngn
8:56 PM
@betseg it makes sense: sunday is on one end of the week, saturday on the other :)
 
@Pavel can somebody give me the raw image from here
don't have RES right now to disable CSS
and dear god nope not going into that subreddit
 
ty
and oh dear god that possum
oh nvm that's a cat
 
9:26 PM
@Riker What is that subreddit? I was on r/all
 
@AdmBorkBork 100/100! Only 0 left to go! :P
 
@DJMcMayhem so, 1.07 * 10^-156? r/unexpectedfactorial
 
@DJMcMayhem what?
is it a comment Adm made somewhere?
 
9:43 PM
Yeah, he's been mocking me for not getting Socratic yet
 
10:08 PM
Hey @ConorO'Brien remember all that stuff I said about CGameMovement a couple days ago? Turns out it's all wrong for TF2
Your forwardmove doesn't seem to matter at all, just that it's not 0
It accelerates to the class's speed no matter what
BUT
I can't find where it does that anywhere
mv->m_flForwardMove isn't modified anywhere else, it should come from the usercmd
What gives
I hate this
 
@Pavel just the dumbest stupid stuff ever
and the css is horrifying
@quartata is that user from valve?
or just somebody hosting a mirror of the source
@betseg til that gem existed
 
@Riker No, this is the leak of the 2007 TF2 source ported to Source 2013
 
ah cool
 
this game sucks
 
also @quartata found this gem
 
10:15 PM
snort
 
winsalot isn't much better in irc
 
wait, what is that fork
"Spoonbender"
 
slashem extended?
looks like an insectoid medium(?)
mediums are reasonably fun but only if you don't mind the starting weapon that makes everything dark
dev commented below so looks liek it
 
@DJMcMayhem oh, that
 
11:01 PM
user image
5
♪ ~black magic~ ♪
 
11:17 PM
@Lynn ???
 
11:44 PM
@Adám OMG someone voted honest.
 
@Dennis TMI.
 

« first day (2653 days earlier)      last day (2193 days later) »