« first day (4805 days earlier)      last day (44 days later) » 

12:03 AM
and if that's the best solution for negative inputs, it kinda makes it boring to have to handle :P
but if there is a better solution that is a neat way to avoid making it fall too much on list ops
 
@UnrelatedString it adds a boring 7 bytes for me :p
 
a 5 byte answer with 7 bytes of weird input handling
 
 
3 hours later…
2:57 AM
okay so TIL there's a build tool called Pants
and their docs
it has a section titled "Who Uses Pants"
 
ahahahahahahhaa
 
their logo is so good
 
their v1 docs site has some real bangers
 
if only it weren't blue
normalizing jeans 😠
 
3:01 AM
> A lot of effort has gone into making Pants easy to adopt, easy to use and easy to extend.
 
3:18 AM
@UnrelatedString Ooh, yes
@lyxal Chickens
 
@user 2 years later, and I think I'll still pass on this
 
user image
6
 
 
2 hours later…
5:10 AM
5
A: Break an integer into even- and odd-indexed bits

l4m2JavaScript (Node.js), 47 bytes, \$O\left(n^{\log_2\frac{1+\sqrt 5}2}\right)\$ f=n=>n+1>>1?[f(n>>2)[0]*2|n&1,f(n>>1)[0]]:[n,n] Try it online! JavaScript (Node.js), 48 bytes f=n=>n+1>>1?f(n>>2).map((c,i)=>c*2|n>>i&1):[n,n] Try it online!

What a peculiar time complexity.
 
att
fibonacci
can also write it phi^log2n
 
 
3 hours later…
8:35 AM
Is it a good exercise to implement balanced binary trees in C#?
 
 
2 hours later…
10:23 AM
@DannyuNDos That's very subjective question. What are you trying to achieve?
@Seggan Many types of vehicles are not allowed on highways, like tractors and horses. But you can still use the 80km/h roads
 
@mousetail To learn what C# really is, by hands.
 
It's probably as good as any other problem for that purpose
 
 
1 hour later…
11:53 AM
@m90 I think you can do it without a Fenwick tree just using sort and binary search
 
m90
12:03 PM
@Simd I don't see how that would work. If you have a method in mind, could you elaborate?
 
12:38 PM
I can do that in a few hours. Got other jobs now
 
 
2 hours later…
2:22 PM
are grammar corrections valid edits?
like using the subjunctive "if it were" instead of "if it was"
 
but in my view you shouldn't do it just for tiny grammar mistakes
("if it was" is valid grammar in many dialects anyway)
 
3:00 PM
@pxeger less versus fewer?
 
m90
@Simd It looks like that code is actually doing almost the same thing as the Fenwick tree! (The differences are that the tree is irregular and the midpoints are handled specially.)
 
3:54 PM
@m90 yes. It's just not a dynamic data structure
@m90 I have no idea which code would be faster
It would be great to find out
They seem to have removed the way to find chat from the main site, at least on my phone
 
4:12 PM
i was gonna answer this question in flax but .. turns out i have to account for negative numbers also
if the question asked only for positive numbers then i would have ḂẎẋYµB
 
@zoomlogo :(
 
the negative number case is interesting, since you can't just neg-neg
since there's an infinite number of ones, you have to cap it somewhere
 
 
3 hours later…
7:13 PM
@RydwolfPrograms pfft I just noticed lyxal edited in the "fr fr no cap"
 
mod abuse !!11!
 
lmao
 
7:34 PM
I just realised that lyxal could literally edit any message he wants to. Somehow this never occurred to me despite the fact I've seem him edit messages from Vyxal Bot and New Posts before
the modpocalypse
 
 
2 hours later…
9:29 PM
Scenario: I run across an old answer of mine. Since I posted it, both I as a golfer and the language it's written in have gotten much better. Do I: 1) Golf the answer using modern language features? 2) Post a new answer using modern language features and leave the old answer alone? 3) Golf the answer but stick to old language features (and also maybe post another answer using modern language features)?
I'm guessing the answer is "do whatever you want, it's your answer," but what would you all do in this situation?
 
I would edit the answer but leave the old one below with a ## (not just in the edit history) to show progress
I would probably also put a snarky comment like "wow I used to be really stupid"
but you don't have to do that
 
 
2 hours later…
11:33 PM
@pxeger yes
this is mandatory
 
@DLosc with my super-old answers, i've generally posted a new answer with a link to the old one
and that's without major language changes
 
no matter how much i try i still cant golf my first answer so i cant do snarky comments :/
 
Can this answer of mine be golfed further?
The import part is annoying, I'd say.
 

« first day (4805 days earlier)      last day (44 days later) »