r/Clojure • • Nov 04 '22

Clojure Turns 15 round table video

https://youtube.com/watch?v=exSRG-iL74Q
71 Upvotes

7 comments sorted by

20

u/Green_Tomorrow4702 Nov 04 '22

Very nice to see the core team, but is Rich okay? He always sits with crossed arms, barely smiling, and looks almost bullied when he's not speaking.

The future of Clojure discussion is disappointing: keep the language small, but grow the user base (a task assigned to the community) and libraries (also the community). The attitude is reasonable but it borders the line with not touching the language anymore and letting the community do everything while it has no say in the language itself.

Would be nice to have a spec release, the ideas in Maybe Not outline a view on a reasonable implementation of a """type system""", but 4 years later there is nothing. It's a sad because the built-in data validation tooling needs more love, both in functionality, semantics (eval to produce specs dynamically?), and performance.

27

u/alexdmiller Nov 04 '22

Rich is fine. :) The ideas in Maybe Not have been partly implemented in spec 2 (https://github.com/clojure/spec-alpha2/wiki/Schema-and-select) but stalled out in thinking about how we want to integrate it with defn, which is tricky. But I think we'll be picking that up again soon-ish.

13

u/dustingetz Nov 04 '22

That is incredibly exciting!!!

2

u/troui Nov 05 '22

It's a sad because the built-in data validation tooling needs more love, both in functionality, semantics (eval to produce specs dynamically?), and performance.

Have you tried malli: Data-driven Schemas for Clojure/Script?

3

u/Green_Tomorrow4702 Nov 05 '22

I'm not going to use malli because the spec is built in and integrated into the language. Spec 2 aims to be integrated into defns it seems. There is more leverage in a data specification and validation library when it's built-in, the only real problem with spec is that it's half-baked. All the spec downsides mentioned in malli's rationale (macros and dynamic transformation) are solved in spec 2 as far as I understand, just pick it up soonisher, Clojure team.

4

u/troui Nov 05 '22

I'm not going to use malli because the spec is built in and integrated into the language.

There is more leverage in a data specification and validation library when it's built-in

You're waiting for something that may take a long time or may never happen. In the meantime there is malli, which is actively developed (while spec development seems dead?), used in production and supported by tooling. If you are running a business today, I think the choice is obvious

5

u/fredoverflow Nov 04 '22

Pro tip: Webcams can see beyond translator backdrop boundaries 🙄