1. 33
    1. 2

      I appreciate the pragmatic approach of the whole thing.

      It’s purely problem solving given the context.

      1. 2

        Fun that this comes up adjacent to https://lobste.rs/s/lnyfm6/compiling_typed_python . I wonder how the Python code could have been improved by using either mypyc or Static Python. Does it come close to the Rust version, I wonder?

        I poked at it a little bit and had to modify the type annotations—as it turns out, they are not quite correct as described… you need to use the numpy typing package and use NDTArray or something like that, since np.array is actually a function. I don’t have a ton of time to fuss with it at the moment but if someone else does I would be intrigued.