Skip to content
/ MPL Public

Magick is not folklore; it is uncompiled code. MPL is a Technomancy Framework bridging the Silicon Age and the Arcane Age via the Tesla Protocol (3-6-9) and Solomonic Logic. (.ms)

License

Notifications You must be signed in to change notification settings

hakanovski/MPL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

๐Ÿ”ฎ MPL (Magick Programming Language)

Version Engine License Focus

"Any sufficiently advanced technology is indistinguishable from magic." โ€” Arthur C. Clarke

"Code is the modern spellbook." โ€” MPL Manifesto


๐Ÿ“‹ Overview

MPL (Magick Programming Language) is an interpreted, domain-specific language (DSL) designed to bridge the gap between Esoteric Intent (Ritual) and Executable Logic (Code).

While traditional programming languages process data for calculation, MPL processes Symbols and Archetypes to simulate or manifest operations. It creates a syntax where:

  • Loops become Tesla Resonance Cycles (3-6-9).
  • Variables become Bindings.
  • Functions become Invocations.
  • Outputs become Manifestations (e.g., Generating Financial Algorithms).

Currently, the engine runs on a Python Host (src/main.py), acting as a translator between the Magickal Script (.ms) and the machine.


โšก Key Features

  • ๐Ÿ“ The Tesla Protocol: Flow control is not linear; it is harmonic. Loops are restricted to resonant frequencies (3, 6, 9) to optimize logic execution.
  • ๐Ÿ•ฏ๏ธ Solomonic Ontology: A built-in JSON database (data/72_solomon.json) allows the user to invoke historical archetypes (e.g., Vassago, Bael) and use their specific attributes in code.
  • ๐Ÿ“ˆ Financial Technomancy: The engine can transmute esoteric intent into Pine Script (TradingView) code. (See Proof of Concept below).
  • โš–๏ธ Hybrid Engine: Supports both "Sealed" (Static) and "Living Spirit" (Adaptive/Volatile) logic modes via the Standard Library.

๐ŸŒŒ The Grand Vision: Digitizing the 225 Magi

MPL is currently in Phase 1 (Solomonic/Financial). However, the core architecture is designed to support a vast array of "Technomantic" applications by digitizing the logic of 225 historical archetypes listed in the Manifesto.

We are building a Transpiler Engine where different modules target different outputs:

Archetype Domain Target Output Status
King Solomon (Vassago) Prediction & Strategy Pine Script (TradingView) โœ… Active
John Dee (Enochian) Cryptography & Security Python / Rust (Encryption) ๐Ÿšง Concept
Paracelsus (Alchemy) Data Transformation (ETL) Pandas / SQL ๐Ÿ“… Planned
Shamanic Roots IoT & Hardware Control C++ / Arduino ๐Ÿ“… Planned
Chaos Magick Entropy & Randomness System Testing / Fuzzing ๐Ÿ“… Planned

MPL is not just a trading tool; it is a universal interface for Programmable Reality.


๐Ÿ“ฆ Installation

Prerequisites

  • Python 3.8 or higher.

Setup

