321 karma · joined October 5, 2017
Logical lease serializes seemingly conflicting transactions by keeping track of logical time of read/write operations, and committing at logical time instead of physical time.
It is hard to get serialization right for DBMS transactions, but this protocol seems straightforward to reason about. Sundial is an application of logical lease in distributed OLTP DBMS, so that transactions can still serialize while using stale cache copies.
I am recently taking some database and computer architecture courses, and this paper seems very relevant to whoever also interested in these fields.
[1] https://people.csail.mit.edu/sanchez/papers/2016.tictoc.sigm...
2) Even if RHS does not exit quick enough, `echo red` writes output to the pipe, which is ignored by RHS `echo blue` (echo never reads stdin)
- The use of `1>&2` is to overwrite the stdout of the LHS process so that `echo green` actually never writes to the pipe, so it never gets SIGPIPE.
- `echo` only echoes arguments and always ignores stdin, so putting `echo blue` on the RHS of the pipe only serves to run the two sides of the pipe in parallel
- `bash -c '(echo green 1>&2) | echo blue' 1>stdout 2>stderr` will show you that green and blue actually write to different files
Another observation:
> if it was a separate command (or even if the shell forked to execute it internally), only the 'echo red' process would die from the SIGPIPE instead of the entire left side of the pipeline.
Most linux distributions have /bin/echo as a separate program. Running `(/bin/echo red; echo green 1>&2) | echo blue` will always print both green and blue.
EDIT: fix typo of stdin/stdout/stderr as suggested
Is Bing less bad than Dragonfly in terms of censorship? or is it also bad but engineers in Microsoft care little about that?
BTW I was assuming that the program can somehow produce animating Excel file from gifs. It will be cool if it works that way.
This sounds like some kind of poor man’s quantum computer.
[1] https://www.usenix.org/legacy/events/osdi02/tech/full_papers...