process VS cloroutine

Compare process vs cloroutine and see what are their differences.

process

Clojure library for shelling out / spawning sub-processes (by babashka)

cloroutine

Coroutine support for clojure (by leonoel)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
process cloroutine
3 11
202 219
3.0% -
6.5 0.0
2 months ago about 1 year ago
Clojure Clojure
Eclipse Public License 1.0 Eclipse Public 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.

process

Posts with mentions or reviews of process. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-06-25.
  • Poor documentation?
    4 projects | /r/Clojure | 25 Jun 2023
    Check out babashka/fs and babashka/process as well. These are still based on Java interop underneath but they have some more features than the clojure.java.io and clojure.java.sh libraries. I tend to reach for these first when I need to do something filesystem or process related.
  • How do I install module?
    2 projects | /r/Clojure | 3 Sep 2022
    A bit off-topic but if you're looking for an up-to-date maintained library to shell out in Clojure, take a look at process
  • ClojureRS – Clojure interpreter implemented in Rust
    9 projects | news.ycombinator.com | 30 Apr 2022
    Nothing prevents you from using babashka and still use it as a glue for Unix programs. The difference is you get a nicer language (my opinion), a REPL if you want, and also you do get access to a lot more libraries from Java and Clojure and the pod concept of you want too as well.

    So to be clear, you can easily use ImageMagick, curl, jq, pup, etc. See: https://clojure.github.io/clojure/clojure.java.shell-api.htm... and https://github.com/babashka/process

    Other benefits are that you only need to learn Clojure and suddenly you can use it for everything, backend apps, frontend apps, scripts, etc. You don't need to learn bash, js and Java/go, make, etc.

    > Then I did a very brief search for clojure libraries, things like parsing html. Most of the github projects were not seeing much activity (like last commit in 2020)

    This surprises everyone, but those libraries still work, have no bugs, are missing no features, and can be used without issues in production.

    Clojure is one of the most stable language, so things never break and almost never need updating.

    People have a kind of Stockholm syndrome I think coming to other languages that if something didn't need a bug fix in a year it must be abandoned and broken.

    And the reason you often don't need to update those libraries to keep up with the environment, like OS versions, is because they all leverage existing runtimes under the hood like JVM and that's the one that updates. So they're all secure and kept up to date, working with new OS and new architecture for free as JVM updates. This applies to Babashka as well, because it is implemented using a JVM.

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
    9 projects | news.ycombinator.com | 30 Apr 2022
    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
    2 projects | /r/Clojure | 15 Apr 2022
    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
    3 projects | /r/Clojure | 14 Jan 2022
    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
    1 project | /r/Clojure | 14 Oct 2021
    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
    4 projects | /r/Clojure | 8 Aug 2021
  • 6 Years of Professional Clojure
    6 projects | news.ycombinator.com | 2 Aug 2021
  • Common Lisp Style Conditions+Restarts in Clojure
    5 projects | /r/Clojure | 10 Apr 2021
    Coroutines are a more general concept, and can be used to implement conditions/delimited continuations. There’s an example in their docs.

What are some alternatives?

When comparing process and cloroutine you can also consider the following projects:

farolero - Thread-safe Common Lisp style conditions and restarts for Clojure(Script) and Babashka.

zio-schema - Compositional, type-safe schema definitions, which enable auto-derivation of codecs and migrations.

ClojureRS - Clojure, implemented atop Rust (unofficial)

filepath - Haskell FilePath core library

core.async - Facilities for async programming and communication in Clojure

bench - Command-line benchmark tool

conch - A flexible library for shelling out in Clojure

clojure-scheme - Clojure to Scheme to C to the bare metal.

turtle - Shell programming, Haskell style

await-cps - async/await for continuation-passing style functions