-
счетчике, который расположен внутри базы данных Firebird. Вы можете создать его, задав имя:
CREATE GENERATOR GenTest;
Затем вы можете получать его текущее значение, увеличивать его или уменьшать точно так СУБД Firebird 2 и более поздних версиях ключевое слово SEQUENCE может быть использован как синоним GENERATOR. Фактически, рекомендуется использовать синтаксис SEQUENCE во вновь создаваемом коде.
Хотя слово не наделает бед.)
Структура системной таблицы RDB$GENERATORS следующая:
• RDB$GENERATOR_NAME CHAR(31)
• RDB$GENERATOR_ID SMALLINT
• RDB$SYSTEM_FLAG SMALLINT
И для СУБД Firebird 2.0 и более старших
0 码力 |
23 页 |
227.10 KB
| 2 年前 3
-
## +24
## Designing C++ Code Generator Guardrails: A Collaboration Among Outreach and Development Teams and Users
CB BAILEY & SHERRY SONTAG
20
24
September 15 - 20
Bloomberg
Engineering
## Designing Designing C++ Code Generator Guardrails A collaboration between outreach and development teams & users
CppCon 2024
September 16, 2024
Sherry Sontag, Technical Expert
CB Bailey, Software Engineer least astonishment.”
We were offering a modern set of guardrails for Bloomberg’s 20-year-old Code Generator.
Others responded before we could.
They said they weren’t the least bit surprised.
Bloomberg
0 码力 |
48 页 |
2.71 MB
| 1 年前 3
-
## +24
## Limitations and Problems in std::function and Similar Mitigations and Alternatives
## AMANDEEP CHAWLA
## Limitations and Problems in std::function and similar constructs
Amandeep Chawla | notifyTQ,
std::function)> callback
);
## Lambdas
// print all the elements of vector of int.
std::for_each(c.begin(), c.end(), [(int i) {
std::cout std::cout << i << ' ";
});
// Sort the vector using a lambda function
std::sort(v.begin(), v.end(), [](int a, int b) {
return a < b;
});
// find the object with id "c"
0 码力 |
62 页 |
3.57 MB
| 1 年前 3
-
## +24
## spanny 2: Rise of std::mdspan
## GRISWALD BROOKS
## 20 24 September 15 - 20
##### DISCLAIMER: C++23... ish

understanding of std::mdspan layouts and accessors
• how to write custom layouts and accessors
• dispel common misconceptions about both
## how
• motivations for std::mdspan
- review std::mdspan declaration memory accessor
improving memory access using asynchronicity
## how
• motivations for std::mdspan
- review std::mdspan declaration
• layouts and their requirements
• occupancy grids and default layouts
0 码力 |
117 页 |
2.02 MB
| 1 年前 3
-
## A Long Journey of Changing std::sort Implementation at Scale
## DANILA KUTENIN
## WHO AM I?
• Senior Software Engineer at Google
• DC efficiency
## AGENDA FOR TODAY
• History of sorting
• Why have ordering of elements
• std::sort, std::stable_sort, ranges::sort, etc
std::sort(begin, end);
std::ranges::sort(cont);
## REMINDERS
• Sorting is the ordering of elements
• std::sort, std::stable_sort, ranges::sort ranges::sort, etc
std::sort(begin, end, comp);
std::ranges::sort(cont, comp);
## QUICKSORT
## QUICKSORT
• Quick sort
## QUICKSORT
• Quick sort
• Take any element
## QUICKSORT
• Quick sort
• Take any
0 码力 |
182 页 |
7.65 MB
| 1 年前 3
-

Firebird Generator Guide
A guide on how and when to use generators in Firebird
Frank Ingermann
Version 0.3, 27 June 2020 2
2. Generator Basics ..... 3
2.1. What is a generator? ..... 3
2.2. What is a sequence? ..... 3
2.3. Where are generators stored? ..... 3
2.4. What is the maximum value of a generator? ..... 4
2.4.1. Client dialects and generator values ..... 5
2.5. How many generators are available in one database? ..... 5
2.5.1. Older InterBase and Firebird versions ..... 6
2.6. Generators and transactions
0 码力 |
20 页 |
169.00 KB
| 2 年前 3
-
## +21
## Bringing Existing Code to CUDA Using constexpr and std::pmr
BOWIE OWENS
20
21
October 24-29
## Outline
• Introduction
• Memory
• Host vs Device Functions
• Return on Investment
• Concluding Allocation
// cpu
std::vector x(N); // ????
std::vector y(N); // ...
## std::pmr
• Added in C++17:
• std::pmr::memory_resource
• std::pmr::polymorphic_allocator
• std::pmr::vector std::pmr::vector
• std::pmr::monotonic_buffer_resource
// ...
## Memory Allocation
// gpu
unified_memory_resource mem;
std::pmr::vector x(N, &mem);
std::pmr::vector y(N, &mem);
0 码力 |
51 页 |
3.68 MB
| 1 年前 3
-
## +23
## I s
std::mdspan a Zero-overhead Abstraction?
## OLEKSANDR BACHERIKOV
## I s
std::mdspan a Zero-overhead Abstraction?
Oleksandr Bacherikov
Snap Inc
## What is
std::mdspan?
It's a view to C++
If the matrices are contiguous in memory, then we can treat them as ranges and simply use
std::transform
$$ \{-5,\quad5,\quad-3,\quad1,\quad4,\quad0\} $$
$$ \{3,2,1,3,-5,4\} $$
$$ \{-2 4*r8], xmm0
## V ectorization is great for performance, not great for slideware
#### clang16.0.4 -01 -
std=c++20
| push | rbx | je | .LBB0_6 |
| test | rdi 0 码力 |
75 页 |
1.04 MB
| 1 年前 3 -
## +24
## V ectorizing a CFD Code With `std::simd` Supplemented by (Almost) Transparent Loading and Storing
OLAF KRZIKALLA
## VECTORIZING A CFD CODE WITH STD::SIMD SUPPLEMENTED BY (ALMOST) TRANSPARENT deduction to load and store std::�:� and scalar variables
☑ syntactically equalize scalar and vectorized code
## The talk:
■ share experience with vectorization using std::�md
■ introduce the SIMD_ACCESS → Single Instruction Multiple Data (SIMD)
For more details Matthias Kretz' Cppcon talk about std::simd: https://youtu.be/LAJ_hywLtMA
## Background: Vectorization
void add_array(double* x, double* 0 码力 |
58 页 |
2.68 MB
| 1 年前 3 -
Library
String Formatting Improvements
Standard Library Modules
std::flat_(multi)map / std::flat_(multi)set
std::mdspan
std::generator
basic_string(_view):contains()
• Construct string(_view) From Operations for std::optional
• Stacktrace Library
• Changes to Ranges Library
• Changes to Views Library
std::expected
std::move_only_function<>
std::spanstream
std::byteswap()
std::to_underlying() Library
String Formatting Improvements
Standard Library Modules
std::flat_(multi)map / std::flat_(multi)set
std::mdspan
std::generator
basic_string(_view):contains()
• Construct string(_view) From 0 码力 |
105 页 |
759.96 KB
| 1 年前 3
|