folly
30,555
Stars
0
Forks
0
Watchers
0
Open Issues
未知
许可证
C++
语言
创建时间
最近更新
项目能做什么
由 Facebook 开发并使用的开源 C++ 基础组件库。
来源:AI 基于仓库事实生成
· 内容以仓库实际 README 为准
使用说明 查看原始 README 原仓库文档
中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
Folly: Foundational Open-source Library ======================================= [](https://github.com/meta/folly/actions/workflows/linux.yml) [](https://github.com/meta/folly/actions/workflows/macos.yml) [](https://github.com/meta/folly/actions/workflows/windows.yml) # What is `folly`? <img src="static/logo.svg" alt="Logo Folly" width="15%" align="right" /> Folly (originally an acronym for Facebook Open-source Library) is a library of C++20 components designed with practicality and efficiency in mind. **Folly contains a variety of core library components used extensively at Meta**. In particular, it's often a dependency of Meta's other open source C++ efforts and place where those projects can share code. It builds on the C++ standard library and fills its gaps. We add a component when the standard library doesn't provide it, or doesn't meet the performance, scalability or interface Meta's code needs. When the standard library provides an equivalent, we move folly and its users to the standard one and keep the folly name only as long as users need it. Performance concerns permeate much of Folly, sometimes leading to designs that are more idiosyncratic than they would otherwise be (see e.g. `PackedSyncPtr.h`, `SmallLocks.h`). Good performance at large scale is a unifying theme in all of Folly. ## Check it out in the intro video [](https://www.youtube.com/watch?v=Wr_IfOICYSs) # Logical Design Folly is a collection of relatively independent components, some as simple as a few symbols. There is no restriction on internal dependencies, meaning that a given folly module may use any other folly components. All symbols are defined in the top-level namespace `folly`, except of course macros. Macro names are ALL_UPPERCASE and should be prefixed with `FOLLY_`. Namespace `folly` defines other internal namespaces such as `internal` or `detail`. User code should not depend on symbols in those namespaces. # Physical Design The sources live in the `folly/` directory, so headers are included with the library name as a prefix, e.g. `#include <folly/Conv.h>`. The directory structure is flat (mimicking the namespace structure), i.e. we don't have an elaborate directory hierarchy (it is possible this will change in future versions). The subdirectory `experimental` contains files that are used inside folly and possibly at Meta but not considered stable enough for client use. Your code should not use files in `folly/experimental` lest it may break when you update Folly. The `folly/test` subdirectory includes the unittests for all components, usually named `ComponentXyzTest.cpp` for each `ComponentXyz.*`. The `folly/docs` directory contains documentatio阅读完整原文
商业机会分析 AI 生成
Folly 高性能核心组件轻量化独立打包与商业支持
| 产品构想 | 解决 Folly 内部依赖耦合极深、难以单独引入单个模块的痛点,提取如 F14 容器、ConcurrentHashMap、IOBuf、Hazptr 等核心组件为独立的、零外部重度依赖的子库,并提供跨平台编译保障与 LTS 商业支持。 |
| 核心功能 | 解耦的子模块分发(Conan/Vcpkg 支持)、跨编译器(MSVC/GCC/Clang)无缝集成测试、商业 Bugfix 与升级适配。 |
| 目标用户 | 对编译耗时、二进制体积敏感且只需部分高性能组件的中小型 C++ 研发团队。 |
| 难度/周期 | 高 · 3-6个月 · 成本:人力成本为主,多平台 CI/CD 编译测试流水线费用。 |
| 收费模式 | 商业授权、按年订阅的企业技术支持与安全更新服务。 |
| 竞争风险 | Upstream 代码更新频繁且破坏性重构多,长期跟进同步的维护成本极大(推测)。 |
| 依据 | 已验证事实 |
高性能高并发系统架构与 C++ 性能调优咨询
| 产品构想 | 基于 Folly 内部的并发控制、内存回收(Hazard Pointers)与异步协程设计模式,面向高吞吐/低延迟业务场景提供架构诊断、并发瓶颈排查与定制代码审计服务。 |
| 核心功能 | 内存屏障与无锁结构审查、Folly 协程与异步网络架构集成方案、系统级延迟/吞吐优化报告。 |
| 目标用户 | 高频量化交易机构、大规模广告分发系统团队、游戏服务端架构团队。 |
| 难度/周期 | 高 · 按项目交付(1-3个月/单) · 成本:极高的人力技术门槛,近乎零边际服务器成本。 |
| 收费模式 | 高单价专业技术咨询费、企业内训与专有方案定制费。 |
| 竞争风险 | 客户群狭窄、信任门槛极高,个人或小团队极难获得高额订单(AI推测)。 |
| 依据 | 数据支持的判断 |
现代 C++20 高并发与异步系统实战企业培训套件
| 产品构想 | 将 Folly 中经受 Meta 工业界超大规模检验的设计模式(如 EventBase、IOBuf、folly::coro、Synchronized)提炼为实战型代码规范与架构模版工程,提供企业内部培训与参考架构授权。 |
| 核心功能 | 开箱即用的现代化高性能网络框架脚手架、并发陷阱案例集、设计模式讲解与可运行 Demo。 |
| 目标用户 | 正在从旧 C++ 标准(C++11/14)向现代 C++(C++20)微服务或网络中间件转型的技术团队。 |
| 难度/周期 | 中等 · 1-2个月 · 成本:课程/模版制作工时成本。 |
| 收费模式 | 付费企业内训、高质量实战架构教程、私有模版工程订阅。 |
| 竞争风险 | C++ 开发者整体习惯开源共享,纯教学或工程模版支付意愿可能较低(AI推测)。 |
| 依据 | 尚需验证的假设 |
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心
竞品与相似项目 GitHub Search 真实检索
| 项目 | 中文简介 | Stars | 语言 |
|---|---|---|---|
| bazelment/trunk | 中文介绍暂未生成 Make bazel an out of box solution for C++/Java developers |
241 | Python |
| evancharlton/folly | 中文介绍暂未生成 Flickr Volley demo |
128 | Java |
| mrDIMAS/FishFolly | 中文介绍暂未生成 | 48 | Rust |
| user1342/Folly | 中文介绍暂未生成 Open-source LLM Prompt-Injection and Jailbreaking Playground |
39 | Python |
| edufolly/folly_fields | 中文介绍暂未生成 Basic form fields and utilities. Maybe a humble Flutter pro |
33 | Dart |
| miyanokomiya/no-mans-folly | 中文介绍暂未生成 | 32 | TypeScript |
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。
项目优势与风险
| 技术成熟度 | 创建于 ,最近推送 ,发布过 100 个 Release |
| 社区活跃 | Star 30,555 / Fork 0 / Issue 0(数据支持,可自行核实) |
| 许可证 | 未检测到(需人工确认) |
| 主要风险 | 上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价 |
安装与使用
快速开始(以仓库 README 为准)
git clone https://github.com/meta/folly.git cd folly # 请阅读仓库 README 获取确切安装步骤(依赖、配置、启动命令)
术语说明:Docker=应用容器(把程序和依赖打包运行);API Key=调用外部服务的密钥;Git Clone=把仓库代码下载到本地。常见错误:API Key 未配置 / 端口占用 / 数据库连接失败,多数项目在 README 的 Troubleshooting 章节有说明。