about
2/21/2022
BasicBites Repo
BasicBites Repository
Short stories and code about Basics
Quick Status
- Thomas Huxley
Contents:
- Platforms: how the Windows, Linux, and MacOS platforms support code that runs there.
- Programs: basics about execution, types, functions, and structure.
- Object Models: how code uses objects to structure its operations.
Each Bite takes an important basic topic, provides a relatively consise overview,
and for some pages provides sample code.
Bites:
-
Basics Track Summary Getting started with platform and code development -
Platforms Models illustrating how common platforms work -
Virtual Memory Basic ideas about paged memory -
Job Scheduling Model for OS scheduler -
I/O Synchronous and asynchronous I/O operations -
System Resources How are resources shared among processes -
Programming Models for execution, types, functions, safety, and program structures -
Execution Models of code execution for native and managed code -
Types Abstract models for Copy, Move, and Reference types -
Functions Functions, methods, and lambdas with parameter passing -
Safety Functions, methods, and lambdas with parameter passing -
Using Platform API Accessing and use of methods exposed by platforms -
Structure Structuring software with functions, methods, types, libraries, executables -
Object models lifetime, resource management, ownership -
Life time Construction to destruction flow -
Resource management Construction to destruction, resource management -
Ownership Single vs. Multiple ownership, mutation, sharing -
Native code models Execution, ownership, lifetime, resource management for native code -
Managed code models Execution, ownership, lifetime, resource management for managed code
Bite Demonstration Code:
-
functions, methods, and lambdas
-
functions
Pass arguments by value and reference, pass and return functions, use static and dynamic dispatch. -
methods
Demonstrate non-generic and generic methods.
-
functions
-
closures
Demonstrates closures with copy and with move capture.