Conan 2.5 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 2.3 New public Python API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 2.4 New system integrations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 2.5 New custom user commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . OSX, FreeBSD, and SunOS, and, as it is portable, it might work in any other platform that can run Python. It can target any existing platform: ranging from bare metal to desktop, mobile, embedded, servers0 码力 | 769 页 | 4.70 MB | 1 年前3
Writing Python Bindings for C++ Libraries: Easy-to-use Performancesystems (C++ and Python) ○ Data volume in terabytes ● Program analysis research and functional programming in a past life ● Love performance, software abstractions, and clean APIsWhy Python? ● Writing Writing extensive APIs in Python - low boilerplate ● Familiar for domain experts ● Easy to use ○ Amazing interactive support out of the box (IPython) ○ Jupyter notebooks provide a great research environment CppCon :) Why Python? Why C++?● Why? ○ Avoid reimplementing complex code for Python ○ Performance ○ Back and forth with user’s python code ○ Interoperability with data structures in Python - shared memory0 码力 | 118 页 | 2.18 MB | 6 月前3
Modern C++ Tutorial: C++11/14/17/20 On the FlyRange-based for loop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 2.5 Templates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . feature of “anonymous functions”, which are in almost all modern programming languages (such as Python, Swift, etc). It has become commonplace, and the emergence of rvalue references has solved the problem double& t) { return t + 0.001; } int main() { std::cout << print_type_info(5) << std::endl; 25 2.5 Templates CHAPTER 02: LANGUAGE USABILITY ENHANCEMENTS std::cout << print_type_info(3.14) << std::endl;0 码力 | 92 页 | 1.79 MB | 1 年前3
现代C++ 教程:高速上手C++11/14/17/20区间 for 迭代 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 2.5 模板 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 关键字语义的修改使得我 们更加有信心来操控极度复杂的模板类型。同时还对语言运行期进行了大量的强化,Lambda 表达式的出 现让 C++ 具有了『匿名函数』的『闭包』特性,而这一特性几乎在现代的编程语言(诸如 Python/Swift/. . . )中已经司空见惯,右值引用的出现解决了 C++ 长期以来被人诟病的临时对象效率问题等等。 C++17 则是近三年依赖 C++ 社区一致推进的方向,也指出了 现代 C++ print_type_info(3.14) << std::endl; } 区间 for 迭代 终于,C++11 引入了基于范围的迭代写法,我们拥有了能够写出像 Python 一样简洁的循环语句, 我们可以进一步简化前面的例子: 23 2.5 模板 第 2 章语言可用性的强化 #include#include #include 0 码力 | 83 页 | 2.42 MB | 1 年前3
Applicative: The Forgotten Functional Patternevaluate function arguments lazily. we'll need to evaluate function arguments lazily. 52TAKE 2.5 TAKE 2.5 return fmap(l, lazy_call(foo, i), lazy_call(bar, i)); templatelazy{[&] { return std::invoke(std::forward (f), std::forward (args)...); }}; } 53TAKE 2.5 TAKE 2.5 template struct lazy { F f{}; std::invoke_result_t opt{}; constexpr explicit(true) auto operator*(this Self&& self) { return *(std::forward (self).opt); } }; 54TAKE 2.5 TAKE 2.5 Better? Maybe? Yes? Better? Maybe? Yes? Take your pick. Use lazy evaluation if you want. Take 0 码力 | 141 页 | 11.33 MB | 6 月前3
Conan 1.7 Documentationbinaries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.5 Initial configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 2.7 Python 2 Deprecation Notice . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 9 Mastering conan 91 9.1 Python requires: reusing python code in recipes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91 9.2 Use0 码力 | 433 页 | 2.95 MB | 1 年前3
Conan 1.6 Documentationbinaries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.5 Initial configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 2.7 Python 2 Deprecation Notice . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . create and cross build C and C++ conan packages . . . . . . . . . . . . . . . . 186 12.9 How to reuse Python code in recipes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188 12.100 码力 | 428 页 | 2.87 MB | 1 年前3
Conan 1.9 Documentationbinaries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.5 Initial configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 2.8 Python 2 Deprecation Notice . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115 11 Extending Conan 119 11.1 Python requires: reusing python code in recipes [EXPERIMENTAL] . . . . . . . . . . . . . . . . . 119 11.2 Hooks [EXPERIMENTAL]0 码力 | 470 页 | 3.05 MB | 1 年前3
Conan 1.8 Documentationbinaries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.5 Initial configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 2.8 Python 2 Deprecation Notice . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115 11 Extending Conan 119 11.1 Python requires: reusing python code in recipes [EXPERIMENTAL] . . . . . . . . . . . . . . . . . 119 11.2 Plugins [EXPERIMENTAL]0 码力 | 458 页 | 3.03 MB | 1 年前3
Conan 1.10 Documentationbinaries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.5 Initial configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 2.8 Python 2 Deprecation Notice . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115 11 Extending Conan 119 11.1 Python requires: reusing python code in recipes [EXPERIMENTAL] . . . . . . . . . . . . . . . . . 119 11.2 Hooks [EXPERIMENTAL]0 码力 | 479 页 | 3.09 MB | 1 年前3
共 157 条
- 1
- 2
- 3
- 4
- 5
- 6
- 16













