typing
mamba
typing | mamba | |
---|---|---|
38 | 34 | |
1,548 | 6,280 | |
0.8% | 2.9% | |
9.2 | 9.5 | |
3 days ago | 3 days ago | |
Python | C++ | |
GNU General Public License v3.0 or later | BSD 3-clause "New" or "Revised" License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
typing
- Writing Python like it’s Rust
- Library for single dispatch on Generic subscript
-
Thoughts on nested / inner functions in Python for better encapsulation and clarity?
Iterable[str] is unfortunately evil as it matches str which is often unintended. (see: https://github.com/python/typing/issues/256) One would need both NOT-type and AND-type in order to properly handle these.
-
How to be more Literal in Python
The basic motivation behind them is that functions can have arguments that can only take a specific set of values, and those functions return values/types change based on that input. Common examples are (you can find more here):
-
Python 3.11.0b1 is out! Python 3.11 is now in feature freeze mode!
While yes 26 people liked the idea here: https://github.com/python/typing/issues/193
-
Type Hinting - Constrain metaclass of typing.Type
but looking at relevant issues on GitHub it seems this has been shot down repeatedly. python/typing#18, python/typing#213
-
What type hint should I use for "some container type" in general but explicitly exclude the str type?
See https://github.com/python/typing/issues/256 for a discussion.
-
Type annotations: how to express list contravariance?
Lower bounds are not supported for TypeVars, unfortunately.
-
I use attrs instead of pydantic
Mypy allows that because initial versions of PEP-484 allowed that. This has changed; here's the current wording on the PEP:
> This is no longer the recommended behavior. Type checkers should move towards requiring the optional type to be made explicit.
https://www.python.org/dev/peps/pep-0484/#id29
-
Can I walk through the entire hierarchy of object types?
Dunno, other, larger projects than the one I'm working on seem to run up against this from time to time. (rasa_core, to pick one example from near the top of a Google search; also Telethon, Blender, TensorFlow, Pandas. Guido also filed a bug on the typing module in an early version of Python 3.5 because of unexpected implications of this particular issue, so the problem isn't exactly purely theoretical.) That's aside from the wish for conceptual purity in the call signatures of classes and their subclasses, which is not always and automatically a bad wish to have; and the notion that a language that prides itself on its introspective faculties might want to make introspection of classes from the top of a class hierarchy possible, at least in theory? Perhaps to facility learning about the language and/or visualizing large class hierarchies easily, for instance?
mamba
-
Minimal implementation of Mamba, the new LLM architecture, in 1 file of PyTorch
>"everyone" seems to know Mamba. I never heard of Mamba
Only the "everybody who knows what mamba is" are the ones upvoting and commenting. Think of all the people who ignore it. For me, Mamba is the faster version of Conda [1], and that's why I clicked on the article.
https://github.com/mamba-org/mamba
-
Towards a New SymPy
Yes, this is a big disadvantage. But have you tried Mamba that aims at implementing Anaconda more efficiently? It works really well in most cases.
https://mamba.readthedocs.io/
-
Why are the bioconda bioconductor packages so slow to update?
Because conda is very slow at resolving dependencies. Mamba (https://github.com/mamba-org/mamba) is faster if that is your goal
-
Is pip gaining on conda for python libs?
use mamba instead
-
Real-world examples of std::expected in codebases?
We started using tl::expected in https://github.com/mamba-org/mamba/ since the beginning of this year and some other related projects like https://github.com/mamba-org/powerloader . I don't know much other big open-source codebases that use that specific lib.
- Mamba: A Drop-In Replacement for Conda Written in C++
-
What's Great about Julia?
Great writeup. Minor comment about the portion of the post mentioning Conda being glacially slow: Mamba [1] is a much better drop-in replacement written in C++. Not only is it significantly faster, but error messages are much more sane and helpful.
That being said, I do agree that Pkg.jl is much more sleek and modern than Conda/Mamba.
[1]: https://github.com/mamba-org/mamba
- Mamba Reaches 1.0
-
Given Rust’s rapidly growing popularity and wide range of use cases, it seems almost inevitable that it will overtake Python in the near future.
I thought that python could live a little longer when I learned about mamba. But then I found out it is written in C++? Why write a package manager for a dying language in a language that is almost dead???
-
Does anyone use virtual environments (Conan's virtual env. or Conda's) for C++
Yes, I use Conda enviroments (actually I use Mamba to manage them now).
What are some alternatives?
mypy - Optional static typing for Python
miniforge - A conda-forge distribution.
pyre-check - Performant type-checking for python.
conda - A system-level, binary package and environment manager running on all major operating systems and platforms.
fp-ts - Functional programming in TypeScript
pip - The Python package installer
pydantic - Data validation using Python type hints
pyenv - Simple Python version management
Telethon - Pure Python 3 MTProto API Telegram client library, for bots too!
conda-lock - Lightweight lockfile for conda environments
mashumaro - Fast and well tested serialization library