« first day (2407 days earlier)      last day (2441 days later) » 

1:07 AM
0
Q: Shifting digits

Zach GatesGiven a string representing a number and the base that number is in, shift each positional value upward, wrapping back to zero if the value cannot increase. You will never be provided invalid input. For example, you may be provided ['5f6', '16'], which represents the number 1526 in base 16. The ...

 
 
2 hours later…
2:56 AM
@cairdcoinheringaahing Not at all. Go ahead.
@sergiol Maybe it does. I don't think I can claim that I created it alone though.
 
 
1 hour later…
4:04 AM
@ASCII-only @ATaco in australia do you actually sing the "Why was he born so beautiful" song for birthday O_o
 
4:28 AM
@Downgoat no
 
D: that mean meme is unreliable source of information /s
We should do an AR challenge that would be interesting
 
@Downgoat I can't say we do
 
 
1 hour later…
6:06 AM
O_o I think I just saw a jamburger in the fridge
@Downgoat Like?
 
6:53 AM
I have posted my vpython problem here, and if you know how to fix it, please answer it.
 
@Fatalize bonjour
 
Hi
 
7:25 AM
@Dennis well, you can say it's crowd-sourced
but don't take all the credits to yourself either :p
@DJMcMayhem yeah...if you're still here lol I was sleeping
 
7:37 AM
I now have exactly 100 bronze badges :-)
 
 
2 hours later…
Okx
10:05 AM
2 hours later?! Unacceptable for TNB!
 
10:31 AM
2
Q: Is this a valid Takuzu board?

Qwerp-DerpTakuzu is a logic game in which you have to complete a grid with cells containing 0s and 1s. The grid must follow 3 rules: No three horizontal or vertical consecutive cells can be the same. There must be an equal number of 0s and 1s in each row and column. No two rows can be the same, and no tw...

 
11:05 AM
damn, I crashed my C64 emulator :o
 
11:43 AM
I'm having a lot of issues getting MongoDB to work with PHP
seems like more effort than it's worth tbh
 
hi
 
12:00 PM
@EriktheOutgolfer Are you here?
 
@EriktheOutgolfer Do you see any way to golf this? It feels insanely long compared to other golfing languages.
 
well now I'm trying to outgolf fatalize but I'll see...
...btw I don't think I'll outgolf fatalize :p
 
@EriktheOutgolfer Outgolf fatalize in Brachylog in under 20 bytes?! Good luck.
 
well I've never outgolfed him in brachylog
 
12:03 PM
@EriktheOutgolfer Ok, ping me or leave a comment if you find a way to golf my answer (or post your own answer if you want, but still let me know). Anyway, I have to go now. Thanks
 
Does anyone know if you can rollback edits on github?
 
@EriktheOutgolfer There's a first for everything
 
if I outgolfed dennis I'll eventually outgolf you too :p
I think brachylog wins since it has and it can return inconsistent values or something
(where if anything is returned at all true. is printed)
@Fatalize 25 bytes >_>
 
@EriktheOutgolfer 18 bytes now
 
12:17 PM
maybe z;?{≠&ḅᵐclᵐ⌉≤2&{oḍlᵐ}ᵐ=}ᵐ is too long
 
Though I'm not sure if I understand rule 2 exactly as it's intended
 
"There must be an equal number of 0s and 1s in each row and column."
 
what are you guys referring to?
 
@Fatalize yeah I'm not sure either...
but I've played 0h h1 in the past
 
12:18 PM
Does that mean that the number of 0s and 1s must be the same in each row regardless of the other rows or does that mean that all rows must all have the same number of 0s and 1s?
 
count(0) == count(1) for each row and column
 
yeah but
does e.g. count(0) of row 1 = count(0) of row 2?
 
In a 6x6 matrix each row and column must have exactly 3 zeroes is how I understand it
 
@Fatalize yeah but you don't have to check for that count(0) == count(1) for each row covers it
 
