Why Loops Endbefore the loop, the loop must end.if ( b <= e ) { counting_theorem( b, e ); int i = b; while ( i != e ) ++i; } void counting_theorem( const int b, const int e ) interface { extend_stability b ( i != e ) { claim i < e; ++i; } }if ( b <= e ) { counting_theorem( b, e ); int i = b; while ( i != e ) ++i; } void counting_theorem( const int b, const int e ) interface { extend_stability b ( i != e ) { claim i < e; ++i; } }if ( b <= e ) { counting_theorem( b, e ); int i = b; while ( i != e ) ++i; } void counting_theorem( const int b, const int e ) interface { extend_stability b0 码力 | 134 页 | 1.30 MB | 6 月前3
Six Impossible Thingsthe goal of providing a solid foundation for all of mathematics. In 1931 Gödel’s Incompleteness Theorem shattered the dream, showing that for any consistent axiomatic system there will always be theorems0 码力 | 144 页 | 6.47 MB | 6 月前3
C++ Under the HoodPointer to (virtual) Member Function 91 godbolt.org/z/jTqzxGeeoC++ Under the Hood Fundamental Theorem of Software Engineering: Any problem can be solved by adding a layer of indirection. 92C++ Under0 码力 | 168 页 | 13.55 MB | 6 月前3
Behavioral Modeling in HW/SW Co-design Using C++ Coroutinesconditions well • Could use a scoped lock or latch/barrier, but need application of DeMorgan’s theorem • Example: std::mutex lock[100]; // Needs to be an ‘inverted’ mutex … std::scoped_lock joint_lock(lock[1]0 码力 | 44 页 | 584.69 KB | 6 月前3
Performance Mattersvariables is approximately normally distributed. STABILIZER repeatedly randomizes layoutCentral Limit Theorem execution times are normally distributed The sum of a sufficient number of independent, identically0 码力 | 197 页 | 11.90 MB | 6 月前3
Conan 2.5 Documentationdef confirmation(message): return args.force or ui.request_boolean(message) ui = UserInput(non_interactive=False) out = ConanOutput() remote = conan_api.remotes.get(args.remote) if args.remote else None classes to manage user input and user output: ui = UserInput(non_interactive=False) out = ConanOutput() • UserInput(non_interactive): class to manage user inputs. In this example we’re us- ing ui.request_boolean("Do proceed? (yes/no): in the command prompt. Note: you can use UserInput(non_interactive=conan_api.config.get("core:non_interactive")) too. • ConanOutput(): class to manage user outputs. In this example,0 码力 | 769 页 | 4.70 MB | 1 年前3
Conan 2.4 Documentationdef confirmation(message): return args.force or ui.request_boolean(message) ui = UserInput(non_interactive=False) out = ConanOutput() remote = conan_api.remotes.get(args.remote) if args.remote else None classes to manage user input and user output: ui = UserInput(non_interactive=False) out = ConanOutput() • UserInput(non_interactive): class to manage user inputs. In this example we’re us- ing ui.request_boolean("Do proceed? (yes/no): in the command prompt. Note: you can use UserInput(non_interactive=conan_api.config.get("core:non_interactive")) too. • ConanOutput(): class to manage user outputs. In this example,0 码力 | 769 页 | 4.69 MB | 1 年前3
Conan 2.8 Documentationdef confirmation(message): return args.force or ui.request_boolean(message) ui = UserInput(non_interactive=False) out = ConanOutput() remote = conan_api.remotes.get(args.remote) if args.remote else None classes to manage user input and user output: ui = UserInput(non_interactive=False) out = ConanOutput() • UserInput(non_interactive): class to manage user inputs. In this example we’re us- ing ui.request_boolean("Do proceed? (yes/no): in the command prompt. Note: you can use UserInput(non_interactive=conan_api.config.get("core:non_interactive")) too. • ConanOutput(): class to manage user outputs. In this example,0 码力 | 785 页 | 4.95 MB | 10 月前3
Conan 2.7 Documentationdef confirmation(message): return args.force or ui.request_boolean(message) ui = UserInput(non_interactive=False) out = ConanOutput() remote = conan_api.remotes.get(args.remote) if args.remote else None classes to manage user input and user output: ui = UserInput(non_interactive=False) out = ConanOutput() • UserInput(non_interactive): class to manage user inputs. In this example we’re us- ing ui.request_boolean("Do proceed? (yes/no): in the command prompt. Note: you can use UserInput(non_interactive=conan_api.config.get("core:non_interactive")) too. • ConanOutput(): class to manage user outputs. In this example,0 码力 | 779 页 | 4.93 MB | 10 月前3
Conan 2.6 Documentationdef confirmation(message): return args.force or ui.request_boolean(message) ui = UserInput(non_interactive=False) out = ConanOutput() remote = conan_api.remotes.get(args.remote) if args.remote else None classes to manage user input and user output: ui = UserInput(non_interactive=False) out = ConanOutput() • UserInput(non_interactive): class to manage user inputs. In this example we’re us- ing ui.request_boolean("Do proceed? (yes/no): in the command prompt. Note: you can use UserInput(non_interactive=conan_api.config.get("core:non_interactive")) too. • ConanOutput(): class to manage user outputs. In this example,0 码力 | 777 页 | 4.91 MB | 10 月前3
共 98 条
- 1
- 2
- 3
- 4
- 5
- 6
- 10













