Code Monkey home page Code Monkey logo

ppcode's Introduction

项目 ppcode

项目实现

项目的命名风格

class的统一命名风格

  1. 成员变量 m_
  2. 成员函数 xxXx
  3. 静态变量 ms_
  4. 静态方法 XxXx
  5. 类名 XxXx
  6. 静态全局变量 s_
  7. 普通全局变量 g_
  8. 全局静态函数 S_
  9. 全局函数 G_(一般将其放入util的util.cc目录下)

文件统一命名风格

  1. 头文件 xxXx.h
  2. 源文件 xxXx.cc
  3. 测试文件 test_xx.cc
  4. 示例文件 example_xx.cc
  5. 性能测试文件 performance_xx.cc

c++名字空间作用域

  1. 主作用域 ppcode

项目进展 简介

日志模块

支持自定义日志格式 c++流风格 TODO 异步日志 默认输出日志


20-06-21 19:59:10       6828 UNKOWN fiber=23    [root] [DEBUG]  test/test_log.cc:113    errno=0 strerr=Success  massage

线程模块

支持线程命名 支持线程属性 支持运行具有不定长参数的函数

线程同步锁

  1. 支持互斥锁 + 互斥锁属性
  2. 将递归锁从互斥锁中抽离
  3. 读写锁
  4. 瞬息锁
  5. 信号量
  6. 条件变量
  7. 内存屏障
  8. 无锁队列

TODO 读写瞬息锁

配置系统

配置系统 支持yaml

------------------------------ 未完成分界线-------------------------------

协程

UNDO

socket

http

数据库

ppcode

创作目的

目的1

你可以将你的代码paste到这个网站上面,然后将网站通过社交平台分享出去,也许你的代码有bug。

大佬们也许会在咖啡时间,通过网站的run按钮,运行一下你的代码,帮你解决这个bug。

项目的名称的两个p,第一个代表paste。第二给代表pass。

目的2

作为一名大三即将面临秋招的学生,我希望这个项目能给我带来offer。

c++高性能网络库

我觉得一个c++工程师,应该自己独立的完成一个属于自己的高性能网络库。

我将在这个项目里面搭建一个c++的协程库。


ppcode's People

Contributors

joedz 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.