This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # announcements (1)
- # aws (10)
- # babashka (53)
- # calva (133)
- # clj-kondo (46)
- # cljdoc (6)
- # cljs-dev (33)
- # clojure (105)
- # clojure-boston (1)
- # clojure-europe (11)
- # clojure-nl (4)
- # clojure-poland (1)
- # clojure-switzerland (6)
- # clojure-uk (13)
- # clojurescript (106)
- # cursive (1)
- # datascript (2)
- # emacs (13)
- # events (1)
- # figwheel-main (4)
- # fulcro (17)
- # graphql (8)
- # heroku (2)
- # honeysql (8)
- # lsp (76)
- # luminus (30)
- # malli (12)
- # meander (23)
- # music (1)
- # nextjournal (83)
- # off-topic (6)
- # pathom (3)
- # polylith (19)
- # re-frame (8)
- # reagent (2)
- # reveal (3)
- # shadow-cljs (54)
- # sql (9)
- # testing (11)
- # tools-deps (15)
- # xtdb (14)
Hi! Any tips how to make hash (md5) of file content without reading of whole file to a memory?
org.babashka/buddy has md5 function which accepts input-stream, but pod's serialization protocol doesn't suport input-streams.
@prepor in bb you can use
java.security.MessageDigest . Also this library works with bb (as a dependency in bb.edn): https://github.com/clj-commons/digest which is based on MessageDigest
@lukaszkorecki or call md5, but I want to minimize external dependencies. @borkdude thank you!
In https://babashka.org/fs/babashka.fs.html#var-list-dir , what is the "accept" part supposed to be? I cannot find / see the docs for that 🙏
$ bb -e '(fs/list-dir "." prn)' #object[sun.nio.fs.UnixPath 0x23917ead "./.lein-failures"] #object[sun.nio.fs.UnixPath 0x6fa205fb "./project.clj"] #object[sun.nio.fs.UnixPath 0x3d8b8648 "./inlined"] #object[sun.nio.fs.UnixPath 0x6f8a187 "./.dir-locals.el"] #object[sun.nio.fs.UnixPath 0x6a0eed37 "./.carve"] #object[sun.nio.fs.UnixPath 0x2ae3119c "./screenshots"] #object[sun.nio.fs.UnixPath 0x53f38e54 "./.DS_Store"] ...
Thank your for all the awesome work! :)
Hm, I see that CljDoc import failed for babashka.fs 😭 https://cljdoc.org/d/babashka/fs/0.1.2/doc/readme
@borkdude, this failure is due to cljdoc assuming that there is ClojureScript in the fs lib because it is analyzing a cljc file (`fs.cljc`). But your are cljc for bb/clj not cljs/clj, yeah?
Yeah, makes sense. There is an open issue to allow analysis platform selection via
But also… you are hosting your own API docs for fs. So not a big concern for you at the moment, I’m guessing!
Neh, I don't really look at cljdoc, I've kind of given up on it after many analysis failures, sorry
Maybe I would try again if cljdoc.edn could be configured to have clj-kondo analysis ;)
Yeah, that’s certainly an idea. I don’t think many projects really require namespace loading. It would almost be tempting to maybe default to a clj-kondo analyzer and allow selection of a codox-loading-type analyzer.
I love Cljdoc - > Dash integration for all docs offline at 1 place
I love (the idea of) cljdoc, I'm just too lazy to make it work. It crashed on nearly all of my projects
Maybe I’ll spend some time looking at those failures… after I finish my current maintenance sweep.
I put the blame on me: my name is borkdude for a reason, my code is full of weirdness.
Ha! What one person calls “weirdness” another might call “sophistication”. Or “delightful eccentricity”.
btw one neat idea for cljdoc might also be to browse to projects using the library, does it also index on that level?
I've been thinking of building that myself with clj-kondo + asami or so, but it might fit in cljdoc as well
like: this function is used in these 10 projects over here, with github links to them or so
the clj-kondo analysis already has that data, just saying :) just need to store it all in a db
Sounds interesting, would be neat if we could somehow integrate with cljdoc… if it were a good fit.
@lee btw, I didn't wanted to come across too negative, I appreciate all the hard work you're doing on cljdoc and I do use the site myself for other projects that it doesn't crash on :)
but it wasn't new info to you that I ran into these issues a lot :) https://clojurians.slack.com/archives/CLX41ASCS/p1612629925351900?thread_ts=1612617247.344600&cid=CLX41ASCS
The nice thing about being forgetful is that I don’t remember these things, but yeah, there are certainly rough edges that could use love.
well, I know personally that it can be depressing to hear that, after you've poured a lot of hours into a project, someone just discards it, that's certainly not my intention. cljdoc is an amazing project, when it does work out of the box and for many projects it "just works" ™️
Yeah, good point, I in no way felt that burn at all today, but I’ve certainly felt it in the past. Not a nice feeling. Have walked away from some efforts that I might have otherwise continued with because of it.
Thanks, ditto! It’s all fun and games until I get totally distracted by the next thing!