Thanks to visit codestin.com
Credit goes to Github.com

Skip to content
@FidelityFramework

Fidelity Framework

F# native application platform

Fidelity Framework

Native F# compilation with preserved type and memory safety.

🚧 Under Active Development 🚧
These projects are in early development and not intended for production use.

About

The Fidelity Framework was created by Houston Haynes, founder and CEO of SpeakEZ Technologies. The vision:

provide maximum degrees of freedom in producing intelligent hardware and software products that elevate performance, safety, and efficiency.

On a technical level it means direct native compilation without runtime dependencies. For our purposes, it translates to massive advantages in elegant design and ergonomics that yields deterministic memory without garbage collection and other negative aspects of managed runtime environments. The element that separates this framework from other tool chains is its memory safety that persists from source through compilation, as far as can be carried to the final binary.

More broadly F# has long been a well-designed general-purpose language for more than 20 years, with several compilation targets. Its original compiler produces assemblies for the .NET Common Language Runtime. Fable is another compiler that transpiles F# to JavaScript and other languages for web and cross-platform development. Still another is WebSharper which like Fable provides a pathway to produce full-stack F# web applications. And Fidelity Framework brings a completely new dimension: native binaries that provide all the benefits of hand-optimized low-level code, providing increased safety at no additional compute cost.

Where other compilers target managed runtimes or transpile to languages with their own memory models, Fidelity is designed to produce native applications and libraries with coherent memory management and compile-time safety guarantees. The name "Fidelity" reflects this mission: preserving type and memory safety from source code through compilation to native execution. The properties that made F# a reliable .NET platform language remains true when recast to generate native applications and libraries.

Firefly, the native AOT compiler at the heart of the Fidelity framework, uses a unique continuation-passing style (CPS) transformation and nanopass architecture. Rather than large monolithic compiler phases, the pipeline consists of many small, composable passes that each perform a single transformation. This design enables verification, optimization, and targeting flexibility.

Learn More

For deeper discussion of the architectural thinking behind Fidelity, see the SpeakEZ blog. Key articles include:

Core Projects

Repository Description
Firefly AOT compiler orchestrating the pipeline from F# source through MLIR to native binaries
fsnative F# Native Compiler Services (FNCS) — hard fork of dotnet/fsharp providing native type resolution
fsnative-spec Normative specification for native F# type semantics
BAREWire Type-safe binary encoding, zero-copy memory operations, and IPC
Farscape C/C++ header parsing for generating native library bindings
Alloy Native standard libraryAbsorbed into fsnative (January 2025). Repository preserved as historical reference.

WREN Stack & Tooling

Repository Description
Atelier Purpose-built editor for the Fidelity ecosystem, built on the WREN Stack
Fidelity.Toml TOML 1.0 compliant parser built with XParsec
FStarHelloWorld Sample F*/F# project proof of concept

IDE Support (Forks)

Forks of Ionide and related tooling adapted for F# Native development:

Repository Description
FsNativeAutoComplete F# Native language server using Language Server Protocol
ionide-vscode-fsnative VS Code plugin for F# Native development
Ionide-vim-fsnative Vim plugin for F# Native based on LSP
ionide-vscode-native-helpers Common helpers for VS Code plugins
ionide-native-analyzers Native code analyzers for Ionide
FSharp.Native.Analyzers.SDK SDK for building custom analyzers for F# Native / FSNAC

Library Forks

Libraries forked and integrated into the fsnative ecosystem as compiler intrinsics:

Repository Description
fsil F# inline generic library — default inlining semantics for fsnative
FSharp.UMX Units of measure for primitive non-numeric types — intrinsic to fsnative's type universe
XParsec Parser combinator library for F#
FStar Proof-oriented language with adaptations for fsnative integration

How It Works

F# Source Code
    |
    v
FNCS (fsnative)          Type checking with native type resolution
    |
    v
Program Semantic Graph   Rich intermediate representation
    |
    v
Alex (in Firefly)        Platform-aware code generation
    |
    v
MLIR                     Multi-Level IR with dialect flexibility
    |
    v
Backend                  LLVM, or other targets as the ecosystem matures
    |
    v
Native Binary            Standalone executable, library, unikernel

Firefly orchestrates this pipeline. FNCS handles parsing and type checking, resolving familiar F# types to their native representations. The Program Semantic Graph captures the full semantics of your program. Alex generates MLIR, and this is where degrees of freedom emerge. MLIR's dialect system allows targeting different backends without changing the upstream pipeline. In the early stages of platform maturity, we're focusing on LLVM to produce binaries. But MLIR opens the door to other backends as the ecosystem evolves. Tell us what you'd like to see!

What Makes Fidelity Different

Native types from the start. When you write string, FNCS resolves it to a UTF-8 native string, not System.String. When you write Some x, you get a stack-allocated value option, not a heap-allocated reference. The type system understands native semantics.

Deterministic memory. No garbage collector decides when resources are freed. Memory lifetimes are explicit. When a value goes out of scope, its resources are released immediately.

Preserved safety. The compile-time guarantees of F# carry through to the native binary. Type safety, memory safety, and resource management are enforced at compile time, not deferred to a runtime.

