654 karma · joined Sep 1, 2013 (13y ago) · 220 submissions
comment 4y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
you define a function with a clause per state (and some other args including the incoming message), and each clause returns a tuple with the new state and some other stuff. the loop is part of the framework, and handles generic otp stuff like updating code in a running system.
comment 4y ago · link · parent
Olde C used to just let you use integers as struct pointers, and there was only one struct member namespace. so code like this was valid and did an integer-size write to address 0177770. old unix did this for device register access; see the lions book.
struct { int integ; };
f() { 0177770->integ = 012345; }
comment 4y ago · link · parent
comment 4y ago · link · parent
at least that's the part I remember
comment 4y ago · link · parent
Edit: just tried on windows 10 WSL, and it had a sad (blue screen).
comment 4y ago · link · parent
Also, the 'a' and 't' look like the kindergarten versions instead of the more usual two-story 'a' and 't' with some sort of curve at the bottom.
Most of this is almost certainly driven by the context this typeface was designed for. The simple shapes probably come from usability considerations for the lettering machine: the user had to trace each stroke in the template by hand. The uniform stroke weight and rounded ends come from how the engraving tool worked: basically a drill bit you drag sideways.
The curves are probably that way because there was a fashion for "modern" shapes a while back, which meant roughly "describable with a simple formula and few parameters"
We're accustomed to typefaces that were designed for use in movable type, where variable stroke weights and end shapes are basically free.
comment 4y ago · link · parent
> Historically, the vaccine has been effective in preventing smallpox infection in 95% of those vaccinated. — https://www.cdc.gov/smallpox/vaccine-basics/index.html
(Other sources have numbers from about 90% to 97%). However, this imperfect protection, in enough people, was enough to do the job.