« first day (2439 days earlier)      last day (2396 days later) » 

3:01 PM
> 9gag
 
sigh
 
@flawr Is your piano considered a valid language? Can it add numbers?
 
@Pavel In base 12 I'm sure there's a way
Prime numbers are consonant chords, non-prime numbers are dissonant.
 
@AdmBorkBork Also I just remembered constant output challenges don't need to be answered by a valid language.
 
Hello everyone o/
 
3:12 PM
\o
 
Actually, that'd be an interesting CMC. Given a number in base 10, output its corresponding piano chord
Just need to figure out the conversion
 
@ATaco Mathematica has access to the Google Books, which has the Bible in its database. So yes. Mathematica does know about the Bible.
 
in Jelly Hypertraining, 12 mins ago, by Mr. Xcoder
CMC: Given a list of positive integers, return those that are closest to another given integer. (if more are closest, you must output them all)
[3, 4, 5, 7, 7, 8, 7], 6 -> [5, 7, 7, 7]
 
@Mr.Xcoder MATL, 9 bytes, ti-|tX<=)
 
3 bytes in Jelly
 
3:17 PM
@Mr.Xcoder come on
 
@LeakyNun 2 bytes?!
 
@Mr.Xcoder no I mean the challenge is just trivial in Jelly
3 bytes
 
@Mr.Xcoder APL, {⍺/⍨{⍵=⌊/|⍵}|⍺-⍵} really should be golfable but I have to do
idk if SOGL will beat APL :p
 
Ven
could use some forks
 
@Ven I know, I just don't know how to
 
Ven
3:22 PM
@dzaima You can start off by removing the explicit arguments on the left side: {⍺/⍨{⍵=⌊/|⍵}}|-
 
@Adám How do I find max/min in APL?
 
Ven
@Pavel of an array? ⌈/ (reduce)
 
@Pavel and
 
@Adám I tried that:
      ⌊(2 4 6 3)
2 4 6 3
 
@Pavel ⌊/(2 4 6 3)
 
3:26 PM
Ok
 
@Pavel No need for parens there.
 
I'm a bit confused by how / works now but I have to go.
 
Ven
@dzaima Then you can start fork-ing the left side itself. I think (⊣/⍨(⊣=(⌊/|)))|- is a correct golf of {⍺/⍨{⍵=⌊/|⍵}|⍺-⍵}.
 
0
Q: Why do box drawing characters not display correctly in monospace?

JonahConsider: ┌──┬───────────┬───┐ │hi│hello world│foo│ └──┴───────────┴───┘ In my terminal these same characters look like: Why does this happen given that code blocks are monospace? Is there any way to fix it?

 
Not the SOGL challenge :p
 
Ven
3:28 PM
Maybe @Adám can tell me if I can remove some parentheses :)
I think I can remove some by using commute.
 
well gotta go :/
 
@Adám {(⍵-⌊/⍵)/⌈/⍵} works, I think.
 
@Mr.Xcoder JavaScript (ES7), 61 bytes: (a,n)=>a.filter(e=>(e-n)**2==Math.min(...a.map(e=>(e-n)**2)))
 
@Mr.Xcoder PowerShell, a lotta bytes (137) -- param($a,$b)$c=@{};$a|%{$c[$_]=[math]::abs($_-$b)};for($i=0;;$i++){if($z=($c.Ge‌​tEnumerator()|?{$_.value-eq$i}).Name){$a|?{$_-in$z};exit}} -- Try it online!
 
@Ven use ]box -t=def to remove unnecessary parens for you.
 
Ven
3:32 PM
@Adám :O thanks!
> Usage: ]box on | off
ah well, not on tryapl I guess
 
@Ven Nope. Full APL and TIO only.
 
3:43 PM
@Adám Usage example please?
 
@Adám Why doesn't tio.run/##SyzI0U2pTMzJT///qLdP/… work?
 
@Pavel It does. But -t= doesn't matter when you are not using trains ;-)
 
Oh
<-- has no idea what a train is
 
Ven
    _____
 ___ |[]|_n__n_I_c
|___||__|###|____}
 O-O--O-O+++--O-O
7
 
3:50 PM
@Pavel Trains are sequences of functions, operators, and arrays where the two rightmost items are functions or derived functions.
@Ven Only the last line can be a valid APL train.
 
