This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-01-06
Channels
- # adventofcode (10)
- # ai (2)
- # aleph (2)
- # announcements (21)
- # beginners (25)
- # calva (7)
- # cider (19)
- # clj-kondo (28)
- # clj-on-windows (3)
- # cljdoc (6)
- # clojure (80)
- # clojure-dev (15)
- # clojure-europe (29)
- # clojure-italy (3)
- # clojure-nl (37)
- # clojure-uk (4)
- # clojurescript (3)
- # cloverage (1)
- # conjure (6)
- # core-async (2)
- # cursive (17)
- # datalevin (9)
- # datomic (7)
- # deps-new (23)
- # emacs (4)
- # figwheel-main (6)
- # fulcro (6)
- # honeysql (19)
- # improve-getting-started (4)
- # inf-clojure (2)
- # introduce-yourself (5)
- # jobs (1)
- # leiningen (6)
- # lsp (73)
- # malli (1)
- # nrepl (2)
- # off-topic (37)
- # polylith (9)
- # quil (2)
- # reitit (16)
- # releases (2)
- # remote-jobs (6)
- # rewrite-clj (38)
- # shadow-cljs (1)
- # tools-build (1)
I just removed 400 lines of code from our codebase while gaining functionality and losing none of it.
Can anyone tell me if and or how I can access items inside a java.util.concurrent.ConcurrentHashMap ?
Most functions will work, also stuff like keys or seq. The thing that makes it a bit different is that you can't use it in function position.
Allright, good to know. I need to create a visible and resettable queue because with high load some items in the queue just hang if a process isnt finished succesfull while others continue
Whats a good replacement for https://github.com/overtone/at-at ? This repo isnt mainted and the fork isnt maintained either.
@thierry572 I've used http://clojurequartz.info/ in previous jobs
Trying to implement this without any knowledge of quartz proves to be quite a hassle haha. No idea where to start
Perhaps you can also look at https://kit-clj.github.io/ which includes a module for quartz
well thats a no go as the project i work on would require a complete rework and im still learning clojure. the project i work on uses at-at and im trying to replace that so i can have a better scheduler. furthermore it uses concurrenthashmaps that i want to make visible including the scheduled items.
Dunno why, it's just not that easy to understand for me. I never used quartz and im fairly new to clojure.
I have this concurrent hash map and am trying to get the items inside it but clojure wont budge haha, what can i do?
#object[java.util.concurrent.ConcurrentHashMap 0x58880fd3 {{:id 5, :name X, :parent 1, :slug 5}=java.util.concurrent.Executors$FinalizableDelegatedExecutorService@4005060c, {:id 6, :name Y, :parent 1, :slug 6}=java.util.concurrent.Executors$FinalizableDelegatedExecutorService@5cdf28a5, {:id 25, :name Z, :parent nil, :slug 25}=java.util.concurrent.Executors$FinalizableDelegatedExecutorService@12b00802, {:id 4, :name V, :parent 1, :slug 4}=java.util.concurrent.Executors$FinalizableDelegatedExecutorService@f236faa, {:id 7, :name U, :parent 1, :slug 7}=java.util.concurrent.Executors$FinalizableDelegatedExecutorService@1e934a98}]
In this case the vals are:
(vals aorta.process/executors)
(#object[java.util.concurrent.Executors$FinalizableDelegatedExecutorService 0xb68d9e8 "java.util.concurrent.Executors$FinalizableDelegatedExecutorService@b68d9e8"]
`#object[java.util.concurrent.Executors$FinalizableDelegatedExecutorService 0xe968607 "java.util.concurrent.Executors$FinalizableDelegatedExecutorService@e968607"]`
`#object[java.util.concurrent.Executors$FinalizableDelegatedExecutorService 0x3a6f9718 "java.util.concurrent.Executors$FinalizableDelegatedExecutorService@3a6f9718"]`
`#object[java.util.concurrent.Executors$FinalizableDelegatedExecutorService 0x1f3415b6 "java.util.concurrent.Executors$FinalizableDelegatedExecutorService@1f3415b6"]`
`#object[java.util.concurrent.Executors$FinalizableDelegatedExecutorService 0x525e3821 "java.util.concurrent.Executors$FinalizableDelegatedExecutorService@525e3821"])`