https://github.com/dominicburkart/marigold
Marigold is a programming language for operating on async streams that compiles to Rust 🏵️🦀
https://github.com/dominicburkart/marigold
async dsl lalrpop programming-language rust
Last synced: over 1 year ago
JSON representation
Marigold is a programming language for operating on async streams that compiles to Rust 🏵️🦀
- Host: GitHub
- URL: https://github.com/dominicburkart/marigold
- Owner: DominicBurkart
- License: apache-2.0
- Created: 2022-02-25T18:31:17.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-07-21T13:08:58.000Z (almost 2 years ago)
- Last Synced: 2025-02-27T12:08:55.239Z (over 1 year ago)
- Topics: async, dsl, lalrpop, programming-language, rust
- Language: Rust
- Homepage: https://dominic.computer/marigold
- Size: 218 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# Marigold
[](https://crates.io/crates/marigold)
[](https://docs.rs/marigold)
[](https://dominic.computer/marigold)
[](https://github.com/DominicBurkart/marigold)
[](https://github.com/DominicBurkart/marigold/graphs/contributors)
[](https://github.com/DominicBurkart/marigold/actions/workflows/bench.yaml)
[](https://github.com/DominicBurkart/marigold/actions/workflows/tests.yaml)
[](https://github.com/DominicBurkart/marigold/actions/workflows/style.yaml)
[](https://github.com/DominicBurkart/marigold/actions/workflows/wasm.yaml)
[](https://github.com/DominicBurkart/marigold)
Marigold is an imperative, domain-specific language for data pipelining and
analysis using async streams. It can be used as a standalone language or within
Rust programs.
```rust
use marigold::m;
let odd_digits = m!(
fn is_odd(i: &i32) -> bool {
i.wrapping_rem(2) == 1
}
range(0, 10)
.filter(is_odd)
.return
).await.collect::>();
println!("{:?}", odd_digits); // [1, 3, 5, 7, 9]
```
## Runtimes
By default, Marigold works in a single future and can work with any runtime.
The `tokio` and `async-std` features allow Marigold to spawn additional tasks,
enabling parallelism for multithreaded runtimes.
Marigold supports async tracing, e.g. with tokio-console.
## Platforms
Marigold's CI builds against aarch64, arm, WASM, and x86 targets, and builds
the x86 target in mac and windows environments.