Custom Views for the Rest of UsCustom Views for the Rest of Us ## JACOB RICE 20 21 October 24-29 ## Custom Views for the Rest of Us Jacob Rice jacob.rice.cpp@gmail.com KEYSIGHT TECHNOLOGIES 1 using namespace std::views; 2 for y> ## → ## → ## → ## What is a view? ## Easy to access: namespace std { 3 } namespace views = ranges::views; ## Range • Semantically: a collection of "things". • Has begin and end functions iterated. Pipelines are cheap to create; “real” work is done during iteration. 1 using namespace std::views; 2 for (int i : iota(2) | filter(even) | transform(square)) 3 std::cout << i <<0 码力 | 187 页 | 13.25 MB | 1 年前3
Distributed Ranges: A Model for Building Distributed Data Structures, Algorithms, and Views## +23 ## Distributed Ranges: A Model for Building Distributed Data Structures, Algorithms, and Views ## BENJAMIN BROCK ## Notices and Disclaimers For notices, disclaimers, and details about performance Other names and brands may be claimed as the property of others. ## Human Readable Disclaimer - The views in this talk are mine, not necessarily those of my employer. - This is a speculative, academic-style dot_product(vector& x, vector & y) { auto z = views::zip(x, y) | views::transform([](auto element) { auto [a, b] = element; return a * b; 0 码力 | 127 页 | 2.06 MB | 1 年前3
PostgreSQL 9.0 Documentation14 2.9. Deletions ..... 14 3. Advanced Features ..... 16 3.1. Introduction ..... 16 3.2. Views ..... 16 3.3. Foreign Keys ..... 16 3.4. Transactions ..... 17 3.5. Window Functions ..... 19 view_column_usage ..... 777 34.52. view_routine_usage ..... 778 34.53. view_table_usage ..... 779 34.54. views ..... 779 rver Programming ..... 781 35. Extending SQL ..... 783 35.1. How Extensibility Tree .....860 37.2. Views and the Rule System .....862 37.2.1. How SELECT Rules Work .....862 37.2.2. View Rules in Non-SELECT Statements .....867 37.2.3. The Power of Views in PostgreSQL .....8680 码力 | 2561 页 | 5.55 MB | 2 年前3
Django 1.10.x Documentationdatabases 3.3 Handling HTTP requests 3.4 Working with forms 221 3.5 Templates 267 3.6 Class-based views 279 3.7 Migrations 304 3.8 Managing files 315 3.9 Testing in Django 318 3.10 User authentication API Reference 629 6.1 Applications 629 6.2 System check framework 635 6.3 Built-in class-based views API 646 6.4 Clickjacking Protection 694 6.5 contrib packages 696 6.6 Cross Site Request Forgery conf.urls utility functions 1363 6.25 Django Utilis 1366 6.26 Validators 1380 6.27 Built-in Views 1384 7 Meta-documentation and miscellany 1387 7.1 API stability 1387 7.2 Design philosophies0 码力 | 1817 页 | 6.19 MB | 2 年前3
Django 3.1.x Documentationadmin interface: it’s not just scaffolding – it’s the whole house ■ Design your URLs ■ Write your views ■ Design your templates ■ This is just the surface • Quick install guide ■ Install Python Introducing the Django Admin • Writing your first Django app, part 3 Overview Writing more views Write views that actually do something ■ Raising a 404 error ■ Use the template system ■ Removing hardcoded Namespacing URL names • Writing your first Django app, part 4 Write a minimal form ■ Use generic views: Less code is better • Writing your first Django app, part 5 ■ Introducing automated testing ■0 码力 | 3094 页 | 3.03 MB | 2 年前3
Что нужно знать об архитектуре ClickHouse, чтобы его эффективно использовать0 码力 | 28 页 | 506.94 KB | 2 年前3
Taming the C++ Filter View[Image](/uploads/documents/9/3/9/8/9398714df43beb793f9dce171fbfd241/p1_6.jpg) 3 C++20 Views C++ ©2024 by josuttis.com C++20: Views templatevoid print(const T& coll) { for (const auto& @2024 by josuttis.com 4 Output: 0 8 15 47 11 42 1 0 1 8 11 15 42 47 C++20: Views void print(const auto& coll) { for (const auto& elem : coll) { std::cout << elem << 11 42 1 0 1 8 11 15 42 47 C++ @2024 by josuttis.com 5 josuttis|eckstein IT communication C++20: Views void print(const std::ranges::input_range auto& coll) { for (const auto& elem : coll)0 码力 | 43 页 | 2.77 MB | 1 年前3
Django 4.1.x Documentationinterface: it's not just scaffolding - it's the whole house - Design your URLs - Write your views - Design your templates - This is just the surface ## Quick install guide - Install Python - Introducing the Django Admin ## o Writing.your first Django app, part 3 - Overview - Writing more views - Write views that actually do something - Raising a 404 error - Use the template system - Removing hardcoded Namespaceing URL names - Writing.your first Django app, part 4 - Write a minimal form - Use generic views: Less code is better - Writing.your first Django app, part 5 - Introducing automated testing -0 码力 | 3240 页 | 3.13 MB | 2 年前3
PostgreSQL 12.17 Documentation16 2.9. Deletions ..... 17 3. Advanced Features ..... 18 3.1. Introduction ..... 18 3.2. Views ..... 18 3.3. Foreign Keys ..... 18 3.4. Transactions ..... 19 3.5. Window Functions ..... 21 view_column_usage ..... 1123 36.63. view_routine_usage ..... 1124 36.64. view_table_usage ..... 1124 36.65. views ..... 1125 Programming ..... 1126 Extending SQL ..... 1132 37.1. How Extensibility Works .. The Rule System ..... 1242 40.1. The Query Tree ..... 1242 40.2. Views and the Rule System ..... 1244 40.3. Materialized Views ..... 1251 40.4. Rules on INSERT, UPDATE, and DELETE ..... 1254 400 码力 | 2943 页 | 12.61 MB | 2 年前3
Django 官方教程翻译项目初识 Django - 初识 Django - 设计模型 - 创建模型 - 享用便捷的 API - 动态生成的管理页面:并非徒有其表 - 规划 URL - 编写视图 - 设计模板 - 这只是冰山一角 ## 初识 Django Django 最初被设计用于具有快速开发需求的新闻类站点,目的是要实现简单快捷的网站开发。以下内容简要介绍了如何使用 Django .import views 6. 本文档使用 书栈(BookStack.CN) 构建 7. urlpatterns = [ 8. url(r'^articles/([0-9]{4})/$', views.year_archive), 9. url(r'^articles/([0-9]{4})/([0-9]{2})/$', views.month_archive) ([0-9]+)/$', views.article_detail), 11. ] 上面的代码将 URL 的正则表达式映射到 views 里的回调函数。正则表达式通过括号来提取 URL 中的参数值。当一个用户请求页面时,Django 会顺序遍历这些匹配模式,直至模式和请求的 URL 成功匹配。(如果全部模式都无法匹配,Django 会返回一个404视图。)这个过程会在瞬间完成,因为这些正则表达式在启动时就被编译了。0 码力 | 103 页 | 1.86 MB | 1 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100
相关搜索词
custom viewsproxy iteratorsviewable_rangerange-v3customization points分布式范围分布式数据结构分段处理分布式算法并行计算PostgreSQLSQL事务完整性(Transaction Integrity)视图(Views)触发器(Triggers)Djangomodelsviewstemplatesformsadminasynchronous viewsJSONFielddeprecationPython compatibilitycaching middlewareClickHouseDistributed tablesreplicated merge treeshardingmaterialized viewsFilter Viewscall-by-valuecall-by-referenceLazy EvaluationPipelines模型视图URL模板系统视图扩展事务Web开发













