https://github.com/dfarr/resonator
a distributed calculator built with resonate
https://github.com/dfarr/resonator
Last synced: about 1 year ago
JSON representation
a distributed calculator built with resonate
- Host: GitHub
- URL: https://github.com/dfarr/resonator
- Owner: dfarr
- Created: 2025-01-30T22:05:53.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-13T15:08:46.000Z (over 1 year ago)
- Last Synced: 2025-05-10T16:55:59.050Z (about 1 year ago)
- Language: Python
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Resonator
Resonator is a distributed calculator that can calculate basic
arithmetic expressions that contain numbers and the following
symbols:
```
( ) + - *
```
Resonator splits an expression into tasks (sub expressions) and
distributes those tasks to workers to calculate.
Give it a try by typing an expression such as:
```
(1 + 2)
(1 + 2) * 3
(1 + 2) * (3 - 4)
```
Resonator is built with [Resonate](https://github.com/resonatehq/resonate).
# Getting started
Before you get started you will need to [install Resonate](https://github.com/resonatehq/resonate/tree/main?tab=readme-ov-file#install).
```
# start resonate server
resonate serve
# start resonator
uv sync
# start exp task group
GRP=exp PID=lhs uv run resonator
GRP=exp PID=rhs uv run resonator
# start ops task group
GRP=ops uv run resonator
# start command prompt
uv run resonator
```