pkg.soopen package index

brew / 排名 8342

使用 Homebrew, MacPorts, Nix 安装 stanc3

查看 stanc3 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install stanc3

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install stanc3

MacPorts ports tree · math/stanc3/Portfile · 来源: api.github.com

Linux

Nix已验证 · 92%
nix profile install nixpkgs#stanc

nixpkgs package indexes · pkgs/by-name/st/stanc/package.nix · 来源: api.github.com

概览

软件包摘要

Stan transpiler

命令和别名

  • stanc

历史

项目历史与用法

stanc3 is the OCaml implementation of the Stan compiler, exposed to users as the stanc command.

项目历史

The official repository describes stanc3 as a new Stan-to-C++ compiler written in OCaml, with a frontend, middle representation, analysis and optimization layer, and Stan Math backend. The Stan User's Guide says the Stan compiler has been implemented in OCaml since Stan 2.22, while the repository README says stanc3 has been the default compiler for Stan since version 2.26.

采用历史

stanc3 became part of normal Stan usage because Stan interfaces call the stanc compiler when translating models. The official releases page shows signed multi-platform binaries and a JavaScript version, while the package facts show Homebrew, MacPorts, and Nix packaging.

使用方式

Users generally encounter stanc through CmdStan and other Stan interfaces, or directly as a CLI with syntax like stanc options model_file. The User's Guide documents options for output files, generated C++ printing, automatic formatting, canonicalization, warnings, optimization levels, OpenCL support, and compiler diagnostics.

为什么软件包爱好者会关心

Package nerds care about stanc3 because it is the compiler binary behind a large statistical programming ecosystem. Its OCaml toolchain, generated multi-platform assets, JavaScript build, and integration with CmdStan make it a packaging-sensitive developer tool rather than just an internal library.

时间线

  • 2018: Stan developers publicly discussed choosing OCaml for the new compiler implementation.
  • Stan 2.22: Stan User's Guide says the compiler has been implemented in OCaml since this version.
  • Stan 2.26: stanc3 became the default compiler for Stan, according to the official README.
  • 2026: stanc3 v2.39.0 release notes added language features, warning improvements, parser fixes, and optimization bug fixes.

Related projects

  • stanc3 is tightly related to Stan, CmdStan, Stan Math, Stan interfaces, stancjs, and the Stan documentation. Its developer docs also point to OCaml tooling such as dune, opam, ocamlformat, and Merlin.

安全态势

尚未找到受保护工具覆盖

没有找到 stanc3 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。

安装行为

  • 未记录 Homebrew bottle 元数据。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
stanc可执行文件已索引可执行文件从本地可执行文件索引发现。

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-08-03
管理器版本2.39.0
管理器更新时间2026-07-13
本地数据未知
上游不可用
检测到的最新版本未检测到
  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:stanc3
版本2.39.0
软件包管理器Homebrew
主页https://github.com/stan-dev/stanc3
仓库https://github.com/stan-dev/stanc3
最后更新2026-07-13T05:11:31Z
Pulseupdated
Bottle未记录
服务未声明

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

MacPorts95%

stanc3

sudo port install stanc3
  • normalized package name match
  • 匹配方式:Stanc3
MacPorts ports tree · api.github.com · MacPorts ports tree: math/stanc3/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Nix92%

stanc

nix profile install nixpkgs#stanc
  • installed executable or alias match
  • 匹配方式:Stanc
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/st/stanc/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • pkg.so package database
  • pkgdb category and tag curation