C++ links: Coroutines
https://github.com/MattPD/cpplinks / C++ Standard / C++20 / Coroutines
(draft; work in progress)
#coroutines (C++ Slack): https://cpplang.slack.com/archives/C5JS5JXT5
| #!/bin/bash | |
| # Run the script from home dir | |
| cd ~ | |
| nvim_config="$HOME/.config/nvim" | |
| nvim_data="$HOME/.local/share/nvim" | |
| cp -r "$nvim_config" nvim_bak # backup nvim dir | |
| cp -r "$nvim_config/lua/custom" . |
| // 1. Run it as is (SeqCst). Should be just timing output | |
| // 2. Change the two HERE lines to Ordering::Relaxed and run it again. | |
| // That should give lots of (seemingly impossible) memory reorderings. | |
| use rand; | |
| use std::sync::atomic::{AtomicU8, Ordering}; | |
| use std::sync::*; | |
| use std::thread; | |
| fn main() { |
| #!/usr/bin/env python | |
| """Extend Python's built in HTTP server to save files | |
| curl or wget can be used to send files with options similar to the following | |
| curl -X PUT --upload-file somefile.txt http://localhost:8000 | |
| wget -O- --method=PUT --body-file=somefile.txt http://localhost:8000/somefile.txt | |
| __Note__: curl automatically appends the filename onto the end of the URL so |
https://github.com/MattPD/cpplinks / C++ Standard / C++20 / Coroutines
(draft; work in progress)
#coroutines (C++ Slack): https://cpplang.slack.com/archives/C5JS5JXT5