sexp
clj-kondo
Our great sponsors
sexp | clj-kondo | |
---|---|---|
3 | 19 | |
42 | 1,659 | |
- | 0.4% | |
5.4 | 9.1 | |
4 days ago | 7 days ago | |
OCaml | Clojure | |
MIT License | 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.
sexp
- My Thoughts on OCaml
- The YAML Document from Hell
-
Better logging for OCaml + Async
There's a tool sexp that Jane Street uses internally to slice and dice sexp logs, but, yes, I get that there aren't logging services out there that support sexps. They should, though, as sexps have unique advantages over JSON. They tend to be more human-readable too. Great blog post overall!
clj-kondo
-
Advent of Code Day 4
My best suggestion here would be clj-kondo with flycheck-clj-kondo in Emacs. I really can't recommend it enough and would have killed to have it when I was learning Clojure. Not only will it underline all of those references to (now) undefined vars, but it can tell you about numerous little mistakes like mixing up arguments orders in (say) sequence functions, misplaced docstrings that get discarded, style conventions, etc. It's staggering how good it is even for a language as dynamic as Clojure.
- Strong typing, a hill I'm willing to die on
- Clj-kondo: a static analyzer and linter for Clojure
-
What does bad code in Clojure look like?
The clj-kondo linters are worth reading.
-
The YAML Document from Hell
Sure!
Spec: https://github.com/edn-format/edn
Example (linter config): https://github.com/clj-kondo/clj-kondo/blob/634294183a0aa2ca...
-
The Joy of Static Analysis: automated Clojure code refactoring
Clj-kondo doesn't produce an AST but you could easily combine the analysis output with the AST produced by rewrite-clj by matching on location.
-
Can you use Clojure for mobile, backend, frontend, scripts, desktop, and embedded development?
But if you want full support, you can implement a hook: https://github.com/clj-kondo/clj-kondo/blob/master/doc/hooks.md
-
Wrote one of my first clojure programs (tic-tac-toe). Any constructive criticism would be greatly appreciated.
Please configure and use tools like clj-kondo and kibit. Kibit will report areas where you could write idiomatic clojure instead. Eg, it should catch all those (if (condition) true false) and ask you to replace it with (condition). Or if you really need a boolean value, use boolean to coerce it.
- Want to get into closure, but struck at practice
-
Are these problems something that Just Make Sense once I learn more, or what?
Try clj-kondo, a Clojure linter which will tell you about arity errors and more, before you even evaluate your code.
What are some alternatives?
nestedtextto - CLI to convert between NestedText and JSON, YAML, or TOML, with explicit type casting
schema - Clojure(Script) library for declarative data description and validation
sexplib - Automated S-expression conversion
immer - Postmodern immutable and persistent data structures for C++ — value semantics at scale
json5 - JSON5 — JSON for Humans
truffleruby - A high performance implementation of the Ruby programming language, built on GraalVM.
hobbes - A language and an embedded JIT compiler
core.typed - An optional type system for Clojure
sxpyr - Parse s-expressions, edn, and a variety of lisp dialects.
web-development-with-clojure - Repository for the examples from the book Web Development with Clojure, 2nd edition
hjson - Hjson, a user interface for JSON
fastapi - FastAPI framework, high performance, easy to learn, fast to code, ready for production