Anonymous
@cairdcoinheringaahing git revert
 
12:19 PM
@EriktheOutgolfer That's what I'm not sure about
 
Is it allowed to take an extra variable in a lambda declaration to save bytes? i.e. (e,s,j) => {j=. . .} as opposed to (e,s) => {var j=. . .}?
 
@Mego as in from github
 
@Fatalize thanks
@Ceshion how would you call it?
 
Anonymous
@cairdcoinheringaahing I don't know if you can do it through GitHub, but git revert does exactly what you want
 
12:21 PM
@Fatalize for a 6x6 board, it means that every row must have 3 0s and 3 1s and every column must have 3 0s and 3 1s too
 
@LeakyNun with the type's default value, in this case 0 since it's an int
 
so it covers what you're talking about
 
Anonymous
@Ceshion If you can call the function without providing the variable as an argument, yes. Default params are the usual way of doing that.
 
Anonymous
I haven't had enough coffee to remember how JS does default params or deals with unitialized params
 
It's C#, so I can't make it an optional parameter in a lambda
 
Anonymous
12:23 PM
Oh right, => is C# lambda notation
 
@EriktheOutgolfer Yeah thanks. The way I check is actually equivalent when thinking about it
 
Anonymous
I don't think it's possible to have default/optional params in C# lambdas, so you'd either have to do it var j inside the body, or find a different approach
 
@Mego yep, seems that way
79 bytes for a C# answer isn't too bad though
 
tfw you realize you can't golf z;?{≠&ḅᵐclᵐ⌉≤2&{oḍlᵐ}ᵐ=}ᵐ
wait...I think it's invalid :/
 
too many maps
 
12:28 PM
@Fatalize that's to ensure it's for all elements and not just one
 
Don't know if you've peaked at my answer, but basically in "check whether this is true or not", it's usually shorter to check that it is impossible to be false using ¬
 
