« first day (463 days earlier)      last day (2442 days later) » 

8:27 AM
@LuisMendo Tired of writing 35*c at ALL the challenges? :p
Bug report: base conversion where the input is 0 does not work. e.g. ' 'T256Za
 
8:54 AM
The offending line is t = x(1)*bx+x(2); in Za's function definition.
x will be zero
Of course because find will return an empty array a bit earlier on.
 
 
2 hours later…
10:40 AM
@Sanchises It was Conor O'Brien's idea. It does seem to be used often
Thanks for catching that bug. I'll take a look when I'm at the computer
 
@LuisMendo No worries, it should be a very easy fix (I suppose change the outer while loop with an extra check or something)
Did you check whether # or * is used more often?
 
11:12 AM
@Sanchises Conor did a check with a SEDE query, and I did another check with Suever's script. We got similar results: asterisk slightly more common, but nearly tied. I think hash is better because the body of the character is more centered in its "case", whereas the asterisk is placed a little above
 
 
2 hours later…
12:54 PM
Makes sense.
 
 
5 hours later…
5:56 PM
@Sanchises Corrected now. Thanks! It helped me notice another bug in the same function. I have also applied the corrections here (which forms the basis if MATL's Za)
Commited:
* Corrected two bugs in Za (base2base): handling of input consisting of all "zeros" (thanks to @Sanchises for noticing), and properly left-padding the ouput with "zeros" if needed.
@Sanchises Also, duely credited in the ackonowledgments section of the doc
Pity that the bug makes it hard for MATL to compete in the base-97 challenge
 
 
2 hours later…
8:11 PM
@LuisMendo I really like that not to be a typo, and there's an actual duel going on in the docs now. Thanks, there was no need to credit me but I will print it out and hang it over our bed.
What do you mean by left-padding with zeroes?
You mean that ' 'T256Za produces more zeroes than ' 'T256Za?
You can never make that truly bijective anyway.
@LuisMendo I know how features made especially for a challenge are outlawed, but are bugfixes too? Anyway, it would make for a very fun answer to have someone work around that bug. At least then my easy generate-the-testcases program is out of the question.
 
9:02 PM
@Sanchises :-P
@Sanchises I mean that something like {'abadca' 'aba'} 'abcd' 'ABC' Za would give ['BACBCA'; ' BB'] (left-padding with spaces) instead of the correct ['BACBCA'; 'AAAABB']. But actually that only happened in the old Matlab function; not in the MATL one. And now I see I have messed things up and the MATL function is giving the wrong result. I'll fix it in a minute.
Yes, in answers, bug fixes are disallowed too. Languages are defined by their implemenation, bugs and all
Working around the bug is not that costly... I think I got 19 bytes in total, although I didn't test thoroughly
 
@LuisMendo Feel free to post it once you've tested it. And remember, your score is actually lower than those 19 bytes!
 
@Sanchises Awww true! I didn't remember that
Commited:
* Correction to previopus commit
 
That was the whole motivation for that challenge :
Commited: * Correction to typo in the commit message of previous commit.
:)
I'll stop being pedantic now. See you later!
 
No, actually my previous commit changed code for the worst. Anyway it's solved now
 

« first day (463 days earlier)      last day (2442 days later) »