Skip to content
XenoTechWorksPublic

Repository files navigation

ʃ#

ʃ# (pronounced “esh-sharp”) is a systems programming language focused on:

  • Clarity — readable, low-ceremony syntax
  • Safety — memory safety by default (ownership, borrowing, lifetimes)
  • Speed — performance competitive with C++ / Rust / Zig
  • Power — capable of real systems work (engines, kernels, tools)

It aims for Rust-level guarantees with significantly better ergonomics.

Design Goals

  • Memory safety without a tracing garbage collector
  • Deterministic destruction (RAII)
  • Ownership + borrowing + lifetimes (mostly inferred)
  • Explicit allocation visibility (!alloc effect)
  • Controlled unsafe for low-level work
  • Clean, modern syntax (inspired by the better parts of C# and others)
  • Minimal boilerplate — no giant walls of imports
  • Both # and // comments supported

Current Status

An early stage-zero compiler now builds a small ESH subset into native executables through C11. It includes functions, typed/inferred variables, mutability checks, conditions, loops, recursion, static strings, and printing.

python3 bootstrap/esh.py run examples/hello.esh
python3 bootstrap/esh.py run examples/fibonacci.esh
python3 -m unittest discover -s tests -v

Requires Python 3.10+ and a C11 compiler (cc) for native builds. No third-party Python dependencies. See bootstrap documentation for commands, supported syntax, limitations, and the self-hosting plan.

The full language and standard library are still being designed. Ownership, borrowing, lifetimes, and allocation effects are design goals, not implemented compiler guarantees. The initial compiler is written in Python to bootstrap an implementation written primarily in ESH.

Inspiration

  • Rust (safety model & performance)
  • C# (readable syntax, without the using-list pain)
  • Zig (explicitness & systems focus)
  • Vanta (ownership + effects experiments)

Roadmap (rough)

  1. Finalize core language design & specification
  2. Minimal compiler / interpreter
  3. Core standard library
  4. Self-hosting path
  5. Tooling (formatter, LSP, package manager)

License

Apache-2.0; see LICENSE.


Apache Logo

Releases

Packages

Contributors

Languages