Is there any interest in this? There is a lot of promise in only needing to maintain a single well typed implementation.
On Fri, Feb 11, 2022 at 6:35 PM Chad Dombrova <chad...@gmail.com> wrote: > Hi all, > At work, I recently started playing around with mypyc[1] as a means to > compile our python code to C extensions, and I'm pretty impressed so far. > > Pros > > - write normal python code with annotations: we're already doing this! > - no need for cython-specific header files that can get out of sync > with the pure python version > - support for dataclasses and Generics > - one less tool in the toolchain: mypyc is part of mypy > - opens the door to more easily converting additional modules in the > future > > Cons > > - less mature than Cython > - build errors are not very informative > > Neural > > - requires more detailed annotations. for example, you must annotate > class attributes with ClassVar > > I thought it would be an interesting and relatively accessible project to > try to convert the current modules that use cython over to mypyc and see > how it goes. Just a thought: take it or leave it! > > -chad > > [1] https://mypyc.readthedocs.io/en/latest/introduction.html > >