Skip to main content

The World's First Timeline-Oriented Programming Language

Project description

Parallax

The World's First Timeline-Oriented Programming Language.

Parallax is an experimental interpreted programming language that introduces quantum superposition as a first-class data type. Rather than utilizing iterative loops to determine optimal solutions, Parallax enables developers to split the execution timeline, filter for desired states, and collapse the results into deterministic outputs.


Features

  • Superposition: Variables can exist in multiple states simultaneously. A single variable assignment can spawn branching execution paths.
  • Entanglement: State history is strictly preserved. Operations on superposed variables propagate across all active timelines automatically.
  • Declarative Pruning: The select keyword allows for the declarative termination of timelines that fail to meet specific logical criteria, effectively optimizing the solution space without manual iteration.
  • VS Code Integration: Includes full support for the Visual Studio Code environment, featuring custom syntax highlighting and file icon themes.

Installation

The core language compiler and interpreter can be installed directly via pip:

pip install boron-parallax

Quick Start: The Optimization Paradigm

In Parallax, optimization is not achieved through iteration, but through the simultaneous exploration of all possible states. Below is an example demonstrating manufacturing optimization logic.

// 1. Initialization
// Create a variable 'speed' that exists in 10 distinct states simultaneously.
let speed = superpose 1, 2, 3, 4, 5, 6, 7, 8, 9, 10

// 2. Execution
// Perform business logic. This mathematical operation executes across
// all 10 timelines instantly and independently.
let quality = 11 - speed
let profit = speed * quality

// 3. Pruning (Timeline Selection)
// Apply constraints to the system. We only retain timelines where
// the 'quality' metric exceeds 5. All other timelines are discarded.
select quality : value > 5

// 4. Observation
// Observe the remaining survivors in the 'profit' variable.
observe profit

// Output:
// The system returns the distribution of valid profit values
// from the surviving timelines (e.g., 10, 18, 24, 28, 30).

Usage

File Execution

To run a Parallax script file:

prlx script.prlx

Interactive REPL

To launch the Read-Eval-Print Loop for real-time experimentation:

prlx

Example Session:

Parallax REPL — superpositional reality online
Type 'exit' to quit
>> let x = superpose 10, 20
>> observe x * 2
OBSERVED: 20: 50.0% | 40: 50.0%

Parallax is built using Python and the Lark parsing library.


***

### How to update the site with this new version:
1.  **Paste** the block above into your `D:\parallax\README.md` file.
2.  **Update `setup.py`**: Ensure the name is `boron-parallax` and bump the version to `1.0.1`.
3.  **Build & Upload**:
    ```powershell
    rm -r dist
    python -m build
    twine upload dist/*
    ```

Would you like me to help you set up a **GitHub Action** so that every time you push code, it automatically updates the PyPI page for you?

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

boron_parallax-1.0.3.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

boron_parallax-1.0.3-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

Details for the file boron_parallax-1.0.3.tar.gz.

File metadata

  • Download URL: boron_parallax-1.0.3.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.0

File hashes

Hashes for boron_parallax-1.0.3.tar.gz
Algorithm Hash digest
SHA256 ea0a56ff7db3c8b6103ab66b84cfa03a3e9c8b34557a06363e7238ae487384a9
MD5 a08493899b9e89d98be7d1bb3e2f254a
BLAKE2b-256 7aace2c7e36c496fd60f39a53b5d57a1be900e3f122cda7637b895e783df85e6

See more details on using hashes here.

File details

Details for the file boron_parallax-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: boron_parallax-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 12.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.0

File hashes

Hashes for boron_parallax-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 71b16334cf633f59a8c110560d14eccd52e8682e32e59c251eeaa5c3222dcb73
MD5 56be507dbeeb1eaaf780088560db3f0d
BLAKE2b-256 f02f6cf50b2740a6012d12171e21f20ab3d162715c3e67eb481a5126d73e8551

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page