mapFolding 0.4.2__py3-none-any.whl → 0.4.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,125 +0,0 @@
1
- """I have so much truth, I need two files to contain it all!"""
2
- """TODO learn how to use this efficiently and effectively to solve problems, be DRY, and have SSOT."""
3
- from typing import Final, TYPE_CHECKING, Dict, Any, Union, Callable, Tuple, Any
4
- import numba
5
- import numba.core.compiler
6
- try:
7
- from typing import NotRequired
8
- except ImportError:
9
- from typing_extensions import NotRequired
10
-
11
- if TYPE_CHECKING:
12
- from typing import TypedDict
13
- else:
14
- TypedDict = dict
15
-
16
- """
17
- Old notes that are not entirely accurate.
18
-
19
- | **Option** | **Description** | **Why** | **Size** | **But** |
20
- | ----------------------- | --------------------------------------------------- | --------------------- | --------------- | ------------------------ |
21
- | `no_rewrites` | Disable AST rewrites optimization | Debugging | | |
22
- | `error_model` | Divide by zero: kill or chill? | Error checking | ? | |
23
- | `_nrt` | Enable No Runtime type checking | Startup speed | Smaller | No type protection |
24
- | `forceinline` | Force function inlining | Reduce function calls | Likely larger | |
25
- | `inline` | Algorithmically choose inlining | Speed | Slightly larger | |
26
- | `looplift` | Enable loop lifting optimization | Speed (if applicable) | Larger | Exclusionary |
27
- | `no_cfunc_wrapper` | Disable C function wrapper generation | Size | Smaller | Exclusionary |
28
- | `no_cpython_wrapper` | Disable Python C-API wrapper generation | Size | Smallest | Exclusionary |
29
-
30
- """
31
- # TODO try to implement all possible parameters, but use `NotRequired` for the more esoteric ones
32
- class ParametersNumba(TypedDict):
33
- _dbg_extend_lifetimes: NotRequired[bool]
34
- _dbg_optnone: NotRequired[bool]
35
- _nrt: NotRequired[bool]
36
- boundscheck: NotRequired[bool]
37
- cache: bool
38
- debug: NotRequired[bool]
39
- error_model: str
40
- fastmath: bool
41
- forceinline: bool
42
- forceobj: NotRequired[bool]
43
- inline: str
44
- locals: NotRequired[Dict[str, Any]]
45
- looplift: bool
46
- no_cfunc_wrapper: bool
47
- no_cpython_wrapper: bool
48
- no_rewrites: NotRequired[bool]
49
- nogil: NotRequired[bool]
50
- nopython: bool
51
- parallel: bool
52
- pipeline_class: NotRequired[numba.core.compiler.CompilerBase]
53
- signature_or_function: NotRequired[Union[Any, Callable, str, Tuple]]
54
- target: NotRequired[str]
55
-
56
- parametersNumbaFailEarly: Final[ParametersNumba] = {
57
- '_nrt': True,
58
- 'boundscheck': True,
59
- 'cache': True,
60
- 'error_model': 'python',
61
- 'fastmath': False,
62
- 'forceinline': True,
63
- 'inline': 'always',
64
- 'looplift': False,
65
- 'no_cfunc_wrapper': False,
66
- 'no_cpython_wrapper': False,
67
- 'nopython': True,
68
- 'parallel': False,
69
- }
70
- """For a production function: speed is irrelevant, error discovery is paramount, must be compatible with anything downstream."""
71
-
72
- parametersNumbaDEFAULT: Final[ParametersNumba] = {
73
- '_nrt': True,
74
- 'boundscheck': False,
75
- 'cache': True,
76
- 'error_model': 'numpy',
77
- 'fastmath': True,
78
- 'forceinline': True,
79
- 'inline': 'always',
80
- 'looplift': False,
81
- 'no_cfunc_wrapper': False,
82
- 'no_cpython_wrapper': False,
83
- 'nopython': True,
84
- 'parallel': False,
85
- }
86
- """Middle of the road: fast, lean, but will talk to non-jitted functions."""
87
-
88
- parametersNumbaParallelDEFAULT: Final[ParametersNumba] = {
89
- **parametersNumbaDEFAULT,
90
- '_nrt': True,
91
- 'parallel': True,
92
- }
93
- """Middle of the road: fast, lean, but will talk to non-jitted functions."""
94
-
95
- parametersNumbaSuperJit: Final[ParametersNumba] = {
96
- **parametersNumbaDEFAULT,
97
- 'no_cfunc_wrapper': True,
98
- 'no_cpython_wrapper': True,
99
- }
100
- """Speed, no helmet, no talking to non-jitted functions."""
101
-
102
- parametersNumbaSuperJitParallel: Final[ParametersNumba] = {
103
- **parametersNumbaSuperJit,
104
- '_nrt': True,
105
- 'parallel': True,
106
- }
107
- """Speed, no helmet, concurrency, no talking to non-jitted functions.
108
- Claude says, "The NRT is Numba's memory management system that handles memory allocation and deallocation for array operations. Because of array copying, you need to have NRT enabled." IDK which AI assistant autocompleted this, but, "The NRT is a bit slower than the default memory management system, but it's necessary for certain operations."
109
- """
110
-
111
- parametersNumbaMinimum: Final[ParametersNumba] = {
112
- '_nrt': True,
113
- 'boundscheck': True,
114
- 'cache': True,
115
- 'error_model': 'numpy',
116
- 'fastmath': True,
117
- 'forceinline': False,
118
- 'inline': 'always',
119
- 'looplift': False,
120
- 'no_cfunc_wrapper': False,
121
- 'no_cpython_wrapper': False,
122
- 'nopython': False,
123
- 'forceobj': True,
124
- 'parallel': False,
125
- }
@@ -1,42 +0,0 @@
1
- mapFolding/__init__.py,sha256=_YjoypHXmWLmEWwhFVgKO83Uf28ksesT9F73oJoAIPE,1323
2
- mapFolding/basecamp.py,sha256=v0VCF_Zgm_XBHcz4bqblsxfHwAxZKgenW6um77quWLk,3751
3
- mapFolding/beDRY.py,sha256=ejl-eIZTqAHCBNIND0pP_F9BxkPEWIlVXbCTk2Ki8x8,15751
4
- mapFolding/oeis.py,sha256=3hv71o8bhckjY0nsSY5JTJ2LrpJcuhZ9j3mP6LWLIQc,11124
5
- mapFolding/theDao.py,sha256=vyln6gXdRp87Xhtuy31bjCpMv_8vL4KH6s1fH40V9oA,12832
6
- mapFolding/theSSOT.py,sha256=QrEMPREjEbt1H8HcrM2Nm_hv7JsFWRG3lHdUU0Jrv-w,10238
7
- mapFolding/theSSOTnumba.py,sha256=5jTbJyu9XASYC4eIoUj98eVKWdWyjZw-XF3V2GK8cLg,4445
8
- mapFolding/reference/flattened.py,sha256=S6D9wiFTlbeoetEqaMLOcA-R22BHOzjqPRujffNxxUM,14875
9
- mapFolding/reference/hunterNumba.py,sha256=jDS0ORHkIhcJ1rzA5hT49sZHKf3rgJOoGesUCcbKFFY,6054
10
- mapFolding/reference/irvineJavaPort.py,sha256=7GvBU0tnS6wpFgkYad3465do9jBQW-2bYvbCYyABPHM,3341
11
- mapFolding/reference/jax.py,sha256=7ji9YWia6Kof0cjcNdiS1GG1rMbC5SBjcyVr_07AeUk,13845
12
- mapFolding/reference/lunnan.py,sha256=iAbJELfW6RKNMdPcBY9b6rGQ-z1zoRf-1XCurCRMOo8,3951
13
- mapFolding/reference/lunnanNumpy.py,sha256=rwVP3WIDXimpAuaxhRIuBYU56nVDTKlfGiclw_FkgUU,3765
14
- mapFolding/reference/lunnanWhile.py,sha256=uRrMT23jTJvoQDlD_FzeIQe_pfMXJG6_bRvs7uhC8z0,3271
15
- mapFolding/reference/rotatedEntryPoint.py,sha256=USZY3n3zwhSE68ATscUuN66t1qShuEbMI790Gz9JFTw,9352
16
- mapFolding/reference/total_countPlus1vsPlusN.py,sha256=wpgay-uqPOBd64Z4Pg6tg40j7-4pzWHGMM6v0bnmjhE,6288
17
- mapFolding/someAssemblyRequired/__init__.py,sha256=wtec_hIz-AKz0_hGdXsWnCKTcCxdMV9-WK6SiIriAeU,396
18
- mapFolding/someAssemblyRequired/getLLVMforNoReason.py,sha256=nX8tghZClYt7zJd6RpZBXhE_h-CGRHOS17biqiEdf-o,855
19
- mapFolding/someAssemblyRequired/makeJob.py,sha256=c9sTRUK90snTCcXCvs86VKBH6z_nt3OVFjNs_WgCoIg,2422
20
- mapFolding/someAssemblyRequired/synthesizeModuleJAX.py,sha256=jatvtYhK5ZJK-YmCKATt7w3icFXXO79cZDAYVrU9bgA,1258
21
- mapFolding/someAssemblyRequired/synthesizeNumba.py,sha256=3JF1FZwSB-dhLUM_pMy11dI4x1dnWOFQSfJytZHYl0M,17351
22
- mapFolding/someAssemblyRequired/synthesizeNumbaGeneralized.py,sha256=k8IaCT74ZPhHyra0MbCRdt_5k0Ov3vJgXlN5tbLVnf4,13998
23
- mapFolding/someAssemblyRequired/synthesizeNumbaJob.py,sha256=2sKZgc5kyyz2KaoApcazj_37UgBqAkxORFeROWWU5tk,9038
24
- mapFolding/someAssemblyRequired/synthesizeNumbaModules.py,sha256=_iRXjMASB_BnYJeH8Rt7FlC-GE7lkZ1Hy292XTaUCu4,3785
25
- mapFolding/syntheticModules/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
26
- mapFolding/syntheticModules/numba_countInitialize.py,sha256=9u-Skda9ntDxo_CiD5T4lUU1-Ts5GDZ33zs_Ybf77-Q,4274
27
- mapFolding/syntheticModules/numba_countParallel.py,sha256=96-TDwLJgZhR9tFm2bqVDpk8TuWPx_2qFH7oNV78yUI,5517
28
- mapFolding/syntheticModules/numba_countSequential.py,sha256=WCcPYnkyNpZS7SRMvx1A-IMIAFP5iHL9u9sj9gR8Yhw,3688
29
- mapFolding/syntheticModules/numba_doTheNeedful.py,sha256=zBXDEN4DJTpCu_ho314-MWdS_08kP_vAgV-8sJDVgvo,1368
30
- tests/__init__.py,sha256=eg9smg-6VblOr0kisM40CpGnuDtU2JgEEWGDTFVOlW8,57
31
- tests/conftest.py,sha256=vH1BSOs8G6nIPWKFkSQFmX031IZqNFC4oiEia74mkHU,10554
32
- tests/test_computations.py,sha256=qBha4IggMfr6ZH06W3M66enTA6PWsx8vkDp5eqYFM9M,4765
33
- tests/test_oeis.py,sha256=31kdO1vnu2Lon43vM-YJVS4g40Ic03DWNER-cJcpxX4,4916
34
- tests/test_other.py,sha256=u0vINT5EyVsXTNTR2DZIMpWCg4FH471jjHLRzC2JX7U,8351
35
- tests/test_tasks.py,sha256=iq6_dh43JQkC2vAWXua0Xe915BKFGbvRJAkmbco854A,2389
36
- tests/test_types.py,sha256=58tmPG9WOeGGAQbdQK_h_7t4SnENnZugH4WXlI8-L-M,171
37
- mapFolding-0.4.2.dist-info/LICENSE,sha256=NxH5Y8BdC-gNU-WSMwim3uMbID2iNDXJz7fHtuTdXhk,19346
38
- mapFolding-0.4.2.dist-info/METADATA,sha256=EPivaT4-_Ygz9_DobQKBIigNnDkWtUq7vm6hJtYiDeQ,7633
39
- mapFolding-0.4.2.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
40
- mapFolding-0.4.2.dist-info/entry_points.txt,sha256=F3OUeZR1XDTpoH7k3wXuRb3KF_kXTTeYhu5AGK1SiOQ,146
41
- mapFolding-0.4.2.dist-info/top_level.txt,sha256=1gP2vFaqPwHujGwb3UjtMlLEGN-943VSYFR7V4gDqW8,17
42
- mapFolding-0.4.2.dist-info/RECORD,,