Skip to content

arshalaromal/antimatter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Antimatter Programming Language

A high-performance systems programming language focused on simplicity, Mutable Value Semantics, Copy-on-Write (CoW) memory management, and a new approach to error handling.

Status

Lexer Parser Semantic%20Checker Codegen Compiler

Antimatter is currently in active development. The lexer and parser are complete, while the semantic checker, compiler pipeline, and code generation are still being built.

Latest Update: Engineering Log #2

The Core Concept

Antimatter is designed to remove the need for a garbage collector while keeping the language practical, predictable, and easy to use. It aims to combine performance, safety, and simplicity in a single system.

  • Native Primitives: No heap overhead for Int, Float, Bool.
  • CoW Memory: Automatic safety via reference counting and deep-copy-on-mutation.
  • Zero-Cost Borrows: Immutable, stack-only pointers for function arguments.
  • Cycle Handling: Cyclic references are handled using an @weak compiler directive to prevent memory leaks.

Error Handling Philosophy

Antimatter also aims to introduce a new and simpler way of managing errors. The goal is to make error handling more structured, more expressive, and less painful without adding unnecessary runtime cost.

Technical Architecture

  • Runtime: Rust-based memory management layer.
  • Backend: Emits QBE IR for efficient native code generation.

Note: This is an active research project. The design and implementation are subject to change as the language evolves.

About

Antimatter is a programming language

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages