MACRO-FREE TESTING WITH C++20## MACRO-FREE TESTING WITH C++20 KRIS@JUSIAK.NET | @KRISJUSIAK | LINKEDIN.COM/IN/KRIS-JUSIAK ### UT - HTTPS://GITHUB.COM/BOOST-EXT/UT ### UT - HTTPS://GITHUB.COM/BOOST-EXT/UT C++20 (GCC-9+, CLANG-9.0+ APPLE CLANG-11.0.0+, MSVC-2019+*) - SINGLE header/MODULE (2K LOC) WITH NO EXTERNAL DEPENDENCIES • MACRO-FREE (✓) • (*) LIMITATIONS MAY APPLY ### UT - HTTPS://GITHUB.COM/BOOST-EXT/UT C++20 (GCC-9+, CLANG-9 APPLE CLANG-11.0.0+, MSVC-2019+*) - SINGLE header/MODULE (2K LOC) WITH NO EXTERNAL DEPENDENCIES • MACRO-FREE (✓) • FEATURES (ASSERTIONS, SUITES, TESTS, SECTIONS, BDD, MATCHERS, LOGGING, ...) • (*) LIMITATIONS0 码力 | 53 页 | 1.98 MB | 1 年前3
Julia 1.5.3 DocumentationTypes ..... 194 Modules ..... 194 Global Variables ..... 195 Multiple Objects ..... 196 Macro-generated code ..... 196 18 Metaprogramming ..... 197 18.1 Program representation ..... 197 204 Hold up: why macros? ..... 205 Macro invocation ..... 206 Building an advanced macro ..... 207 Hygiene ..... 209 Macro and dispatch ..... 211 18.4 Code Generation . Starting Julia with multiple threads ..... 261 24.2 Data-race freedom ..... 262 24.3 The @threads Macro ..... 263 24.4 Atomic Operations ..... 263 24.5 Side effects and mutable function arguments .0 码力 | 1335 页 | 4.41 MB | 2 年前3
Julia 1.10.0 beta2 Documentation24.2 Threadpools ..... 300 24.3 Communication and synchronization ..... 301 24.4 The @threads Macro ..... 302 24.5 Atomic Operations ..... 304 24.6 Per-field atomics ..... 305 24.7 Side effects For example, if you compute 2 .* A.^2 .+ sin.(A) (or equivalently @. 2A^2 + sin(A), using the @. macro) for an array A, it performs a single loop over A, computing 2^2 + sin(a) for each element a of A is possible to create a view into a string using the type SubString. More simply, using the @views macro on a block of code converts all string slices into substrings. For example: julia> str = "long0 码力 | 1682 页 | 5.96 MB | 2 年前3
Julia 1.4.1 Documentation$ and \ characters 212 Functions and Methods 213 Macro 213 Types 213 Modules 214 Global Variables 214 Multiple Objects 215 Macro-generated code 216 25 Metaprogramming 217 25.1 Program 224 25.3 Macros 224 Basics 224 Hold up: why macros? 225 Macro invocation 226 Building an advanced macro 227 Hygiene 229 Macro and dispatch 231 25.4 Code Generation 231 25.5 Non-Standard 30.1 Channels 275 31 Multi-Threading (Experimental) 279 31.1 Setup 279 31.2 The @threads Macro 280 31.3 Atomic Operations 280 31.4 Side effects and mutable function arguments 282 31.5 @threadcall0 码力 | 1312 页 | 4.29 MB | 2 年前3
Julia 1.9.0 rc3 Documentation24.2 Threadpools ..... 300 24.3 Communication and synchronization ..... 301 24.4 The @threads Macro ..... 302 24.5 Atomic Operations ..... 303 24.6 Per-field atomics ..... 304 24.7 Side effects For example, if you compute 2 .* A.^2 .+ sin.(A) (or equivalently @. 2A^2 + sin(A), using the @. macro) for an array A, it performs a single loop over A, computing 2^2 + sin(a) for each element a of A is possible to create a view into a string using the type SubString. More simply, using the @views macro on a block of code converts all string slices into substrings. For example: julia> str = "long0 码力 | 1644 页 | 5.26 MB | 2 年前3
Julia 1.8.1 DocumentationStarting Julia with multiple threads ..... 287 24.2 Data-race freedom ..... 288 24.3 The @threads Macro ..... 289 24.4 Atomic Operations ..... 290 24.5 Per-field atomics ..... 291 24.6 Side effects For example, if you compute 2 .* A.^2 .+ sin.(A) (or equivalently @. 2A^2 + sin(A), using the @. macro) for an array A, it performs a single loop over A, computing 2^2 + sin(a) for each element a of A and function calls in an expression can be tedious and lead to code that is difficult to read, the macro @. is provided to convert every function call, operation, and assignment in an expression into the0 码力 | 1563 页 | 5.03 MB | 2 年前3
julia 1.12.0 rc3 documentationMulti-Threading 324 25.1 Starting Julia with multiple threads 324 25.2 Threadpools 326 25.3 The @threads Macro 327 25.4 Communication and data-races between threads 329 25.5 Side effects and mutable function arguments setrounding and @big_str, the macro used for big string literals (such as big"0.3"), might not be intuitive, as a consequence of the fact that @big_str is a macro. See the @big_str documentation $ A. $ ^{.} $ 2 $ ^{+} $ sin. (A) (or equivalently @. $ 2 A^{.} ^{2} $ $ + $ sin(A), using the @. macro) for an array A, it performs a single loop over A, computing $ 2 a^{2}+\sin(a) $ for each element0 码力 | 2065 页 | 7.46 MB | 2 月前3
The Julia Language 1.13.0 rc1 DocumentationMulti-Threading 317 25.1 Starting Julia with multiple threads 317 25.2 Threadpools 319 25.3 The @threads Macro 320 25.4 Communication and data-races between threads 322 25.5 Side effects and mutable function arguments setprecision or setrounding and @big_str, the macro used for big string literals (such as big"0.3"), might not be intuitive, as a consequence of the fact that @big_str is a macro. See the @big_str documentation for $ ^{} $ A. $ ^{.} $ 2 $ ^{.} $ sin. (A) (or equivalently @. 2A $ ^{.} $ 2 + sin(A), using the @. macro) for an array A, it performs a single loop over A, computing 2a $ ^{.} $ 2 + sin(a) for each element0 码力 | 1948 页 | 7.90 MB | 1 天前3
The Julia Language 1.12.6 DocumentationMulti-Threading 314 25.1 Starting Julia with multiple threads 314 25.2 Threadpools 316 25.3 The @threads Macro 317 25.4 Communication and data-races between threads 319 25.5 Side effects and mutable function arguments setprecision or setrounding and @big_str,the macro used for big string literals (such as big"0.3"), might not be intuitive, as a consequence of the fact that @big_str is a macro. See the @big_str documentation for $ ^{} $ A. $ ^{.} $ 2 $ ^{.} $ sin. (A) (or equivalently @. 2A $ ^{.} $ 2 + sin(A), using the @. macro) for an array A, it performs a single loop over A, computing 2a $ ^{.} $ 2 + sin(a) for each element0 码力 | 1897 页 | 7.71 MB | 1 天前3
The Julia Language 1.12.5 DocumentationMulti-Threading 314 25.1 Starting Julia with multiple threads 314 25.2 Threadpools 316 25.3 The @threads Macro 317 25.4 Communication and data-races between threads 319 25.5 Side effects and mutable function arguments setprecision or setrounding and @big_str,the macro used for big string literals (such as big"0.3"), might not be intuitive, as a consequence of the fact that @big_str is a macro. See the @big_str documentation for $ ^{} $ A. $ ^{.} $ 2 $ ^{.} $ sin. (A) (or equivalently @. 2A $ ^{.} $ 2 + sin(A), using the @. macro) for an array A, it performs a single loop over A, computing 2a $ ^{.} $ 2 + sin(a) for each element0 码力 | 1897 页 | 7.71 MB | 1 天前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100













