NativeScript 101Native Modules • UI Thread vs JS Thread • Angular/Vue/Vanilla vs React • Progress vs Facebook • Apache 2.0 vs BSD+ JavaScript-Driven Native • Share code • Reuse existing skills/teams • Reuse existing NativeScript iOS Example JavaScript Runs on V8 JavaScript VM Runs on JavaScriptCore VM NativeScript Module Layer (NML) o Abstractions on native APIs provide unified, cross-platform API o Dozens available for platform-specific scenarios o NativeScript modules follow Node module conventions (CommonJS) Example: NativeScript file module BUT HOW DO I TURN THIS INTO AN APP? Putting it all together0 码力 | 90 页 | 40.11 MB | 1 年前3
Harbor Deep Dive - Open source trusted cloud native registryIntegrated into enterprise products: VIC and PKS GitHub Repo: https://github.com/go harbor/harbor/ Apache 2.0 license An open source trusted cloud native registry project HARBOR More integrations in0 码力 | 15 页 | 8.40 MB | 1 年前3
Автоматизация управления ClickHouse-кластерами в Kubernetesкластером как ОДНИМ РЕСУРСОМ ClickHouse Operator ClickHouseInstallation YAML file Лицензия: Apache 2.0, Распространяется как Docker image ClickHouse cluster resources kubectl apply K8S API Спецификация0 码力 | 44 页 | 2.24 MB | 1 年前3
C++20 STL Features: 1 Year of Development on GitHubOverview Part 04 CppCon 2019 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 contributors0 码力 | 45 页 | 702.09 KB | 6 月前3
C++20: An (Almost) Complete Overviewfunctions, …) Separation into module interface files and module implementation files is possible but not needed Can be structured with submodules and module partitions No need for include guards never leak from, modules Order of module imports is not important8 Modules Create a module: // cppcon.cppm – Module Interface File export module cppcon; // Module declaration namespace CppCon { "Welcome to CppCon 2020!"; } export auto GetWelcome() { return GetWelcomeHelper(); } } Consume a module: // main.cpp import cppcon; int main() { std::cout << CppCon::GetWelcome(); }9 Modules C++200 码力 | 85 页 | 512.18 KB | 6 月前3
C++高性能并行编程与优化 - 课件 - 16 现代 CMake 模块化项目管理指南CMake 也有 include 功能 • 和 C/C++ 的 #include 一样, CMake 也有一个 include 命令。 • 你写 include(XXX) ,则他会在 CMAKE_MODULE_PATH 这个列表 中的所有路径下查找 XXX.cmake 这个文件。 • 这样你可以在 XXX.cmake 里写一些你常用的函数,宏,变量等。 十三、你知道吗? CMake 也有 include include 功能 • 和 C/C++ 的 #include 一样, CMake 也有一个 include 命令。 • 你写 include(XXX) ,则他会在 CMAKE_MODULE_PATH 这个列表 中的所有路径下查找 XXX.cmake 这个文件。 • 这样你可以在 XXX.cmake 里写一些你常用的函数,宏,变量等。 macro 和 function 的区别 • macro 寻找系统中安装的第三方库并链接他们 find_package 命令 • 常用参数列表一览: • find_package([version] [EXACT] [QUIET] [CONFIG] [MODULE] • [REQUIRED] [[COMPONENTS] [components...]] • [OPTIONAL_COMPONENTS components 0 码力 | 56 页 | 6.87 MB | 1 年前3
绕过conntrack,使用eBPF增强 IPVS优化K8s网络性能Does SNAT nic nic Y N • How IPVS talks with eBPF program? • eBPF map id is passed to IPVS module • Ip_vs_new_conn() inserts eBPF map • Key: (protocol, cip:cport , rsip:rsport) • Value: (protocol unroll • Size limitation of BPF program <= 4096 • Move SNAT allocate port loop into IPVS kernel module • Bounded loop support in Linux 5.3 • Size limitation of BPF program is one million after Linux0 码力 | 24 页 | 1.90 MB | 1 年前3
陈东 - 利用Rust重塑移动应用开发-230618shared on different platform. - Signer - cryptography support - Blockchain Support - Publish each module as independent package 利用 Rust 重塑移动应用开发 Photo / image / chart RCC_Android 利用 Rust 重塑移动应用开发 Hard to define the return value - Hard to process the error? Panic? App Crash ? Treat the rust module as an independent service - Command <> Response - Using the protobuf as the data encoding/decoding0 码力 | 22 页 | 2.10 MB | 1 年前3
C++高性能并行编程与优化 - 课件 - 11 现代 CMake 进阶指南,添加了一个 CONFIG 选项。 这样他会优先查找 TBBConfig.cmake (系统自带的)而不是 FindTBB.cmake (项目作者常 把他塞在 cmake/ 目录里并添加到 CMAKE_MODULE_PATH )。这样能保证寻找包的这个 .cmake 脚本是和系统自带的 tbb 版本是适配的,而不是项目作者当年下载的那个版本 的 .cmake 脚本。 当然,如果你坚持要用 find_package(TBB 14.2\msvc2019_64\lib\cmake\ • 你会看到他里面有个 Qt5Config.cmake 对吧。现在,有四种方法让 CMake 找得到他。 • 第一种是设置 CMAKE_MODULE_PATH 变量,添加一下包含 Qt5Config.cmake 这个文 件的目录路径 C:\Qt\Qt5.14.2\msvc2019_64\lib\cmake ,当然刚刚说了尽管你是 Windows0 码力 | 166 页 | 6.54 MB | 1 年前3
Go读书会第二期反射使用三大法则 • Cgo 使用的开销 • Unsafe 包的安全使用法则 “ 自带电池”,开箱即用 Part10 – 工程实践 践行哲学,遵循惯例,认清本质,理解原理 • Go module • 自定义 go 包导入路径 • Go 命令使用(包括代码生成) • 常见的“坑” 构建、部署、代码生成、 Go“ 坑”大检阅 示例代码与勘误 践行哲学,遵循惯例,认清本质,理解原理0 码力 | 26 页 | 4.55 MB | 1 年前3
共 13 条
- 1
- 2













