NativeScript 101What can we cover today? oRise of "JavaScript-driven Native" oIntro to NativeScript oNativeScript core concepts o“Hello World” oExtending with plugins oDebugging JavaScript Why are we here? How did NativeScript Native 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 Intro to NativeScript What is it? How does it work? 2013 2014 2015 2016 2017 Early prototype s “Core” engineerin g Public launch Adoption ramp-up Mass adoption Project Timeline NativeScript0 码力 | 90 页 | 40.11 MB | 1 年前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
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 in system scopes • Mark labels to image and chart Harbor Architecture API Routing API Routing Core Service (API/Auth/GUI) Image Registry Trusted Content Vulnerability Scanning Job Service0 码力 | 15 页 | 8.40 MB | 1 年前3
陈东 - 利用Rust重塑移动应用开发-230618Crypto Core 利用 Rust 重塑移动应用开发 RCC_android RCC_ios https://github.com/KeystoneHQ/rust-crypto-core https://github.com/KeystoneHQ/rcc_android https://github.com/aaronisme/rcc_ios Rust Crypto Core Core shared 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
Автоматизация управления 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++23: An Overview of Almost All New and Updated FeaturesLibrary Quick Reference Founder of the Belgian C++ Users Group (BeCPP) C++204 Agenda C++23 Core Language Explicit Object Parameters if consteval Multidimensional Subscript Operator Attributes Containers Heterogeneous Erasure Removed Features Garbage Collection SupportC++23 Core Language6 Agenda C++23 Core Language Explicit Object Parameters if consteval Multidimensional Subscript int n) { if (n < 2) { return n; } return self(n - 1) + self(n - 2); };12 Agenda C++23 Core Language Explicit Object Parameters if consteval Multidimensional Subscript Operator Attributes0 码力 | 105 页 | 759.96 KB | 6 月前3
使用硬件加速Tokio - 戴翔of the box, it also provides the knobs needed to fine tune to different cases. Flexible Tokio Core Queue-Based Modules in Tokio • Channel • Scheduler • Tokio uses Channel for communication between Senders Senders Receive Receivers Perf Gaps: CAS(Compare And Swap) can't perfectly scale with core count. Tokio Channel • Each worker has own run queue • Steal when own run queue is empty From Adding new entries from any core or thread • Picking the next entry by any core or thread Conclusion: • DLB channel scales with core count much better than SW channels • Core count >2 shows advantage0 码力 | 17 页 | 1.66 MB | 1 年前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
Rust 异步并发框架在移动端的应用 - 陈明煜能不如 Tokio smol Rayon 并非异步运行时。它通过同步 多线程模型提供了并行迭代器功能, 适用于处理 CPU 密集型计算任务 rayon 现有框架无法完美适配移动端(一) Core Thread Thread Worker Worker task task Local queue Local queue Tokio 采用了如右图这种 GMP 模式: • 一核可以绑定多线程,每个线程拥有一个 queue Core 高权重线程 Worker Worker 任务优先级调度 根据工作线程的优先级进行绑核(大小核) • 高优先级任务在大核执行,高性能 • 低优先级任务在小核执行,节省能耗 Task priority and quality of service Big Core Little Core 高优先级线程 低优先级线程 普通优先级线程 Set core-affinity0 码力 | 25 页 | 1.64 MB | 1 年前3
共 21 条
- 1
- 2
- 3