# 1. Clone the Grimoire
git clone [https://github.com/hakanovski/MPL.git](https://github.com/hakanovski/MPL.git)

# 2. Enter the Sanctum
cd MPL

# 3. Create a Virtual Environment (Recommended)
python3 -m venv venv
source venv/bin/activate  # Windows: venv\Scripts\activate

# 4. Install the System (The Binding)
pip install -e .

๐Ÿš€ Usage
To cast a spell (run a script), simply use the mpl command followed by your ritual file:
mpl run examples/hybrid_oracle.ms

Example Console Output:
๐ŸŒ™ MPL - Magick Programming Language v0.9.6
๐Ÿ“š Magi Loaded.
โšก Beginning Ritual Execution...
๐Ÿ‘๏ธโ€๐Ÿ—จ๏ธ [ECHO]: --- โš–๏ธ INITIATING HYBRID PROTOCOL โš–๏ธ ---
โšก [TESLA PROTOCOL] Resonant Frequency 3 detected. Optimizing ritual...
๐Ÿ“ˆ [MARKET] Vassago is forging the Hybrid Strategy...
โœจ Ritual Concluded Successfully.

๐Ÿ“œ Syntax & The Grimoire (Examples)
MPL uses a declarative, command-based syntax. Below are the core constructs.
1. Binding (Variables)
Assigns a value or energy to a symbol.
# Bind a number (Mana)
bind mana_pool to 33

# Bind a String (Sigil)
bind intent to "Protection"

2. The Tesla Cycle (Loops)
Replaces for/while loops with harmonic resonance.
# Loops exactly 3 times (Creation Frequency)
cycle(3) {
    bind mana_pool to mana_pool * 2
    tesla.oscillate(1) # Frequency pause
}

3. Invocation (Functions & Ontology)
Summons a module or an entity to perform a task.
# Invoke the Hermetic module to transmute types
bind result to hermetic.transmute(mana_pool, "Sigil")

# Invoke a Solomonic Entity (Vassago) for Divination
invoke.vassago(title="Oracle_V1", fast=50, slow=197, rsi=45)

๐Ÿ† Proof of Concept: Financial Technomancy
MPL is not just theoretical; it creates real-world value.
The engine successfully generated a Hybrid Pine Script Indicator for TradingView, optimizing parameters using the Tesla 3-6-9 Protocol and Solomonic Divination.
 * Input Ritual: examples/hybrid_oracle.ms
 * Output Manifestation: Vassago & Tesla Ex-Machina 197-45-21
 * Status: Live on TradingView.
โš™๏ธ System Architecture
The MRE (Magic Runtime Engine) follows a 4-stage pipeline:
 * Lexer (src/lexer.py): Tokenizes source code into Sealed Verbs (BIND, INVOKE, CYCLE).
 * Parser (src/parser.py): Constructs the AST (Abstract Syntax Tree) and validates ritual structure.
 * Resolver (src/resolver.py): Connects the AST to the data/ ontology (JSON Database).
 * Interpreter (src/interpreter.py): Executes logic and calls the src/stdlib.py (Standard Library).
๐Ÿ—บ๏ธ Roadmap
 * v0.5.0: Standard Library & Tesla Protocol โœ…
 * v0.9.5: Financial Oracle & Hybrid Logic โœ…
 * v1.0.0: CLI Tool (mpl run) & PyPI Package โœ…
 * v2.0.0: The Transmutation (Expansion Packs & Rust Rewrite) ๐Ÿ“…
See ROADMAP.md for details.
๐Ÿค Contributing
The Grimoire is open to fellow Technomancers.
 * Fork the repo.
 * Create your branch (git checkout -b feature/new-spell).
 * Commit your changes.
 * Open a Pull Request.
License: MIT
Copyright ยฉ 2025 Hakan Yorganci

---


```markdown
# ๐Ÿ”ฎ MPL (Magick Programming Language) Roadmap

This document outlines the development trajectory, future milestones, and overarching vision of the **Magick Programming Language (MPL)**. The project aims to synthesize esoteric ritual logic (Hermetic, Qabbalistic, Shamanic) with modern computer science principles (Interpreter, AST, Bytecode).

> **Motto:** "Code is the modern spellbook."

---

## ๐Ÿ—บ๏ธ Overview

| Version | Code Name | Status | Primary Focus |
| :--- | :--- | :--- | :--- |
| **v0.5.0** | *The Ritual* | โœ… Completed | Standard Library (StdLib) and Tesla Protocol |
| **v0.9.0** | *The Grimoire* | โœ… Completed | JSON Integration, Shell, and Daemonic Resolvers |
| **v0.9.5** | *The Oracle* | โœ… Completed | **Financial Technomancy**, Pine Script Generation, Hybrid Logic |
| **v1.0.0** | *The Manifestation* | โœ… Ready | Packaging (PyPI), CLI Polish, and Documentation |
| **v2.0.0** | *The Transmutation* | ๐Ÿ“… Future Goal | **Multi-Target Transpilation** (Rust, C++, IoT), Expansion Packs |

---

About

Magick is not folklore; it is uncompiled code. MPL is a Technomancy Framework bridging the Silicon Age and the Arcane Age via the Tesla Protocol (3-6-9) and Solomonic Logic. (.ms)

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published