Skip to content

Commit a3042ed

Browse files
author
devsamikhan
committed
🚀 AETHER v1.0.0: The Post-Quantum Programming Language - Complete Launch Package
0 parents  commit a3042ed

196 files changed

Lines changed: 14161 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/FUNDING.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
github: devsamikhan
2+
patreon: aether-lang
3+
open_collective: aether
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve AETHER
4+
title: '[BUG] '
5+
labels: bug
6+
assignees: ''
7+
---
8+
9+
**Describe the bug**
10+
A clear and concise description of what the bug is.
11+
12+
**To Reproduce**
13+
Steps to reproduce the behavior or minimal AETHER source code:
14+
```aether
15+
// source code
16+
```
17+
18+
**Expected behavior**
19+
A clear and concise description of what you expected to happen.
20+
21+
**Desktop/Environment Info:**
22+
- OS: [e.g. Windows/macOS/Linux]
23+
- AETHER version: [e.g. 1.0.0]
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea or new primitive for AETHER
4+
title: '[FEAT] '
5+
labels: enhancement
6+
assignees: ''
7+
---
8+
9+
**Is your feature request related to a problem? Please describe.**
10+
A clear and concise description of what the problem is.
11+
12+
**Describe the solution you'd like**
13+
A clear and concise description of what you want to happen. Include example `.aether` code syntax showing the new feature.
14+
15+
**Describe alternatives you've considered**
16+
A clear and concise description of any alternative solutions or workarounds you've considered.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
name: Question
3+
about: Ask a question about syntax, compiler JIT, or usage of AETHER
4+
title: '[Q] '
5+
labels: question
6+
assignees: ''
7+
---
8+
9+
**What is your question?**
10+
Ask your question here. Provide context or AETHER code examples if relevant.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
## Description
2+
Describe your changes in detail.
3+
4+
## Related Issue
5+
Fixes # (issue)
6+
7+
## Motivation and Context
8+
Why is this change required? What problem does it solve?
9+
10+
## Checklist:
11+
- [ ] My code follows the code style of this project.
12+
- [ ] I have ran `cargo test` and all checks pass.
13+
- [ ] I have updated the documentation accordingly.

‎.github/workflows/ci.yml‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: CI
2+
on: [push, pull_request]
3+
jobs:
4+
test:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v3
8+
- name: Build
9+
run: cargo build --release
10+
- name: Test
11+
run: cargo test

‎.github/workflows/docs.yml‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Deploy Docs
2+
on:
3+
push:
4+
branches: [main]
5+
jobs:
6+
deploy:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v3
10+
- name: Deploy to GitHub Pages
11+
uses: peaceiris/actions-gh-pages@v3
12+
with:
13+
github_token: ${{ secrets.GITHUB_TOKEN }}
14+
publish_dir: ./website
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Build and Release AETHER
2+
on:
3+
push:
4+
tags:
5+
- 'v*'
6+
7+
jobs:
8+
build:
9+
name: Build AETHER for ${{ matrix.target }}
10+
runs-on: ${{ matrix.os }}
11+
strategy:
12+
matrix:
13+
include:
14+
- target: x86_64-pc-windows-msvc
15+
os: windows-latest
16+
artifact_name: aether-windows-x64.exe
17+
- target: x86_64-unknown-linux-musl
18+
os: ubuntu-latest
19+
artifact_name: aether-linux-x64
20+
- target: x86_64-apple-darwin
21+
os: macos-latest
22+
artifact_name: aether-macos-x64
23+
- target: aarch64-apple-darwin
24+
os: macos-latest
25+
artifact_name: aether-macos-arm64
26+
27+
steps:
28+
- name: Checkout Repository
29+
uses: actions/checkout@v3
30+
31+
- name: Setup Rust Toolchain
32+
uses: dtolnay/rust-toolchain@stable
33+
with:
34+
targets: ${{ matrix.target }}
35+
36+
- name: Build production binary
37+
run: cargo build --release --target ${{ matrix.target }}
38+
39+
- name: Copy & Rename Artifacts
40+
shell: bash
41+
run: |
42+
mkdir -p dist/
43+
if [ "${{ matrix.os }}" = "windows-latest" ]; then
44+
cp target/${{ matrix.target }}/release/aether.exe dist/${{ matrix.artifact_name }}
45+
else
46+
cp target/${{ matrix.target }}/release/aether dist/${{ matrix.artifact_name }}
47+
fi
48+
cd dist/
49+
shasum -a 256 ${{ matrix.artifact_name }} > ${{ matrix.artifact_name }}.sha256
50+
51+
- name: Upload Artifacts
52+
uses: actions/upload-artifact@v3
53+
with:
54+
name: aether-binaries-${{ matrix.target }}
55+
path: dist/*

‎.gitignore‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Build artifacts
2+
/target/
3+
Cargo.lock
4+
5+
# IDE / editor files
6+
.vscode/
7+
.idea/
8+
*.suo
9+
*.ntvs*
10+
*.njsproj
11+
*.sln
12+
13+
# OS artifacts
14+
.DS_Store
15+
.DS_Store?
16+
._*
17+
.Spotlight-V100
18+
.Trashes
19+
ehthumbs.db
20+
Thumbs.db
21+
desktop.ini
22+
23+
# AETHER runtime artifacts
24+
*.aether.cache
25+
*.aether.jit
26+
*.aether.lock
27+
28+
# Logs
29+
*.log
30+
logs/
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
intent QuantumLedger {
2+
schema {
3+
blockId: Int = 0;
4+
prevHash: String = "0000000000000000";
5+
merkleRoot: String = "0000000000000000";
6+
status: String = "pending";
7+
}
8+
9+
constraint 0 <= blockId;
10+
11+
fn mine_quantum_block(sender: String, receiver: String, amount: Int) {
12+
qubit q_sender;
13+
qubit q_receiver;
14+
entangle(q_sender, q_receiver);
15+
measure(q_sender) => parityCollapse;
16+
QuantumSwarmConsensus(nodes: (q_sender, q_receiver));
17+
18+
match parityCollapse {
19+
1 => this.status = "VERIFIED_QUANTUM_CONSENSUS";
20+
_ => this.status = "EAVESDROPPER_COLLAPSE_DETECTED";
21+
}
22+
}
23+
}

0 commit comments

Comments
 (0)