Platform targeting. The same F# code can target Linux, macOS, Windows, embedded systems, or WebAssembly. Platform-specific details are defined by you in the .fidproj file and handled downstream by the compiler. And we have plans on our roadmap to address GPU, TPU and other accelerators and specialty processors.

Intrinsic units of measure. Non-numeric dimensional types are built into the compiler, not a library. Dimensional constraints flow through the entire compilation pipeline, informing code generation for CPUs, GPUs, FPGAs, and CGRAs.

Origins

Fidelity is developed by SpeakEZ Technologies. The framework builds on several established foundations:

  • F# Compiler Services from Microsoft provides parsing and type checking infrastructure
  • MLIR/LLVM from the LLVM project provides the code generation backend
  • F* from Microsoft Research and INRIA informs the verification integration roadmap

Licensing

While SpeakEZ Technologies intends to develop this platform for commercialization, we provide open licensing for several reasons: to make source available for inspection and learning, to support further research in compiler architecture and formal verification, and to enable community contributions back to the systems from which we draw inspiration.

Projects in the Fidelity Framework use different licenses appropriate to their nature:

Project License
Firefly, BAREWire, Farscape, Atelier Apache 2.0 + Commercial dual license
fsnative MIT (hard fork of dotnet/fsharp)
fsnative-spec MIT (hard fork of fsprojects/fsharp-spec)
FStar Apache 2.0 (fork of FStarLang/FStar)
fsil, FSharp.UMX, XParsec MIT
Ionide forks MIT

The dual-licensed projects are available under Apache 2.0 for open source use. Commercial licenses are available for organizations requiring additional terms.

Certain compilation techniques in Firefly are covered by pending patent US 63/786,264: "System and Method for Verification-Preserving Compilation Using Formal Certificate Guided Optimization."

Contributing

We welcome community contributions. Each repository contains its own contribution guidelines. General principles:

  • Issues and discussions help shape the framework's direction
  • Pull requests should target specific, well-defined improvements
  • Documentation improvements are always appreciated
  • Please review the license terms before contributing

For substantial changes, please open an issue first to discuss the approach.

Status

All Fidelity projects are under active development. APIs are unstable. The framework is not yet suitable for production use. We're building in the open and appreciate patience as the work progresses.


Copyright 2025 SpeakEZ Technologies, Inc. All rights reserved.

Popular repositories Loading

  1. Firefly Firefly Public

    A compiler that brings F#'s elegance and precision to systems programming through MLIR and various backends

    F# 57 1

  2. Farscape Farscape Public

    F# Native Library Binding Generator

    F# 40 3

  3. Alloy Alloy Public archive

    A zero-cost abstractions library for F# focused on high-performance functional programming with static resolution

    F# 32 2

  4. BAREWire BAREWire Public

    Implementation of the BARE protocol in F# for memory management, IPC and network comms

    F# 8

  5. fsnative fsnative Public

    Forked from dotnet/fsharp

    A Native F# compiler, core library and language service, and tooling for the Fidelity framework

    F# 5

  6. fsil fsil Public

    Forked from ieviev/fsil

    F# inline generic library

    F# 2

Repositories

Showing 10 of 23 repositories
  • fsnative Public Forked from dotnet/fsharp

    A Native F# compiler, core library and language service, and tooling for the Fidelity framework

    FidelityFramework/fsnative’s past year of commit activity
    F# 5 MIT 907 0 0 Updated Jan 22, 2026
  • Firefly Public

    A compiler that brings F#'s elegance and precision to systems programming through MLIR and various backends

    FidelityFramework/Firefly’s past year of commit activity
    F# 57 1 0 0 Updated Jan 22, 2026
  • fsnative-spec Public Forked from fsharp/fslang-spec

    F# Language Specification for Native Applications

    FidelityFramework/fsnative-spec’s past year of commit activity
    F# 0 MIT 7 0 0 Updated Jan 22, 2026
  • BAREWire Public

    Implementation of the BARE protocol in F# for memory management, IPC and network comms

    FidelityFramework/BAREWire’s past year of commit activity
    F# 8 0 1 0 Updated Jan 21, 2026
  • Fidelity.Platform Public

    Platform definitions for the Fidelity Framework

    FidelityFramework/Fidelity.Platform’s past year of commit activity
    F# 0 0 0 0 Updated Jan 14, 2026
  • WRENHello Public

    Initial app scaffold for the WREN Stack

    FidelityFramework/WRENHello’s past year of commit activity
    F# 1 MIT 0 0 0 Updated Jan 14, 2026
  • Fidelity.WebView Public

    WebView bindings for Fidelity UI

    FidelityFramework/Fidelity.WebView’s past year of commit activity
    F# 1 0 0 0 Updated Jan 14, 2026
  • Atelier Public

    An editor for Fidelity Framework using the WREN Stack

    FidelityFramework/Atelier’s past year of commit activity
    0 0 0 0 Updated Jan 11, 2026
  • .github Public
    FidelityFramework/.github’s past year of commit activity
    0 0 0 0 Updated Jan 11, 2026
  • FidelityFramework/ionide-native-analyzers’s past year of commit activity
    F# 1 MIT 10 0 0 Updated Jan 10, 2026

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Most used topics