chlang — φ-lang v6 + φC engine + CR38 notebook renderer
chlang is the φ-lang v6 execution stack: 15,275 scripts, 4,768 Raman
skills, 44 language builders, the hypergeometry chain (block cube →
board cube → 4D membrane cube → lattice → brick), and the φC C
compiler.
CR38 — notebook format renderer (v3.28.0)
CR38 is a handwriting notebook format whose geometry is a chessboard:
- 1 line = 1024 units, 1 block = 10,240 units square, 1 board = 8×8 blocks = 81,920 units
.ram= one board (SQLite, 64 cells),.gθ= one free block,.md= world index- Identity across files is UUIDv7; orientation is an integer index into the 24 cube rotations (Rot24) — exact, no drift over fold chains
- Strokes are always 2D in block-local coordinates; all 3D structure lives in the reference graph. World position is never stored — it is derived by composing transforms from the root
import chlang
nb = chlang.cr38_load("/path/to/notebook") # in-memory graph
pos, rot = chlang.cr38_world_transform(node_id) # derived, memoized
chlang.cr38_render("/path/to/notebook") # street mode (SVG)
chlang.cr38_render("/path/to/notebook", mode="map") # 3D fold graph
b = chlang.cr38_to_board("board_a.ram") # cell N -> Board slot N
hb = chlang.cr38_to_hyperboard(folder) # fold graph -> geometry + path
CLI:
python -m chlang.cr38 render <folder> [--mode street|map] [--board UUID] [--zoom N] [--out path]
python -m chlang.cr38 info <folder>
python -m chlang.cr38 export <folder> # ram-export/1 JSON
Hypergeometry
BLOCK CUBE : 6 blocks = the 6 faces of a cube
BOARD CUBE : 8×8×8 = 512 block cubes = 3072 blocks = 48 standard boards
MEMBRANE CUBE: a board cube per membrane face; 8 membranes = 4D hypercube
LATTICE : 20,833 membrane-cubes (1M boards)
BRICK : 166,667 membrane-cubes (8M boards)
Install
pip install chlang
pip install "chlang[cr38-render]" # + Pillow for raster (PNG) tiles
License
MIT
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
chlang-3.28.0.tar.gz
(1.7 MB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file chlang-3.28.0.tar.gz.
File metadata
- Download URL: chlang-3.28.0.tar.gz
- Upload date:
- Size: 1.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f70bf7080cc1764099626d9ed18b3a9384b8da7f71970b34ddc77508a30c50af
|
|
| MD5 |
ca412a18f12adecc5608e1d644103557
|
|
| BLAKE2b-256 |
3c5cab8cab0e7ba5d63a5d7cb2523f96e49c9b24b6e5f3155b3412cab2d92918
|
File details
Details for the file chlang-3.28.0-py3-none-any.whl.
File metadata
- Download URL: chlang-3.28.0-py3-none-any.whl
- Upload date:
- Size: 1.8 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b6850dea1201ff81bf9d8f008f6abf902379a926fe4cf2a80c9fecb840222ed1
|
|
| MD5 |
1d66a48836b974e850ba618e8f7bdab1
|
|
| BLAKE2b-256 |
a355a43f592bf4548118921c12741db9995e2ce6b820a010f2c958aee0c4d1f7
|