-
Notifications
You must be signed in to change notification settings - Fork 1
fix(README): Dbsp.Core → Zeta.Core (Amara P2 — broken quick-tour snippets) #218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -90,7 +90,7 @@ correctly under the paper's rules. | |
| ## Quick tour | ||
|
|
||
| ```fsharp | ||
| open Dbsp.Core | ||
| open Zeta.Core | ||
|
|
||
| let circuit = Circuit.create () | ||
| let orders = circuit.ZSetInput<string * int64> () | ||
|
AceHack marked this conversation as resolved.
|
||
|
|
@@ -103,17 +103,20 @@ let totals = | |
|
|
||
| let view = circuit.Output(circuit.IntegrateZSet totals) | ||
|
|
||
| orders.Send(ZSet.ofKeys [ "alice", 100L ; "bob", 50L ]) | ||
| do! circuit.StepAsync () | ||
| async { | ||
| orders.Send(ZSet.ofKeys [ "alice", 100L ; "bob", 50L ]) | ||
| do! circuit.StepAsync () |> Async.AwaitTask | ||
|
|
||
| for e in view.Current do | ||
| printfn "%A -> weight %d" e.Key e.Weight | ||
| for e in view.Current do | ||
| printfn "%A -> weight %d" e.Key e.Weight | ||
| } | ||
| |> Async.RunSynchronously | ||
|
Comment on lines
92
to
+113
|
||
| ``` | ||
|
|
||
| And the same thing, C#-side: | ||
|
|
||
| ```csharp | ||
| using Dbsp.Core; | ||
| using Zeta.Core; | ||
|
|
||
| var circuit = new Circuit(); | ||
| var orders = circuit.ZSetInput<(string, long)>(); | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| # OpenSpec in Dbsp.Core | ||
| # OpenSpec in Zeta.Core | ||
|
|
||
| OpenSpec is the source of truth for this project. | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.