Fork me on GitHub
#clojure
<
2018-03-21
>
qqq05:03:42

In terms of debugging cljs, I've always used chrome over firefox. However, I'm not sure if there is an advantage or if it's just a personal preference. Is either browser 'blessed' by cljs ?

restenb05:03:07

i think chrome has the best devtools by some margin

qqq07:03:45

Erlang has something called ETS (erlang term storage). What is the closest thing Clojure has? spit/slurp of edn ?

mpenet08:03:05

Atoms kinda, unless you mean mnesia

mpenet08:03:46

Even then it s quite different

qqq08:03:53

maybe ETS is not what I want -- I want the one that serializes to disk.

mpenet08:03:13

Dets is way more advanced/high level

mpenet08:03:40

Slurp/spit is basically writing a term to file and using consult to read it

dominicm08:03:41

user=> (defn bar_QMARK_ [])
#'user/bar_QMARK_
user=> bar?
CompilerException java.lang.RuntimeException: Unable to resolve symbol: bar? in this context, compiling:(NO_SOURCE_PATH:0:0)
user=> bar_QMARK_
#object[user$bar_QMARK_ 0x8692d67 "[email protected]"]
user=> (defn bar? [])
#'user/bar?
user=> bar?
#object[user$bar_QMARK_ 0x4983159f "[email protected]"]
user=> bar_QMARK_
#object[user$bar_QMARK_ 0x8692d67 "[email protected]"]
user=>
I'm a bit confused here, how are these distinguished? Would they not be were I to aot compile?

dominicm09:03:03

They aren't. If I AOT compile, then I do get the wrong one. Curious. 🙂

bronsa10:03:10

yeah it’s easy to generate collisions if you want to

dominicm10:03:21

I thought maybe that QMARK would be expanded itself into something else, escaping the escape codes.

xtreak2909:03:35

Any news on the ClojureSync conference videos? I am curious to watch the talk by Gerald Jay Sussman.

qqq10:03:32

What is the simplest way to do string -> byte-array?

schmee10:03:15

(.getBytes s)

👍 1
thheller11:03:26

any clojure veterans got any insights what could cause java.lang.NoClassDefFoundError: Could not initialize class shadow.cljs.devtools.server.reload_classpath$process_update$fn__65735?

thheller11:03:01

no AOT or anything involved

qqq11:03:43

Is it referring to the #(... %) on 41 or 51 ?

thheller11:03:22

appears to be tools.namespace related

qqq11:03:15

This is clearly beyond my knowledge of clj. sorry.

val_waeselynck16:03:27

@thheller I tend to have this sort of error after I uberjar my project while my code is running. I think this changes the class files in some way to messes up the REPL.

laujensen17:03:33

I have a project, wherein I want to include a single jar and push it with my lib. Is there a way to include that in my project.clj without doing a local mvn install? And if its a local, does it get pushed in the jar going to clojars?

gklijs17:03:31

@laujensen you can do a lein install to install a jar just to your local repo.

jmckitrick18:03:28

Has anyone here used pact for testing in clojure?

futuro18:03:05

Hi all; for those using Logstash, I've created an EDN filter plugin and published it to rubygems https://rubygems.org/gems/logstash-filter-edn

futuro18:03:37

You can use this in much the same way you'd use logstash-filter-json. I'm using it to parse EDN embedded inside log messages.

Russ Olsen19:03:09

How was using the edn gem?

futuro19:03:57

Quite lovely! This wouldn't have been possible without your, and your co-author's, efforts, so thank you 😄

Russ Olsen19:03:09

Actually Clinton did most of the work. I was wondering because I haven't really touched it in a couple of years.

Russ Olsen19:03:18

Bu thanks for the kind words.

futuro19:03:41

I've never programmed in ruby before, and the logstash docs are kind of sparse, so it was really nice to have a piece of the puzzle that just worked. I'm glad it's held up over the years.

andnils19:03:09

Poll: how many of you are using clojure with java 9 (or 10)?

seancorfield19:03:56

According to http://blog.cognitect.com/blog/2017/1/31/clojure-2018-results "Uptake of Java 1.9, released last year, has been a bit slower with only 29% adopting Java 1.9 so far and 88% of developers using Java 1.8. Only 6% of developers are using Java 1.7 and less than 1% are still using Java 1.6."

alexmiller20:03:32

I’ve done a bit with Clojure and Java 10 btw and haven’t seen any issues yet

alexmiller20:03:45

there is one fragile test case that was broken by serialversion uuids changing in java 10 and that prevents Clojure’s own test suite from passing, but this is a flaw in the test, not an issue in Clojure

rickmoynihan21:03:22

Can anyone explain these new features for clojure 1.10? What’s the plan for prepl? And what are taps for?

alexmiller21:03:29

there will be more info in the future, we haven’t officially released any of that yet

alexmiller21:03:00

prepl is a programmatic stream-oriented remoteable repl, primarily useful for tooling

alexmiller21:03:09

taps are a debugging aid to allow you to “log” a message at any point in your app and listen elsewhere. prepl supports remoting the debug tap over the wire as a side-channel

marco_m21:03:38

Sounds like Erlang tracing. Are there filtering capabilities ?

alexmiller22:03:02

No, other than applying any function you like when reading the tap

rickmoynihan23:03:27

interesting…

rickmoynihan23:03:33

prepl sounds similar to @cgrand’s unrepl