Skip to content

Instantly share code, notes, and snippets.

@CMCDragonkai
CMCDragonkai / nix_python_package.md
Last active December 16, 2024 15:23
An Illustration of a Nix Python Package #nix #python

An Illustration of a Nix Python Package

Every Python package (which is a collection of modules associated with version metadata) needs to have a setup.py.

So first create a relevant setup.py, refer to my article here: https://gist.github.com/CMCDragonkai/f0285cdc162758aaadb957c52f693819 for more information.

Remember that setup.py is meant to store version compatible ranges of

@lattner
lattner / TaskConcurrencyManifesto.md
Last active February 8, 2026 23:00
Swift Concurrency Manifesto
@nikomatsakis
nikomatsakis / hashtable-prob.md
Created December 2, 2011 04:22
Addressing "the hashtable problem" with modular type classes

The "Hashtable Problem"

There is a danger with typeclasses only on functions because they permit a lack of coherence. This danger is particularly acute with collections, where the definition of a particular interface---such as hashable or ord---may be used in structuring the data structure. This renders the data structure corrupt when used with a different implementation.

To see the problem, consider a hashtable defined something like this: