cloroutine
Coroutine support for clojure (by leonoel)
zio-schema
Compositional, type-safe schema definitions, which enable auto-derivation of codecs and migrations. (by zio)
cloroutine | zio-schema | |
---|---|---|
11 | 1 | |
219 | 134 | |
- | 3.0% | |
0.0 | 7.9 | |
about 1 year ago | 13 days ago | |
Clojure | Scala | |
Eclipse Public License 2.0 | Apache License 2.0 |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
cloroutine
Posts with mentions or reviews of cloroutine.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-04-30.
-
ClojureRS – Clojure interpreter implemented in Rust
Thanks for sharing! I think these restarts could definitely be implemented as a library in Clojure with the help of a coroutine library like https://github.com/leonoel/cloroutine#guides
-
GitHub - leonoel/cloroutine: Coroutine support for clojure
Do you mean the example here https://github.com/leonoel/cloroutine/blob/master/doc/01-generators.md , with the `*tail* binding? It took me a long time looking at it to finally grok it, and it's really hard to explain in English but basically when the coroutine comes across one of these symbols that are "breaks" (in our case, "yield" is such a breaking symbol), then it will pause the coroutine, and actually call what the symbol points to (the implementation of "yield"), which returns (cons x *tail*), and keep in mind that it is all run within a recursive call to gen-seq where *tail* is bound to a lazy-seq of the remainder of the generator (binding [*tail* (gen-seq gen)] (gen)), it's pretty confusing but yeah just have to stare at it for a long time I think haha.
-
CLJ-2555: clojure.core/iteration · clojure/clojure@e45e478
I think Clojure is really missing python/js-style generators, like what is implemented in https://github.com/leonoel/cloroutine/blob/master/doc/01-generators.md
-
Real-life use cases for CLJS macros
The next level up is core.async go blocks which compile your AST to a state machine. Also see cloroutine which also compiles the AST to a state machine or something, one of the tutorials uses cloroutine to add async/await to Clojure.
- Continuations in Clojure
- 6 Years of Professional Clojure
-
Common Lisp Style Conditions+Restarts in Clojure
Coroutines are a more general concept, and can be used to implement conditions/delimited continuations. There’s an example in their docs.
zio-schema
Posts with mentions or reviews of zio-schema.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-08-02.
-
6 Years of Professional Clojure
That largely depends on the type system. Languages like Haskell and Scala which have much more powerful type systems than C/Java/Go/etc absolutely do allow you to do those sorts of things. It is a bit harder to wrap your head around to be sure and there are some rough edges, but once you get the hang of it you can get the benefits of static typing with the flexibility of dynamic typing. See https://github.com/milessabin/shapeless or a project that I've been working on a lot lately https://github.com/zio/zio-schema.
What are some alternatives?
When comparing cloroutine and zio-schema you can also consider the following projects:
farolero - Thread-safe Common Lisp style conditions and restarts for Clojure(Script) and Babashka.
core.async - Facilities for async programming and communication in Clojure
promesa - A promise library & concurrency toolkit for Clojure and ClojureScript.
ClojureRS - Clojure, implemented atop Rust (unofficial)
kubernetes-custom-hpa - The kubernetes HPA you always wanted
clojure-scheme - Clojure to Scheme to C to the bare metal.
Shapeless - Generic programming for Scala
await-cps - async/await for continuation-passing style functions
ZIO - ZIO — A type-safe, composable library for async and concurrent programming in Scala
pure-conditioning - A simple, fast, purely functional condition / restart system for Clojure.
cloroutine vs farolero
zio-schema vs core.async
cloroutine vs core.async
zio-schema vs promesa
cloroutine vs ClojureRS
zio-schema vs kubernetes-custom-hpa
cloroutine vs clojure-scheme
zio-schema vs Shapeless
cloroutine vs await-cps
zio-schema vs ZIO
cloroutine vs pure-conditioning
cloroutine vs promesa