well ¬{} alone is +3 bytes
except
if I put it before the first {
 
yeah but then you don't need maps everywhere
 
so it works differently than what I thought...
 
@EriktheOutgolfer using s₃ is much shorter than messing with here
@EriktheOutgolfer What does? ¬?
 
12:32 PM
yeah
 
And I thought MATL would win by far... turns out Brachylog will
 
@Mr.Xcoder I'm also surprised at MATL's score, considering the input is a matrix
 
@Fatalize except that the opposite of is ­...
 
Yes, that is very strange... Maybe Luis didn't yet use the optimal algorithm? (But he hardly ever mistakes in MATL..)
 
@EriktheOutgolfer Just read ¬ as "Impossible that:" and then it's pretty clear what it does
 
12:35 PM
Anyway, I am also very surprised my Pyth answer got that long, given that it has transpose...
 
Pretty sure the main advantage of Brachylog here is (and that's not the first time that's the case)
 
I can see absolutely no way to golf it (and there definitely should be a way)
 
@Fatalize me too
 
@Mr.Xcoder I think I should change my primary site to Interpersonalskils.SE, given my recent success there :P
 
@Fatalize A great advantage is that it has a really short way to say "is impossible that" and also has the advantage of being declarative
@cairdcoinheringaahing Umm, don't leave us :-(
 
12:39 PM
@Fatalize I've got z;?¬{¬≠|∋s₃∋=|∋ḍ∋¬=}ᵐ but it's failing...
too many s I guess...
 
Wow, you are constantly abusing stuff 3 or 4 times...
 
@EriktheOutgolfer I'll check…
@EriktheOutgolfer Well first of all the second rule should be ∋s₃=
 
umm, no?
I take one of the substrings and check all elements are equal
not that the substrings are equal
 
Actually it should be ∋∋s₃=
 
let's say the board is [[0,0,1,1],[1,1,0,0],[0,1,0,1],[1,0,1,0]]
will take one of the elements, e.g. [1,1,0,0]
will take one of the elements, e.g. 1
 
12:47 PM
no
 
s₃ will...
no?
 
You map on [Rows, Columns]
will take the rows, will take a row
at least I think
 
I thought that mapping will execute the predicate twice, once with the rows as the input and once with the columns
 
Well yes I'm idiotic
then it's really ∋s₃= as I had said
take a row, take a substring
 
but then check that the substrings are equal?
 
12:49 PM
s₃= -> the substring has equal elements
which is what you want to check
 
oh wait...ohhhhhhhhhhhh
 
he's starting to believe
 
z;?¬{¬≠|∋s₃=|∋ḍ∋¬=}ᵐ
still failing though
 
well because your third rule is false
 
yeah I need to sort probably
 
12:51 PM
if you dichotomize a row, there's no reason each half must have equal elements
 
but wait
it won't work like that
 
What in the world is "dichotomize"?
 
@Mr.Xcoder Split in half
 
Oh, that's... fancy
 
what if the row is [0,0,0,0,0,0]? it would dichotomize into [[0,0,0],[0,0,0]] and both have equal elements
 
12:53 PM
@Mr.Xcoder this very famous algorithm is sometimes called "the dichotomy method"
(and in my language turns out dichotomy is the word mainly used)
 
@Mr.Xcoder So is "bifurcate"
 
"bifurcate" in 05ab1e means "push a, a[::-1]" and it pyth it means "return [B, A(B)]"
 
-2
Q: MoCk mE LiKE SpONgeBob

XynosIn reference to this meme. I want you to mock me like Spongebob. Given a input string insert your own capitalisation to create a message similar to the ones on the meme. Input A string containing any of the printable characters in the english alphabet, either uppercase or lower. Output A...

 
@cairdcoinheringaahing well, yeah
 
@Fatalize ಠ_ಠ I was about to VTC ^^ when you dupe hammered it
 
12:56 PM
@cairdcoinheringaahing I forgot I even had the hammer when I voted
 
:O Howard was the first user to get the gold badge
 
@Fatalize Fixed, I think
 
@Mr.Xcoder I think he meant that his brachylog answer is in danger
 
@cairdcoinheringaahing wonders who Howard is
 
12:58 PM
@EriktheOutgolfer oh, i'm dumb
 
He hasn't been here for over 2 years
 
@EriktheOutgolfer You don't win a challenge with this every day
 
well tbh I predict that husk would eventually outgolf brachylog
 
Oh, ATM I really hope there will be a fight between Brachylog and Husk. I predict it as such: Leo finds a way to golf it by 1 byte, then Fatalize finds a way to golf 1 byte too, and then (maybe) Zgarb shows up and golfs it down too
 
@Fatalize your brachylog answer seems optimal
 
1:02 PM
@Mr.Xcoder Then, in 2 months, 2Deorstv comes in and wins it in 1 byte? /s
 
@EriktheOutgolfer Not sure yet
 
checked it out...wait
 
@cairdcoinheringaahing and then, in 1 year, Cthulhu comes in and smashes 2Deorstv :P
 
@Mr.Xcoder How do you smash 1 byte?
 
What do you mean "checked it out"?
 
1:03 PM
@cairdcoinheringaahing <joke> Empty program </joke>
 
@Fatalize golfed one byte off (?)
≠\≠,?¬{s₃=|ọtᵐ≠}ᵐ
 
@Mr.Xcoder <loophole> Sounds legit </loophole>
 
@cairdcoinheringaahing yours would be a loophole too
 
actually empty program isn't by itself a loophole
 
@EriktheOutgolfer Seems like it
 
1:04 PM
@Mr.Xcoder I don't know what the problem even is :p
 
Only @EriktheOutgolfer can tell you your program is optimal and then golf 1 byte off of it 30 seconds later
13
 
@Fatalize at least it's golfing something :p
that's how I think btw
and it's the first time I outgolfed you :p
it'll help you to win the brachylog vs. husk war
 
@Fatalize @EriktheOutgolfer Perfect timing: Husk just got 18 bytes (in the comments)
And HP.Wiz golfed it, not Zgarb, so it might get shorter in the future
 
@Fatalize I see you applied the golf
 
I did
 
1:09 PM
And now he realizes it's invalid...
Or maybe not?
 
@Mr.Xcoder please don't scare me or him :p
 
I'm not sure if I'm more annoyed or happy at github not allowing you to escape ` with a `\`.
 
you can do ``abc`def``
 
@cairdcoinheringaahing You can use double-bascktick-space-backtick-space-double-backtick
 
@Mr.Xcoder `` ` ``
 
1:11 PM
Yes, that
Didn't want to mess up markdown, to avoid potential fails :)
WOW... Lynn did it in 120 bytes in Python... How can that be even valid?
 
@Mr.Xcoder Lynn is good. That's how.
 
Wait, I think I can golf their answer now
 
and then came xnor and outgolfed everybody! mwahaha
 
@Fatalize @EriktheOutgolfer You brachylog answer is invalid
 
1:13 PM
o_O is Lynn a guy or a girl?
 
@Mr.Xcoder If you're talking abouth Lynn I think she's a girl
@Mr.Xcoder How so?
 
she is a girl
@Fatalize look at the comment...
 
@Fatalize comment
 
but I think I can fix it without going back to 18
or is 18 invalid too?
or maybe 20 too?
 
I just watched the 8th Fast and Furious and realised how many Game of Thrones actors are in it
 
1:16 PM
@Fatalize probably fixed: ≠\≠,?¬{s₃=|ọtᵐ≠}ᶠ
also btw what's the difference between \ and z?
 
@EriktheOutgolfer No way this works properly, you lucked out on the test case
doesn't map so this can't work
 
maybe select then
 
@EriktheOutgolfer for a square matrix transpose, none
 
ˢ
@Fatalize for others?
btw is it the same as either of z, z₀ or z₁?
 
My 18 bytes version works
 
1:23 PM
would the 17-byte version but with ˢ instead of as the last char work?
your 18-byte version is threatened
(husk)
 
I'm not even sure I understand why my 18 bytes version works now
 
@Fatalize Then you know its golfed enough :P
 
@cairdcoinheringaahing when I get that feeling then after a while I realize my answer is invalid
so I'm not sure if fatalize's 18-byte version really works or is just valid for some test cases
 
I don't even understand why it works for [[1,1],[1,0]]
 
Breakthrough on how long my Pyth answer should be depending on Brachylog: means {IQ (+2 bytes). Then, \ is .T (+1 byte), is {I.TQ (+3 bytes), ,?is equivalent to sC,.T (+3 bytes)... The other changes sum up to +13 bytes. Summing all those up, I get 18+2+1+3+3+13 = 40... Uhm, I think I can golf it by at least 2-3 bytes
 
1:27 PM
@Fatalize the ∋ọtᵐ≠ part doesn't say much
 
No wait nevermind I get it
 
Is it valid?
 
yes
 
What a relief
 
It's confusing because [1,1] only has 2 occurences of 1
but [2] contains different elements
which means it's not a valid row
 
1:30 PM
s₃ would fail so it goes to the next rule
 
and then it fails because the occurences of elements of [1,1] are indeed different (since there's only 2)
(I mean it succeeds but ¬ fails)
 
[2]≠ -> [2] I think
 
yes
which makes the rule succeed, which makes the global program fail
 
I think that your answer is invalid
 
How so?
 
1:32 PM
With the same reasoning we got to two opposite conclusions :p
 
hmm...maybe it's valid
 
LOL
 
yeah I think it's valid
 
Now I'm not sure why your -1 byte doesn't work
 
maybe because it maps
and a map needs all elements to succeed to succeed
but
≠\≠,?¬{s₃=|ọtᵐ≠}ˢ
 
1:36 PM
Well yeah that's actually the reason
 
oh wait no
that's not just a failure, that's an error
 
ಠ_ಠ I don't understand Brachylog
 
oh
_1√ is also an error
 
@EriktheOutgolfer …because the square root of -1 is not a real
 
Isn't $\sqrt{-1}$ undefined in gereneral
I mean, it's irrational
 
1:38 PM
@Mr.Xcoder No, its i
 
@Fatalize maybe
 
it's i/-i
 
@cairdcoinheringaahing Hence the I mean, it's irrational
 
@Mr.Xcoder Yeah, I saw that after I posted :p
 
@Fatalize I think I found out the 17-byte version works
 
1:39 PM
I really need to post a challenge today. really
 
@Mr.Xcoder it is define as $i$
 
1 min ago, by Mr. Xcoder
@cairdcoinheringaahing Hence the I mean, it's irrational
 
@EriktheOutgolfer …what does that example have to do with the challenge?
 
@Fatalize did you make a youtube video on how to make programs in Brachylog?
 
1:39 PM
@cairdcoinheringaahing I made only one
 
@Fatalize the same metapredicate can be used instead of the wrong one
4 mins ago, by Erik the Outgolfer
≠\≠,?¬{s₃=|ọtᵐ≠}ˢ
 
@Fatalize why?
 
Because it's time consuming and not many people are interested to learn it anyway
 
Maybe for people to know how to take input in Brachylog, it's quite tricky
 
It's tricky because of TIO's naming scheme but otherwise there's not much to it
(and if you know the basics of Prolog)
 
1:41 PM
hey the 18-byte husk version is invalid hehe
 
@Fatalize The best way to teach people a golfing language is to create a gallery room on code golf char :p
 
@EriktheOutgolfer At least it's beating Pyth (for now...). I should go back to counting the emoji hidden in my code since J also lends itself well to that :'-( J beats me in Pyth :'-(
I have never seen J beat Pyth, I don't want to be a pioneer in this case.... HALP isaac
 
@Mr.Xcoder J can be quite succinct, and isaac won't show up unless you ping him :p
 
@cairdcoinheringaahing I don't want to ping him lol
 
@Mr.Xcoder You could always ask Leaky
 
1:46 PM
@cairdcoinheringaahing I know...
 
ಠ_ಠ 14 upvotes in 13 hours, 2 answers and not on the HNQ list. SE is confusing.
 
@cairdcoinheringaahing That's what I ended up doing.
@cairdcoinheringaahing The interpersonal one?
 
@Mr.Xcoder Yeah.
 
Anyway, I am very annoyed by the lack of creativity I have today
 
The Max recursion one here got on the HNQ from 3 upvotes and 4 answers. I really don't understand the HNQ
 
1:52 PM
Do Qs from Betas even show up?
 
@Mr.Xcoder Yes. IPS has dominated the HNQ since it started.
 
>_< I keep thinking IPS is integrated physical science
 
Thinks they golfed their answer... Adds 5 bytes
3
 
Does the association bonus count towards rep cap?
 
ATM I really doubt my capability of golfing in Pyth
@cairdcoinheringaahing No
 
1:56 PM
Ok, which should I post, this or this?
@Mr.Xcoder I doubt my capability of golfing.
 
@cairdcoinheringaahing Let me read them (the second one)
 
I have an idea for a challenge and I'm looking to find out what text-based messing services people use:
 
@programmer5000 Woah, thats a lot of social media platforms
@programmer5000 Can you add "other"?
 
@programmer5000 I'm old, where's the option to call someone and actually talk to them?!
 
Where is Whatsapp?
 
1:58 PM
@Shaggy In 1950, where it belongs :D
3
 
There you go
A new poll
 
@programmer5000 what happened
 
@cairdcoinheringaahing I don't understand the second sandbox post at all.
 
@cairdcoinheringaahing Pfft! You kids! I ain't that fecking old!
 
@Mr.Xcoder do you think it should simply be "output this string"?
 

« first day (2407 days earlier)      last day (2441 days later) »