« first day (2364 days earlier)      last day (2472 days later) » 

11:00 AM
doesn't work in python2 cos it's picky about encodings, I think Python3 assumes UTF-8
 
Carrot, ಠ_^*8^ಠ
 
Works in 3
 
yeah I know, that's why I posted it as a python3 answer :P
 
@Cowsquack Why do you have two ? (just curious)
 
do you mean the trailing ?
 
11:01 AM
@Mr.Xcoder he's repeating it 8 times and adding another eye, rather than repeating it 9 times and removing the trailing underscore
 
@Cowsquack I mean two s
 
@Mayube 21 bytes: print("ಠ_"*9+"ಠ")
 
@Mayube Got it
 
@Cowsquack Aren't you missing one ಠ_
 
Braingolf needs a "Repeat the stack" function
 
11:02 AM
no, 1^*1 in Carrot gives 11
 
Pyth, 6 bytes: P*T"ಠ_
 
@Mr.Xcoder @ Charcoal, 6 bytes: F⁹ಠ_¦ಠ
how do you type links inline?
 
Prints ಠ_ಠ_ಠ_ಠ_ಠ_ಠ_ಠ_ಠ_ಠ_ಠ on TIO, but it's OK on the Pyth compiler/executor
 
@LiefdeWen isn't in the codepage, also [text](link)
 
@ASCII-only TIO says 6 bytes
 
11:05 AM
@LiefdeWen [name of the link](link)
 
@LiefdeWen use -sl, it's actually 8 bytes
 
@ASCII-only thanks
 
@Mr.Xcoder O_o what codepage does Pyth use
 
@ASCII-only It uses SBCS
 
@Mr.Xcoder ... well that doesn't mean every char only takes up 1 byte
 
11:07 AM
Charcoal, 8 bytes: F⁹ಠ_¦ಠ
 
@LiefdeWen >_> it's 8 bytes I already said also wrong way around
 
@LiefdeWen But [F⁹ಠ_¦ಠ](link)
@ASCII-only It's 6
 
@Mr.Xcoder Braingolf, 14 bytes "ಠ_"9[b]$_&@
 
@LiefdeWen 8 not 7
 
@ASCII-only Sorry, i'm trying
 
11:08 AM
@Mr.Xcoder how are you so sure
 
In SBCS, is one byte long!
 
@Mr.Xcoder uh no it isn't?
 
@ASCII-only TIO says: 6 chars, 6 bytes (SBCS)
 
