Thank you for the nice examples!
I wonder if an alternative roadmap of presenting the examples might help the readers better apply this framework to their projects:
Current roadmap:
- In-process echo
- In-process echo + callback
- Network echo + callback + network server in the same program
- Network echo + callback + network server in different programs
Suppose I want "Basic echo + network server in different programs", I should first learn from (1) about how to write a .capnp file, and then go directly to (4), and strip away the callback and heartbeat parts.
I doubt if anyone would want to run a network server and a client in the same process, so (3) doesn't seem informative.
Does it make sense to roadmap as follows?
- Syntax: How to write a basic
.capnp file, and validate its functionality in an in-process echo example? (above 1)
- Network: How to split the echo into different programs? (above 4 minus 2)
- Semantics: How to make the protocol more interesting? (above 2)
Now the user may try any path: either (i) 1 -> 1+2 -> 1+2+3; or (ii) 1 -> 1+3 -> 1+3+2.
Thank you for the nice examples!
I wonder if an alternative roadmap of presenting the examples might help the readers better apply this framework to their projects:
Current roadmap:
Suppose I want "Basic echo + network server in different programs", I should first learn from (1) about how to write a
.capnpfile, and then go directly to (4), and strip away the callback and heartbeat parts.I doubt if anyone would want to run a network server and a client in the same process, so (3) doesn't seem informative.
Does it make sense to roadmap as follows?
.capnpfile, and validate its functionality in an in-process echo example? (above 1)Now the user may try any path: either (i) 1 -> 1+2 -> 1+2+3; or (ii) 1 -> 1+3 -> 1+3+2.