这里是modern c++开源社区,致力于现代C++促进企业生产力与效率 这里有创新的idea,这里有最酷的modern c++代码,这里有很棒的modern c++开源项目! [重磅]C++20基础库--yaLanTingLibs兰亭集库开源了,帮助开发者快速构建高性能C++应用 purecpp社区网站由纯C++打造,这就是真正意义上的purecpp!
purecpp
使用协程来实现文件的异步读写--yalantinglibs.coro_file
yalantinglibs.coro_file(https://github.com/alibaba/yalantinglibs/blob/main/src/coro_io/tests/test_corofile.cpp) 提供了基于协程的文件异步读写的功能,使用起来很方便,不用担心文件io阻塞当前线程了,看一下基本用法: ```c++ async_simple::coro::Lazy<...
purecpp
巧用std::span
C++20 的std::span 表示的是一个内存连续序列的视图,比如std::vector, std::vector, int arr[10], std::string 等可以零拷贝的方式赋值给一个std::span,它和std::string_view 有点像都是视图,不管理对象的生命周期。 既然已经有std::string_view 了,还需要std::span...
purecpp
yalantinglibs 增加了一个新库coro_http_server
yalantinglibs 新增加了一个基于C++20 协程的http server(https://github.com/alibaba/yalantinglibs/blob/main/src/coro_http/examples/example.cpp) 让你告别异步回调模型,代码写起来更...
purecpp
一切为了更好的性能,yalantinglibs.coro_http_client 所做的那些优化
# 零拷贝 yal...
purecpp
yalantinglibs.easylog 使用文档
# easylog 简介 ...
purecpp
struct_json\struct_xml\struct_yaml 使用文档
# 简介 ...
purecpp
coro_http_client 使用文档
# 基本用法 ## ...
purecpp
为什么yalantinglibs.easylog 性能比spdlog 更好?
之前社区就有人问到这个问题,今天专门来讲一下yalantinglibs.easylog(https://github.com/alibaba/yalantinglibs) 做了什么一些什么性能优化,导致最后性能大幅超越glog 和spdlog 。 先来分析一下写日志的过程: ```c++ ELOG << "Hello logger: msg number " << 42; 2...
purecpp
性能完爆glog, spdlog,支持cout流式/printf/std::format 输出的日志库yalantinglibs.easylog
# 支持主流的3 种输出模式 yalantinglibs.eas...
purecpp
null object 模式在easylog 中的应用
最近对yalantinglibs.easylog(https://github.com/alibaba/yalantinglibs/blob/main/src/easylog/tests/test_easylog.cpp) 的代码做了一些优化,有一个场景很适合用Null Object 模式,通过它让代码变得更简洁了。 easylog 同步方式写日志和异步写日志都会调用同一个函数,为了保证线...
Absolutely

purecpp

一个很酷的modern c++开源社区


[社区开源项目列表,点击前往]


purecpp社区自2015年创办以来,以“Newer is Better”为理念,相信新技术可以改变世界,一直致力于现代C++研究、应用和技术创新,期望通过现代C++的技术创新来提高企业生产力和效率。


社区坚持只发表原创技术文章,已经累计发表了一千多篇原创C++技术文章;


组织了十几场的C++沙龙和C++大会,有力地促进了国内外C++开发者之间的技术交流;


开源了十几个现代C++项目,被近百家公司所使用,有力地推动了现代C++在企业中的应用。


期待更多的C++爱好者能参与到社区C++社区的建设中来,一起为现代C++开源项目添砖加瓦,一起完善C++基础设施和生态圈。


微信公众号:purecpp, 社区邮箱: purecpp@163.com


友情链接