« first day (2691 days earlier)      last day (2152 days later) » 
00:00 - 18:0018:00 - 23:00

6:08 PM
Is there an OOP stack-based language?
 
factor
 
hmm
I expected a PPCG language, I'm a bit surprised to see a practical stack-oriented language. And it looks kinda golfy
 
> Begin deployment for all users on sites with custom themes. Plan is to do this roughly by site age, though we reserve the right to vary the order due to implementation concerns.
> though we reserve the right to vary the order due to implementation concerns.
We're screwed
 
it's only really necessary on SO
 
That's design, not leftbar
 
6:17 PM
About the bar, it comes with a lot of bugs and destroys margins on smaller screens, making SO look really terrible
 
Though speaing of SO, the black text of the SO logo has no contrast with the background.
 
Is it just me or the reputation count is now grey?
 
Where?
 
norepro
 
The main page
 
6:27 PM
@Mr.Xcoder it is
 
Of? PPCG? Yes, it is
 
Looks like the silver medals badges color
 
color: #535a60
Certainly not black
 
I've noticed it previously too.
 
6:27 PM
It used to be white, no?
 
Oh are we talking about SO
 
No we're talking about PPCG
 
no, PPCG
 
It's the same on other boards too
 
I don't have 26.5k on SO lol :P
 
6:28 PM
At least on Boardgames.SE
 
...what? chromes extensions stopped working so I decided to restart. Now almost everything seems to be gone. Passwords are saved though
 
@dzaima easy to fix, use FFQ instead :p
 
@J.Sallé chromes devtools are awesome though
 
lol my latest git commit had a digest a7feeeed
 
& I've lost all my tampermonkey scripts & styles D:
 
6:32 PM
@dzaima ah, I see there's a reason people still use chrome then :p
No backups?
 
Umm, try resyncing?
 
FF is very bad...
it wont even load google.com
 
@FreezePhoenix huh
 
@FreezePhoenix Works for me.
 
6:34 PM
figured
Im just unlucky
 
seems the whole /home/dzaima/.config/chromium dissapeared..
 
@dzaima change your SO password NOW
Change them ALL
Your config directory missing is not good.
 
@dzaima Have you tried resyncing? :v
 
@Soaku what do you mean resyncing
 
@dzaima If you were logon in Chrome, then you should be able to sync your data
Everything should be back
 
6:37 PM
@Soaku I dont though
@FreezePhoenix what why what should I do right you answered that
 
The jQuery creator is writing a book on GraphQL, and it's pricing is one of the biggest rip-offs I've ever seen. Almost a scam: graphql.guide
 
Just reset the paswords you had saved
Sorry I got a little ahead of myself
 
@FreezePhoenix yeah it's not like he lost his shadow files
 
Actually that would be better for him
Hashes are irreversible
 
Irreversible, yes. Not un-bruteforceable
If your pw is weak it'll be easy to bruteforce
 
6:47 PM
But the browser can't hash the password, it retrieves it later. You can even see your passwords in the settings
 
@mınxomaτ are you sure that prices won't raise "upon completion"?
 
@Soaku Retrieved from a remote server.
 
also, nice, a book has plans
 
@FreezePhoenix Makes sense, I'm stupid
 
@EriktheOutgolfer Eh. I care more about the fact you can pay $89 for "the full book", or $249 for the book with all chapters. I mean, WTF.
 
6:49 PM
@Soaku I'm not even sure of that. That just makes sense.
 
@mınxomaτ there's a fourth plan too
$749, "Training"
 
(It keeps triggering me - if anyone of you ever decides to make a MD parser, make end lines a slash or backslash, not fricking 2 spaces!)
 
Still no paperback though
 
you mean, the real deal? I'm not sure if printing a beta is a smart idea...
 
@Soaku Go into the source and change it
Heck...
@Soaku Is that all you want?
 
6:51 PM
@mınxomaτ I thought that was a good thing at first, then I read the plans
 
@FreezePhoenix I'm not Github Microsoft employee.
 
@Soaku No... I'm saying change a local copy
Just means you can't distribute your copy
 
@FreezePhoenix But I'm publishing it online on Github. I can't change their online parser
Actually, my luck, Github supports backslashes
But a lot of other MD parsers don't.
 
> Day-0 DLC has arrived to technical literature. John really is ahead of the curve. Errata can only be accessed via microtransactions. And loot boxes have a chance to drop full code samples... the F2P version leaves everything as an exercise for the reader.
3
 
@Soaku you can add it to the JKell build
 
6:53 PM
> microtransactions
goodbye
 
Uff, Commonmark supports it too. So I'm not so "rip".
 
so, there's also a fifth plan
 
So never mind
 
"Team license", ≥$1000
 
Ah...
 
7:15 PM
Some advertisement...
0
A: Nominations for Language of the Month

