injest
xforms
injest | xforms | |
---|---|---|
7 | 4 | |
164 | 563 | |
- | - | |
0.0 | 5.4 | |
about 2 years ago | 3 months ago | |
Clojure | Clojure | |
Eclipse Public License 1.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.
injest
-
My mental model of Clojure transducers
joinr pointed out this lib to me and it seems to make using them more ergonomic (if you're into pipelining)
https://github.com/johnmn3/injest
However writing your own indeed doesn't sound fun :))
-
Critique of Lazy Sequences in Clojure
As I posted on Reddit:
It might also be good to mention Injest
https://github.com/johnmn3/injest
Which makes transducers more ergonomic to use if you are like me and use threading macros everywhere
Would be curious to hear how others feel about it
-
Understanding transducers
If you don't know how to use transducers, I recommend trying: https://github.com/johnmn3/injest it automatically converts your normal sequence operations to make-use of transducers.
-
Some code examples in Clojure, how to avoid complexity
You can use https://github.com/johnmn3/injest to get threading macros that use transducers.
-
Workshop video: Wrangling Sequences with Injest by John Newman (2021-11-22)
In this 2021-11-22 workshop, John Newman introduced Injest.
-
Workshop: Structure and Interpretation of Clojure Transducers
The transducers workshop by Ben Sless is recommended as background for John Newman's workshop about Injest, which will take place a week later. https://github.com/johnmn3/injest
-
Grokking Clojure transducers
profile and test. sometimes the lazy path is fine, but in general, transducers should be more efficient. there's a recent library that tries to make it somewhat seamless to go between the threading functions with lazy seqs or transducers, called injest.
xforms
- Critique of Lazy Sequences in Clojure
-
Dealing with nested transducers ?
Maybe https://github.com/cgrand/xforms The for transducer might help, just as the for comprehension helps unpack and map/filter nested stuff.
-
What are some great Clojure libraries, as of 2021?
cgrand/xforms is a very useful hidden gem, if you like transducers/eager evaluation/solving map-vals without meander/specter.
-
Why Clojure?
* It's fast enough for 99% of apps out of the box. It's fast enough for 99.99% of the apps with minimal tuning.
* Yes, if your project is very big and macro heavy, it can take some time, but startup times have improved. In any case, I BARELY need to restart my development JVM. I have one currently running that I haven't restarted for 1 week+.
* Depending on what's your cup of tea, there's emacs/CIDER or IntelliJ/Cursive. They both work well. IntelliJ/Cursive is an excellent IDE combination. I use it every day.
* Java interop is very straightforward, not sure what you mean. Sure your code might not be all pure anymore, but that's the price for solving actual problems.
* Good java libraries have wrappers. A ton of original Clojure libraries as well. https://github.com/cgrand/xforms for example allows you to easily do things that I can't even imagine doing in an imperative language.
* Static vs dynamic typing: don't want to get into that.
* "Clojurescript isn't the same language". I use both Clojure and ClojureScript every day and as far as Clojure-only code is concerned, it works in both languages 99.99% of the time. One case you can encounter issues is if you do something host-specific, like dealing with numbers. That's by design. Clojure embraces each host, does not try to reinvent it. When you just use pure Clojure data structure manipulation, it works the same across both languages and works like magic.
What are some alternatives?
babashka - Native, fast starting Clojure interpreter for scripting
clojure-dsl-resources - A curated list of Clojure resources for dealing with domain-specific languages.
meander - Tools for transparent data transformation
transit-format - A data interchange format.
crux - General purpose bitemporal database for SQL, Datalog & graph queries. Backed by @juxt [Moved to: https://github.com/xtdb/xtdb]
parinfer-rust - A Rust port of parinfer.
specter - Clojure(Script)'s missing piece
malli - High-performance data-driven data specification library for Clojure/Script.
fulcro - A library for development of single-page full-stack web applications in clj/cljs
vertx - A vertx core and web bindings for clojure.
pomegranate - A sane Clojure API for Maven Artifact Resolver + dynamic runtime modification of the classpath
methodical - Functional and flexible multimethods for Clojure. Nondestructive multimethod construction, CLOS-style aux methods and method combinations, partial-default dispatch, easy next-method invocation, helpful debugging tools, and more.