Ven
hahaha
 
technically all you've got there is an engine
 
@Neil with a tender. Kind-of a short train, no?
 
ty
 
3:53 PM
that's just the fuel tank though
 
Ven
@Adám Yes, I remember the examples Dan showcased at APL Paris'16. He then asked us to solve a few of them, and I got them right first :P.
 
4:15 PM
I awarded my bounty for the Tetris in CGOL question. Next bounty can be put up
 
0
A: Sandbox for Proposed Challenges

Ian H.An Euro-iginal Sequence Given a positive integer n output the n-th number of the euro-iginal sequence. Calculating the Sequence A number is part of said sequence if the number can be made up by using as many different euro coins or notes, but only one of each. Note that you don't have to cons...

 
@NewSandboxedPosts I can do this in 32 bytes in ES6
also 32 bytes in Python 2, strangely
 
4:45 PM
1
Q: Narcissistic array elements

Mr. XcoderDefinition Narcissistic 1 integers of an array think they are better than their neighbours, because they are (strictly) higher than their arithmetic mean. Neighbours are defined as follows: If the integer is at index 0 (the first), then its neighbours are the last and the second elements of ...

 
4:56 PM
I see we got a few new quicks
ƙ	Key. Map a link over the groups formed by identical items.	<monad>ƙ
ƭ	Tie. Cycle through a number of links each time called.
 
@Mr.Xcoder how would it "handle" it?
given an input list [a, b, c, d, e, f, g]
 
hi
i'm... back
 
I can see it should add those together
[b, c, d, e, f, g, a]
[g, a, b, c, d, e, f]
resulting in [b + g, c + a, d + b, e + c, f + d, g + e, a + f]
those are the neighbors afaict
 
@EriktheOutgolfer Well just ask Leaky
@icrieverytim welcome Back
 
i can't change my name back yet
 
5:02 PM
then it makes a new array doubling each element of the original array
 
[b + g, c + a, d + b, e + c, f + d, g + e, a + f]
[a * 2, b * 2, c * 2, d * 2, e * 2, f * 2, g * 2]
 
@cairdcoinheringaahing thenk :P
 
that's equivalent to halving the elements of the first array, and then it compares with <, then applies logical not, and finally includes the respective numbers
 
Ok, I would really like to see your breakdown, butI have homework to do. Sya @Erik
 
5:03 PM
bye
 
@Christopher2EZ4RTZ dealt with a long time ago
@cairdcoinheringaahing why? anyways, i do intend to (after 9 friggin days) but the name was mostly to keep track of pings during my suspension and a little bit of rebellion against the suspension :P
@HyperNeutrino because i thought it was funny :P whenever i joined chat, my avatar would float in and it would look like the meteor was crashing in with a warning saying *INCOMING*
@HyperNeutrino yeah sorry about that, i thought it was finite when i first saw it
...anyways sorry for spamming
 
I have an "installing Python" question
My friend wants to switch from Python 2.7 to Python 3.6
 
@EriktheOutgolfer do you get it?
 
Does she have to uninstall Python 2.7?
 
@Sherlock9 no
what os?
 
5:06 PM
@LeakyNun you mean the algo?
 
yes
 
Windows, I think. Let me ask
 
it seems like you're skipping over the right neighbor and instead landing on its own right neighbor
 
so let's say we have [a,b,c,d,e,f,g]
you want [g+b,a+c,b+d,c+e,d+f,e+g,f+a]
 
@icrieverytim It is Windows
 
5:08 PM
the elements don't matter
the point is that we're adding across two elements
and we can push back the offset later
 
doesn't seem like it's doing what you describe though
seems to return [g+c,a+d,b+e,c+f,d+g,e+a,f+b]
 
hmm?
I mean, adding across one element then
 
wait
so with the rotations we have
 
ṙ2+ this
 
[c,d,e,f,g,a,b] and [g,a,b,c,d,e,f]
like [a,b,c,d,e,f,g]ṙ2 -> [c,d,e,f,g,a,b]
 
5:10 PM
you're parsing the code wrongly
 
@Sherlock9 ah then a dual installation should work
 
@LeakyNun doesn't the + fork?
 
