This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-01-20
Channels
- # announcements (30)
- # babashka (118)
- # beginners (23)
- # calva (68)
- # cljdoc (10)
- # clojars (13)
- # clojure (90)
- # clojure-bangladesh (1)
- # clojure-europe (27)
- # clojure-gamedev (1)
- # clojure-nl (11)
- # clojure-uk (4)
- # clojurescript (59)
- # community-development (3)
- # cursive (13)
- # datomic (39)
- # defnpodcast (1)
- # emacs (10)
- # figwheel-main (1)
- # fulcro (18)
- # graalvm (21)
- # honeysql (1)
- # introduce-yourself (1)
- # juxt (1)
- # lsp (197)
- # malli (19)
- # off-topic (28)
- # practicalli (2)
- # re-frame (42)
- # reagent (4)
- # reitit (7)
- # releases (2)
- # sci (35)
- # shadow-cljs (13)
- # spacemacs (4)
- # vim (3)
com.github.seancorfield/expectations {:mvn/version "2.0.156"}
-- a clojure.test
-compatible version of the classic Expectations library -- https://cljdoc.org/d/com.github.seancorfield/expectations/2.0.156/doc/readme -- follow-up in #expectations
Hi version a851bce2caf83906d2bf4d4b8143b96739c34c60
(git sha) of https://github.com/pfeodrippe/pitoco was added.
The ns pitoco.instrumentat
was added, which allows you to infer schemas from your vars at runtime (using Malli + Spec Provider behind the scenes), it's
just a convenience for your REPL-driven development.
I've made a video testing the new feature with #cljdoc, you can see how it interacts with the REPL. See https://www.youtube.com/watch?v=MloJSCl38d0.
One low-hang fruit would be to auto-generate documentation, improving the review in a PR with schemas and even examples from the tests (it's always good to ease the life of our reviewers).
Hi, please update the malli dep, with the new m/provider
, it's 10-100x faster now. Cheers.
This is amazing.
Would it be possible to run instrument, as you did, and cache a static view of the generated mali schema (perhaps when you call a particular function)?
@U055NJ5CC I have tried to use the new version and I was having some NPEs, this is why I'm still using spec provider. I will open an issue soon in the Malli repo o/
@U05100J3V Yes, it's possible, every var returned by infer-schemas
will have a :malli/schema
metadata associated, which you can read and output to a file (as Malli is serializable) or create some doc from it, do whatever you need. See the m/=>
macro in https://github.com/metosin/malli/blob/master/docs/function-schemas.md.
Let me know your idea, we can add support right away in Pitoco if general enough o/
really cool idea to change the :doc meta. haven’t seen that done yet and it seems so obvious once you see it!
Thanks, Lukas! It can be annoying if the schema is too long (but at least is at the bottom), it was the common denominator for inspection I have found which exists in our Clojure tooling
I feel your pain 🙂 thats why I’m currently working on a better way to provide that in calva. https://github.com/BetterThanTomorrow/calva/issues/1471 But as you said, it would be only one IDE.
@U5R6XUARE not sure if you are interested, but the initial PR for that issue is out: https://github.com/BetterThanTomorrow/calva/pull/1492 Since you’d be one of the potential users for it I’d appreciate if you had a look.
Thanks @U02EMBDU2JU! I will take a look, even I being a emacs user, it's good to know how the other tools are behaving so we can develop better developer tools o/
I’ve released 1.0.0-alpha8 of statecharts to Clojars. https://github.com/fulcrologic/statecharts I spent all day finishing up most of the missing bits. The library now supports a fully autonomous mode where statecharts can invoke other charts, multiple charts can be managed/started using a common env and can cross-communcate with events, etc. You can easily create new kinds of invocation processors, and the protocols make it relatively straight-forward to build distributed and long-running systems of state charts. The library is very close to the SXCML standard in terms of features and uses the exact implementation of that standard for the chart processing. There are new examples in the src/examples directory, and the documentation has been updated. WARNING: this required a refactoring on several of the protocols, which resulted in BREAKING CHANGES (I said it was alpha). See the CHANGELOG for details. The chart definition API didn’t change, just some of the details of starting/running them. This is probably the last alpha release, since the only major thing missing is a good rigorous bit of testing.
Released https://clojure-lsp.io/ 2022.01.20-14.12.43 with a lot of new changes, check the gif for one of the exciting ones, you can now move coll entries via refactor commands with lsp without messing with your comments or brackets 🤯 🚀
Check #lsp channel for more information about all other new changes!
In case anyone didn’t understand that it was a joke last time, Remorse 0.1.0 has been released. This version supports symbol conversion. WARNING: Do not look at the code! https://github.com/quoll/remorse


There is also swearjure but it's a separate interpreter rather than self-bootstrapped: https://github.com/hypirion/swearjure
I’m particularly proud of the fact that it macros it’s way into having a standard ascii API. So all of the functions can be called normally:
string->morse
morse->string
keyword->morse
morse->keyword
symbol->morse
morse->symbol
-_...._.._...__.-.._.._-..._.-._.-_.-._-.--__.._...__.-_.--_._..._---_--_.__.-_-._-..__-.--_---_..-__.-_.-._.__.-_.--_._..._---_--_.
Some say it's a joke, I say it's beautiful!
com.github.seancorfield/honeysql {:mvn/version "2.2.858"}
-- SQL as Clojure data structures -- https://cljdoc.org/d/com.github.seancorfield/honeysql/2.2.858/doc/readme -- follow-up in #honeysql
• Adds honey.sql/map=
to convert a hash map into an equality condition (for a WHERE
clause).
• Adds a :cache
option to honey.sql/format
to avoid re-parsing and re-generating complex SQL statements (Clojure only).
• Adds more support for Google BigQuery: SELECT * EXCEPT ..
and SELECT * REPLACE ..
and ARRAY<>
and STRUCT<>
column types.
I'm excited to announce https://github.com/abogoyavlensky/automigrate 0.1.0
, the database auto-migration tool for Clojure!
If you would like to read more about it, please check the https://bogoyavlensky.com/blog/announcing-automigrate/, complete with an example and short description. 🙂