examples

Toy examples in single C files.
git clone git://henryandlizzy.uk/examples
Log | Files | Refs

DateCommit messageAuthorFiles+-
2024-11-08 17:39io_uring: keep track of inflight jobs and cancel with destructorsHenry Wilson4+276-94
2024-12-03 02:38sctp: SCTP protocol demoHenry Wilson2+151-0
2024-11-08 02:32imprecise: Min-max based integer range typeHenry Wilson1+58-0
2024-10-10 13:48buildsystem: Update build.shHenry Wilson1+39-35
2024-10-10 13:24endian: Add example for binary data exchangeHenry Wilson1+99-0
2024-07-06 20:55filter-bubble: Add coroutine generator example which filters expired weak_ptr and keeps them sortedHenry Wilson1+64-0
2024-06-28 20:43sdl-gl: Clickable UIHenry Wilson1+56-8
2024-06-27 23:37sdl-gl: Add functional UI panelHenry Wilson1+40-12
2024-06-26 23:09sdl-gl: Add more shapesHenry Wilson1+87-22
2024-06-26 22:01sdl-gl: Load console raster font and draw test stringHenry Wilson1+110-5
2024-06-24 22:34sdl-gl: Wireframe mode and tidying coordinate typesHenry Wilson1+132-92
2024-06-23 23:25sdl-gl: Make stars have random colour and spinHenry Wilson1+75-23
2024-06-23 09:21sdl-gl: Object add and deleteHenry Wilson1+24-7
2024-06-22 10:06sdl-gl: Drag objects aroundHenry Wilson1+60-22
2024-06-22 00:18sdl-gl: Use coroutine for click-drag state machineHenry Wilson3+119-36
2024-06-21 00:00sdl-gl: Mouse hover detectionHenry Wilson1+36-234
2024-05-02 22:27tmp: sdl-glHenry Wilson2+451-0
2024-05-02 22:25compile_flags: Tree-sitter flags fileHenry Wilson1+4-0
2023-09-22 20:33pathfind: Add example pathfinding algorithmHenry Wilson2+79-0
2024-04-25 22:21Sanitiser options moved to files that use themHenry Wilson6+13-18
2024-04-25 22:21build: Add generated build.sh for Tup-less hostsHenry Wilson2+61-42
2023-09-22 20:33barrier: Add example std::barrier thread synchronisationHenry Wilson1+51-0
2023-10-16 10:33xor-linked-list: add XOR linked list exampleHenry Wilson1+88-0
2023-09-22 20:33coro-generator2: Add alternative example of coroutine generatorsHenry Wilson1+301-0
2023-09-22 20:30coro-poll: Use std::transformHenry Wilson1+6-4
2023-09-22 20:23gl*: Small improvementsHenry Wilson4+68-5
2023-09-22 20:21type-erased-unique_ptr: Add example of type erasureHenry Wilson1+80-0
2023-09-22 20:19Add address sanitizer leak detection suppression for programs that need itHenry Wilson7+20-1
2023-08-26 16:47model: Use built-in typesHenry Wilson1+1-1
2023-08-26 16:42damm-checksum: Add checksumming program exampleHenry Wilson1+58-0
2023-07-17 21:19sdl: Add SDL2 exampleHenry Wilson2+373-0
2023-07-17 21:16gl-asteroids: add joytick event detectionHenry Wilson1+16-0
2023-07-14 22:51coroutine_owner: add owning version of std::coroutine_handleHenry Wilson7+282-148
2023-07-14 21:55template-specialisation: Example showing type-erased unique pointerHenry Wilson1+87-0
2023-07-05 08:27coro-generator-consumer: add coroutine example for generating and consumingHenry Wilson1+117-0
2023-04-14 22:41treeify: Add tool to treeify the output of findHenry Wilson1+99-0
2023-04-14 22:06gl: Add simple 3D and lighting examplesHenry Wilson3+315-0
2023-04-14 22:06gl: Add most basic OpenGL exampleHenry Wilson2+28-0
2023-02-28 23:10dimensions: Add units with multiple dimensions exampleHenry Wilson1+184-0
2023-02-16 20:55sqlite: Add example demonstrating loading and saving to a SQLite databaseHenry Wilson3+123-2
2023-02-07 22:59list-composition: Add list_adapter typeHenry Wilson1+124-62
2023-02-16 09:05morse: Add decoderHenry Wilson1+197-80
2023-02-15 22:42mremap: Add growable fixed memory address buffer exampleHenry Wilson2+47-8
2023-02-06 22:32makefile: Move output executables into bin/Henry Wilson3+22-53
2023-02-06 22:02list-composition: Add example showing how embedded linked lists exhibit emergent behaviourHenry Wilson2+120-0
2023-02-06 22:01arena-tree: An example of a pool allocator for a tree data structureHenry Wilson2+151-0
2023-02-06 22:00owning_ptr: Add experiment in avoiding shared_ptr liveleaksHenry Wilson2+83-0
2023-02-06 21:57eventfd: Add eventfd example - A better version of the pipe trick.Henry Wilson2+34-0
2023-02-06 21:54coro-throwing: Test type that can handle throwing coroutine bodyHenry Wilson2+99-0
2023-02-06 21:54makefile: Enable address & UB sanitizerHenry Wilson2+8-6
2022-12-05 22:15coro-poll: Add coroutine scheduling with poll(2)Henry Wilson2+167-0
2022-12-05 17:53Add support for building with tupHenry Wilson4+55-85
2022-08-26 20:54elastic-tabstops: Add ET converterHenry Wilson1+106-0
2022-08-17 22:48hush: Add pipeliningHenry Wilson1+72-30
2022-08-16 22:07hush: Make hush actually work as a shellHenry Wilson1+68-7
2022-08-16 22:08glob: remove unneccesary echoing of argsHenry Wilson1+0-1
2022-08-26 22:41glob: add glob exampleHenry Wilson1+28-0
2022-08-15 23:22epoll: Add TCP supportHenry Wilson1+99-10
2022-08-26 22:41epoll: add inotify eventHenry Wilson2+33-12
2022-08-10 15:50gl-asteroids: Add acceleration powerup and make window fitHenry Wilson1+15-4
2022-08-10 15:49epoll: Generalize event-loop exampleHenry Wilson2+101-82
2022-08-05 23:33Fix warnings and stricten to -WextraHenry Wilson15+28-35
2022-08-05 15:31Fix incorrect .PHONY targetHenry Wilson1+1-1
2022-08-05 23:21epoll: Add timerfd exampleHenry Wilson1+82-0
2022-05-16 22:29Add sudoku exampleHenry Wilson1+227-0
2022-04-28 15:53Add mutex-wrapping container C++ example.Henry Wilson1+47-0
2021-12-10 14:41Add DSP processing kernel exampleHenry Wilson1+133-0
2022-05-11 21:52gl-asteroids: Draw ammo counterHenry Wilson1+9-2
2022-05-09 22:47gl-asteroids: Add livesHenry Wilson1+34-2
2022-05-09 22:47gl-asteroids: Add variation to particle ttlHenry Wilson1+20-12
2022-04-28 21:58gl-asteroids: Tidy up a bit using inheritanceHenry Wilson1+28-14
2022-04-28 18:38gl-asteroids: Factor coord_from_rotationHenry Wilson1+7-5
2022-04-28 18:23gl-asteroids: Stop using single letter member/global namesHenry Wilson1+52-52
2022-04-23 10:07gl-asteroids: Add more sound typesHenry Wilson1+52-12
2022-04-21 22:53gl-asteroids: Add sound to asteroidsHenry Wilson2+36-1
2022-04-21 22:49Add ALSA exampleHenry Wilson2+35-0
2022-04-09 22:12gl-asteroids: Add more than one type of powerupHenry Wilson1+28-6
2022-04-09 16:43gl-asteroids: Improve rock collisionHenry Wilson1+26-8
2022-04-09 12:52gl-asteroids: Shooting powerups destroys themHenry Wilson1+25-4
2022-04-07 22:31gl-asteroids: Add powerupsHenry Wilson1+46-4
2022-04-06 17:10gl-asteroids: Improve scoring and stop wrapping rocksHenry Wilson1+9-13
2022-04-05 22:49gl-asteroids: Delete bullets which exit the arenaHenry Wilson1+44-14
2022-04-04 22:34gl-asteroids: Improve rock randomnessHenry Wilson1+15-7
2022-04-04 20:30gl-asteroids: Add stars and improve flame effectHenry Wilson1+21-12
2022-04-03 20:19gl-asteroids: Fix flame being controllable after game endHenry Wilson1+5-2
2022-04-03 20:12gl-asteroids: Quit more gracefullyHenry Wilson1+35-28
2022-04-03 13:17gl-asteroids: Start rocks offscreen and draw the ship 5 times to avoid poppingHenry Wilson1+40-19
2022-04-03 13:17gl-asteroids: Draw everything 5 times to avoid poppingHenry Wilson1+12-8
2022-04-03 13:09gl-asteroids: Tidy up a bit and add collision debrisHenry Wilson1+23-6
2022-04-02 17:16Add coroutine timer dispatch exampleHenry Wilson3+180-0
2022-04-02 17:15gl-asteroids: Add basic particle systemHenry Wilson1+40-3
2022-04-02 13:43gl-asteroids: fix long-keypresses not being detected and added bullet graphicHenry Wilson1+22-10
2022-08-26 22:40pulse: Add pulse async clientHenry Wilson3+171-1
2022-08-26 22:42enviro: Run program with environment variables setHenry Wilson1+134-0
2021-11-25 21:25Add token threaded FORTHHenry Wilson1+92-0
2021-11-25 21:06initial commitHenry Wilson27+2210-0