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.29.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.29.0.tar.gz.
File metadata
- Download URL: chlang-3.29.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 |
31ec26e63cda58b11f983547d777e04adaf590a5e512702c96e46b305acb2b41
|
|
| MD5 |
ef0c0f3adbbd131103a4f4214f2a6b0a
|
|
| BLAKE2b-256 |
8e64a76e2d81345a256b6fad0def6ac00087e53201c96adc20a95875a16e946c
|
File details
Details for the file chlang-3.29.0-py3-none-any.whl.
File metadata
- Download URL: chlang-3.29.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 |
2ef0cb112b5847e5e8ff32155c5ac1d9fa47e1668d341a3c058607724dcbbd36
|
|
| MD5 |
17dfa66628bd8a2571f798b4f9cc89a9
|
|
| BLAKE2b-256 |
f834ab5156bd2d586977397940e31e046194bcd8dc191b80b82e8fe42a8995c5
|