AP SIGMA Final Project

P.H.O.N.K.

Pythonic syntax. C++ speed. Zero overhead.
Sigma af 😈 (tuff boi)

↓ Get Started ↓ ↓ Feel the sigma ↓

COMPILATION PIPELINE

.phonk Source
transpile Parser
.cpp Generate C++
g++ C++ Compiler
.exe Binary
The Wolfden (Github)

Everything you love about Python.
Everything you need from C++.

P.H.O.N.K. is designed to make the jump from object-oriented scripting to text-based programming languages feel natural and more SIGMA 🤫🧏‍♂️🗿.

Pythonic Syntax, C++ Speed 🥶
Write clean, readable code without heavy syntax.
Intuitive Type System (based as frick)
A streamlined system that strikes a balance between Python and C++.
Zero-Overhead Transpilation 🐺
Code translates directly to native C++ structures. No heavy runtime, no virtual machine.
Designed for Learners and turks 🇹🇷
With easy to read syntax, this langauge is great for beginners. There are no compromises when it comes to performance, which makes it good for advanced users.

P.H.O.N.K. vs other languages mog-off.

Numbers may not reflect real world performance.

Pure Python 3.12 420ms (Slow and a chud)
Java 50ms(Better, but still not aura)
Rust 8ms(Close, but no cigar)
P.H.O.N.K. (Transpile time) under 0.1ms (Mogging and alpha)

See P.H.O.N.K. in action.

Basic Example (for betas)
[.phonk]
x = 10; y = 20; if (x < y) { print("hello"); }
Advanced Example (for sigmas ONLY)
[.phonk]
phonk add(a, b) { return a + b; } phonk isEven(n) { if (n % 2 == 0) { return true; } else { return false } } while (i <= 10) { sum = add(sum, i); if (isEven(i)) { print("even"); } else { print("odd"); } if (i == 5) { print("halfway"); } else if (i == 10) { print("done"); } else { print(i); } i = i + 1; } print(sum);

How it works

P.H.O.N.K. is a transpiler. Your code is parsed, validated,translated to C++ then compiled.

pipeline
overview
P.H.O.N.K. Source Code (.phonk) │ ▼ P.H.O.N.K. Transpiler(Parses syntax & validates) │ ▼ C++ Source (.cpp) │ ▼ C++ Compiler (g++ / clang) │ ▼ Executable Binary (release the beast) (.exe)

By compiling to C++, P.H.O.N.K. code benefits from compiler optimization, while being able to maintain easy to read syntax.


Up and running in minutes.

Install the prerequisites, clone the repo, and you're ready to build.

The steps apply to Windows and Mac, additional steps are marked for Linux.

PREREQUISITES

  • Must mog and be tuff
  • A modern C++ compiler supporting C++20 and above
  • Git installed and accessible
  • Sudo installed and accessable (for Linux)

INSTALLATION

  1. 1
    Clone the repository
    git clone https://github.com
    cd P.H.O.N.K.
  2. 2
    Build / Run the transpiler
    # Placeholder
  3. 3
    Call the pack
    Awoooooooooo ruff ruff woof woof Awoooooooooo


Authors behind P.H.O.N.K..

🗿
Team Members
Sigma Language Design & Mogger Transpiler Implementation
Jasio Adorno --> Github
Maxwell Morgan --> Github
Other inquiries: NOchudsallowedonlytopteirtoughsigmas@hotmail.net (not a real email)