@LiefdeWen It assumes SBCS meaning it assumes every codepoint is 1 char
@Mr.Xcoder Huhwat (also well it doesn't exactly work on TIO does it)
 
Is there anyone here with macOS and gsed?
For some reason, I can't do $!N
 
11:10 AM
@ASCII-only I understand your point just made a copy paste mistake, sorry
 
SBCS isn't a codepage, it's a type of codepage
 
Are you even reading?
 
@LiefdeWen oh btw idk if it helps but for -sl output you just need to surround it with [] and add (link) to the end to post in chat
 
@Cowsquack I have a macOS, but not gsed
 
11:11 AM
ASCII-only just said that TIO blindly assumes every character is 1 byte when it's set to SBCS, this is not the case
 
@Mayube Ok, I trust you
 
well i said 1 char oops
 
on an unrelated note I can't believe nobody's cracked my braingolf post for this challenge yet o.O
 
@ASCII-only I am not a watch
 
like, it's only been 45 minutes but it's super easy
 
11:12 AM
@totallyhuman Then a painted-over stop sign?
 
@Mayube WTF: °Áݭїϳ{ًչםק{їϳэÁק{|э³קѡ|?!
 
glad to see your copy-paste works
 
but yeah it really depends on the codepage Pyth uses, I'm not sure it even properly supports characters not in its codepage (like Charcoal did until a while ago)
 
@ASCII-only take a closer look ><
 
@ASCII-only yeah, SBCS just means each 1 byte value represents a graphical (printable) character, but not what characters.
 
11:16 AM
@Mayube Usually SBCS only support the 256 characters they include, Charcoal had to reserve one to mark the next bytes as a Unicode character :P
 
@totallyhuman Yeah definitely a painted-over stop sign
 
It seems that all high rep users are against Fibtraction
 
@Mayube I am working on it
 
@Mr.Xcoder do you have homebrew?
 
11:17 AM
Found I character already :)
@Cowsquack I do
@Cowsquack I'll be glad to help you in ~15 mins
 
if you want to help me to test that thing in gsed, you can do brew install gnu-sed
okay
 
@Mayube manually decoding, looks like Klingon or something EDIT: wait wat
 
@Mr.Xcoder The decoded string is plain english
 
@Mayube Thanks for the tip
 
No problem ;)
 
11:22 AM
I am half the way through it
 
What's the suggested edit rejection reason for users who golf code for others?
 
@Mr.Xcoder oh are you now? :P
 
@Mayube Yep
 
What rejection reason should I use?
 
@programmer5000 Conflicts with author's initial intent
 
11:26 AM
@Mr.Xcoder what about a custom "don't golf code in an edit" reason?
 
@programmer5000 As you wish
@Mayube It ends with easy<something>
 
@programmer5000 It would be nice if we could link to one of these answers. Maybe something to add to the feature requests here
 
@Mr.Xcoder does it?
 
@Mayube I thinks so
Easy is mapped to э³קѡ, I think
 
so what's | and the character at the end? ;)
 
11:28 AM
@Mayube I don't yet know
Not !
 
well how did you get э³קѡ to easy?
 
@Mayube Somehow
 
Somehow™
 
Are you sure it is plain English (grammatically correct)?
 
Yes
it contains 5 characters of punctuation, not counting spaces
 
11:38 AM
Upper case?
I only found one capital letter
so far
 
pff I'm not gunna make things too easy
you already have the code that encodes it, that should be enough information by itself
 
I am two characters away from cracking it
 
@Mr.Xcoder original string is 24 characters long
 
I found 21
@Mayube Cracked, I think: C'mon this one's *easy*
 
@Mr.Xcoder that's 23
 
11:46 AM
That maps to the correct thing ...
 
No it doesn't
check the hex codes
 
How should I map a string to hex codes
 
check the byte-count of what you get from that string
 
41
Hmmmm
 
in fact you're missing 2 characters
 
11:48 AM
Did you include spaces?
 
there are 6 punctuation characters
 
@Mayube Hmmm
 
you're missing 2
 
@Mayube I got it
The output is: °Áݭїϳ{ًչםק{їϳэÁק{|э³קѡ|
The output you provided in your answer is: °Áݭїϳ{ًչםק{їϳэÁק{|э³קѡ|
 
I provided the byte values for a reason
 
11:51 AM
Yes, but then the output you provided contain unprintable chars, because if I put it on TIO, its byte count is 41 too
 
Nowhere in the spec does it require that your encrypted output contain only printable characters
 
@Mayube Ok
85 is one of them
And I cannot add an unprintable char in a SE comment, so
 
the original string contains no unprintables
Also what do you mean 85 is one of them?
 
NVM
@Mayube C'mon this one's !*easy*!?
 
No
 
11:55 AM
No, I think I have 1 more to guess...
 
wait what's the function in python
to override list(object)
is it just __list__?
 
@totallyhuman here
 
:P
anyways i figured it out, it relies on __iter__
 
@totallyhuman figure what out?
 
i wanted to be able to do list() on a custom object
 
12:10 PM
how did you figure it out :o
 
>>> class blah(object):
...     def __init__(self, idk):
...         self.idk = idk
...
...     def __list__(self):
...         return self.idk
...
>>> bla = blah([1, 2, 3, 4, 5])
>>> bla
<__main__.blah object at 0x78eb67a69ac8>
>>> list(bla)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: 'blah' object is not iterable
>>> blah.__iter__ = lambda self: (i for i in self.idk)
>>> list(bla)
[1, 2, 3, 4, 5]
 
alright
It seems that tuple also depends on that
 
mm
makes more sense than having __list__, __tuple__, __set__
 
@totallyhuman so list(obj) would be [x for x in obj]
Python CMC: an iterator that would give powers of 2 ascending
that means, 1,2,4,8,16,... ad infinitum
 
@Mayube C'mon this one's -*easy*5?
No
NVM
 
12:21 PM
@Mr.Xcoder do you python?
 
@LeakyNun I do
Oh, above
An iterator, hmmmm
 
def p(i=1):
 while 1:yield i;i*=2
 
Can you clarify the definition of iterator?
 
@Mr.Xcoder python has iterators.
 
12:22 PM
@totallyhuman nice
 
i don't think this is possible as a generator expression
 
0
A: Sandbox for Proposed Challenges

V. CourtoisHow good is my mahjong hand? Some challenges about mahjong already came out. This one will be more specific. Your goal is to calculate the shanten (minimal number of tiles needed for your hand to be a "waiting hand") of a riichi mahjong hand. What is Japanese Mahjong (or Riichi) The goal of th...

 
@totallyhuman neither do i
 
CMC: Given two positive integers, list all the powers of the first number up to first number ^ second number
5 3 -> [1, 5, 25, 125]
 
lambda x,y:[x**i for i in range(y+1)]
 
12:28 PM
@LeakyNun Can it get shorter: ^LQUhE?
 
@Mr.Xcoder I don't think so
 
Great
 
I want to solve a CMC in Pyth that is not mine...
 
>< stupid map
it's weird how map and list comprehensions always differ in byte count difference
 
12:30 PM
CMC: (cc @Mr.Xcoder) the n-th right truncation of the non-trivial solution ending with 5 to the 10-adic equation x^2=x
 
@LeakyNun ?
 
@Mr.Xcoder I don't think 1 should be there.
 
@Mr.Xcoder a normal number goes infinite towards the right
a 10-adic number goes infinitely towards the left
 
@Adám 5^0 = 1
 
@Mr.Xcoder 5^-1 = 0.2
 
12:32 PM
@LeakyNun I didn't even learn math functions yet
 
@Mr.Xcoder APL: ⎕*0,⍳⎕
Without the 0th power it is just *∘⍳
 
@LeakyNun Can you give a normal CMC for me to solve?
@Adám APL is golfy :)
 
@Mr.Xcoder Determine if an anonymous one-liner APL function needs braces. In other words, are there any unbraced s.
 
I don't know APL
Why do you do this to me?
 
E.g. <\ does not need. <\⍵ does need. {<\⍵} does not need.
 
12:35 PM
Pls let loose your vote clickers
5
Q: Is fibtraction a dupe?

Wheat WizardRecently this question caused a bit of a stir. The admitted goal of the challenge was to replace our old fibonacci question which the op felt was outdated. The question was closed twice by high rep users holding code-golf badges, and reopened twice by regular users. It currently has two additi...

 
@Adám And what exactly needs braces?
 
@Mr.Xcoder Whenever the character occurs outside braces, it needs braces.
 
@Adám Give me some more test cases, please
 
E.g. {⍵}{⍵}<\ does not need braces.
{⍵}{⍵}⍵ needs braces
 
Does ⍵{⍵} need braces?
{⍵{⍵}}?
 
12:38 PM
@Mr.Xcoder Yes, there is an outside the outermost brace.
@Mr.Xcoder Nope.
 
@Adám But how?
 
@Mr.Xcoder How what?
 
@Adám ⍵⍵⍵{⍵} -> ?
 
@Mr.Xcoder Needs braces.
 
@Adám ⍵{⍵} -> ?
 
12:38 PM
@Mr.Xcoder Needs braces
 
@Mr.Xcoder yup.
 
@Mr.Xcoder have you figured it out yet?
 
Couldn't I just wrap it in braces every time?
 
@Mayube No because I cannot convert hex to String
 
12:39 PM
@totallyhuman Nope, {{⍵}} is not a valid function.
 
@Mr.Xcoder why not?
 
Ah ok
 
@Mayube Because I am incapable.
 
@Mr.Xcoder Are you incapable of using google?
 
@Mayube I am
 
12:41 PM
Took me 5 seconds to find this unit-conversion.info/texttools/hexadecimal
 
@Mayube I am incapable. Discussion ends now.
 
You must have some kind of superpower cause all discussion ended :o
Anyways
 
@totallyhuman I have.
 
Pls vote guys
 
I could use these superpowers at times. Are you at service?
 
12:46 PM
It's like 1-1
And the vote ratio on each is ridiculous
And don't forget send teh codez
 
@Mayube c2 gives . 85 gives nothing
 
they are 1 character
 
I now am 1 char away
Found the second last one
 
Welp ok
Another hammer
 
Please read my comment before you're just like "Welp ok"
 
12:52 PM
Yeah no I read it
I agree it should be locked
But there is a lock function...
An actual one
 
Correct. But I'm not a mod, so I did the best I could in the meantime. For what it's worth, I think it to be a dupe.
 
@Mayube Is it on the international standard keyboard?
 
in that case, your close vote is completely warranted
 
I have sth like this :( C'mon this one's *easy*Â
 
although i will admit i'm a bit tired of the constant kicking of the door
 
1:02 PM
When did I VTC: marked as duplicate by Poke, Mr. Xcoder, AdmBorkBork code-golf???
I don't remember Voting to close
 
apparently you did :P
 
@totallyhuman 2 weeks ago or what?
 
Lol
@Mr.Xcoder no probably in the last week
 
CMC: "abcd" -> "abbcccdddd"
@totallyhuman I think on the 8th of July
 
var t="";for(i<-0 to s.length-1)for(j<-0 to i)t+=s(i);t
ok it's long
 
1:04 PM
@V.Courtois nice
@V.Courtois Language?
 
scala
 
@Mr.Xcoder 5 bytes in Pyth
 
@LeakyNun O_o I didn't even solve it yet
 
@Mr.Xcoder that last character's wrong
 
@Mayube I figured
 
1:05 PM
@Mr.Xcoder Jelly: Ėẋ@/€
Maybe a better way
 
@BusinessCat too long
 
The character you're looking for at the end of the string can be typed with 2 keystrokes on a standard US or UK keyboard layout
the other character you're missing can be typed with 1 keystroke
 
@Mayube Is it ^?
 
No
 
1:06 PM
á or sth, then. Let me figure it out
 
Is it bad that my keyboard has ggffvhyyffcvvhygfvvgghgfcvbhuytgvvgytfcv in the dictionary
 
@Mr.Xcoder how do you type á in 2 keystrokes?
 
@Mayube ' + a
It's confusing because I am using a Mac!!!
 
@Mr.Xcoder that just types ' then a
 
@LeakyNun Ok then: ẋ"J
 
1:08 PM
@Mayube I am using a MAC!
 
s->{String t="";for(int i=0;++i<s.length;for(int j=0;++j<i;t+=s.charAt(i)));return t}
 
@Mr.Xcoder 35 in PowerShell -- -join([char[]]"$args"|%{"$_"*++$i})
 
Inconsistent standards >.>
 
It can be typed in 2 keystrokes on windows and mac, and linux
 
@BusinessCat better, but can be golfed
 
1:09 PM
@LeakyNun how can you golf a 3B code?
 
xJ then
 
Better
 
@BusinessCat bingo
 
Look, no unicode
 
1:10 PM
My only jelly answer uses no Unicode ;-;
 
@V.Courtois argument
 
1:11 PM
@Mr.Xcoder Thanks
 
wtf tho
 
What's wrong?
 
2B
I don't understand anything to those languages
 
Hehe
 
@Mr.Xcoder J, 9 bytes: #~>:@i.@#
 
1:13 PM
@LeakyNun 5 bytes?!
 
@Mr.Xcoder yes
 
plus, it's super fast :0 i don't even understand what the compiler does
 
@V.Courtois I wouldn't call 0.932 s super fast
Jelly is interpreted by Python which is interpreted by C
 
TIO dies when I try to make it run scala
like 7~8s for an average prog
like this one
so yeah it is fast :e
 
@V.Courtois link?
 
1:15 PM
wait
here is a link to a challenge i answered in scala
 
I have 9: sm*hxQddQ.... Way too long, but will solve it
 
you can get off the multiple prints on the footer
 
7 bytes: sm*dhxQ
 
Mm some languages are super slow on tio
 
7s for this
 
1:16 PM
Kotlin's one example
 
yeah @totallyhuman
kotlin is java (like scala)
 
@LeakyNun Hint?
 
@V.Courtois that's slow indeed
 
I have to go in ~2'
 
@Mr.Xcoder V
 
1:17 PM
maybe it has problems with bytecode
we should develop a lighter java compiler (LJC) for TIO
I already have the name >_<
 
@LeakyNun 7 bytes: s*VmhxQ
I have to go
Will golf later
 
cya
 
0
Q: Number of users after N days

Simon AnderssonInput Growth of num of people joining everyday in %. ex: 1st day 120 joined, 2nd day 150 joined = 25% growth each day. Just use 0.25 as input or 1.25 whatever u like. Number of days forward you want to see. ex: I want to see how many people joined after 1 week, then you use 7 as input Output ...

 
wew
wtf
 
1:24 PM
2 close votes, -3 and owner deleted
 
:^D
ez challenge
@NewMainPosts you are a liar
 
What
 
Didn't use V, 6 bytes: sm*hxQ
 
A wild Challenge appeared! ~~~ Challenge used self-destruct! It's not very effective... The wild Challenge fainted! 404 won 404 exp. points!
 
Bye again!
 
1:47 PM
Guys, I have a challenge here that you guys didn't like very much, no upvotes, 5 downvotes, and 3 VTC's. What is the procedure to do with it. I am still losing rep every so often which I don't like, and I can't address the VTC's since it's just for vagueness but I've answered all questions and suggestions in comments. What do?
 
@LiefdeWen downvotes happen. move on.
-9
Q: Are my eyes open or closed?

Leaky NunYou are trying to guess my emotion. I will give you an adjective, as the input to the function/program. Your task is to output the state of my eyes, either O_O for open, or ._. for closed. Details For these adjectives, you must output open eyes O_O animated breezy brisk driving enterprising ...

Basically you can't have an input that is "a number in octal"
...as if being octal is a property of numbers... — Leaky Nun yesterday
 
@LeakyNun hmm, okay but you have no VTC's which means that people find your challenge valid, just not very fun. In my case people don't think the challenge should be there by voting to close.
 
then just let them close your challenge...
 
@LeakyNun If you want to see it that way, if there is a challenge with loosish input format and requires an input integer and it would benefit me, could I input it in octal or binary then?
 
I don't see any way fixing it because the challenge is about the non-trivial input format.
We don't like dealing with complicated input format.
 
1:53 PM
I still don't think it's "unclear" which is what the VTCs are for
Could be specified a bit better though
 
no, the challenge is perfectly clear
it's just a bad challenge, if you don't mind
 
@LeakyNun it's fine, what bothers me is that it fared that badly and is almost getting closed and all I have to go on to improve is "don't restrict input format"
 
@LiefdeWen and yet the only challenge about your challenge is the input format
just move on and create a better challenge
 
triskelion
 
> object.size(TRUE)
32 bytes
Please
 

« first day (2364 days earlier)      last day (2472 days later) »