« first day (2384 days earlier)      last day (2451 days later) » 

6:00 PM
@Okx I know, but this is fun
 
@Okx Gaia, 2 bytes: ṙ×
 
@HyperNeutrino We both have +110 today (for now)
 
btw the k in Okx breaks it into
 
@Okx chedar: x->[x]*x
 
6:00 PM
lol
 
(leading empty line)
 
Okx
Mr. Xcoder does something
 
@AdmBorkBork Stack?
 
@Okx yeah it's what Erik the Outgolfer does...damn I got outgolfed >_<
 
Okx  Main link
O    ord
 k   Discard everything before it???
  x  Repeat (input) (input) times
 
6:01 PM
@Okx We did that earlier. Erik the Outgolfer does the same thing.
 
Okx
The outgolfer outgolfed by a non-outgolfer
 
@Okx
14 mins ago, by Mr. Xcoder
1 min ago, by Mr. Xcoder
@HyperNeutrino loool, must look: Mr. Xcoder
 
@HyperNeutrino k actually does something weird
 
Anyone else want an explanation for their username?
 
@HyperNeutrino sure
 
6:02 PM
@HyperNeutrino wait Mego does something interesting...of course it's identity if it's a list of numbers but otherwise...
 
WHAT! Don't read if you cry ez. It is depressing. (Not NSFW FYI)
Huh
Not NSFW is double negative. Safe for Work
 
What does [monad][dyad][dyad][dyad] chain to
 
Okx
CMC: An alias I sometimes use, Olafooma, does the following in Jelly: If the input is an integer, echo the integer. If it is an integer list, repeat the list by the length of it. Examples: 4 -> 4, [5, 2, 4] -> [[5, 2, 4], [5, 2, 4], [5, 2, 4]]
 
@HyperNeutrino Try to explain this one: fəˈnɛtɪk/
 
6:04 PM
@Okx 2 bytes: ẋL
(full program)
oh wait no
 
Okx
why can't full names be the golfiest versions
 
fəˈnɛtɪk means identity in Jelly.
 
WẋL in fact
@Mr.Xcoder yeah and how is ə in jelly codepage or something?
or ɛ? or ɪ?
 
Jelly, another one: WṁJ
 
@EriktheOutgolfer It isn't. But it works and it's all that matters. I have no idea what it maps to
 
6:06 PM
well you can't claim 8 bytes if it isn't
and I think it maps to two empty lines or something
 
@EriktheOutgolfer Did I ever say it's 8 bytes?
 
I can double VTC my own answer. You put first dupe vote. and another puts one, then you tell community it is a dupe
 
so now we close answers too?
 
@Mr.Xcoder no, but if you piped it through a file instead of in UTF8, you couldn't do that
 
6:07 PM
Step Hen  Main Link, argument is z
S         sum(z)
 t        Trim the right argument from sum(z)
  e       Does this contain the right argument?
   p      Cartesian product with the right argument
     H    Halve each value
      e   Does this contain the right argument?
       n  Is the unequal to the right argument?
 
Okx
explain?!??
 
@HyperNeutrino so space is no-op?
 
Space is just a literal separator
 
Okx
not really
 
6:08 PM
If all 3 args are equal return 1
 
I am bored to extreme
 
11 mins ago, by HyperNeutrino
Dennis  Main link
D       Decimal digits of the input
 e      Does it contain the result of the right link?
  n     Not equals
   n    Not equals
    i   Index, find
     s  Split into slices
 
Imma go weedeat
 
Okx
AdmBorkBork is basically a cat program in Jelly... can someone explain?
 
I am sad that it doesn't bork stuff up
 
6:10 PM
@2EZ4RTZ actually 2
 
Stop creepy programs in Jelly (hmm, I might have just made myself and anyone around creepy)
 
@Okx the last k is deleting the whole program and the empty program is identity
 
