This setup treats each ZFS clone as an isolated branch—much like a Git branch—created from a snapshot of the primary live
dataset. Because snapshots are copy‑on‑write and effectively instantaneous (provided the fast_snapshotting
capability is present), branch creation and switching take milliseconds and no additional space until data diverges.
I hereby claim:
- I am zah on github.
- I am zahary (https://keybase.io/zahary) on keybase.
- I have a public key ASB3c8AUGb_cjAv7wosU_183YlSZimg7ZYG9rV2H3tdSdwo
To claim this, I am signing this object:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import | |
sequtils, random, | |
stew/shims/macros, | |
stew/objects | |
type | |
A = object | |
s: string | |
i: int | |
b: B |
0x05556c26c5d722da32f57ca29a0f9f049525d2718961d1d875723795a6eb7ecf
The chunked responses were originally suggested and discussed in the first network spec PR: ethereum/consensus-specs#1158
Here are the relavant bits from a possible spec:
Response -- After receiving a request, the responding party MUST reply on the same stream within 10 seconds with a response code, followed by the contents of the response.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import | |
sets | |
type | |
AlwaysMatch = object | |
proc match(val: string, values: HashSet[string]): bool = | |
val in values | |
proc match(val: string, predicate: proc(x: string): bool): bool = |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import macros | |
template generateCode(body: untyped) = | |
iterator yields: NimNode = body | |
macro payload: untyped = | |
result = newStmtList() | |
for node in yields(): | |
result.add node | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type | |
BeaconSync* = object | |
template NetworkState*(P1822062: type BeaconSync): type = | |
ref[BeaconSyncState:ObjectType] | |
type | |
statusObj* = object | |
networkId*: uint64 | |
latestFinalizedRoot*: Eth2Digest | |
latestFinalizedEpoch*: Epoch |
Here's the canonical TOML example from the TOML README, and a YAML version of the same. Which looks nicer?
title = "TOML Example" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# These two are semantically equivalent: | |
proc makeIterator(x, y: int): Irerator[int] = | |
result = iterator(): int {.closure.} = | |
yield 1 | |
yield 2 | |
iterator makeIterator(x, y): int = | |
yield 1 | |
yield 2 |
NewerOlder