Better HN
topnewbestaskshowjobs
Log inSign up

jonnadal

17 karma · joined Sep 24, 2011 (15y ago) · 7 submissions

Submissions

comment 5y ago · link · parent

I can also add a supplementary chapter explaining how it works under the hood. You’re correct about `ActorModel`: its a reusable model of actor system semantics parameterized by an `Actor` implementation. Its “dual” is the `spawn` function that lets you run that same `Actor` implementation on a real network.

comment 5y ago · link · parent

Thanks for these insights! I think retaining the actor example while postponing the content on model checking and linearizability might be the way to go. More details on related Rust concepts could be helpful too, given that this may be the first encounter w/ the language for many readers. With that in mind, I’m inclined to break the first chapter into 3:

1. A high level overview of distributed systems and the actor model. Perhaps no code. 2. A Rust intro via an implementation of the Actor trait (which is where the `on_msg`/etc methods can be explained). The chapter would include the same Actor implementation but would omit verification. 3. An intro to system properties, nondeterminism, and verification via model checking. Here the book could postpone a discussion of linearizability and instead indicate a simpler property for the actor system. Linearizability could then be introduced when discussing replication later in the book.

comment 5y ago · link · parent

I’m thrilled to hear that as I’m a big fan of your work!

Thank you for the suggestion as well. Do you have thoughts on specific places where I should either split a chapter and/or associated project to make the ramp up more incremental?

comment 5y ago · link · parent

Yep, Kyle has done an amazing job demonstrating how pervasive bugs are within real world distributed systems.

comment 5y ago · link · parent

Regarding the last point — correct, Stateright aims to verify both.

It’s important to clarify that this doesn’t provide a proof of correctness, but it can dramatically improve confidence in both the design and implementation compared with fuzz testing, for example. This is done by exhaustively enumerating possible nondeterministic outcomes (e.g. due to message reordering) within specified constraints (e.g. up to S servers and C clients performing X operations…).

Examples:

SD Paxos: https://github.com/stateright/stateright/blob/master/example...

ABD (linearizable register algorithm): https://github.com/stateright/stateright/blob/master/example...

comment 5y ago · link · parent

Thank you!

comment 5y ago · link · parent

Author here. I'm also working on a related book covering distributed algorithms: https://www.stateright.rs/

It includes a comparison w/ TLA+/TLC for those familiar with those technologies.