Poor Man's Metaclasses
summary
Prototype generates C++ classes and JSON payload handlers at compile time by turning a domain-specific, type-based front end (inspired by emBO++/cactus use cases and AWS REST specs) into code via variadic templates, compile-time strings and a kasnia/MPL-style library plus clang/GCC support. It builds compile-time strings, flattens nested object types into name-parameter storage, emits a single format-library JSON string, and works but increases link-time and binary complexity (AWS SDK once took five hours to compile on an i7).
AI-written summary · about
chapters (46)
- 0:00Intro
- 0:15Metaclasses
- 0:43Cute
- 2:04Mirror classes
- 2:54clang implementation
- 5:20cactus overview
- 9:22competence wings
- 10:15domainspecific language
- 10:41character string
- 11:32template parameters
- 12:42internal processing
- 13:03AWS API
- 14:43Funnel
- 15:18Services
- 15:40JSON payload
- 17:30Possible responses
- 18:14Limitations
- 19:19Empl
- 20:13Predicate
- 20:54Class II PL
- 21:36Class II payload
- 21:58Overview
- 22:51Cogeneration
- 24:08assignment operator
- 24:30value type
- 25:04storage type
- 25:37assignment
- 26:05access
- 26:41finder
- 27:30call em
- 27:59further steps
- 28:34request type
- 29:41use functions
- 30:53match parameters
- 33:45join
- 35:33payload
- 37:49generic templates
- 39:42invest time for functions
- 40:05look for key intent
- 40:28classier appeal
- 40:58bonus slides
- 43:04transform
- 44:13flattened
- 45:07lost
- 45:40parentheses
- 47:58Madlib invocation
