specter
schema
specter | schema | |
---|---|---|
18 | 9 | |
2,479 | 2,380 | |
0.0% | 0.0% | |
0.0 | 0.0 | |
about 1 year ago | about 1 year ago | |
Clojure | Clojure | |
Apache License 2.0 | GNU General Public License v3.0 or later |
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.
specter
-
Rama is a testament to the power of Clojure
> Another example is Specter. Specter is a generically useful library for querying and manipulating data structures
> https://github.com/redplanetlabs/specter/tree/master/src
> MutableCell.Java. 8 years ago
package com.rpl.specter;
-
Why your F# evangelism isn't working
If you are truly interested in understanding my point of view -- a great way to do it would be to learn how to use this Clojure DSL: https://github.com/redplanetlabs/specter
-
Digging into deeply nested sequence in Clojure
For deeply nested data, use specter https://github.com/redplanetlabs/specter
-
Advent of Code inside the REPL
Yes :), I needed a fast dijkstra implementation to solve a puzzle in 2021. A pure clojure implementation was too slow so i built one on top of this https://github.com/redplanetlabs/specter
-
Lisp feature - domain specific language
https://github.com/redplanetlabs/specter (very powerful way to express modifications to nested data)
-
Working with large maps
Don't forget about specter which is efficient and compact due to its DSL.
- How to modify a nested element of a list
- Making a small change to a big data structure in Clojure
-
Nested mapping?
Learn and use specter for nested data manipulation, will take some studying but is a more general solution (https://github.com/redplanetlabs/specter)
-
-🎄- 2021 Day 16 Solutions -🎄-
For part 1, the version (and other things) are attached to the metadata of each sexp, and a Specter recursive path is used to extract all of the versions.
schema
-
Tired by the dynamicism
Plumatic schema (https://github.com/plumatic/schema) , or friends I might be wrong, but I think schema might make more sense to you coming from the F# world (might be wrong)
-
Clojure from a Schemer's perspective
This one? I didn't. I hear good things about it, and it's reached a point of maturity, being widely used in production.
-
Worrying comment from HN on Building a Startup on Clojure
Uhhh spec has existed for a long time and before that, schema Nowadays we also have the excellent malli. If his codebase is full of functions where the shape of the data isn’t obvious, isn’t documented and isn’t specified in a specific/schema, that’s on him and his bad coding practices and really no different from passing data in other dynamic languages. A class by itself (without additional effort) only gives you field names.
-
Building a Startup on Clojure
I don't understand this reputation either. There are very large systems built on other Lisps. For example, Emacs has a massive amount of Elisp. Elisp is much more primitive than Clojure, and traditionally libraries don't use e.g. data schemas [1] as runtime contracts for data.
Obviously, once a system built on top of a dynamic language grows beyond certain threshold, you need to be very disciplined as there are no static types to ensure some degree of correctness.
[1] https://github.com/plumatic/schema
- Clojure needs a Rails, but not for the reason you think
-
General anxiety regarding learning Clojure and such
Try to learn a schema library early, like Malli or Prismatic Schema. Do not mistook them as "static-typing" things - it's more for data validation and coercion than "security that things will get the right typing information". The idea to learn them early is how you'll shape future code: validating all "output data" first, them using that data inside your program without "defensive programming" like checking every time if a specific value on a map is nil, etc
- Six years of professional Clojure development
-
What are some great Clojure libraries, as of 2021?
In Clojure, declarative data specifications for validation and generation are also very mainstream. Schema was first out the door, Clojure Spec is the most popular library, while malli is gaining popularity fast at the moment.
What are some alternatives?
meander - Tools for transparent data transformation
malli - High-performance data-driven data specification library for Clojure/Script.
clj-kondo - Static analyzer and linter for Clojure code that sparks joy
clojure-graph-resources - A curated list of Clojure resources for dealing with graph-like data.
matcher-combinators - Library for creating matcher combinator to compare nested data structures
crux - General purpose bitemporal database for SQL, Datalog & graph queries. Backed by @juxt [Moved to: https://github.com/xtdb/xtdb]
clojure-dsl-resources - A curated list of Clojure resources for dealing with domain-specific languages.
fulcro - A library for development of single-page full-stack web applications in clj/cljs
coalton - Coalton is an efficient, statically typed functional programming language that supercharges Common Lisp.