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 月前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 月前3whats new in visual studio
My Code debugging Demo C++20 in action Thu, Oct 28 – 10:30am C++20’sCalendars and Time Zones in MSVC Miya Natsuhara – `Online _4 Tue, Oct 26 – 10:30am Documentation in The Era of Concepts faster Unreal Engine 4.27.1 IntelliSense Ready 18x faster Learn more at http://aka.ms/18xfaster Link time 28x faster 5x faster 18x faster 1 2 3 0.00 100.00 200.00 300.00 400.00 500.00 600.00 76 62.86 59.00 26.72 26.25 22.90 Gears 5 Link Times (lower is better) Series1 Series2 Series3 Link Time in Seconds Performance of Visual Studio Developer inner-loop Build Debug Edit Find in 0 码力 | 42 页 | 19.02 MB | 5 月前3Finding Bugs using Path-Sensitive Static Analysis
Transitions SolverPerformance Precision ESP: Path-Sensitive Program Verification in Polynomial Time Path-Sensitive Dataflow Analysis with Iterative RefinementMSVC has both Path-sensitive • Use after WSL 2, and more – Sy Brand & Marian Luparu Thursday 28th • C++20’sCalendars and Time Zones in MSVC – Miya Natsuhara • An Editor Can Do That? Debugging Assembly Language and GPU Kernels 0 码力 | 35 页 | 14.13 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 月前3sync clickhouse with mysql mongodb
SolidKey PTS Provider Transform Sinker Transform PTS Provider Transform Sinker ● Batch Inserts ○ Time trigger ○ Number trigger ● Magical Flag PTS Magical Flag Quiz PTS Magical Flag Create PTS Sync multiple data source to Clickhouse in minutes BONUS Time travel history state Create Update Update Delete insert_id id name flag update_time UUID0 2 Bob1 2 2019-10-01 00:00:00 UUID1 2 Bob1.5 2 2019-10-01 12:00:00 UUID2 2 Bob2 2 2019-10-02 00:00:00 UUID3 2 Bob2 3 2019-10-03 00:00:00 BONUS Time travel history state Create Update Update Delete Future ● Auto configure through web ● Auto deploy0 码力 | 38 页 | 2.25 MB | 1 年前3绕过conntrack,使用eBPF增强 IPVS优化K8s网络性能
mode • Services are organized in hash table • IPVS DNAT • conntrack/iptables SNAT • Pros • O(1) time complexity in control/data plane • Stably runs for two decades • Support rich scheduling algorithm differ • Performance of a cluster in different time slot may differ • Due to CPU oversold • Suggestion: • Run the test against the same cluster during near time • Make CPU the bottleneck • 1 CPU handles0 码力 | 24 页 | 1.90 MB | 1 年前3
共 27 条
- 1
- 2
- 3
相关搜索词
CrashCourseinCalendarsDatesTimeandZonesVisualizeEnabledDatausingArcGISQtC++Toolkit20ChronowhatsnewvisualstudioFindingBugsPathSensitiveStaticAnalysisAnAlmostCompleteOverviewSTLFeaturesYearofDevelopmentonGitHubWorkingwithAsynchronyGenericallyTourExecutorssyncclickhousemysqlmongodb绕过conntrack使用eBPF增强IPVS优化K8s网络性能