Earlier quoted context omitted.
Yeah and even worse they disagree about type errors! We really need a modern Python alternative. I don't know of any that don't give up the REPL / single file script features which are pretty huge advantages of Python to be honest.
It's radically different, but the language where I've had the most pleasant repl-driven experience is Elixir. Because of how it's error handling works it's even sane to debug with a repl into live production in some cases.
Pyre: A performant type-checker for Python 3
81–90 of 118 posts
Re: Pyre: A performant type-checker for Python 3
#82Earlier quoted context omitted.
It's a problem the moment it has to interact with the outside world, especially DBs/serialization/... really any kind of I/O.
So Python can't do IO? Django doesn't exist? What are you talking about exactly?
Re: Pyre: A performant type-checker for Python 3
#83Earlier quoted context omitted.
It's radically different, but the language where I've had the most pleasant repl-driven experience is Elixir. Because of how it's error handling works it's even sane to debug with a repl into live production in some cases.
I've started learning Elixir over the week and I can't see myself using Python for scripting again. They're very different languages but th experience feels similar, except I vastly prefer Elixir
Re: Pyre: A performant type-checker for Python 3
#84Earlier quoted context omitted.
I have yet to successfully build a project with the strict mypy settings, without resorting to either turning some off or having to use an explicit Any. And a lot of the non-default settings are absolutely critical if you care about correctness. Lack of recursive types has been a major deal breaker for me. If you have a class Foo that can construct a class Bar, and a class Bar that can construct a class Foo, you can'…
This pretty much mirrors my mypy experience too. The only project I've ever successfully used it on was a single-file CLI tool that only used the stdlib. And by "successfully" I mean "it ran at all". Every other thing I've thrown at it has caused it to crash. I quite like the concept, but implementation has been rather abysmal as far as I've seen. Has it improved in ~ the past year?
Re: Pyre: A performant type-checker for Python 3
#85Earlier quoted context omitted.
Yeah and even worse they disagree about type errors! We really need a modern Python alternative. I don't know of any that don't give up the REPL / single file script features which are pretty huge advantages of Python to be honest.
Wouldn't Julia be that language? Its fast, supports static typing, and is built from the ground up for machine learning/ data science. It also has a built in REPL.
Re: Pyre: A performant type-checker for Python 3
#86Earlier quoted context omitted.
Yeah and even worse they disagree about type errors! We really need a modern Python alternative. I don't know of any that don't give up the REPL / single file script features which are pretty huge advantages of Python to be honest.
Node.js has a REPL, and there's nothing stopping you from putting your entire project into a single file.
But I do agree Typescript is one of the best alternatives today if you can stomach `tsconfig.json` `eslintrc` and `node_modules`.
Re: Pyre: A performant type-checker for Python 3
#87As with package managers, there seem to be half a dozen different, competing type checkers for Python now...
It's starting to look like the huge embarrassment that is python packaging and environment management. I work with the language every day, and I still have no idea what am I supposed to use between conda, pip, setuptools/setup.py, pyproject, meta.yml, poetry, pipenv, etc... Conda is so slow that I sometimes wonder if we are being trolled by some cruel God of programming. Pip is faster, but version resolution is iffy.…
Re: Pyre: A performant type-checker for Python 3
#88Earlier quoted context omitted.
Clearly didn't watch the talk then. He found that about 1-2% of errors in real world projects were type-related errors.
Fwiw this absolutely doesn't match my experience with pytype, both on my own work and, as I understand it, "at scale".
Re: Pyre: A performant type-checker for Python 3
#89As with package managers, there seem to be half a dozen different, competing type checkers for Python now...
Yeah and even worse they disagree about type errors! We really need a modern Python alternative. I don't know of any that don't give up the REPL / single file script features which are pretty huge advantages of Python to be honest.
Re: Pyre: A performant type-checker for Python 3
#90Earlier quoted context omitted.
Wouldn't Julia be that language? Its fast, supports static typing, and is built from the ground up for machine learning/ data science. It also has a built in REPL.
Julia is nothing like Python though, and it has other flaws like 1-based indexing and huge delays loading packages as it compiles them.
1-based indexing is definitely not a flaw. And version 1.6 massively decreased package import and precompilation time.