Giter VIP home page Giter VIP logo

yalantinglibs's Introduction

yaLanTingLibs

A Collection of C++20 libraries, include async_simple, coro_rpc and struct_pack

license language last commit

yaLanTingLibs is a collection of C++20 libraries, now it contains async_simple, struct_pack and coro_rpc.

The target of yaLanTingLibs: provide very easy and high performance C++20 libraries for C++ developers, it can help to quickly build high performance applications.

async_simple

A library offering simple, light-weight and easy-to-use components to write asynchronous codes. See async_simple

coro_rpc

Very easy-to-use, coroutine-based, high performance rpc framework with C++20. coro_rpc is a header only library.

English Introduction(TODO) | 中文简介

English API(TODO) | 中文API

struct_pack

Based on compile-time reflection, very easy to use, high performance serialization library, struct_pack is a header only library, it is used by coro_rpc now.

English Introduction(TODO) | 中文简介

English API(TODO) | 中文API

Quick Start of coro_rpc

  • clone repo
git clone https://github.com/alibaba/yalantinglibs.git
  • build with cmake
mkdir build && cd build
cmake ..
make -j
  • run tests
cd tests
ctest .

Benchmark

options:

./benchmark_client [threads] [client_pre_thread] [pipeline_size] [host] [port] [test_data_path] [test_time] [warm_up_time]

Build Options

option description default
CMAKE_BUILD_TYPE build type Release
BUILD_WITH_LIBCXX Build with libc++ OFF
USE_CONAN Use conan package manager to handle dependencies OFF
ENABLE_SSL Enable ssl support OFF

Dependencies

Currently, asio and spdlog are put in thirdparty folder. doctest is put in tests folder.

How to Contribute

  1. Create an issue in the issue template.
  2. Run tests and git-clang-format HEAD^ locally for the change.
  3. Create a PR, fill in the PR template.
  4. Choose one or more reviewers from contributors: (e.g., qicosmos, poor-circle, PikachuHyA).
  5. Get approved and merged.

License

yaLanTingLibs is distributed under the Apache License (Version 2.0) This product contains various third-party components under other open source licenses. See the NOTICE file for more information.

yalantinglibs's People

Contributors

poor-circle avatar qicosmos avatar pikachuhya avatar alibaba-oss avatar

Watchers

James Cloos avatar  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.