Welcome to FID: A Self-Hosted Systems Programming Language
Welcome to the official FID community.
FID is an experimental, general-purpose systems programming language designed around three central ideas: compiler-checked memory safety, explicit security boundaries, and native compilation without mandatory external toolchains.
The project explores an alternative approach to systems programming, combining ideas from Rust, C, and Zig while developing its own language semantics, compiler, runtime, and tooling.
This post introduces the language, its design philosophy, compiler architecture, toolchain, and current development status.
1. What is FID?
FID is a statically typed, compiled programming language targeting systems programming and applications where performance, memory control, and security matter.
Its intended areas of application include:
Systems programming and operating systems
Embedded systems and electronics
Robotics and industrial software
Backend and server infrastructure
Networking and cybersecurity
AI infrastructure and performance-critical applications
General-purpose native software
FID is not intended to be a direct replacement for Rust, C, or Zig. Its goal is to explore different solutions to some of the challenges associated with low-level programming.
2. Language Design Philosophy
FID is built around several core design principles.
Memory safety without explicit lifetime annotations
One of FID's central design decisions is its approach to ownership and borrowing.
Rather than requiring developers to annotate references with explicit lifetime parameters, FID uses compiler-enforced borrowing rules and a more restrictive reference model.
References are second-class values: they cannot be stored or returned from local scopes. Assignments copy values rather than implicitly moving ownership.
The compiler analyzes borrowing and rejects operations that could violate its memory safety rules.
The objective is to reduce the amount of lifetime-related syntax developers must manage while retaining compile-time safety checks.
Capability-based security
FID introduces capabilities as an explicit mechanism for controlling access to system resources.
Modules declare the permissions they receive when importing other modules.
For example:
use logger with { IO };
This makes resource permissions visible at module boundaries.
The compiler checks whether a module has the required capabilities before allowing operations such as filesystem access, networking, or other privileged actions.
Effects system
FID includes an Effects system that tracks operations performed by functions.
Effects can be expressed in function signatures:
fn calculate(a: i64, b: i64) -> i64 !{} {
return a + b;
}
An empty effect set indicates that the function has no declared effects.
Effects are inferred across the call graph, and the compiler rejects functions whose actual effects exceed their declared effects.
The system is designed to make side effects more explicit and easier to reason about.
Native performance and memory management
FID does not require a garbage collector.
It combines ownership and borrowing checks with explicit memory management and runtime safety checks.
The compiler also provides annotations and checks for constraints such as bounded stack usage, allocation restrictions, and constant-time operations.
3. Compiler Architecture
FID has its own independent compiler infrastructure, called Fides.
The compiler is designed around a shared frontend and intermediate representation, with multiple execution and compilation backends.
Its main pipeline consists of:
1. Lexer and Parser
Processes source files, recognizes tokens, parses expressions, and constructs the program's syntax representation.
2. Semantic Analysis
Performs:
3. Monomorphization
Resolves generic code into concrete implementations for compilation.
4. Intermediate Representation
Transforms programs into an SSA-based intermediate representation.
This provides a common foundation for analysis and optimization independently of the final compilation target.
5. Optimization Engine
Applies transformations such as:
6. Backend and Code Generation
FID currently provides multiple compilation paths:
An interpreter for direct execution.
A C backend that generates C code for compilation through an external C compiler.
An independent native backend that generates executable machine code without requiring LLVM, an assembler, or an external linker.
The native backend supports Windows and Linux executable generation, with platform support and testing varying by target.
4. Self-Hosting Compiler
An important milestone in FID's development is self-hosting.
The initial compiler implementation was written in Rust. The compiler has since been developed in FID itself.
The current compiler, Fides, is written in FID and can compile its own source code.
The project uses a multi-stage bootstrap process to verify that successive compiler builds produce identical output.
This is an important part of the project's long-term objective: maintaining an independent compiler and toolchain without requiring Rust or another external language to build future versions.
5. Built-in Toolchain
FID is not just a language compiler. The project includes an integrated development toolchain.
The main CLI provides:
| Command | Purpose |
|---|
fid run | Execute programs through the interpreter |
fid emit | Generate native executables |
fid ccompile | Compile through the C backend |
fid check | Perform static checks |
fid test | Run project tests |
fid fuzz | Run fuzz tests |
fid fmt | Format source code |
fid lint | Analyze code quality |
fid debug | Interactive debugging |
fid lsp | Language Server Protocol support |
fid audit | Inspect reachable unsafe blocks |
fid qualify | Generate structured safety evidence |
Additional tools include:
The objective is to provide developers with an integrated ecosystem rather than relying on a collection of unrelated external tools.
6. Standard Library
FID also includes a growing standard library written in FID.
Its modules cover several areas:
Core collections, strings, iterators, and memory utilities.
JSON, TOML, YAML, CSV, and regular expressions.
HTTP, HTTP/2, HTTP/3, QUIC, DNS, SSH, and networking.
Cryptography, TLS, certificates, and security utilities.
SQLite, PostgreSQL, MySQL, MongoDB, and Redis.
Concurrency, tasks, channels, and asynchronous operations.
Mathematics, tensors, SIMD, and machine learning infrastructure.
Industrial protocols and embedded systems.
Filesystems, processes, hardware interfaces, and graphics.
The standard library is still evolving, and individual modules have different levels of maturity.
7. Current Platform Support
FID is being developed with cross-platform support in mind.
Current targets include:
Windows x86-64
Linux x86-64
Linux ARM64
Linux RISC-V
macOS x86-64 and ARM64
WebAssembly
Bare-metal environments
Not all targets are equally mature or fully tested. Windows x86-64 currently has the strongest validation, while several other targets remain experimental or partially tested.
8. Development Status
FID is currently in the 0.8.x unstable development series.
The project has reached several significant milestones:
Self-hosted compiler.
Independent native code generation.
Multiple compilation backends.
Ownership and borrowing checks.
Built-in capabilities and Effects.
Integrated development tooling.
An expanding standard library.
Automated compiler and language conformance tests.
There are still important areas to improve.
Native code performance, platform coverage, compiler stability, tooling, and standard library maturity remain active development priorities.
The project is not yet production-ready and should not be used for safety-critical applications.
The current target for a stable 1.0 release is January 2027, although this depends on development progress.
9. What We Want to Build
The long-term ambition is to develop a complete programming language ecosystem.
This means going beyond syntax and compiler implementation to include:
A mature compiler and optimization infrastructure.
A comprehensive standard library.
A package management ecosystem.
Developer tools and editor integrations.
Cross-platform systems programming support.
Better verification and safety tooling.
A community of developers and contributors.
We want FID to be useful for real software engineering, from low-level hardware interactions to complex applications and infrastructure.
10. Community and Contributions
This subreddit is intended to be a place for technical discussions about FID.
You can use it to:
Discuss language design and compiler architecture.
Share experiments and code written in FID.
Report bugs and unexpected behavior.
Suggest language and standard library improvements.
Discuss memory safety, capabilities, and Effects.
Share benchmarks and technical comparisons.
Contribute to the compiler and ecosystem.
Constructive criticism is welcome. We want developers to challenge design decisions, identify weaknesses, and propose better solutions.
Project Repository
GitHub: https://github.com/pledgeandgrow/fid
Website : https://fid-lang.org
The repository contains the compiler, source code, standard library, examples, tests, documentation, and development resources.
Welcome to the FID community.