Fork me on GitHub
#clojure
<
2017-09-02
>
dominicm11:09:42

To further the conversation about artifacts & forks: maven does not cope well with different artifacts providing the same resources, and you lose the guarantees that maven provides around, e.g. your direct dependency taking priority. With protobuf, it's probably less likely that it's a transitive dependency in the first place due to the nature of the lib. But it's definitely a pain point I feel, and would therefore recommend forks renaming namespaces in some way. In some ways it's a shame that namespaces aren't tied to an artifact ID (I'm aware of the reasons for this)

sundarj17:09:31

I'm curious, what are the reasons?

dominicm17:09:43

@U61HA86AG for not tying namespaces to artefacts? So, the search paradigm is a flat path (think $PATH), which is just a series of directories to scan. There's no knowledge or concept of artefact in the JVM. Adding it to clojure would have required a fundamental difference between java and clojure in terms of search. It probably would have made interop harder.

sundarj17:09:56

ah, interesting. fair enough.

dominicm17:09:53

As it is, maven coordinates are very separate from java. My understanding is that it was the result of guerrilla warfare that it has spread to current dominance. Java would force you to specify in terms of a jar file or something for your search, which isn't friendly to upgrading jars.

sundarj17:09:07

Nice, and good point

kwladyka11:09:33

hey, i have very confuse situation with one service, it throw unable to find valid certification path to requested target but only during lein test and this is totally not true…. Anyway that is very strange something call function to connect with this URL. I commented and tested all tests functions in REPL. It works. It just doesn’t make sense at that moment….. so is any way do determine to show during lein test what called function X? (i can change X function to print something) stacktrace totally doesn’t help. I can’t find the source of the problem. I am totally confuse with this issue.

kwladyka11:09:34

when i start REPL nothing call that function (i added (println “x”)), very confuse

kwladyka11:09:35

ha i found that places in tests, but still… why i have certificate exception only during the test with correct URL. I would say more, when i do the same tests using intellij + curisve and run tests in the REPL it works. But when run lein test i have unable to find valid certification path to requested target hmm

williballenthin18:09:57

when in a repl, can i configure numbers to be hex-formatted (`0x10`) by default?

Alex Miller (Clojure team)19:09:24

The print system is overridable, so you probably can

Alex Miller (Clojure team)19:09:47

Might be able to implement print-method on Long for example.

hmaurer19:09:30

@williballenthin This seems to work:

(defmethod print-method java.lang.Long [v w]
  (.write w (format "0x%x" v)))

williballenthin19:09:24

@hmaurer this works great, thanks!

didibus22:09:12

Question: What's the best concurrency construct to use for doing a lot of blocking IO?

didibus23:09:20

I think ideally for lots of blocking IO, a custom executor might be best, so I can bound the queue, and the pool. So I guess no Clojure specific way.

didibus23:09:25

dirigiste and claypoole look like interesting option