user=> (hash (.getContextClassLoader (Thread/currentThread)))
1865201235
user=> (hash (.getContextClassLoader (Thread/currentThread)))
1865201235
user=> (hash (.getContextClassLoader (Thread/currentThread)))
1865201235
user=> (hash (.getContextClassLoader (Thread/currentThread)))
1865201235
Every time you press ENTER at the REPL, a new class is created. In addition, it comes with a new class loader instance exclusively dedicated to loading it. That's Clojure behind the scenes doing its runtime magic. On the other hand, in a nREPL client like Cider, not one but two class loader instances are produced, and that is a quirk that carries over since its earliest days. I bring you that story as an excuse for dwelling on the subject of class loading. Arcane, maybe, but essential.
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo...@googlegroups.com
Note that posts from new members are moderated - please be patient with your first post.
To unsubscribe from this group, send email to
clojure+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups "Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clojure+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/clojure/d7c270ef-d8e0-4935-ac2f-6fd56c9d4c3en%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "Clojure" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/clojure/uypJ_9opzN0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to clojure+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/clojure/CAD4thx_ENAaAV2Oa5dLNQW51sg7W4VU6nWfM3r0Qgx9HYsqd-g%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/clojure/CAABPU68OsZ8XdejzTzz%2BZ%3DvyP4P-ECPm3j1sbqZyMMkN5Giicw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/clojure/CAD4thx8nCj%3DifMU3vJDbGL%2BtLPp0LCr6enMHjJ0bMCD5pLHieA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/clojure/CAABPU6-O50iR2QC43YeLf5O5kRUsRSa7mQo43hz9XXUx7jFX1Q%40mail.gmail.com.