ṙ2+ṙ- is `ṙ2+8ṙ-
@EriktheOutgolfer no
dyad-dyad-nilad
 
@LeakyNun phew and for a moment I thought stuff forked like that
 
lol
 
5:12 PM
@icrieverytim Thank you very much. Also sent her this SO question, which may help: stackoverflow.com/questions/18907641/…
 
@Sherlock9 hi
 
so...it's doing something like [c,d,e,f,g,a,b]+[a,b,c,d,e,f,g] -> [c+a,d+b,e+c,f+d,g+e,a+f,b+g]???
 
o/
How are you, sir?
 
@EriktheOutgolfer yes
@Sherlock9 fine
 
@LeakyNun ...ooh
 
5:14 PM
Did you see Mego's frequency distribution challenge?
I posted a Haskell answer that I thought was pretty good
 
so in fact you then rotate it back to [b+g,c+a,d+b,e+c,f+d,g+e,a+f] with ṙ- so as to correspond to the correct neighbors
 
@Sherlock9 link?
@EriktheOutgolfer yes
 
And then Laikoni thought of another approach and knocked me out of the park
 
@LeakyNun seems legit
 
5:15 PM
although it doesn't seem obvious at first, but ¯\_(ツ)_/¯
 
oh, that one
considering that I posted a C answer there, I would say I saw it
 
@icrieverytim Don't try to rebel suspensions :P They can come down hard on you if the mods want to
 
if the mods want to - Pretty sure they are objective.
Yay homework was short :-)
 
@Mr.Xcoder glances around Don't criticise them :P /s
 
@Mr.Xcoder did your parents believe you? ;p
 
5:21 PM
@EriktheOutgolfer ಠ__ಠ No, I just finished 'em.
 
like, did they say anything along the lines of "so short homework? I'm sure you're lying"
oh
 
@EriktheOutgolfer Did your parents do that? Mine trust me :P
 
ಠ_ಠ Rod has my solution byte-to-byte
@EriktheOutgolfer It's s/id/o/.
 
whatever the point is got across
 
5:23 PM
Serious question: Have you ever (non-accidentally) allowed Chrome notifications on your first visit to a site that prompts for them?
 
@Mr.Xcoder actually it's ⁾id”o,œṠ
 
@Mr.Xcoder both are right
 
@LeakyNun No, it used to be /s/id/o
 
I actually typed "/s/id/o" though
 
oh ok
 
5:24 PM
that's what happens when you chat after karate class
 
Also, have you guys (JHTers) seen this PR? Should be helpful :P
 
I have commented ;p
 
@cairdcoinheringaahing Bah, Jelly with regex?! that is not in the spirit of Jelly and (also adds tryads?!?!)
 
@Mr.Xcoder Nope, no triads
 
o ok
 
5:26 PM
@Mr.Xcoder it's a quick
triads don't exist in jelly
 
Still, I am against :-)
@EriktheOutgolfer I know, hence the ?!?!
 
and I don't think they exist in any tacit system...
 
@Mr.Xcoder Too bad you can't downvote PRs
 
@cairdcoinheringaahing I can.
 
@cairdcoinheringaahing you can
select the "thumbs down" reaction
 
5:27 PM
Just did
 
@Mr.Xcoder are you actually against it? Why?
 
Because I cannot imagine Jelly with regex :-/ It's just bleh and meh to me
 
@Mr.Xcoder s/^/I don't like regex
 
5:31 PM
@LeakyNun Can you add an explanation to your Jelly answer when you have time? I am in desperate need of one :)
 
@Mr.Xcoder you can add one lol
 
not sure if he uses to add 'em :p
 
@LeakyNun I am in desperate need of one
 
@EriktheOutgolfer you can add one fo rme
 
5:33 PM
Yeah, Leaky has a tendency to forgo explanations. Presumably because they stop him FGITW'ing challenges
 
I think he's not so good at explaining stuff, it's not just answers iirc
I'm adding one
 
@EriktheOutgolfer thanks
 
CMQ: Do you write a program to validate test cases before posting a challenge?
 
@EriktheOutgolfer thanks
@cairdcoinheringaahing I even post the program
 
also it's not the easiest answer to explain tbf :p
 
5:35 PM
@cairdcoinheringaahing Sometimes
 
@cairdcoinheringaahing always.
Except for the rummikub one
 
I'm becoming more and more convinced that Joe Z. didn't write a sample program for Tetris GoL :P
 
@cairdcoinheringaahing I thought that was obvious :c
 
@Mr.Xcoder ಠ_ಠ I forget the ":P" to indicate that it's a joke
 
Internet emotions are hard.
8
 
5:39 PM
ಠ_ಠ
 
So are real emotions actually.
 
@Mr.Xcoder I could never understand if that was "disapproval" or "sad"
 
@LeakyNun hmm...wasn't the easiest to explain, may be somewhat gigantic
 
lol
 
Hey y'all!
 
5:40 PM
CMQ: What emotions are: ಠ_ಠ / ಠ_ಠ / ಠ_ಠ / ಠ_ಠ
 
@LeakyNun yeah, your unique coding style contributes to the size :p
 
@EriktheOutgolfer hmm
 
@EriktheOutgolfer Erik is talking about unique coding style ಠ_ಠ
 
not to say it's bad though
 
@Mr.Xcoder Huh? Wrong ping?
 
5:41 PM
@Mr.Xcoder huh? disagree with something?
 
@cairdcoinheringaahing No?
 
@Mr.Xcoder So why did you tell Erik what he was talking about?
 
@EriktheOutgolfer You have a very unique style too
 
seems like it
although mine is very different lol
 
I often can't understand anything from your Jelly answers
 
5:43 PM
just ask for an explanation if you want, don't have time to explain every one of them
 
@EriktheOutgolfer I know, some are just cryptic. hence I don't even bother to try to understand them.
I really want to see a Pyth answer to my challenge, see who outgolfs me :D
 
heh "cryptic"...mine can easily be a pain for even my eyes
 
@cairdcoinheringaahing "Erik is" means "You are" in that context
it's not really great english grammar but it's correct in some non-english languages
 
Yeah sorry for my terrible grammar
BTW I have 18 bytes for my challenge in Pyth.
 
hmm
don't spoiler yet
 
5:49 PM
I think I can golf it now
@EriktheOutgolfer If you are planning to post anything, can you please come to chat first to see whether we can golf it down?
 
I am tbf
pyth isn't very good at rotations though :(
 
@LeakyNun Oh whoops XD
 
@EriktheOutgolfer That's not exactly true
 
I mean, they're somewhat verbose
 
I have an 18-byter and a 23-byter
Dang no I cannot shorten it.
 
6:11 PM
@Mr.Xcoder does yours use t instead of .<? if it does it won't work
 
hello
is Dennis the responsible for TIO?
 
@sergiol Yeah, between that, Jelly, being a PPCG mod, and being a professor, Dennis is basically the most awesome person ever.
17
 
@EriktheOutgolfer Mine uses t but for subtraction, not tail.
 
alright then
 
6:19 PM
@EriktheOutgolfer ಠ_ಠ BAAH I must do it again, just accidentally CMD+Q instead of ALT+Q... Goddangbang it!
 
happens often :p
 
Wait lol is my test case wrong?
@EriktheOutgolfer What should the result be for [11, 6, 9, 10] in your opinion?
NVM I am crappy
 
[6, 10]
oh
 
[6, 10] is correct indeed.
@EriktheOutgolfer 19 bytes now. Can't find my old one
facepalm
 
So I'm introducing my friend to the wonders of code golf, and the weirdness of languages like Actually and Jelly.
 
6:25 PM
ಠ_ಠ Actually is not actually that weird
 
You say that from inside this circle
 
@Sherlock9 Not really
 
She's from much more of conventional programming background
 
The point is that it looks weird not that it is weird
 
@Sherlock9 That too, agreed.
 
6:26 PM
Show him APL
 
to those who don't have an idea, unicode stuff jumble instead of readable, comprehensible code is just weird
 
She actually asked if it was APL
 
hah
 
She had this question though: "actually, one question for my languange enthusiast companion.. why do you think a language like php is still around??"
 
@Erik Do you have anything working in Pyth rn or just gave up (as in you don't have time rn)?
 
6:27 PM
still working on it
 
Have a crack at that. I don't know why PHP is still around either
 
Anonymous
@Sherlock9 Because nobody wants to put it down
 
@Sherlock9 Because people tend to live in the past.
TIL Dennis is a professor ಠ_ಠ. Can anyone confirm?
 
read his profile
 
Thanks for your responses :D
 
6:29 PM
Yeah he teaches math I believe
 
@EriktheOutgolfer I don't think that Mathematician implies that he is a professor.
 
Feb 14 at 6:11, by Dennis
Trying to get tenure.
 
@Pavel You forgot being a boss and code golf :P
 
Although I do think he is a professor, because the math he uses sometimes is staggering.
 
IKR
 
6:32 PM
@Mr.Xcoder that's probably why he has the "golfer fame" around here
 
@EriktheOutgolfer 18 bytes now again. I forgot to remove the last character :-/
 
that Q huh?
 
@EriktheOutgolfer Nope.
 
@Mr.Xcoder Is the last character Q by any chance?
ninja'd :(
 
well it doesn't exist anymore :p
 
6:33 PM
Pyth has many implicit end of programs. Those can be Q, d, ), k, T, and so on...
The list is long, trust me :)
 
That was mostly for caird
 
@Pavel ಠ_ಠ That sent me into the depths on TNB, until I came back bearing proof that Dennis is not all-powerful:
Feb 14 at 7:15, by Dennis
@Pavel Joke's on you, I'm not old, not wealthy, and definitely not politically powerful.
@Mr.Xcoder I'd ask what each one does, but I'm actively trying not to learn Pyth :P
 
also, most of them don't "do"
 
@cairdcoinheringaahing 1. Q is first input line, evaluated, assigned to a variable that is mutable, d, k, T are all implicit lambda variables, and ) is the control-flow function ending (for if, while, for, blah blah blah).
2. I'm actively trying not to learn Pyth - ಠ_ಠ
 
6:37 PM
Q is also a variable
 
@EriktheOutgolfer yes but not a lambda variable.
 
yeah would be a pity if it was :p
 
Fixed
 
V has one implicit end of program that works in any number of different contexts
 
:O interesting... How?
 
6:40 PM
@DJMcMayhem aren't there at least implicit ñ, implicit ò, etc.?
 
<esc> is
 
@Mr.Xcoder Yep. All I know is that Q is the input, and ._ gets the prefixes. And, with that ignorance, I must leave o/
 
Bye
CMC: Given the length of two sides of a triangle L1 and L2, and the angle between them Ω, determine the area of the triangle.
 
@Mr.Xcoder Can't be bothered to code it, but 0.5(a*b*sinΩ) may help :P
 
@cairdcoinheringaahing may help - I know the formula lol
 
6:43 PM
@Mr.Xcoder testcase?
 
Just a second. Also you may choose between degrees and radians for Ω.
5, 6, Ω = 30 (deg) -> 7.5
 
jelly, 6 bytes: ÆS3¦PH
 
@EriktheOutgolfer Yes, but they're both ended by the same character.
 
(angle in radians)
@DJMcMayhem escape?
 
No, because escape can occur in the macro
It's 0xFF which I can't type from my phone
ÿ
 
6:47 PM
...it does? then you can allow nested ñ and ò loops :)
"...closed with ÿ"
 
A CMC that asks for the area of a triangle when given the sides would be more interesting, since it would require Heron's formula.
 
umm, is that already done?
 
Irdc
 
@EriktheOutgolfer No, because it's closed with either
 
@DJMcMayhem But <esc> is also implicit. So that's two.
 
6:49 PM
seems like a redundancy to me
also
1 min ago, by Erik the Outgolfer
"...closed with ÿ"
 
@Mr.Xcoder "I really don't care"?
 
@cairdcoinheringaahing yes.
 
@DJMcMayhem maybe you're just lazy? :p
 
@Pavel No, ÿ is implicit and acts like an <esc> under certain contexts
 
Pretty sure DJ knows what they're talking about :D
 
6:50 PM
@DJMcMayhem So 2ifooÿ outputs foofoo?
 
Yep
It's also a reason quines are harder
 
So what does ÿ correspond to in Vim?
 
There isn't really an equivalent
Because it's only significant to custom commands
 
Ah
*custom commands and i
 
Well... Sure
It's equivalent to <esc> or <CR> depending on context
Oh yeah, also _
 
6:58 PM
CMC: Given a list of integer values, halve the even ones and double the odd ones.
[4, 5, 7, 4, 6, 8] -> [2, 10, 14, 2, 3, 4]
 

« first day (2439 days earlier)      last day (2396 days later) »