GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - dev-dami/track: Track is a low-level systems programming language designed for deterministic memory management, zero-cost abstractions, and real-time execution.

BranchesTags
Open more actions menu

Latest commit

 

History

92 Commits
92 Commits

Folders and files

NameName
Last commit message
Last commit date
.cargo
.cargo
 
 
.github/workflows
.github/workflows
 
 
assets
assets
 
 
compiler
compiler
 
 
docs
docs
 
 
editor
editor
 
 
examples
examples
 
 
grammars
grammars
 
 
page
page
 
 
runtime
runtime
 
 
scratch
scratch
 
 
scripts
scripts
 
 
src
src
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
CHANGELOG.md
CHANGELOG.md
 
 
Cargo.lock
Cargo.lock
 
 
Cargo.toml
Cargo.toml
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
SPEC.md
SPEC.md
 
 

Repository files navigation

Track

Track is a low-level systems programming language designed for deterministic memory management, zero-cost abstractions, and real-time execution.

  • No Garbage Collector. Resource lifecycles are verified at compile time; there is no collector and only a small C runtime.
  • Linear Ownership. Eliminates use-after-free, double-free, and memory leaks.
  • Lexical Lenses. Scoped mutable access without manual pointer arithmetic or ownership transfer.
  • Cranelift Standalone Backend. Fast native code generation without system LLVM dynamic library dependencies.

Hello World

import "std/io";

fn main() -> void {
    io::print("Hello, Track!");
}

Linear Ownership & Scoped Access

import "std/io";

// Linear ownership — the checker rejects use after a move
let mut v: Vec = vec_init(16);
vec_push(&mut v, 42);

// Lexical lens block for scoped mutation
let mut u = User { age: 30 };
with u -> user {
    user.set_age(31);
}

// Anonymous tuples, destructuring & pattern matching (v0.4)
let pair: (i64, bool) = (42, true);
let (n, flag) = pair;
match n {
    x if x > 10 => io::print("big"),
    _ => io::print("small"),
}

Installation

One-line Install (curl)

curl -fsSL https://raw.githubusercontent.com/dev-dami/track/main/scripts/install.sh | bash

Build from Source

Requires Rust (2021 edition).

# Build release binaries
cargo build --release

# Run installer script
./scripts/install.sh

Usage

Single-File Compiler (track)

# Type-check a source file
track check examples/hello.trk

# Compile to native executable
track build examples/hello.trk
./hello

Package Manager & Build Orchestrator (yard)

# Create a new Track project
yard init my_app

# Type-check project
yard check

# Lint project (check without build)
yard lint

# Build project to target/my_app
yard build

# Build and execute project
yard run

# Run native Track tests (src/*_test.trk, tests/**/*.trk)
yard test

Self-Hosted Compiler (trackc)

Track is self-hosting: compiler/ is the Track compiler written in Track. It compiles itself to a verified fixed point.

# Build trackc with the Rust bootstrap compiler
(cd compiler && yard build)          # -> compiler/target/trackc

compiler/target/trackc build examples/hello.trk -o hello
compiler/target/trackc run examples/generics.trk
compiler/target/trackc emit-c examples/hello.trk   # generated C on stdout

# Stage 0 -> 1 -> 2 -> 3, then check the fixed point
scripts/bootstrap.sh

See docs/bootstrap.md for the pipeline, the shared word-ABI runtime, and the C backend contract.

Testing

cargo test                      # Rust suites, incl. the self-hosting parity tests
(cd compiler && yard test)      # native compiler tests
scripts/bootstrap.sh            # bootstrap fixed point

License

MIT

About

Track is a low-level systems programming language designed for deterministic memory management, zero-cost abstractions, and real-time execution.

Resources

Readme
MIT license
Activity

Stars

2 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.