Fork me on GitHub
#off-topic
<
2017-04-09
>
mac00:04:34

@raspasov f) CouchDB / PouchDB

tbaldridge00:04:24

(sorry, it had to be done 😉 )

qqq00:04:01

"MongoDB: snapchat for databases" -- someone on twitter

qqq02:04:10

@mpenet: is `(alia/execute session "CREATE KEYSPACE alia WITH replication = {'class': 'SimpleStrategy', 'replication_factor' : 3};")` idiomatic alia? I was expecting edn and got strings

qqq02:04:21

(from github front page)

qqq02:04:51

@mpenet : hayt is what I'm looking for

mpenet05:04:57

Some prefer one or the other, or just maps or java-driver Statement instances, execute supports all of them

sveri12:04:07

javascript, the land of endless surprises:

[1, 5, 29, 19].sort();
=> [1, 19, 29, 5]

lmergen14:04:38

@sveri that’s hardly the worst thing i’ve seen in javascript 🙂

akiroz15:04:58

This seems consistant across runtimes..... but why? (@_@) EDIT: Oh stack 0verflow answered my question.

john16:04:25

I found a strange one in clojurescript the other day.

john16:04:54

(= (str (constantly 1)) (str (constantly 2))) returns true in cljs and false in clj.

pesterhazy17:04:54

why are you stringifying functions?

firstlast17:04:55

It probably has to do with the underlying JS comparison in-consistencies

noisesmith17:04:08

it's because in clojure you get a unique object id for each call to constantly, in js you get some javascript - the same javascript string for every call to constantly

noisesmith17:04:50

+user=>  (constantly :a)
#object[clojure.core$constantly$fn__6687 0xb1712f3 "clojure.core$constantly$fn__6687@b1712f3"]
+user=>  (constantly :b)
#object[clojure.core$constantly$fn__6687 0x74eb909f "clojure.core$constantly$fn__6687@74eb909f"]

noisesmith17:04:03

+cljs.user=> (constantly :a)
#object[b "function (b){if(0<arguments.length){for(var c=0,e=Array(arguments.length-0);c<e.length;)e[c]=arguments[c+0],++c;new cljs.core.IndexedSeq(e,0)}return a}"]
+cljs.user=> (constantly :b)
#object[b "function (b){if(0<arguments.length){for(var c=0,e=Array(arguments.length-0);c<e.length;)e[c]=arguments[c+0],++c;new cljs.core.IndexedSeq(e,0)}return a}"]

john18:04:41

@pesterhazy I was doing some ill-advised black magic with repls and webworkers. Seeing how far I could get.

john18:04:13

The lesson is that you can't lean on the string representation of an object to recover it's implementation (or identity)

john18:04:38

Unless you rely on even more black magic 🙂

pesterhazy18:04:49

yeah it looks like the string representation doesn't include the vars captured in the closure

noisesmith18:04:37

it has their binding name, a

noisesmith18:04:44

which doesn't do you much good haha

fellshard22:04:26

Toby Crawley's talk on Java 9 is depressing. Jigsaw is gonna be every bit the mess I expected

fellshard22:04:41

It's like they heard "we need a module system!" and then just made something without any of the benefits.