This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-12-25
Channels
- # adventofcode (16)
- # babashka (8)
- # beginners (13)
- # calva (22)
- # clj-on-windows (20)
- # clojure (49)
- # clojure-australia (1)
- # clojure-europe (6)
- # clojure-nl (2)
- # clojure-uk (3)
- # clojurescript (4)
- # emacs (1)
- # fulcro (20)
- # introduce-yourself (2)
- # java (2)
- # missionary (2)
- # off-topic (10)
- # other-languages (2)
- # pathom (4)
- # re-frame (15)
I just started with clojurescript and created a reframeproject. Now I am getting this error message when starting a REP. The required namespace "react-dom" is not available, it was required by "reagent/dom.cljs".
Hi everyone, Suppose I write a custom class loader ... how can I make my JVM to add this class loader to its hierarchy of classloaders ? (Also are there any special concerns I need to address while using Clojure compared to Java when setting custom class loaders ?) Thanks a lot ----- This is sort of a follow up question to this https://clojurians.slack.com/archives/C053AK3F9/p1640024375266700.
There is no problem asking your question here, but I will point out that as soon as you are asking questions about Java classloaders, you are probably past beginner territory 🙂
The channels #clojure and/or #java on this Slack community might be better target audiences for such a question.
Thanks @U0CMVHBL2
or even #clojure-dev - as one of the key parts of how clojure works is maintaining an updated classloader that keeps up with all your new definitions as they are compiled
How can we convert below java code in clojure?
int m = (1 << n);
for (i = 0 ; i < m ; ++i) {
int bits[] = new int[n];
for (j = 0; j < n ; ++j) bits[j] = 0;
j = 0;
int x = i;
while (x != 0) {
bits[j] = x & 1;
++j;
x = (x >> 1);
}
int sum = 0;
for (j = 0 ; j < n ; ++j) {
if (bits[j] == 1) {
sum -= arr[j];
}
else {
sum += arr[j];
}
}
if (sum % k == 0) {
good = true;
break;
}
}
Looks like a straight port of some C code, it zeros a newly allocated array, which java already does