WEYL WEYL
← Back to Weyl Standard

Weyl Standard

A collection of coding standards, patterns, and conventions for building production systems, codifying principles for high-performance computing, infrastructure, and software engineering.

Weyl Standard

Weyl Standard is a collection of coding standards, patterns, and conventions for building production systems. It codifies the principles developed at Weyl AI for high-performance computing, infrastructure, and software engineering.

Philosophy

Optimize for disambiguation, not brevity.

In modern codebases where agents generate significant code and humans debug at 3am:

Language Standards

LanguageUse Case
NixReproducible infrastructure and builds
PythonGPU inference and ML orchestration
C++Extreme performance requirements
HaskellType-safe systems programming
RustMemory safety without garbage collection
TypeScriptWeb services and tooling
BashSystem automation and scripting

Weyl Standard Nix

The Nix component provides infrastructure patterns for:

Terminal window
nix flake init -t github:weyl-ai/weyl-std
nix flake init -t github:weyl-ai/weyl-std#cuda
nix flake init -t github:weyl-ai/weyl-std#minimal

Quick Start

{
inputs.weyl-std.url = "github:weyl-ai/weyl-std";
outputs = inputs@{ flake-parts, weyl-std, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
imports = [ weyl-std.flakeModules.default ];
weyl-std.nixpkgs.cuda.enable = true;
perSystem = { pkgs, ... }: {
packages.default = pkgs.hello;
};
};
}

Nix Modules

ModuleDescription
weyl-std.flakeModules.defaultBatteries included
weyl-std.flakeModules.formatterTreefmt with opinionated defaults
weyl-std.flakeModules.nixpkgsNixpkgs config with CUDA support
weyl-std.flakeModules.stdFull stack with overlays

Start Here

If you want to…Read…
Understand the philosophyWhy Nix
Set up a Nix projectInstallation
Learn Nix patternsFile Placement
Write production PythonPython
Build high-performance C++C++

Themes

Documentation supports two themes:


“We optimize for disambiguation when human attention is the scarce resource.”

— Weyl Standard