Mr. XcoderGaia Interpreter | Documentation | Online interpreter Gaia is a stack-based golfing languages created by PPCG used Business Cat about a year ago, in late May 2017. There are a couple of things that make Gaia a very good competitor for the Language of the Month event: Terseness and Ease of ...

 
We've already got 4 lotm's? Times goes quick
 
I think the next one will be Japt, which I am quite happy about. I've been meaning to learn it well for a while :)
 
I'm happy for it too
 
7:56 PM
question: why can Javascript only seem to handle two keys being pressed down at once (with document.addEventListener("keydown", f))?
 
@HyperNeutrino do you have a crappy keyboard
 
no I think my keyboard is fine, it can process multiple keypresses I'm pretty sure (otherwise I would've noticed while playing video games)
 
well i doubt it's javascript not being able to process more keypresses
 
my keyboard is kinda weird. It detects 3+ keys at the same time, depending on which you press
 
It appears that when you press three or more keys at once, it stops detecting any more keys down until you lift one. (Tested with Firefox 22) — Qvcool Jul 28 '13 at 22:10
 
8:06 PM
but it might be related to javascript's ability to determine which keys are pressed before events fire
 
and it's not fault of JS, because this website works
 
for reference, I'm trying to press q, w, and e at once
@Soaku yes but what if you press Q W and E all at once
 
if i hold down 4 keys all at the same time and keep them held, i have a javascript event firing for all 4 of them
 
@HyperNeutrino What is the problem?
 
(using chrome)
 
8:07 PM
it works on the webpage
 
but if i hold down 3 and then press a 4th
the 4th is the only one that fires
even though i still have the other three pressed
 
gtg
 
@Soaku it only shows Q and W pressed, the third one doesn't get registered
have this problem for both chrome and edge
it appears that if I press and hold Q, W, and then E in this chat box, it will type "qwwwww...."
idk might be my keyboard? I'm wondering how I didn't notice that before if that's the case
 
CMC: This simple SO question, with any consistent value instead of 0 being acceptable. You should take the second list as input either as a list of lists, a list of tuples, or a list of integers, whose pairs of two consecutive elements represent the tuples, or as a dict. [2, 4, 6, 7, 8] , [(4,6), (6,8), (8,10)] -> [0, 6, 8, 0, 10]
 
@HyperNeutrino if i press and hold Q and W at the same time then press and hold E afterwards it types: "qwqwqwqwqwqwqweeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee..."
 
8:10 PM
oh huh interesting. I don't think I've ever found a computer before that can type two characters at once
actually on school computers if I press two keys at the exact same time it will type them both
if I press Q, W, and E at the same time, then nothing gets typed
 
0
Q: Divide or multiply (3 | 2)

