Compile-Time Validation## +24 ## Compile-Time Validation ## ALON WOLF ## 20 24 September 15 - 20 ## Software Validation "Confirmation, through the provision of objective evidence, that the requirements for a specific get_vec(); size_t index = get_index(); } vec.at(index) = 42; ## Runtime Performance Validation ## Detecting performance issues at runtime void must_be_fast() { using namespace std::chrono; end = high_resolution_clock::now(); } validate_performance(start, end); ## Static Performance Validation ## Static detection of performance issues void must_be_fast() { /*...*/ can_slowly_read_huge_file();0 码力 | 137 页 | 1.70 MB | 1 年前3
Expressive Compile-time Parsers## +23 ## Expressive Compile-time Parsers ## ALON WOLF ## 20 23 October 01 - 06 ## About me ## • Started learning C++ in high school with a passion for making video games ## Microsoft Visual C++ 2010  ## Dive Into Compile-Time Parsers Libraries Use Cases Implementation Techniques Reflection  for safety-critical applications that we deliver to our /p2_1.jpg) Errors have a high cost, so rigorous testing is a must We use increasingly more compile-time polymorphism and checks Question: how to test if something is compilable in a rigorous way? Imagine0 码力 | 50 页 | 1.37 MB | 1 年前3
Django 2.2.x Documentationforgery (CSRF) protection SQL injection protection Clickjacking protection SSL/HTTPS Host header validation Session security User-uploaded content Additional security topics Performance and optimization Form fields Model Form Functions Formset Functions The form rendering API Widgets Form and field validation Middleware Available middleware Middleware ordering Migration Operations Schema Operations Special fields | Built-in widgets Advanced: Forms for models | Integrating media | Formsets | Customizing validation The development process Learn about the various components and tools to help you in the development0 码力 | 2915 页 | 2.83 MB | 2 年前3
The Many Faces of Struct Tagsis it? Use struct tags to specify validators to be applied to a field. ## Why? We often need validation above and beyond type. Specify it declaratively in the struct tags. type Donor struct { Email DonorId: "a8392ac7", } result, _ := validator.ValidateStruct(donor) ## How About Type Validation? interface{} with type bounds? Something like type polymorphism. We can use struct tags to0 码力 | 18 页 | 148.80 KB | 1 年前3
Go Compile Time Instrumentationopportunity to work on brand new navigation stack. I’m also founding member of the OpenTelemetry Go compile-time instrumentation project https://github.com/open-telemetry/community/blob/main/projects/go-co0 码力 | 27 页 | 1.74 MB | 1 年前3
Hyperledger Fabric 1.2 Documentation• The ledger can be configured to support a variety of DBMSs. • A pluggable endorsement and validation policy enforcement that can be independently configured per application. There is fair agreement with peer functions on a per channel basis. • Pluggable endorsement and validation: Utilize pluggable endorsement and validation logic per chaincode. #### 2.1.1 New tutorials • Upgrade to version v1 Lifecycle and configuration system chaincode defines the rules for the channel; endorsement and validation system chaincode defines the requirements for endorsing and validating transactions. #### 4.20 码力 | 335 页 | 4.48 MB | 2 年前3
深度学习与PyTorch入门实战 - 32. Train-Val-Test-交叉验证DataLoader( val_db, batch_size=batch_size, shuffle=True) ## K-fold cross-validation ## V al Set ## k-fold cross validation - merge train/val sets randomly sample 1/k as val set 












