A Crash Course in Calendars, Dates, Time, and Time Zones
Agenda Compile-Time Rational Numbers Durations Clocks Time Points Dates Time Zones4 Agenda Compile-Time Rational Numbers Durations Clocks Time Points Dates Dates Time Zones5 Compile-Time Rational Numbers Defined in Work with rational numbers at compile time Always normalized representation Needed for durations in the library6 library6 Compile-Time Rational Numbers Define a rational number: using r1 = ratio<1, 60>; // Represents 1/60 Retrieve numerator and denominator intmax_t num { r1::num }; intmax_t den { r1::den }; 0 码力 | 43 页 | 551.60 KB | 5 月前3Visualize Time Enabled Data using ArcGIS Qt (C++) and Toolkit
Gela Malek Pour gmalekpour@esri.com Visualize Time Enabled Data using ArcGIS Qt (C++) and ToolkitAbout Esri • We build mapping technology that our customers use to solve the world’s most complex challenges around the worldPurpose of this talk • Showcase a quick way to create a desktop app to visualize time enabled data • Setup the development environment using Esri templates • Use the ArcGIS toolkit to feature layer that include hurricane data as features • Each feature has a specific start time and end time in the feature table • We will use these start and end date values to draw and clear features0 码力 | 10 页 | 734.09 KB | 5 月前3基于 Rust Arrow Flight 的物联网和时序数据传输及转换工具 霍琳贺
CONTENTS 自 我 介 绍 T D e n g i n e t a o s X R u s t 使 用 TDengine: 时序数据库 TDengine 是一款开源、云原生的时序数据库( Time Series Database ),专为物联网、工业互联网、金融、 IT 运维监控等场景设计并优化,具有极强的弹性伸缩能力。同时它还带有内建的缓存、流式计算、数据订阅等 系统功能,能大幅减 与上下游应用的关系 TDengine = Time-Series Database + Caching + Data Subscription + Stream Processing Shell: Command Line Interface High Performance, Cloud Native Simplified Solution for Time-Series Data TDengine0 码力 | 29 页 | 2.26 MB | 1 年前3新一代分布式高性能图数据库的构建 - 沈游人
可靠,故障自愈,低成本运维 HTAP Hybrid Transactional/Analytical Processing ,高性能图计算引 擎,预置 20 余种图计算算法 ,可扩展的分析引擎支持更复 杂的数据挖掘和机器学习场景 MPP Massively Parallel Processing 架构,大规模集群 分布式存储及并行计 算, Shared Nothing 模式支 持存储计算分离0 码力 | 38 页 | 24.68 MB | 1 年前3Performance Lets dive into Performance issues
val++; }; for (var i=0;i<100000;i++) { doSomething(fun); } } Data Processing • Anything that does any amount of work; if possible move to your worker thread. • Gathering0 码力 | 15 页 | 1.71 MB | 1 年前3ClickHouse: настоящее и будущее
данных • Функции обработки текста на естественном языке • Потоковые запросы и complex event processing • Key-value витрины данных, инкрементальная агрегация в оперативке • Выполнение запросов с использованием0 码力 | 32 页 | 2.62 MB | 1 年前3C++20's
12 C++20’sCalendars and Time Zones in MSVC Miya Natsuhara ("MEE-yuh Not-soo-HAR-uh") Miya.Natsuhara@microsoft.com Software Engineer, Visual C++ LibrariesWelcome to CppCon 2021! Join Seconds • What are leap seconds? • How did we implement them in MSVC? • Part V: Time Zones • Overview of [time.zone] • IANA database challenges • Part VI: Conclusion7 Part I: Development Process8 • Code Review Videos! • clocks, clock_cast, leap_seconds (https://youtu.be/WX3OmVu4lAs) • time_zone and time_zone_link (https://youtu.be/MODhhr7m-5s) • system_clock::now(), file_clock, leap second awareness 0 码力 | 55 页 | 8.67 MB | 5 月前3C++20: An (Almost) Complete Overview
numberOfValues) { for (int i { startValue }; i < startValue + numberOfValues; ++i) { time_t t { system_clock::to_time_t(system_clock::now()) }; cout << std::ctime(&t); co_yield i; } } int main() Concepts Named requirements to constrain template parameters Predicates evaluated at compile time21 Concepts Example of a concept definition: templateconcept Incrementable = requires(T atomic_shared_ptr head; // in C++11: remove "atomic_" and use special // functions every time you touch head public: class reference { shared_ptr p; }; auto find(T 0 码力 | 85 页 | 512.18 KB | 5 月前3C++20 STL Features: 1 Year of Development on GitHub
in_range(T t) noexcept;11 constexpr Algorithms12 C++20 constexpr Everything • constexpr enables compile-time programming without arcane templates • Algorithms: • P0202R3 constexprAnd exchange() Example: lookup tables • Everyone uses lookup tables • Arrays are maximally space-efficient, very time-efficient • Sorted arrays: binary_search, lower_bound, equal_range • Now you can use constexpr algorithms More advanced: constexpr sort your lookup tables14 static_assert is_sorted • Compile-time evaluation = no run-time codegen, even in debug builds #include #include #include 0 码力 | 45 页 | 702.09 KB | 5 月前3Working with Asynchrony Generically: A Tour of C++ Executors
RECEIVER OPERATION STATE connect start …operation completes… … and notifies receiver … time passes… Implementation details of some algorithm; e.g., then. then(sender, fn) -> sender22 SHAPE state start33 OPERATIONS EXECUTE OUTSIDE-IN Receiver Work is scheduled on the thread pool Time passes…. A thread in the pool picks up the work and executes it34 OPERATIONS EXECUTE OUTSIDE-IN Senders65 NO DETACHED COMPUTATION ALLOWED schedul e schedul e then then then schedul e when_al l time set_valu e set_valu e detached computation set_erro r set_erro r A thread in the thread0 码力 | 121 页 | 7.73 MB | 5 月前3
共 30 条
- 1
- 2
- 3