Skip to content
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

Agent v2 #2773

Merged
merged 119 commits into from
Sep 18, 2023
Merged
Show file tree
Hide file tree
Changes from 114 commits
Commits
Show all changes
119 commits
Select commit Hold shift + click to select a range
c764a24
Make private bridges.
futursolo Mar 19, 2022
80470e6
Add worker agent.
futursolo Mar 19, 2022
14b87d1
Add task type.
futursolo Mar 19, 2022
9e09ea5
Memorised Task.
futursolo Mar 19, 2022
b424a13
Add station.
futursolo Mar 19, 2022
d9d9034
Add Station Agent.
futursolo Mar 20, 2022
c6f5405
Subscription.
futursolo Mar 20, 2022
7c96635
Station hooks.
futursolo Mar 20, 2022
da6afa2
Reactor Agents.
futursolo Mar 20, 2022
5fb8ea6
Add more description.
futursolo Apr 1, 2022
31475ba
Restart station when closed.
futursolo Apr 3, 2022
8e27e10
Remove Station restart.
futursolo Apr 3, 2022
381089b
Send finish message to bridges.
futursolo Apr 3, 2022
20ec679
Adds a method to read whether a bridge has received finish message fo…
futursolo Apr 3, 2022
4271aa3
Update Reactor Agent.
futursolo Apr 3, 2022
43a3925
Decouple macros from it.
futursolo Apr 3, 2022
f6262cf
Reactor Macro.
futursolo Apr 3, 2022
6a3f4d9
Reactivate Task.
futursolo Apr 4, 2022
ece1f32
Merge branch 'master' into agent-v2
futursolo Jun 15, 2022
dab6765
Slightly adjust API.
futursolo Jun 15, 2022
36277b4
Add documentation for reactor agents.
futursolo Jun 15, 2022
a7ad43f
Remove Station.
futursolo Jun 16, 2022
60bd5d5
Create Task macro.
futursolo Jun 16, 2022
21e7422
Migrate Example.
futursolo Jun 16, 2022
7b36753
Simplify Task Agent Design.
futursolo Jun 16, 2022
3ee1997
Implement Sink.
futursolo Jun 16, 2022
c396c0a
Agent -> Task in Example.
futursolo Jun 16, 2022
a1ac4c5
Switch to Registrable.
futursolo Jun 16, 2022
43a844c
Merge branch 'master' into agent-v2
futursolo Jun 20, 2022
8765abc
AgentScopeExt.
futursolo Jun 20, 2022
5b5db77
Finish AgentScopeExt.
futursolo Jun 20, 2022
85bf7cb
Prelude.
futursolo Jun 20, 2022
958acff
Adjust prelude.
futursolo Jun 20, 2022
7680607
Fix imports.
futursolo Jun 20, 2022
44b5aa0
Yew Agent.
futursolo Jun 23, 2022
13eeaef
Switch to upstreamed version of gloo.
futursolo Jun 23, 2022
b2ae9e8
Add stub reset.
futursolo Jun 23, 2022
15d7a34
Remove example.
futursolo Jun 23, 2022
46b9f68
Merge branch 'master' into agent-v2
futursolo Jul 1, 2022
b55fbe2
Add Reset for Worker agents.
futursolo Jul 1, 2022
1afc217
merge fix-ci into "agent-v2"
futursolo Jul 1, 2022
69be5e4
Switch to released version of gloo.
futursolo Jul 1, 2022
8dbf8aa
Adds Runtime.
futursolo Jul 1, 2022
3266319
Merge branch 'master' into local-runtime
futursolo Jul 1, 2022
eddec1d
A LocalRuntime.
futursolo Jul 1, 2022
a18d7d6
Add note.
futursolo Jul 1, 2022
2498542
Add SSR benchmark.
futursolo Jul 1, 2022
7d8a48b
Only create default runtime if no custom runtime is set.
futursolo Jul 1, 2022
d3121c7
Use jemalloc for benchmarking.
futursolo Jul 1, 2022
6f9b32a
Remove once_cell for web assembly.
futursolo Jul 1, 2022
8e72fcc
Add time.
futursolo Jul 1, 2022
7c65632
Fix wasm_bindgen.
futursolo Jul 1, 2022
75242b5
Adjust inlining.
futursolo Jul 1, 2022
2dd9f0c
merge local-runtime into "agent-v2"
futursolo Jul 1, 2022
6df22bf
Add reset.
futursolo Jul 1, 2022
1cd3edd
Simplify task agent.
futursolo Jul 1, 2022
5c6a0de
SSR for tasks.
futursolo Jul 1, 2022
1d6274c
Optimise benchmark output.
futursolo Jul 2, 2022
7437a4b
Optimise BufWriter.
futursolo Jul 2, 2022
f02d0e2
Add json output.
futursolo Jul 2, 2022
fa735f7
Add Benchmark Workflow.
futursolo Jul 2, 2022
5aa5d93
merge local-runtime into "agent-v2"
futursolo Jul 2, 2022
99738bd
Makes Prepared States to be Rc'ed.
futursolo Jul 2, 2022
4b1fbce
merge prepared-rc into agent-v2
futursolo Jul 2, 2022
20cca36
Move example.
futursolo Jul 2, 2022
04da271
Update example.
futursolo Jul 2, 2022
711bb29
Implement prepared state for memorised tasks.
futursolo Jul 2, 2022
8e43790
Make prepared states work on none runtime as well.
futursolo Jul 2, 2022
8397d28
Merge branch 'prepared-rc' into agent-v2
futursolo Jul 2, 2022
f342183
Merge branch 'local-runtime' into agent-v2
futursolo Jul 2, 2022
fa192e8
Finished prepared output.
futursolo Jul 2, 2022
74e0876
Remove local set from tests.
futursolo Jul 2, 2022
4db4134
Fix Workflow syntax.
futursolo Jul 3, 2022
2c318a1
Exclude benchmark from doc tests.
futursolo Jul 3, 2022
a8a04cf
Tidy up the code.
futursolo Jul 3, 2022
7106f40
Remove HashSet.
futursolo Jul 3, 2022
e609668
Fix rustfmt.
futursolo Jul 3, 2022
2be17ec
Some optimisation.
futursolo Jul 3, 2022
8ffebda
Use postcard.
futursolo Jul 3, 2022
9f37ac1
Remove allocations.
futursolo Jul 3, 2022
4b64446
Weak Ref.
futursolo Jul 3, 2022
214b140
Adjust feature flags.
futursolo Jul 6, 2022
f2fcea2
Adds a pinned channel implementation.
futursolo Jul 6, 2022
406aed5
Make Send bound explicit.
futursolo Jul 6, 2022
4fe3349
Merge branch 'local-runtime' into agent-v2
futursolo Jul 6, 2022
46c9907
Migrate to pinned channel.
futursolo Jul 6, 2022
76ce866
Implement on immutable reference.
futursolo Jul 6, 2022
e81c3bf
Merge branch 'local-runtime' into agent-v2
futursolo Jul 6, 2022
238a3cf
Rename agent channel method.
futursolo Jul 6, 2022
0ba69be
Fix Sink close.
futursolo Jul 6, 2022
c9a6010
Merge branch 'local-runtime' into agent-v2
futursolo Jul 6, 2022
2220ea3
Fix closing.
futursolo Jul 6, 2022
1e00743
Merge branch 'master' into agent-v2
futursolo Jul 29, 2023
b7e888b
Remove old platform.
futursolo Jul 29, 2023
b1644c2
Migrate to new macro.
futursolo Jul 29, 2023
a19a1fa
Port Oneshot Agent.
futursolo Aug 10, 2023
4465203
Migrate reactor to gloo-worker.
futursolo Aug 19, 2023
49785fe
Implement ScopeExt for Reactor.
futursolo Aug 20, 2023
fdad38d
Remove unneeded checks.
futursolo Aug 20, 2023
301249a
Update example note.
futursolo Aug 20, 2023
dd627aa
Fix doc tests.
futursolo Aug 20, 2023
1d3f081
Add an example for reactor agent.
futursolo Aug 20, 2023
07680ec
Rename Prime to PrimeReactor.
futursolo Aug 20, 2023
e98d8a3
Update Crate Information.
futursolo Aug 26, 2023
0b8e678
Remove unused dependencies.
futursolo Aug 26, 2023
b40418c
Remove unused dependencies.
futursolo Aug 26, 2023
a5e6f2c
Update documentation.
futursolo Aug 26, 2023
2040906
Rename Bridge to Runner.
futursolo Aug 26, 2023
5a6410e
Update documentation.
futursolo Aug 26, 2023
2157b75
Update documentation.
futursolo Aug 26, 2023
d086af8
Update State name.
futursolo Aug 26, 2023
cc1fa1f
Merge outputs state for subscriptions.
futursolo Aug 26, 2023
266be2b
Update documentation.
futursolo Aug 26, 2023
78944c3
Merge branch 'master' into agent-v2
futursolo Aug 29, 2023
c74bd6b
Fix doc link.
futursolo Sep 2, 2023
6f02bb8
Make code link code link.
futursolo Sep 2, 2023
898de87
Make CODEC -> C.
futursolo Sep 2, 2023
3d1b767
Update Debug Implementation to type_name.
futursolo Sep 2, 2023
7d84e37
Fix readme.
futursolo Sep 2, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
163 changes: 155 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ As an example, check out the TodoMVC example here: <https://examples.yew.rs/todo
| [timer_functional](timer_functional) | [F] | Demonstrates the use of the interval and timeout services using function components |
| [todomvc](todomvc) | [S] | Implementation of [TodoMVC](http://todomvc.com/). |
| [two_apps](two_apps) | [S] | Runs two separate Yew apps which can communicate with each other. |
| [web_worker_fib](web_worker_fib) | [S] | Calculate Fibonacci numbers in a web worker thread using [`gloo-worker`](https://docs.rs/gloo-worker/latest/gloo_worker/). |
| [web_worker_fib](web_worker_fib) | [S] | Calculate Fibonacci numbers in a web worker thread using [`yew-agent`](https://docs.rs/gloo-worker/latest/yew_agent/). |
| [web_worker_prime](web_worker_prime) | [F] | Calculate Prime numbers in a web worker thread using [`yew-agent`](https://docs.rs/gloo-worker/latest/yew_agent/). |
futursolo marked this conversation as resolved.
Show resolved Hide resolved
| [webgl](webgl) | [S] | Controls a [WebGL canvas](https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API/Tutorial/Getting_started_with_WebGL) from Yew. |

[CT]: ## "Component Type"
Expand Down
3 changes: 2 additions & 1 deletion examples/web_worker_fib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ yew-agent = { path = "../../packages/yew-agent" }
wasm-bindgen = "0.2"
js-sys = "0.3"
web-sys = { version = "0.3", features = [ "HtmlInputElement" ] }
serde = "1"
serde = { version = "1", features = ["derive"] }
postcard = "1.0.0"
2 changes: 1 addition & 1 deletion examples/web_worker_fib/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Calculate fibrillation value of a number in the worker thread, without blocking

## Concepts

The example illustrates how to use `gloo-worker` to send tasks to a worker thread in a Yew application.
The example illustrates how to use `yew-agent` to send tasks to a worker thread in a Yew application.

## Thanks to

Expand Down
14 changes: 8 additions & 6 deletions examples/web_worker_fib/index.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
<!doctype html>
<html lang="en">

<head>
<meta charset="utf-8">
<title>Yew • Web Worker Fibonacci</title>
<title>Yew • Web Worker Fibonacci</title>

<link data-trunk rel="rust" href="Cargo.toml" data-bin="app" data-type="main" data-weak-refs />
<link data-trunk rel="rust" href="Cargo.toml" data-bin="worker" data-type="worker" data-weak-refs />
</head>

<link data-trunk rel="rust" href="Cargo.toml" data-bin="app" data-type="main" />
<link data-trunk rel="rust" href="Cargo.toml" data-bin="worker" data-type="worker" />
</head>
<body>
</body>

<body>
</body>
</html>
Loading
Loading