Harbor Deep Dive - Open source trusted cloud native registrynative registry Henry Zhang, Chief Architect, VMware R&D China Steven Zou, Staff Engineer, VMware R&D China Nov. 2018 goharbor.io Initiated by VMware China, maintained by whole community Integrated0 码力 | 15 页 | 8.40 MB | 1 年前3
No Silver Bullet – Essence and Accident in Software Engineeringcosts drop as rapidly as computer hardware costs do…. Not only are there no silver bullets now in view, the very nature of software makes it unlikely that there will be any.”Sources of Essential Difficulty“Let something that seems completely unrelated to the original problemExample of Yak Shaving • “My client needed a simple wiki, but before I can help them I need…” • to Containerize the software, but to0 码力 | 35 页 | 1.43 MB | 5 月前3
C++23: An Overview of Almost All New and Updated Featuresstd::flat_(multi)map / std::flat_(multi)set std::mdspan std::generator basic_string(_view)::contains() Construct string(_view) From nullptr basic_string::resize_and_overwrite() Monadic Operations for std::flat_(multi)map / std::flat_(multi)set std::mdspan std::generator basic_string(_view)::contains() Construct string(_view) From nullptr basic_string::resize_and_overwrite() Monadic Operations for std::flat_(multi)map / std::flat_(multi)set std::mdspan std::generator basic_string(_view)::contains() Construct string(_view) From nullptr basic_string::resize_and_overwrite() Monadic Operations for0 码力 | 105 页 | 759.96 KB | 6 月前3
C++高性能并行编程与优化 - 课件 - 15 C++ 系列课:字符与字符串容器初体验 & 迭代器入门 (BV1qF411T7sd) 2. 你所不知道的 set 容器 & 迭代器分类 (BV1m34y157wb) 3. string , string_view , const char * 的爱恨纠葛 ( 本期 ) 4. 万能的 map 容器全家桶及其妙用举例 5. 函子 functor 与 lambda 表达式知多少 6 void performance_geek(std::string const &name); // 有点追求性能的极客 • void performance_nerd(std::string_view name); // 超级追求性能的极客 c_str 和 data 的区别 • const char * 可以隐式转换为 string (为了方便) • string 不可以隐式转换为 operator“”_i32 了。 • 其实 cpp 这种自定义挺好的,把自由度给到用户。 • 例如标准库说 “ hello”s 是 std::string ,“ hello”s 是 std::string_view 。 • 我也可以定义一个 “ hello”ms 是 mylib::String ,而且还是受 namespace 限制的,用户可以 自己 using namespace ,不会存在强迫别人接受你的那一套后缀名规范。0 码力 | 162 页 | 40.20 MB | 1 年前3
C++20: An (Almost) Complete Overviewexecuted: nothing is done until you iterate over result Working with infinite sequences: auto result { view::ints(10) | views::filter([](const auto& value) { return value % 2 == 0; }) /* ... */ | views::take(10) Provides a “view” over some contiguous data Does not own the data Never allocates/deallocates Could be read/write Very cheap to copy, recommended to pass by value (similar to string_view) Does using Directive Example: enum class CardTypeSuit { Clubs, Diamonds, Hearts, Spades }; std::string_view GetString(const CardTypeSuit cardTypeSuit) { switch (cardTypeSuit) { case CardTypeSuit::Clubs:0 码力 | 85 页 | 512.18 KB | 6 月前3
Secure your microservices with istio step by stephttp http http http mTLS http #IstioCon Auto-mTLS in Istio ● Decide what type of traffic the client sidecar to send automatically ○ If DestinationRule is configured, respect it ○ If server has matchLabels: app: reviews mtls: mode: STRICT 1) Apply destination rule to enable client side mTLS mTLS in Istio - Destination rule Using ingress port and ingress host to send request: not access reviews-v2 since we have enabled ISTIO_MUTUAL mode on client side Access productpage 1) Apply destination rule enable client side mTLS mTLS in Istio - Destination rule http http http http0 码力 | 34 页 | 67.93 MB | 1 年前3
NativeScript 101GridLayout GridLayout Label TextField StackLayout Platform-Specific Capabilities o Files: <view>.android or <view>.ios o Markup:or o Attributes: android: or capabilities when needed. Styling with CSS CSS Convention: app.css <-- Global styles [viewName].css <-- View styles [viewName]. [platform].css Supported Properties o color o background-color o background-image 0 码力 | 90 页 | 40.11 MB | 1 年前3
C++20 STL Features: 1 Year of Development on GitHub• Now you can use constexpr algorithms • Easy: static_assert with constexpr is_sorted • string_view is also constexpr; not limited to numeric data • More advanced: constexpr sort your lookup tables14 #include#include #include #include #include view> using namespace std; int main() { static constexpr array skipped_extensions{".dll"sv, ".exe"sv endl; // ordinary read, 1729 }21 span22 span Encapsulates Ptr-Len Pairs • span is a non-owning view of contiguous elements • span is like a pair of T* and size_t, but better • spans are implicitly 0 码力 | 45 页 | 702.09 KB | 6 月前3
Analyzing MySQL Logs with ClickHouseClickhouse/ClickTail Setup • Install Schema • cat schema/db.sql | clickhouse-client –multiline • cat schema/mysqlaudit.sql | clickhouse-client –multiline • Configure ClickTail • [Required Options] • ParserName Clickhouse/ClickTail Setup • Install Schema • cat schema/db.sql | clickhouse-client –multiline • cat schema/mysql.sql | clickhouse-client –multiline • Configure ClickTail • [Required Options] • ParserName0 码力 | 43 页 | 2.70 MB | 1 年前3
C++高性能并行编程与优化 - 课件 - 14 C++ 标准库系列课 - 你所不知道的 set 容器课程安排 1. vector 容器初体验 & 迭代器入门 (BV1qF411T7sd) 2. 你所不知道的 set 容器 & 迭代器分类 ( 本期 ) 3. string , string_view , const char * 的爱恨纠葛 4. 万能的 map 容器全家桶及其妙用举例 5. 函子 functor 与 lambda 表达式知多少 6. 通过实战案例来学习 STL 算法库 7. 向容器中相同的此元素,同 时 bool 类型的值为 false 。 • pairinsert(int val); http://c.biancheng.net/view/7196.html glibc 中 pair 的定义 • pair 类似于 python 里的元组,不过固定只能有两个元素,自从 C++11 引 入了能支持任意多元素的 tuple 以来,就没 0 码力 | 83 页 | 10.23 MB | 1 年前3
共 22 条
- 1
- 2
- 3













