
検証可能な正確性、決定性、およびパフォーマンスを優先するシステムプログラミング言語
汎用システム言語およびプロダクションツールチェーン。デフォルトでメモリ安全な出荷時安全言語表面、検証可能な正当性、決定論的実行、およびリプレイ優先デバッグが組み込まれています。
fzy は、コンパイラワークフローと決定論的検証の両方のために、1 つのプロダクション CLI fz を提供します。正当性、決定論、リプレイ、インシデント成果物、およびプロダクションエビデンスは、後付けではなく通常のワークフローの一部です。言語の簡単なビジュアルツアーについては、open fzl-showcase.html でブラウザに同梱の FZL ショーケース を開いてください。なぜこれを選ぶのかの簡単な説明は、WHYFZY.md を参照してください。
リポジトリアーキテクチャポリシーは、内部的には型付けされ、実際の境界でのみ JSON です。
INSTALL.mdUSAGE.mdWHYFZY.mdCODE.mddocs/production-workflow-v1.mddocs/gpu-v1.mddocs/system-safety-trust-model-v1.mddocs/unsafe-contract-authoring-v1.mddocs/language-stability-v1.mddocs/workspace-policy-v1.mddocs/operational-insights-v1.mdfzyllm: saint0x/fzyllm推奨インストール:
curl -fsSL https://raw.githubusercontent.com/saint0x/fzy/main/install.sh | sh
これにより、fz が ~/.local/bin にインストールされ、必要に応じて PATH が更新され、fz version および fz env でインストールが検証されます。
ソースからのフォールバック:
curl -fsSL https://raw.githubusercontent.com/saint0x/fzy/main/install.sh | sh -s -- --from-source
最速の概要が必要ですか? open fzl-showcase.html で fzl-showcase.html を開き、WHYFZY.md をざっと読んで製品の論旨を確認したら、以下のサンプルをコンパクトな実行可能スケッチとして使用してください。
use core.log;
use core.path;
use core.process;
use core.time;
enum Mode {
Fast,
Safe,
}
trait Scorer {
fn score(endpoint: Url) -> i32;
}
struct HttpScorer {}
impl Scorer for HttpScorer {
fn score(endpoint: Url) -> i32 {
discard endpoint;
return 7;
}
}
struct Config<TEndpoint> {
retries: i32,
endpoint: TEndpoint,
mode: Mode,
}
fn weight(mode: Mode) -> i32 {
match mode {
Mode::Fast => return 3,
Mode::Safe => return 1,
_ => return 1,
}
}
async fn boost(v: i32) -> i32 {
checkpoint()
return v + 1
}
fn normalize<T: Scorer>(cfg: Config<Url>) -> i32 {
return weight(cfg.mode) + T.score(cfg.endpoint)
}
async fn run_once(cfg: Config<Url>) -> i32 {
let base = normalize<HttpScorer>(cfg)
return await boost(base)
}
fn main() -> i32 {
let cfg = Config { retries: 4, endpoint: url.parse("https://example.test"), mode: Mode::Fast }
let now = time.now()
let out_path = path.join("tmp", "score.log")
let mode = process.argv_or(1, "showcase")
let score = normalize<HttpScorer>(cfg)
log.info("snippet.run", out_path)
discard mode
discard run_once
if score + now > 0 then return score
return score
}
より広範な言語カバレッジについては、CODE.md、examples/、およびブラウザ対応の FZL ショーケース を使用してください。
フレームワークパッケージは通常のパッケージルールに従います。fozzy.toml の [deps] で宣言し、ソースで use fzbounds;、use fzweb; などのパッケージ名でインポートします。fz check src/services/mod.fzy --json などの直接ソースチェックは、所有パッケージコンテキストを通じて検証されるようになったため、依存関係のインポートと兄弟モジュールは、フルプロジェクトチェックと同じように動作します。
fz: ビルド、実行、テスト、検証、ドキュメント、IR、RPC、ヘッダー、ABI チェックなどのためのコンパイラ CLIfz fmt、fz doc gencrates/parser、crates/ast、crates/hir、crates/fircrates/verifiercrates/runtimecrates/drivertests/*.fozzy.json現在実装および検証済み:
alloc(...) / free(...) によるオプトインの手動メモリ管理unsafe { ... } アイランド全体での実際のランタイム defer セマンティクス。これにより、決定論的なクリーンアップが文書化されるだけでなく強制されるalloc(...) / free(...) フローと検証器に見えるライフサイクルチェックが行われるfifo、random、coverage_guidedrpc_send、rpc_recv、rpc_deadline、rpc_canceltest ブロックからの言語ネイティブシナリオ生成mod 宣言からの再帰的マルチファイルモジュール読み込みpubext c fn シグネチャからの C ヘッダー生成fz rpc gen による RPC スキーマ、クライアント、サーバースタブ生成core.crypto および core.security によるプロダクション暗号化/セキュリティ表面(セキュアランダム、ハッシュ、HMAC、定数時間比較、URL セーフエンコーディングを含む)fzweb プロダクション Web フレームワークモジュール(アプリルーティング、クッキー、セッション、マルチパートアップロード、永続化、SSE、WebSocket、OpenAPI エクスポート)fz run は、ライブテキストストリーミングまたは JSON キャプチャでネイティブ出力を直接実行python3 scripts/direct_memory_architecture_gate.pypython3 scripts/direct_memory_perf_gate.pycore.gpu を通じたプロダクション GPU 表面(Apple 上でのライブ Metal 実行と共有 spirv/nvptx アダプター契約)fzy は、現在これらのプロダクションの主張をサポートするように設定されています:
alloc(...) / free(...) は、コンパイラが依然として所有権、来歴、およびクリーンアップ実行を検証できる場合、安全なコード内に留まるfzweb およびセッション/クッキー/認証フローをサポートされたランタイム表面内に維持するセキュリティプリミティブを通じたプロダクション Web/サービスカバレッジ関連情報:
docs/system-safety-trust-model-v1.mddocs/production-memory-model-v1.mddocs/production-workflow-v1.mdcargo check --workspace
cargo test --workspace
# 現在のディレクトリまたはターゲットパスにプロジェクトをスキャフォールド
fz init [path] [--name package] [--template minimal|rust|ts] [--with run,fuzz,explore,memory,host|all] [--force]
# ソース/プロジェクトをビルド
fz build [path] [--release] [--lib] [--threads N] [--backend llvm|cranelift] [--pgo-generate|--pgo-use file] [-l lib] [-L path] [-framework name] [--json]
# ソース/プロジェクトまたは .fozzy シナリオを実行
fz run [path] [--det] [--strict-verify] [--seed N] [--record path] [--host-backends] [--backend llvm|cranelift] [--max-seconds N] [--exit-on-healthcheck URL] [--smoke-http URL] [-- <args>] [--json]
# ソース/プロジェクトまたは .fozzy シナリオをテスト
fz test [path] [--det] [--strict-verify] [--sched fifo|random|coverage_guided] [--seed N] [--record path] [--backend llvm|cranelift] [--filter substring] [--json]
# 検証/チェック/ドキュメント/ツール
fz fmt [path ...] [--check] [--json]
fz check [path] [--json]
fz verify [path] [--json]
fz lint [path] [--tier production|pedantic|compat] [--json]
fz dx-check [project] [--strict] [--json]
fz spec-check [--json]
fz emit-ir [path] [--json]
fz perf [--artifact artifacts/bench_core_rust_vs_fzy.json] [--json]
fz stability-dashboard [--json]
fz parity [path] [--seed N] [--json]
fz audit unsafe [path] [--workspace] [--json]
fz vendor [project] [--json]
fz abi-check <current.abi.json> --baseline <baseline.abi.json> [--json]
fz debug-check [path] [--json]
fz pgo merge [path] [--out file] [--json]
fz lsp diagnostics [path] [--json]
fz lsp definition <path> <symbol> [--json]
fz lsp hover <path> <symbol> [--json]
fz lsp rename <path> <from> <to> [--json]
fz lsp smoke [path] [--json]
fz lsp serve [--path <workspace>] [--json]
fz map suites [--root dir] [--scenario-root dir] [--profile pedantic|production|compat] [--json]
fz artifacts ls latest [--json]
fz report show latest [--format json|text] [--json]
fz usage [--json]
fz env [--json]
fz version [--json]
fz inspect stdlib <module> [--json]
fz schema [--json]
fz validate <scenario> [--json]
fz trace verify <trace> [--strict] [--json]
fz replay <trace> [--json]
fz shrink <trace> [--json]
fz ci <trace> [--json]
fz trace-native <trace.fozzy> [--out path] [--json]