← @bgSponge

GitHub - Krzysztof-Cieslak/fai: Programming language for AI age

Summary

Krzysztof Cieslak presents Fai, a strict, statically typed functional language designed to optimize development loops for both humans and AI agents through explicit effects and built-in contracts.

  1. Fai optimizes agentic workflows.

    The language provides structured, integrated tooling and an llms.txt guide to enable fast, precise edit-check-test loops for AI agents.

    designed for fast, reliable development by humans and AI agents

  2. Row-based effects enforce purity.

    Inspired by Koka, Fai treats capabilities like the file system or network as explicit values passed through functions, using effect rows to track them.

    a function type without an effect annotation is pure

  3. Contracts live inside the code.

    The `example` and `forall` keywords are type-checked declarations that keep executable laws and cases alongside function definitions rather than in comments.

    example and forall are real, type-checked declarations, not specially formatted comments

  4. Memory management avoids tracing collectors.

    Fai uses Perceus-style reference counting and reuse analysis to update uniquely owned data in place, reducing allocations through sequence fusion.

    reuse analysis updates uniquely owned data in place

  5. Incremental compilation speeds iteration.

    A Salsa-based query engine and a per-workspace daemon allow for definition-level incremental work and an on-disk object cache.

    The compiler uses a demand-driven Salsa query engine

Read the original ↗Save to your Sponge

Summarized with Sponge. Quotes are the author’s own words.

More from @bg

All readings →