MinekPo1 [it/she]

nya !!! :3333 gay uwu

I’m in a bad place rn so if I’m getting into an argument please tell me to disconnect for a bit as I dont deal with shit like that well :3

  • 0 Posts
  • 64 Comments
Joined 3 years ago
cake
Cake day: June 14th, 2023

help-circle





  • I was originally going to comment that differences in performance between JS and TS appear to be most significant in one challenge

    ascii table about that, not screen reader friendly
     ___________________________________________________________________________________________________________________ 
    |lang|_binary_trees___________|_fannkuch-redux_____________|_fasta_____________________|_normalized_________________|
    | JS | 312.14 : 21.349 :  916 |    413.90 :    33.663 : 26 |  64.84 :  5.098 :      30 |     4.45 :    6.52 :  4.59 |
    |_TS_|_315.10_:_21.686_:__915_|__6 898.48_:___516.541_:_26_|__82.72_:__6.909_:_____271_|____21.50_:___46.20_:__4.69_|
    |diff|___+.9%_:__+1.6%_:_+.1%_|_+15_66.7%_:_+14_34.4%_:_0%_|_+21.6%_:_+35.5%_:_+803.3%_|_+3_83.1%_:_+6_08.5_:_+8.1%_|
    

    however, trying to look to see the typescript code, wanting to translate that to type hinted python code, I’ve been unable to find typescript on CLBG, so I’m confused on how they got that data,






  • one small gripe i have is that the repr¹ doesn’t handle aliases (ie items with more than one bit set) that well , but tbh its not an easy problem

    example to illustrate the problem :

    class Foo(enum.Flag):
        A = auto()
        B = auto()
        C = auto()
        # no D
        AB = 0b0011
        CD = 0b1100
    
    print(Foo.AB | Foo.C)  # <Foo.A|B|C: 7> NOT <Foo.AB|C: 7>
    print(Foo.CD | Foo.A)  # <Foo.A|C|CD: 13> NOT <Foo.A|CD: 7>
    

    its a minor thing but it annoys me a bit

    [1]: the _name_ member , which is used by __repr__ , of an enum member is actually generated either when the individual enum class is created or when the value is first needed by _missing_ . also the docs call these names surrounded by single underscores “sunder” names