cloroutine
ClojureRS
cloroutine | ClojureRS | |
---|---|---|
11 | 4 | |
219 | 934 | |
- | 0.2% | |
0.0 | 2.2 | |
about 1 year ago | about 1 year ago | |
Clojure | Rust | |
Eclipse Public License 2.0 | Apache License 2.0 |
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
-
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.
ClojureRS
-
83% of Developers Suffer from Burnout, according to a study by Haystack Analytics.
Same, shameless plug: https://github.com/clojure-rs/ClojureRS
-
Clojure Scripting on Node.js
Basically, you take a programming language and make it work on a platform that meant to be programmed using a different PL. Clojure is hosted by design - it's not Java, but can be used to program for JVM. It ain't Javascript, but can be used to target nodejs and browser; not an [official] CLR language, but you can write .Net programs. You can use Clojure to make Flutter apps with ClojureDart. You can integrate Python into Clojure with libpython-clj. Or write Clojure to target Erlang/OTP; or Rust; or R; There's even a clojure-like language for Lua - Fennel.
There's something about Clojure people like so much, they want it to work atop any platform.
https://github.com/Tensegritics/ClojureDart
https://github.com/clj-python/libpython-clj
https://github.com/clojerl/clojerl
https://github.com/clojure-rs/ClojureRS
https://github.com/scicloj/clojisr
https://fennel-lang.org
- ClojureRS – Clojure interpreter implemented in Rust
- Clojure, Implemented Atop Rust
What are some alternatives?
zio-schema - Compositional, type-safe schema definitions, which enable auto-derivation of codecs and migrations.
cloture - Clojure in Common Lisp
farolero - Thread-safe Common Lisp style conditions and restarts for Clojure(Script) and Babashka.
clojure-scheme - Clojure to Scheme to C to the bare metal.
core.async - Facilities for async programming and communication in Clojure
dotfiles - Home sweet home 🏠
babashka - Native, fast starting Clojure interpreter for scripting
await-cps - async/await for continuation-passing style functions
process - Clojure library for shelling out / spawning sub-processes
pure-conditioning - A simple, fast, purely functional condition / restart system for Clojure.