Muhammad SalmanChallenge : Given a sequence of length A, in some random order, rearrange it so it fits the rules. Rules : Take some integer a , and then performs on it A − 1 operations. The operations are : divide the number a by 3 (iff a multiple of 3) multiply the number a by 2 (iff a not a multiple...

 
ngn
@Mr.Xcoder k: {(*|+y)(*+y)?x}
 
@Dennis bug: Œṙ is unusable
 
@Mr.Xcoder Proton, 18 bytes: dict+((.)&get)+map
Somehow the pointfree notation managed to work for once
 
ngn
@Mr.Xcoder k: {(!/+y)x} (but it doesn't work with the current version on tio)
 
8:24 PM
and it beats the other version too :D a=>map(dict(a).get)
@MuhammadSalman For your /3 *2 challenge, you could just define 3 to be either a multiple or not a multiple of 3. I would say it should be considered to be that. Also, I don't see why 6 -> 12 because 6 is a multiple of 3 as well. I'd say that 9 -> 3 -> 1 -> 2 -> 4 -> 8 which is what my current program gives.
 
@HyperNeutrino Nice
 
I have long awaited the day Proton's golfability actually makes it shorter :D
 
ngn
works with oK: {(!/+y)x}
 
Also Proton does not have inline assignments, right?
 
yes it does
 
8:28 PM
Example please?
 
assignments are expressions (like C++ and Java, unlike Kotlin and Python)
 
I think I remember not being able to use it once... for some reason... If I reproduce the error I'll let you know
 
@Mr.Xcoder hm alright. might have something to do with the fact that proton is only barely functional :D
wat
 
8:31 PM
how did that happen lol... caret reply?
 
yeah apparently :P
I thought I did a ^^ but apparently not
 
@HyperNeutrino Could you add inline assignments to Proton golfing tips?
 
hm sure
 
@HyperNeutrino >____> I've actually used it myself just a few days ago
 
lol :P can you give me an example of where it becomes golfy
 
8:34 PM
@MuhammadSalman remember, there's the sandbox, I recommend you to use that first until you become confident that you can write challenges with very minor to no flaws (2 years practically in here, I'm still not that confident :P)
 
0
Q: Fun with strings and numbers

newguyHere's a programming puzzle for you: Given a list of pairs of string and corresponding number e.g. Input sample one [[A,37],[B,27],[C,21],[D,11],[E,10],[F,9],[G,3],[H,2]] Output another list which will have just the strings in the following manner Total count of any string should be exactly...

 
@HyperNeutrino +1'ed thanks
 
yay np
 
@HyperNeutrino Inline assignments are very often used in JS, so they could be golfy in proton too
 
8:36 PM
yes, probably. I've also seen them used in Java, though I don't see Java around much lol
 
8:54 PM
@Zacharý I just noticed that Iverson defined ∩⍵ as ⍵[⍋⍵←∪⍵] (i.e. the ordered unique)
 
@Adám .___.
 
@Zacharý Why the long face?
 
CMC: Remove one occurrence of each element from an array (e.g. 1 2 3 1 5 6 5 => 1 5)
@Adám Where did you find out that information...
@Adám You can store into ⍵?!
 
@Zacharý In some APLs you can. The formula is the point here.
 
ngn
9:01 PM
@Zacharý k: {x@&~(!#x)=x?x}
 
@ngn Equivalent to mine, right?
 
ngn
@Adám almost
 
@Zacharý Jelly, 7 bytes: Jḟ⁸iⱮ¤ị
 
@ngn Well, {⍵[⍸~(⍳≢⍵)=⍵⍳⍵]}
 
RAD, 1 byte: (I asked the CMC to see if I should change to Iverson's version, but then I realized Iverson's definition will only be two bytes long)
 
ngn
9:03 PM
@Adám exactly :)
 
was definitely a good decision to put into Jelly.
 
@ngn Why @&? Is there no /⍨?
 
I agree. Along with the other one-byte aliases for 2-byters because 05AB1E can really wreck Jelly on some challenges where both have the right builtins and both are used monadically (Jelly monadic chains are basically stack-based)
 
ngn
@Adám there is no /⍨
 
@Adám Same byte count, no?
 
ngn
9:06 PM
more precisely, @& is the /⍨ :)
 
@HyperNeutrino Again, thank you very much for saying that modgrammar exists!
 
o no problem :P it is pretty great
 
@Zacharý Operators and Functions section 16. See also Rationalized APL and A Dictionary of APL (a.k.a. "Dictionary").
@ngn Yeah, I guess.
@Zacharý True, but different algorithms really. x@&y is x[⍸y].
 
@Adám The latter makes more sense to me than /⍨ does.
@Adám i{a OH NO J HAS INVADED (Kidding of course, but those unbalanced parens/braces bug me)
 
@Zacharý Jelly, 3 bytes: œ-Q (removes rightmost occurrences)
 
9:13 PM
Well, I was testing Adám's APL solution in RAD, and caught a bug, so thanks!
 
@Zacharý It was a gradual development. APL … Ops & Fns … Rationalized … Dictionary (which includes an ASCII transliteration scheme using @ and @@ as "inflections") … APL\? (which uses . and :) … Tacit Definition … J.
 
ngn
@Adám ∊⊢~¨~⍨\
 
@ngn yeah, I often forget about `` for a moment too :P
 
ngn
bloody markup, gets me every time...
 
and yeah, Adám's did seem long tbf
 
9:26 PM
in The APL Orchard, Feb 26 at 15:47, by Erik the Outgolfer
good luck explaining ngn's cumulative reduces, they're just so packed together :D
 
@Adám did you try to explain something written by ngn lol
take a few minutes, use pen + paper, and then explain calmly
 
9:55 PM
Hi, what is wrong with this code :
const char * even_or_odd(int z) {
return z % 1 == 0 ? "Even" : "Odd";
}
 
language?
C?
 
C (clang)
 
can you give a TIO link please?
 
You can't put a function inside main
 
9:57 PM
Okay !
 
first of all, put the function outside...
 
Okay, done.
 
9:59 PM
finally, parity check is mod 2, not mod 1
 
Oops, forgot that part. Scrap ! (stupid me). Thanks @EriktheOutgolfer , @Zacharý
 
10:15 PM
@HyperNeutri⍝ ...
Well that's weird
@HyperNeutrino, is RE('[#&/\\⌶¨⍨⌿⍀⍫⌸⍁⍂ϝ⌾ō]') supposed to have one, two, or four backslashes?
NVM, I got it to work.
 
10:37 PM
1
Q: Find elements in an array computing a given function value

versatile parsleyGiven: a function f(a, b, c, d, e) = a * b / c + d / e an array x = [x1, x2, x3, x4, ..., xn] of non-distinct values a target value k What is the most efficient way to find 5 distintict indices xa, xb, xc, xd, xe from x such that f(x[xa], x[xb], x[xc], x[xd], x[xe]) = k?

 
10:48 PM
@LeakyNun Please elaborate.
Preferably in the Jelly room.
 
00:00 - 18:0018:00 - 23:00

« first day (2691 days earlier)      last day (2152 days later) »