pie-language-javascript 0.5.2__tar.gz
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.
- pie_language_javascript-0.5.2/.gitignore +241 -0
- pie_language_javascript-0.5.2/PKG-INFO +23 -0
- pie_language_javascript-0.5.2/README.md +11 -0
- pie_language_javascript-0.5.2/pyproject.toml +24 -0
- pie_language_javascript-0.5.2/src/pie_language_javascript/__init__.py +11 -0
- pie_language_javascript-0.5.2/src/pie_language_javascript/javascript.wasm +0 -0
- pie_language_javascript-0.5.2/uv.lock +8 -0
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
# Generated by Cargo
|
|
2
|
+
# will have compiled files and executables
|
|
3
|
+
debug/
|
|
4
|
+
target/
|
|
5
|
+
target-*/
|
|
6
|
+
|
|
7
|
+
# These are backup files generated by rustfmt
|
|
8
|
+
**/*.rs.bk
|
|
9
|
+
# MSVC Windows builds of rustc generate these, which store debugging information
|
|
10
|
+
*.pdb
|
|
11
|
+
# RustRover
|
|
12
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
13
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
14
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
15
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
16
|
+
.idea/
|
|
17
|
+
# VSCode
|
|
18
|
+
# .vscode is not sensitive to security, so we can keep it in the repo. Useful for Pylint configuration.
|
|
19
|
+
*.code-workspace
|
|
20
|
+
.vscode
|
|
21
|
+
# Other local ide/environment
|
|
22
|
+
.claude
|
|
23
|
+
.codex
|
|
24
|
+
.kilocode
|
|
25
|
+
# Byte-compiled / optimized / DLL files
|
|
26
|
+
__pycache__/
|
|
27
|
+
*.py[cod]
|
|
28
|
+
*$py.class
|
|
29
|
+
# C extensions
|
|
30
|
+
*.so
|
|
31
|
+
# Distribution / packaging
|
|
32
|
+
.Python
|
|
33
|
+
build/
|
|
34
|
+
develop-eggs/
|
|
35
|
+
dist/
|
|
36
|
+
downloads/
|
|
37
|
+
eggs/
|
|
38
|
+
.eggs/
|
|
39
|
+
lib64/
|
|
40
|
+
parts/
|
|
41
|
+
sdist/
|
|
42
|
+
var/
|
|
43
|
+
wheels/
|
|
44
|
+
share/python-wheels/
|
|
45
|
+
*.egg-info/
|
|
46
|
+
.installed.cfg
|
|
47
|
+
*.egg
|
|
48
|
+
MANIFEST
|
|
49
|
+
# PyInstaller
|
|
50
|
+
# Usually these files are written by a python script from a template
|
|
51
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
52
|
+
*.manifest
|
|
53
|
+
*.spec
|
|
54
|
+
# Installer logs
|
|
55
|
+
pip-log.txt
|
|
56
|
+
pip-delete-this-directory.txt
|
|
57
|
+
# Unit test / coverage reports
|
|
58
|
+
htmlcov/
|
|
59
|
+
.tox/
|
|
60
|
+
.nox/
|
|
61
|
+
.coverage
|
|
62
|
+
.coverage.*
|
|
63
|
+
.cache
|
|
64
|
+
nosetests.xml
|
|
65
|
+
coverage.xml
|
|
66
|
+
*.cover
|
|
67
|
+
*.py,cover
|
|
68
|
+
.hypothesis/
|
|
69
|
+
.pytest_cache/
|
|
70
|
+
cover/
|
|
71
|
+
# Translations
|
|
72
|
+
*.mo
|
|
73
|
+
*.pot
|
|
74
|
+
# Django stuff:
|
|
75
|
+
local_settings.py
|
|
76
|
+
db.sqlite3
|
|
77
|
+
db.sqlite3-journal
|
|
78
|
+
# Flask stuff:
|
|
79
|
+
.webassets-cache
|
|
80
|
+
# Scrapy stuff:
|
|
81
|
+
.scrapy
|
|
82
|
+
# Sphinx documentation
|
|
83
|
+
docs/_build/
|
|
84
|
+
docs/plans/
|
|
85
|
+
# PyBuilder
|
|
86
|
+
.pybuilder/
|
|
87
|
+
# Jupyter Notebook
|
|
88
|
+
.ipynb_checkpoints
|
|
89
|
+
# IPython
|
|
90
|
+
profile_default/
|
|
91
|
+
ipython_config.py
|
|
92
|
+
# pyenv
|
|
93
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
94
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
95
|
+
# .python-version
|
|
96
|
+
# pipenv
|
|
97
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
98
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
99
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
100
|
+
# install all needed dependencies.
|
|
101
|
+
#Pipfile.lock
|
|
102
|
+
# UV
|
|
103
|
+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
|
|
104
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
105
|
+
# commonly ignored for libraries.
|
|
106
|
+
#uv.lock
|
|
107
|
+
# poetry
|
|
108
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
109
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
110
|
+
#poetry.lock
|
|
111
|
+
# pdm
|
|
112
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
113
|
+
#pdm.lock
|
|
114
|
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
|
115
|
+
# in version control.
|
|
116
|
+
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
|
|
117
|
+
.pdm.toml
|
|
118
|
+
.pdm-python
|
|
119
|
+
.pdm-build/
|
|
120
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
121
|
+
__pypackages__/
|
|
122
|
+
# Celery stuff
|
|
123
|
+
celerybeat-schedule
|
|
124
|
+
celerybeat.pid
|
|
125
|
+
# SageMath parsed files
|
|
126
|
+
*.sage.py
|
|
127
|
+
# Environments
|
|
128
|
+
.env
|
|
129
|
+
.venv
|
|
130
|
+
env/
|
|
131
|
+
venv/
|
|
132
|
+
ENV/
|
|
133
|
+
env.bak/
|
|
134
|
+
venv.bak/
|
|
135
|
+
# `env/` above is the Python-virtualenv convention and is unanchored, so it
|
|
136
|
+
# also swallows `bin/env` — the crate behind the `pie-env` command. Re-include
|
|
137
|
+
# the directory itself (a negation inside an excluded dir would never be seen).
|
|
138
|
+
!bin/env/
|
|
139
|
+
# Spyder project settings
|
|
140
|
+
.spyderproject
|
|
141
|
+
.spyproject
|
|
142
|
+
# Rope project settings
|
|
143
|
+
.ropeproject
|
|
144
|
+
# mkdocs documentation
|
|
145
|
+
/site
|
|
146
|
+
# mypy
|
|
147
|
+
.mypy_cache/
|
|
148
|
+
.dmypy.json
|
|
149
|
+
dmypy.json
|
|
150
|
+
# Pyre type checker
|
|
151
|
+
.pyre/
|
|
152
|
+
# pytype static type analyzer
|
|
153
|
+
.pytype/
|
|
154
|
+
# Cython debug symbols
|
|
155
|
+
cython_debug/
|
|
156
|
+
# Ruff stuff:
|
|
157
|
+
.ruff_cache/
|
|
158
|
+
# PyPI configuration file
|
|
159
|
+
.pypirc
|
|
160
|
+
# Prompt files
|
|
161
|
+
*.prompt
|
|
162
|
+
.DS_Store
|
|
163
|
+
program_cache/
|
|
164
|
+
*.model
|
|
165
|
+
.run/
|
|
166
|
+
backend/backend-pytorch
|
|
167
|
+
*.wasm
|
|
168
|
+
# logs and temporary files
|
|
169
|
+
logs
|
|
170
|
+
*.log
|
|
171
|
+
.plan
|
|
172
|
+
*profiling_result.json
|
|
173
|
+
/profiling-artifacts/
|
|
174
|
+
# Locally archived Markdown documents.
|
|
175
|
+
/docs/
|
|
176
|
+
# No MCP files
|
|
177
|
+
.memory-bank
|
|
178
|
+
# raw eval data
|
|
179
|
+
cuda-protocol-tests*
|
|
180
|
+
metal-protocol-tests*
|
|
181
|
+
cuda_artifacts.tar*
|
|
182
|
+
tensor_references
|
|
183
|
+
# Github Spec-kit
|
|
184
|
+
.spec-kit/
|
|
185
|
+
# Node.js
|
|
186
|
+
node_modules/
|
|
187
|
+
/package-lock.json
|
|
188
|
+
!website/package-lock.json
|
|
189
|
+
wandb/
|
|
190
|
+
# Website (Docusaurus)
|
|
191
|
+
website/build/
|
|
192
|
+
website/.docusaurus/
|
|
193
|
+
website/.cache-loader/
|
|
194
|
+
website/src/data/models.json
|
|
195
|
+
*.pt
|
|
196
|
+
*.zt
|
|
197
|
+
PIEX.md
|
|
198
|
+
pie/rollout_logs/
|
|
199
|
+
*.out
|
|
200
|
+
*.csv
|
|
201
|
+
.tmp/
|
|
202
|
+
|
|
203
|
+
# CUDA build scratch (accidentally committed; do not track)
|
|
204
|
+
.bigtmp/
|
|
205
|
+
|
|
206
|
+
# Staged by crates/engine-metal/csrc/CMakeLists.txt from eta-compiler's include/.
|
|
207
|
+
|
|
208
|
+
# Generated by `cargo test -p eta-compiler --test cuda_golden emit_engine_test_kernel`.
|
|
209
|
+
tests/engine-fixtures/
|
|
210
|
+
build-cuda/
|
|
211
|
+
|
|
212
|
+
# The engine binary copy used for local runs (see the tart notes).
|
|
213
|
+
pie-tart
|
|
214
|
+
|
|
215
|
+
# Staged by kernels-metal/build.rs from eta-compiler; generated, not a source.
|
|
216
|
+
/.recovered/
|
|
217
|
+
/.orig_gemm.cpp
|
|
218
|
+
|
|
219
|
+
# Derived JavaScript-facing WIT world (npm run derive-wit / generate-bindings)
|
|
220
|
+
javascript/inferlet/wit/
|
|
221
|
+
|
|
222
|
+
# Run output and scratch: `out/` was committed once already.
|
|
223
|
+
out/
|
|
224
|
+
marlin_scratch/
|
|
225
|
+
|
|
226
|
+
target-wasm/
|
|
227
|
+
javascript/server-web/pkg/
|
|
228
|
+
javascript/server-web/dist/
|
|
229
|
+
javascript/server/pie-server*.node
|
|
230
|
+
javascript/server/npm/*/pie-server.node
|
|
231
|
+
javascript/**/*.tgz
|
|
232
|
+
tests/browser/models
|
|
233
|
+
tests/browser/models2b
|
|
234
|
+
tests/browser/models4b
|
|
235
|
+
tests/browser/models9b
|
|
236
|
+
tests/browser/models-tiny/
|
|
237
|
+
tests/browser/inferlets/
|
|
238
|
+
tests/browser/languages/
|
|
239
|
+
tests/browser/tools/package*.json
|
|
240
|
+
crates/kernels-wgpu/tools/wgsl/
|
|
241
|
+
scripts/bench/browser/results/*.raw
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: pie-language-javascript
|
|
3
|
+
Version: 0.5.2
|
|
4
|
+
Summary: The javascript language component of pie: install it beside pie-server, and javascript inferlets run.
|
|
5
|
+
Author-email: In Gim <in.gim@icloud.com>
|
|
6
|
+
License-Expression: Apache-2.0
|
|
7
|
+
Classifier: Programming Language :: Python :: 3
|
|
8
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
9
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
10
|
+
Requires-Python: >=3.10
|
|
11
|
+
Description-Content-Type: text/markdown
|
|
12
|
+
|
|
13
|
+
# pie-language-javascript
|
|
14
|
+
|
|
15
|
+
The javascript language component of pie, as a wheel: one wasm that
|
|
16
|
+
`pie.server.Server` installs when this package is importable.
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
pip install "pie-server[javascript]"
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
The wasm is what `pie language install` puts under `$PIE_HOME/languages`;
|
|
23
|
+
`scripts/build-languages.sh` builds it here.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# pie-language-javascript
|
|
2
|
+
|
|
3
|
+
The javascript language component of pie, as a wheel: one wasm that
|
|
4
|
+
`pie.server.Server` installs when this package is importable.
|
|
5
|
+
|
|
6
|
+
```bash
|
|
7
|
+
pip install "pie-server[javascript]"
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
The wasm is what `pie language install` puts under `$PIE_HOME/languages`;
|
|
11
|
+
`scripts/build-languages.sh` builds it here.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "pie-language-javascript"
|
|
7
|
+
version = "0.5.2"
|
|
8
|
+
description = "The javascript language component of pie: install it beside pie-server, and javascript inferlets run."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.10"
|
|
11
|
+
license = "Apache-2.0"
|
|
12
|
+
authors = [{ name = "In Gim", email = "in.gim@icloud.com" }]
|
|
13
|
+
classifiers = [
|
|
14
|
+
"Programming Language :: Python :: 3",
|
|
15
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
16
|
+
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
|
17
|
+
]
|
|
18
|
+
|
|
19
|
+
[tool.hatch.build.targets.wheel]
|
|
20
|
+
packages = ["src/pie_language_javascript"]
|
|
21
|
+
artifacts = ["*.wasm"]
|
|
22
|
+
|
|
23
|
+
[tool.hatch.build.targets.sdist]
|
|
24
|
+
artifacts = ["*.wasm"]
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"""The javascript language component of pie: one wasm, found by `pie.server.Server`
|
|
2
|
+
when this package is installed (`pip install "pie-server[javascript]"`)."""
|
|
3
|
+
|
|
4
|
+
from importlib.resources import files
|
|
5
|
+
|
|
6
|
+
LANGUAGE = "javascript"
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
def read() -> bytes:
|
|
10
|
+
"""The component's bytes."""
|
|
11
|
+
return (files(__package__) / "javascript.wasm").read_bytes()
|