r/Clojure • • May 03 '18

Problem Solving and Clojure 1.9 with Rich Hickey

http://www.case-podcast.org/20-problem-solving-and-clojure-19-with-rich-hickey
106 Upvotes

8 comments sorted by

8

u/doubleagent03 May 03 '18

Rich says he's working on 'a library called codac (spelling?)', which allows deps on specific functions.

Whaaaat?

Github link?

14

u/ayakushev May 03 '18

He's talking about codeq[1]. It hasn't been updated for quite a while, seems like he's going to revisit it.

[1] https://github.com/Datomic/codeq

13

u/dustingetz May 03 '18 edited May 03 '18

On Codeq

RICH: I think that the problem of dependencies is a big problem ... We now have lifted the transitive dependency analyzer out so that it can traverse through Maven dependencies, but also through Git and through more than one way of representing your dependencies. - whether it's a POM or a project config file, or the new format that these tools use, which is called deps.edn. So this is super important, and it takes us towards where I'd like to us go, which is a stronger connection between what we're consuming, and the source truth of that.

RICH: I think a big problem is you grab a library and you really have no idea what you've gotten. ... in particular using SHA's and content-based addressing to talk about things. ... I had worked on a library called Codeq, which we'll have a new version of soon, that sort of extends the Git model down to the function level, so you would have SHA's for individual functions and you could have dependencies on functions, instead of on artifacts. So a lot of work is happening around that, and some of that manifests itself in this dependency tool.

6

u/jbiserkov May 03 '18

Do you think there are any other platforms that it would be cool to for it to run on in the future?

Yes! Native executables, like those made with substrate VM (graal)

4

u/dustingetz May 03 '18 edited May 03 '18

On Datomic

RICH: Datomic is somewhat pointed at the same problems that Clojure is. Things are too complicated, and we're doing place-oriented programming ... What Datomic endeavors to do is to say "Let's stop doing that. We have a lot more storage space than we ever did, and we have enough that we could take a functional approach to storing our data." ... The real value proposition of Datomic is to both, again, sort of only accrete information, not change it in place, but also provide the logical support for accessing that, and in particular for allowing you to use the database at a point in time as if it were a value in your program. That is the big trick of Datomic.

3

u/ProFalseIdol May 03 '18

Rich is very good at explaining things huh?

About that new dependency tool. Is that like Groovy's @Grape annotation? Just add annotation and your ready to run.

3

u/[deleted] May 05 '18

Mm, when listening to him, it's as though you're being gestured over and let in on this very expansive, very personal system for understanding how things in the world hang together. Not to gush or anything.