Since it's impossible to find one concise source anywhere, as far as I can tell:
| ISO C++ Standard | Value |
|---|---|
| 1998/2003 | 199711L |
| 2011 | 201103L |
| 2014 | 201402L |
| 2017 | 201703L |
| PROCESSOR,ARCHITECTURE,IGNORED | |
| 77B1,ARM-FlexRIO | |
| 77B2,ARM-FlexRIO | |
| 77AC,ARM-FlexRIO | |
| 762F,ARM-cRIO-myRIO | |
| 76D3,ARM-cRIO-myRIO | |
| 76F2,ARM-cRIO-roboRIO | |
| 7AAE,ARM-cRIO-roboRIO | |
| 7740,ARM-cRIO-4-slot | |
| 7741,ARM-cRIO-4-slot |
| /* | |
| * m1cat: a proof of concept for the M1RACLES vulnerability in the Apple M1. | |
| * | |
| * This program implements a covert channel that can be used to transmit data | |
| * between two processes when run on the Apple Silicon "M1" CPUs. | |
| * | |
| * The channel is slightly lossy due to (presumably) the scheduler sometimes | |
| * scheduling us on the wrong CPU cluster, so this PoC sends every byte twice | |
| * together with some metadata/framing bits, which is usually good enough. | |
| * A better approach would be to use proper FEC or something like that. |
| #include <stdio.h> | |
| #define $x ,x | |
| #define $i ,i | |
| #define eval int | |
| #define read scanf | |
| #define $scanfpat "%d", & | |
| #define $(x) ,(x) | |
| #define $open ( | |
| #define $close ) | |
| #define do { |
| /* Compile with -DUSE_READLINE and -lreadline to use readline for input. */ | |
| #include <arpa/inet.h> | |
| #include <errno.h> | |
| #include <poll.h> | |
| #include <signal.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <sys/socket.h> |
This is a compiled list of falsehoods programmers tend to believe about working with time.
Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.
| // compile with: | |
| // g++ oodle.cpp -o oodle -std=c++14 | |
| #include <iostream> | |
| #include <string> | |
| #include <regex> | |
| #include <vector> | |
| int main(int argc, char* argv[]) { | |
| if (argc == 1) { |
| public static void main(String[] args) { | |
| // this uses a java 8 feature called method references (i think) | |
| // it looks for method "aThingToDo" in class "methoding" (the name of this class) | |
| // aThingToDo must match the pattern, as doAThing says | |
| doAThing(methoding::aThingToDo); | |
| } | |
| // define a pattern for what type of method we want | |
| // we want a method with String s as input and no return (void) | |
| public interface voidMethod { |
| // while this is not technically a method, a Runnable is close enough for me. | |
| // this method wants a "method" as an input | |
| void canHazMethod(Runnable methodToRun) { | |
| // run the method passed in | |
| methodToRun.run(); | |
| } | |
| // this is the method I will use: | |
| Runnable myMethod = () -> { |