Nim,A new approach to meta programming':', ' ', $obj.b, '\n')) result.add(`&`("s", ':', ' ', $obj.s, '\n')) result.add(")") After constant folding: result = "(" result.add(`&`("a: ", $obj.a, '\n')) result.add(`&`("b: ", $obj.b, '\n')) result Optimizing Hello World (4) Copyright © 2013 Andreas Rumpf Optimizing Hello World (4) After constant folding: result = "(" result.add(`&`("a: ", $obj.a, '\n')) result.add(`&`("b: ", $obj.b, '\n')) result `&`("b: ", $obj.b, '\n')) & `&`("s: ", $obj.s, '\n')) & ")" After constant folding (that the compiler performs for us) it becomes: result = `&`("(a: ", $obj.a, "\nb: ", $obj0 码力 | 45 页 | 360.68 KB | 1 年前3
Nim 2.0.8 Manualthe end-user to one/some of the other players, but the total amount seems to remain pretty much constant for a given task. -- Ran T A t A About this document Note: This document is a draft! Several compiled into the executable. However, some code may be executed at compile-time. This can include constant expressions, macro de�nitions, and Nim procedures used by macro de�nitions. Most of the Nim language disabled. A constant expression is an expression whose value can be computed during a semantic analysis of the code in which it appears. It is never an l-value and never has side effects. Constant expressions0 码力 | 132 页 | 5.73 MB | 1 年前3
Programmer’s Guide for Free Pascal, Version 3.2.2minimum enumeration size . . . . . . . . . . . . 32 1.2.52 $MINFPCONSTPREC : Specify floating point constant precision . . . . . . . 32 1.2.53 $MMX : Intel MMX support (Intel 80x86 only) . . . . . . . . . . . . . . . . . . . . . . . . . . 129 11.1.1 Constant folding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129 11.1.2 Constant merging . . . . . . . . . . . . . . . . . . . . . 1.3 Short cut evaluation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129 11.1.4 Constant set inlining . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129 11.1.5 Small sets0 码力 | 187 页 | 531.58 KB | 1 年前3
The Go frontend for GCCthe program—a list of state- ments. • Named_object. A named object: a function, variable, type, constant, or package. Each of these structures is a class in gccgo’s source code. The Statement, Expression implementation to restrict the size). They only acquire a type when they are used out- side of a constant expression, e.g., in an assignment. At the point of use, the value of the expression must fit in results after recovering from a panic. • Gccgo converts switch statements with cases that are not constant or whose switch variable does not have integer type to a series of if statements. • Gccgo converts0 码力 | 14 页 | 122.25 KB | 1 年前3
C++23: An Overview of Almost All New and Updated Featuresis evaluated during constant evaluation, then A is executed, otherwise B14 if consteval Why? We have std::is_constant_evaluated(), so what’s wrong with: if (std::is_constant_evaluated()) { /*A*/ which you cannot do in /*A*/ above if consteval cannot be used wrong is_constant_evaluated() can: if constexpr (std::is_constant_evaluated()) { /*A*/ } else { /*B*/ }15 if consteval Example: consteval std::println("{}", std::ranges::contains_subrange(v1, v2)); // true75 Changes to Ranges Library Several folding algorithms: ranges::fold_left(), fold_left_first(), fold_right(), fold_right_last(), fold_left_with_iter()0 码力 | 105 页 | 759.96 KB | 6 月前3
PostgreSQL 9.3 Documentationparticular command. A token can be a key word, an identifier, a quoted identifier, a literal (or constant), or a special character symbol. Tokens are normally separated by whitespace (space, tab, newline) identifier length is 63 bytes. If this limit is problematic, it can be raised by changing the NAMEDATALEN constant in src/include/pg_config_manual.h. Key words and unquoted identifiers are case insensitive. Therefore: the same by PostgreSQL, but "Foo" and "FOO" are different from these three and each other. (The folding of unquoted names to lower case in PostgreSQL is incompatible with the SQL standard, which says that0 码力 | 3183 页 | 7.53 MB | 1 年前3
PostgreSQL 9.3.25 Documentationparticular command. A token can be a key word, an identifier, a quoted identifier, a literal (or constant), or a special character symbol. Tokens are normally separated by whitespace (space, tab, newline) identifier length is 63 bytes. If this limit is problematic, it can be raised by changing the NAMEDATALEN constant in src/include/pg_config_manual.h. Key words and unquoted identifiers are case insensitive. Therefore: the same by PostgreSQL, but "Foo" and "FOO" are different from these three and each other. (The folding of unquoted names to lower case in PostgreSQL is incompatible with the SQL standard, which says that0 码力 | 3002 页 | 7.47 MB | 1 年前3
Is std::mdspan a Zero-overhead Abstraction? - Oleksandr Bakirov - CppCongenerating identical assembly for different color spaces, without relying on non-standard Identical Code Folding. ● It allows to formulate in-place color conversions, for example, from RGB to BGR. ● Good as std::integral_constant{}}; 14 } 15 }; 71RGB to Grayscale conversion 72Color spaces 1 struct RGB {}; 2 3 auto channelCount(RGB) { 4 return std::integral_constant {}; 6 7 struct Grayscale {}; 8 9 auto channelCount(Grayscale) { 10 return std::integral_constant {}; 11 } 73Conversion using mdspan (draft) 1 void convertColorSpace( 2 mdspan 0 码力 | 75 页 | 1.04 MB | 6 月前3
PostgreSQL 9.2 Documentationparticular command. A token can be a key word, an identifier, a quoted identifier, a literal (or constant), or a special character symbol. Tokens are normally separated by whitespace (space, tab, newline) identifier length is 63 bytes. If this limit is problematic, it can be raised by changing the NAMEDATALEN constant in src/include/pg_config_manual.h. Key words and unquoted identifiers are case insensitive. Therefore: the same by PostgreSQL, but "Foo" and "FOO" are different from these three and each other. (The folding of unquoted names to lower case in PostgreSQL is incompatible with the SQL standard, which says that0 码力 | 3007 页 | 7.07 MB | 1 年前3
PostgreSQL 9.2 Documentationparticular command. A token can be a key word, an identifier, a quoted identifier, a literal (or constant), or a special character symbol. Tokens are normally separated by whitespace (space, tab, newline) identifier length is 63 bytes. If this limit is problematic, it can be raised by changing the NAMEDATALEN constant in src/include/pg_config_manual.h. Key words and unquoted identifiers are case insensitive. Therefore: the same by PostgreSQL, but "Foo" and "FOO" are different from these three and each other. (The folding of unquoted names to lower case in PostgreSQL is incompatible with the SQL standard, which says that0 码力 | 2829 页 | 7.02 MB | 1 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100













