Michael
Michael
`gcc (GCC) 8.2.1 20181127` compile error, how to solve it? ``` gcc -Wall -O3 -o csg csg.c /usr/bin/ld: /tmp/ccv6tJMs.o: in function `circleSDF': csg.c:(.text+0xa1a): undefined reference to `sqrtf' /usr/bin/ld: /tmp/ccv6tJMs.o: in...
What is the different between "Boost::beast rather than using Boost::asio directly"? At this time point, we need a Flask like micro webframework, with Router, Template, Blueprint, DB support. It's better...
https://github.com/0xdead4ead/BeastHttp this repo has a HTTP Client support but only low-level API, They should be merged into one repo...with full web framework and http-client support
@moneroexamples The https://github.com/an-tao/drogon seems not very Boost. There is also https://github.com/qicosmos/cinatra. I wish @mitsuhiko can dump a branch of Flask in C++11...
可能你的磁盘比较慢?我再SSD虚拟机Manjaro Linux,example 启动了四线程,其中一线程 CPU 为 2.0% - 3.7%, 这个数值推断为 asio::io_context 消耗
vs2017 最新 release 已经支持 CMake,请妥善配置 boost 依赖,clion 不错
每个核心跑一个 asio::io_context? 看到最新代码有 https://github.com/qicosmos/cinatra/blob/master/include/cinatra/io_service_pool.hpp
可以在项目外加一个 extension, 用 class-based RESTful 风格的 API ```c++ class person : public cinatra::resource { public: void * get(int id) { } } ```
issue 所问是想要这种可继承 `class resource {}` 基类类的API? 这种 API 的优势是利于快速开发,简洁易懂。 server 端的 RESTful style 可借鉴 * https://flask-restful.readthedocs.io/en/latest/quickstart.html#resourceful-routing * https://github.com/ruby-grape/grape-on-rack/blob/master/api/entities.rb 关心 C++ 两点, 1. `InheritedResource::post()` 如何把返回的泛型实例,转化为 `response` 对象 2. `void* get(int id)`...
@hggq 多线程看到已经实现了,位置在 https://github.com/qicosmos/cinatra/blob/master/include/cinatra/io_service_pool.hpp#L25 不知这种方式就是“线程池”?