This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-07-18
Channels
- # announcements (35)
- # babashka (14)
- # beginners (23)
- # calva (5)
- # cljsrn (3)
- # clojure (154)
- # clojure-europe (12)
- # clojure-losangeles (2)
- # clojure-uk (5)
- # clojurescript (42)
- # conjure (3)
- # cursive (10)
- # datomic (3)
- # emacs (6)
- # events (1)
- # graalvm (1)
- # helix (1)
- # honeysql (1)
- # hyperfiddle (1)
- # jobs-discuss (1)
- # lsp (8)
- # malli (54)
- # meander (1)
- # membrane (1)
- # off-topic (246)
- # polylith (4)
- # practicalli (1)
- # re-frame (14)
- # releases (1)
- # shadow-cljs (21)
- # sql (58)
- # vim (1)
- # vrac (2)
Hi, I’ve got a question about deps.edn
. I’m using the latest version of clojure (1.10.3) but when I try to use the :git/sha
functionality (mentioned https://clojure.org/reference/deps_and_cli#_git) I get an outdated error message (`Library foo has missing :sha in coordinate`). Is there something else I need to do to ensure my tools.deps
is updated (or is that functionality not available with my Clojure version)?
what version does it say when you run clojure --help
?
I'm not an expert on the cli stuff, but I think the cli version can be different than the clojure version, https://clojure.org/releases/tools#_releases
maybe related to https://clojurians.slack.com/archives/C6QH853H8/p1625875087178000
you can try just using :sha
rather than :git/sha
as a work around, https://clojurians.slack.com/archives/C6QH853H8/p1625875870182300
Thanks! When i just use :sha
i get a different error (`Error building classpath. No coordinate type found for library`). I’ll try upgrading to the alpha version and see if it has different behavior.
The :git/sha stuff is only in the prereleases, not in 855
In 855 you’ll need a :git/url too
That’s the source of the last error
gotcha! I was trying to play around with the derived urls that were mentioned but i’ll hold off until the next release. thanks again for the help!
How can I have million light weight threads in clojure like Go can spawn million goroutines for concurrency ? Do I uses futures, async, tasks on threadpool? How can I achieve this level of concurrency
It's not about Clojure but about the JVM itself: https://medium.com/swlh/go-java-were-going-to-need-a-better-jvm-c07de37f76de
Is multithreaded go async blocks achieve a lot of concurrency. ? Project loom is WIP and from what I heard it's performance is bad
You should also take into account goroutines aren't "free". You can spawn a lot of them but the second they need to actually allocate things on the stack things get hairy. Their default stack size is small. They will slow down significantly one you push the runtime. Use go blocks for " async" operations, threads for CPU and blocking operations. You can pretty easily convert async functions to one which return channels
Pulsar (lightweight erlang-style threads/actors) might also be something to look at, but it doesn’t look like it’s been updated for a couple years
Hey how would I replicate this call in Clojure?
OpenCVFrameConverter.ToMat converterToMat = new OpenCVFrameConverter.ToMat();
(def converterToMat (OpenCVFrameConverter$ToMat.))
(but note this assumes you've :import
ed OpenCVFrameConverter$ToMat (that needs a package, not sure what it is)
yep works after adding OpenCVFrameConverter$ToMat
to :import like you said, thank you