The Salami Method for Cross Platform Development
summary
Proposes slicing a cross‑platform C++ system into thin transparent layers so platform nastiness lives only at the borders; implements a single C++ OpenCV function (rotate_hue) and exposes it through an extern "C" boundary implemented as four C functions that are wired to Windows DLL, JNI and Emscripten (asm.js / WebAssembly) shims, plus platform idiomatic wrappers. The demo compiles the same code for desktop and browser, runs live (party‑parrot hue rotation) and shows the approach working end‑to‑end.
AI-written summary · about
chapters (16)
- 0:00Introduction to cross platform
- 3:58Cross platform challenges
- 6:09Salami method overview
- 9:47Cross platform C++ core
- 11:15Public C++ interface
- 13:32Platform boundary interface
- 15:22Cross platform C interface
- 22:14Platform specific code
- 24:57Windows DLL example
- 30:57Android JNI example
- 34:57Native import layer
- 38:06Interface wrappers
- 42:32Layer separation benefits
- 42:53Cross platform demo intro
- 45:27Browser integration
- 51:19Live demo and Q&A start
related talks
53mWhat I Talk About When I Talk About Cross Platform Development
01h 14mBuilding and Organising a Multi-Platform Development Code Base
01h 04mMaking C++ and the STL Work in the Linux / Windows Kernels
58m“Embracing Standard C++ for the Windows Runtime"
27mCoding Qt for greater interoperability and portability ...
41mC++ Abstraction Patterns for Cross Platform Development in C++ Software Engineering
41mC++ Migration Strategies
47mPrepping your Open Source Project for Multi-Platform
