Fork me on GitHub
#clojure
<
2019-12-14
>
weavejester01:12:14

Does anyone know if there is another library like spyscope that (ab)uses data readers for debugging?

alexbaranosky01:12:04

interesting stuff.

weavejester01:12:49

I hadn’t, thanks

👍 4
Jakub Zika11:12:24

This + REBL would be an AMAZING tool for data science and ETL development.

👍 4
alexbaranosky01:12:43

I need to be using this

alexbaranosky01:12:01

so handy to be able to bust out charts from data I have on hand in the repl

Jakub Holý (HolyJak)07:12:37

Zippers: how do I check I'm back at root? (nil? (path loc))? Or (= (root loc) loc)? Thank you!!!

vemv11:12:52

maybe (nil? (up loc)) is a bit more explicit

Setzer2210:12:59

Is there a way I can set things such as *warn-on-reflection* in a deps.edn file? Like leiningen does with the :global-vars key?

Alex Miller (Clojure team)13:12:02

You can use :jvm-opts [“-Dclojure.compile.warn-on-reflection=true”] in an alias, but can’t currently do that always

👍 4
kwladyka16:12:10

I confused myself, how to intertop thhis part about try (...) {...}

try (Scope scope = tracer.spanBuilder("main").startScopedSpan()) {
		System.out.println("About to do some busy work...");
		for (int i = 0; i < 10; i++) {
			doWork(i);
		}
	} 
?

kwladyka16:12:19

Is it possible?

kwladyka16:12:18

this the reason why I need it

// 4. Create a scoped span, a scoped span will automatically end when closed.
// It implements AutoClosable, so it'll be closed when the try block ends.

kwladyka16:12:09

BTW Does anybody have working stacdriver trace example code to share?

hiredman16:12:23

It is the Java equivalent of with-open

kwladyka16:12:59

oh, I thought with-open is only for files / streams. Great !

seancorfield21:12:55

with-open just assumes it can call .close on the object. It doesn't care about the types, per se.

hiredman16:12:59

Well, it may not work with with-open, because Java added a new interface when they introduced try with resources, and with-open still uses Closeable not AutoCloseable

kwladyka16:12:38

But anyway I can’t make stackdriver trace to work in Clojure. It is my first time when I use it. No errors, but also no traces in stackdriver. Any idea why?

hiredman16:12:17

Nope, but you should check all the usual culprits, the first being laziness

seancorfield21:12:55

with-open just assumes it can call .close on the object. It doesn't care about the types, per se.