C++20 STL Features: 1 Year of Development on GitHub CppCon 2020 • Announced at CppCon 2019 • github.com/microsoft/STL • Apache License v2.0 with LLVM Exception • Implemented ~50 C++20 features • Majority from our amazing contributors • Extensively Special Math • tests/std, tests/libcxx, tests/tr1 (legacy) • llvm-project submodule for libc++'s test suite • Uses Python and lit (LLVM Integrated Tester) • Linear history, squashed commits • Feature _MSVC_STL_UPDATE • Updated every month by new contributors • Custom Autolinks • DevCom-724444, LLVM-41915, LWG-3080, WG21-P120944 Status Chart45 Status Chart: Pull Request Age0 码力 | 45 页 | 702.09 KB | 6 月前3
Making Libraries Consumable for Non-C++ DevelopersDefining a macro for calling conventions is a great start. For example, MYLIB_CCONV. • Reference: llvm - CallingConv.h • Don’t throw exceptions across the boundary.Memory model https://gchandbook.org/ Defining a macro for calling conventions is a great start. For example, MYLIB_CCONV. • Reference: llvm - CallingConv.h • Don’t throw exceptions across the boundary. Explicitly state/document memory ownership0 码力 | 29 页 | 1.21 MB | 6 月前3
whats new in visual studioFormatting ☑️� IntelliSense ⌛; ☑️�MSVC ☑️�MSVC Code Analysis ☑️�MSBuild ; CMake ⌛ ; GCC ⌛ ; Clang/LLVM ⌛ ☑️�Stepping ☑️�Parallel Stacks ☑️�Debugger visualizers (.natvis) ☑️�Just My Code debugging integration • MSBuild & CMake support for Windows & Linux • Debugger integration for MSVC and Clang/LLVM Visit https://aka.ms/asan to learn more Announcing today Experimental libFuzzer Support • An in-process0 码力 | 42 页 | 19.02 MB | 6 月前3
C++高性能并行编程与优化 - 课件 - 01 学 C++ 从 CMake 学起,从而执行其中编译成机器码, 调用系统提供的 printf 函数,并在终端显示出 Hello, world 。 厂商 C C++ Fortran GNU gcc g++ gfortran LLVM clang clang++ flang 多文件编译与链接 • 单文件编译虽然方便,但也有如下缺点: 1. 所有的代码都堆在一起,不利于模块化和理解。 2. 工程变大时,编译时间变得很长,改动一个地方就得全部重新编译。0 码力 | 32 页 | 11.40 MB | 1 年前3
Working with Asynchrony Generically: A Tour of C++ Executorsstd::invoke((F&&) f_, (As&&) as...)); } // Implement set_error(Values...) and set_done() as pass-throughs: templaterequires ex::receiver void set_error(Err&& err) && noexcept std::invoke((F&&) f_, (As&&) as...)); } // Implement set_error(Values...) and set_done() as pass- throughs: template requires ex::receiver void set_error(Err&& err) && noexcept co_await compute_helper_async(data); /* ... */ } Because of the nested scopes, it’s safe to pass locals by reference to callees... … no dynamic allocation or reference counting needed.64 0 码力 | 121 页 | 7.73 MB | 6 月前3
Secure your microservices with istio step by stepterminate TLS in gateway using istio cert ● PASSTHROUGH: pass through the TLS traffic using SNI and virtual Service ● AUTO_PASSTHROUGH: pass through the TLS traffic purely using SNI without VS apiVersion: request via curl command : 1) Invalid token can not pass the gateway, only valid token does 2) Delete JWT authentication request, invalid token can pass the gateway Access productpage #IstioCon Authorize0 码力 | 34 页 | 67.93 MB | 1 年前3
C++20: An (Almost) Complete Overview Allows floating-point types Allows class types (but with some restrictions) E.g. use-case: pass string literals as non-type template parameters The CTRE library: compile-time string literals the data Never allocates/deallocates Could be read/write Very cheap to copy, recommended to pass by value (similar to string_view) Does not support strides66 std::span Can be dynamic-sized0 码力 | 85 页 | 512.18 KB | 6 月前3
sync clickhouse with mysql mongodbmysql, // mysql, mongodb, redis Listen: binlog, // binlog, kafka DataSource: user:pass@tcp(example.com:3306)/user, Table: user, QueryKeys: [ // usually primary key0 码力 | 38 页 | 2.25 MB | 1 年前3
绕过conntrack,使用eBPF增强 IPVS优化K8s网络性能verifier • Example: s64 bpf_csum_diff(__be32 * from, u32 from_size, __be32 * to, u32 to_size); pass skb->len to bpf_csum_diff() the verifier reports error Future work • Open source • The modification0 码力 | 24 页 | 1.90 MB | 1 年前3
Analyzing MySQL Logs with ClickHouse[MySQL Parser Options] Host = localhost:3306 ; or @unix(/var/run/mysqld/mysqld.sock) User = username Pass = userpass © 2018 Percona. 28 What Information is Available ? © 2018 Percona. 29 Queries Causing0 码力 | 43 页 | 2.70 MB | 1 年前3
共 10 条
- 1













