Giter Site home page Giter Site logo

lovepika / babylon Goto Github PK

View Code? Open in Web Editor NEW

This project forked from baidu/babylon

0.0 0.0 0.0 3.5 MB

High-Performance C++ Fundamental Library

License: Apache License 2.0

C++ 82.39% C 0.27% Cuda 0.60% Starlark 3.35% NASL 12.89% CMake 0.37% Shell 0.13%

babylon's Introduction

Babylon

CI Coverage Status

Babylon是一个用于支持C++高性能服务端开发的基础库,从内存和并行管理角度提供了大量的基础组件。广泛应用在对性能有严苛要求的场景,典型例如搜索推荐引擎,自动驾驶车载计算等场景

核心功能

  • 高效的应用级内存池机制
  • 组件式并行计算框架
    • 基于无锁DAG推导的高性能自动组件并行框架
    • 依照执行流天然生成数据流管理方案,复杂计算图场景下提供安全的数据竞争管理
    • 微流水线并行机制,提供上限更好的并行化能力
  • 并行开发基础组件
    • wait-free级别的并发安全容器(vector/queue/hash_table/...)
    • 可遍历的线程缓存开发框架
    • 可扩展支持线程/协程的同步原语(future/mutex/...)
  • 应用/框架搭建基础工具
    • IOC组件开发框架
    • C++对象序列化框架
    • 零拷贝/零分配异步日志框架

编译并使用

支持平台和编译器

  • OS: Linux
  • CPU: x86-64/aarch64
  • COMPILER: gcc/clang

Bazel

Babylon使用Bazel进行构建并使用bzlmod进行依赖管理,考虑到目前Bazel生态整体处于bzlmod的转换周期,Babylon也依然兼容workspace依赖管理模式

CMake

Babylon也支持使用CMake进行构建,并支持通过find_packageadd_subdirectoryFetchContent进行依赖引入

模块功能文档

整体设计思路

如何贡献

如果你遇到问题或需要新功能,欢迎创建issue。

如果你可以解决某个issue, 欢迎发送PR。

发送PR前请确认有对应的单测代码。

babylon's People

Contributors

oathdruid avatar pkusunjy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.