Okx
oh
:(
 
@Mr.Xcoder creepy
Prints first arg
 
Wait k deletes the whole program? :o
 
6:12 PM
CMC: Given an integer / string representation of an integer, sum its prefixes converted to integer.
 
@Mr.Xcoder huh?
example?
 
Okx
@Mr.Xcoder neim 2 bytes <buitin for prefixes> <builtin for sum>
 
@EriktheOutgolfer 123 -> prefixes: [1, 12, 123] -> sum: 136.
 
Jelly: D;\ḌS
 
Okx
wow that's long
 
6:14 PM
Jelly, 5 bytes: D;\VS
 
@EriktheOutgolfer Brownie points for 5 bytes in Pyth
 
hey look 'ma no unicode!
 
D;\ḌS  Main link
D      Digits
  \    Cumulatively reduce by
 ;     Concatenation
   Ḍ   Convert each back to an integer
    S  Sum
 
@Mr.Xcoder 5 = impossible
but I can do in 6
 
Show me
I can do it in 5
 
6:15 PM
ssM._`
that's actually 6
 
@EriktheOutgolfer integer / string representation of an integer
 
Yeah
 
hey that way I can do it in jelly 4 bytes too
;\VS
 
Pyth: ssM._
ninja'd ;_;
 
6:17 PM
Ninja'd badly
 
only 1 minute geez
I'm not a Pyth user sheesh xD
@EriktheOutgolfer nice. I forgot I could take string input :P
 
> programmer
 
@EriktheOutgolfer Now do it in 05AB1E
 
like you get respect and salary from reviewers for it
@Mr.Xcoder 2 bytes
 
6:18 PM
(and I didn't even type the program lol)
 
@HyperNeutrino >_>
 
and no you don't take string representation of integer
you take integer itself
 
6:19 PM
@EriktheOutgolfer I know. 05AB1E automatically converts between strings and integers.
depending on the context
 
most of the time
 
Yeah
 
sometimes it does different things to ints and strings though
 
in theory if there was a language that could take one input as an argument with no flags
but the remainder as stdin
and that first input was treated differently
 
Give me a CMC for 05AB1E (and Hyper: if you solve it, at least spoiler first).
 
6:20 PM
would it count extra for bytes?
 
@notjagan No idea
 
CMC: Flatten a list without using a flatten built-in (subjective)
 
@HyperNeutrino how is that subjective?
 
@notjagan Depends. If the user needs to type extra bytes to get the desired behaviour, then yes. If it's implicit, then no.
 
6:21 PM
btw the builtin you're forbidden to use is ˜
 
the definition of built-in is subjective
 
Okx
@HyperNeutrino Neim, 0 bytes: Neim only has 1-dimensional arrays
 
@EriktheOutgolfer There might be some builtins that are borderline "flatten"
 
Okx
does that count? :P
 
6:22 PM
@2EZ4RTZ Hey look my life summed up in 3263 lines of JSON
 
"cucumber": 0.000132035478600301

Found that in the URL for me :P
 
@HyperNeutrino Target byte count?
 
idk haven't solved it yet. brb
 
@HyperNeutrino an example of what I thinking was if the program was run with <command> <program-file> <input>
but then the remainder of the inputs were stdin
 
@2EZ4RTZ "cucumber": 0.000134925896418281
@notjagan If the number of argument and program bytes typed by the character into the TIO program does not require an explicit flag of some sort, then no extra bytes.
 
6:23 PM
Man Hyper has a better cucumber score then me. :_(
 
I think
Ask on meta :P
 
I don't think this CMC is really interesting, because in challenges I'll always use built-ins. Can you give me something more "practical"?
 
You want practical programming with a golfing esolang?
¯\_(ツ)_/¯ alright I'll see what I can do
 
Nevermind, new main challenge
 
where?
 
6:25 PM
on Main
duh
> Python 'abc' and 'cba'
It's kinda boring though
 
@HyperNeutrino after a little looking, the question was already answered on meta, so I guess it should be good
 
0
A: Sandbox for Proposed Challenges

Magic Octopus UrnBomberman Given an input Bomberman board b, use the following characters to define the different bomberman tiles: X denotes the outer boundary of the board. X is always in each of the four corners of the board. X may only be on the boundaries of the board. - denotes an empty space. When a...

 
Would someone explain the downvote?
onvm
 
0
Q: What is the cucumber score?

2EZ 4RTZI found here and wanted some more information of what my cucumber score was supposed to mean. Other users have it as shown here. What does my cucumber score mean?

Mistook what you said
Lol
 
6:28 PM
@HyperNeutrino Better delete and repost
 
no it got reverted
 
Shoot
 
1
Q: Python 'abc' and 'cba'

Chris_RandsThis is a code-golf challenge specific to python. Your task is simple. Write a single code snippet that when executed in Python 2 prints only the string 'abc' and when executed in Python 3 prints only the string 'cba' or vice-versa (the outputs can be the opposite way around). The program should...

 
question: for that challenge, once the shortest answer is posted, the challenge is essentially dead, right?
also I'm sure someone can outgolf me but I don't see how yet lol
 
@HyperNeutrino Well, whatever. :p
 
6:34 PM
:P
 
@HyperNeutrino Yes, and no one is gonna give you golfing suggestions
 
yup :P
 
Okx
@HyperNeutrino are you describing code golf?
 
lol
no because most challenge allow multiple languages
this one is only a python 2/3 polyglot.
¯\_(ツ)_/¯ I knew someone would outgolf me sooner or later
namely The Outgolfer :P
 
Found another solution
 
6:40 PM
@Mr.Xcoder the solution you just commented on does work...?
o nvm
 
@notjagan It contained a typo.
@HyperNeutrino Remove your comment. The post has been edited meanwhile.
 
@HyperNeutrino Tied you
 
I spent a lot of time doing the math for neutrino's CMC when I realised I got it all wrong...
I tried solving f1'(x) = f2'(x) and that resulted in x = (n+m)/2 where n and m are the x-offsets of the circles
 
6:55 PM
I have found print(0**(1/2)and"abc"or"cba"), but it's too long.
I like it a lot though
 
huh ta.co is a link to taco bell apparently
 
Should I post it ^^?
 
@Mr.Xcoder 0** is the same as 0== but with higher precedence, you can get rid of the parens if you change
saves 2 bytes
 
the only issue is it's basically identical to Erik's answer
 
Thanks
 
6:57 PM
Acutally you can swap abc and cba, and get rid of the ==0 altogether
 
which is then exactly Erik's answer
 
print(1/2and"cba"or"abv")
 
@WheatWizard That's Erik's
 
Wait why not print("cba")?
What is the challenge here
 
it has to be reversed across python 2 and 3
 
6:58 PM
0
Q: Python 'abc' and 'cba'

Chris_RandsThis is a code-golf challenge specific to python. Your task is simple. Write a single code snippet that when executed in Python 2 prints only the string 'abc' and when executed in Python 3 prints only the string 'cba' or vice-versa (the outputs can be the opposite way around). The program should...

 
Oh I see
 
abc in 2, cba in 3 or vice-versa
I wonder if I can golf this: print('abc'[::-(1/2>0)|1])
of course, using the exact same method
 
I have a 41 byter :P
 
@HyperNeutrino Abstain from posting it
 
:P
print({int:'abc',float:'cba'}[type(1/2)])
 
7:00 PM
Really?
>_> >_> >_>
 
if you were to do that you'd be better off with a list and using type(1/2)==int
 
You can remove {},:,int,float,type.
 
@HyperNeutrino Why no print({.5:'abc',0:cba}[1/2])?
 
@WheatWizard forgot quotes
 
7:02 PM
@Mr.Xcoder and a t
@HyperNeutrino print({0:'cba',1/2:'abc'}[0]) is a byte shorter than that
 
fairly interesting answer
I would upvote it if you posted it, even though its not the shortest
 
I had one with round(.5) but it was way too long
 
I have this: print(["abc","cba"][int(1/2+.5)])
 
@Mr.Xcoder print(["abc","cba"][round(.5)]) is shorter I believe
but that's still way too long so I didn't post it
 
7:08 PM
@StepHen Should not work
 
@Mr.Xcoder it will
 
Python 3 does Banker's Rounding, Python 2 doesn't
 
guess I'll post it :)
@Mr.Xcoder oh right I forgot why it borked
 
7:10 PM
integers...?
vs. floats...?
 
ya
 
@StepHen You can use a dictionary to fix that
 
hm caird wants me to resurrect the OEIS challenge by posting the code verbatim from the OEIS page (I'd CW it). I'm wondering if I should
 
@WheatWizard is that shorter than just int(round(.5)) though? or do I not get what you are saying
 
It is 1 byte shorter iirc
 
7:20 PM
0
Q: Are different "versions" of the same language allowed?

MD XFI recently (this morning) extended Cubically to have an internal cube of variable size. The cube size is passed via an interpreter flag (-3 for a 3x3x3, -4 for a 4x4x4, etc). All mathematical operations will differ based on the size of the cube. Attempting to add 26 and print it would be a diffe...

 
CMC: given an array [a, b, c, d, e,...] return a+b-c+d-e+....
 
I'd like Python to say borked types when you mismatch them.
 
@Pavel SOGL, 9 bytes: č¶Ƨ+-čŗj→ (expects input on stack, could be 8 bytes if not for a bug)
 
The challenge is now open for other languages
@EriktheOutgolfer You should add #Python in the header.
cc @StepHen
 
@Pavel Well 99 has no arrays but assuming the values are in consecutive variables:
9 99 999 9999 99999 999999 etc...
9
Wait's that's wrong, 99 starts - not + :/
Well assume 999 = 0
 
7:33 PM
> assume 999 = 0
 
ono then the universe would bork
 
In femtoinches you'd never notice
 
ಠ_ಠ
 
@Mr.Xcoder done, thanks
 
CMC: Iteratively replace the "C"'s in "CMC" with "CMC". So 0 -> CMC, 1 -> CMCMCMC, 2 -> CMCMCMCMCMCMCMC
etc
 
7:46 PM
PowerShell 59 bytes -- Try it online!
 
a='CMC';$_.to_i.times{a=a.gsub/C/,'CMC'};$_=a
 
@HelkaHomba SOGL, 10 bytes: CMC”.{ CΙŗ
 
Uses -p
 
SOGL, 9 8 bytes: 2.I^ΖCMΟ
 
Jelly, 24 bytes (i.e. TOO LONG): ṣ”ML“CMC”W¤ẋj”M¶“CMC”Ç⁸¡
there's no string substitution as far as I know :(
 
7:53 PM
I am so freaking done, I keep being dumb and getting stuck on the fact that getting an HTML attribute in JavaScript returns a string
 
Anyone play dota here?
I just keep trying to find people :P
 
@2EZ4RTZ used to play LoL but it took up way too much time to do anything
 
@StepHen ¯\_(ツ)_/¯ not like LoL is even good. jkjkjkjkjk but ik how you feel. I burn time
 

« first day (2384 days earlier)      last day (2451 days later) »