Fork me on GitHub
#off-topic
<
2018-03-01
>
qqq01:03:09

Is mult generally faster than (aget-float) ? Suppose I have an array (let [fa (float-array ...) fa2 (float-arrary ...)) where for each i, fa2[i] = fa[i] * fa[i] would it be faster to: 1. do the multi every time (the cost of recomputing) or 2. cache the results in fa2 and do an array lookup? I'm leaning towards recompute, as cache misses are expensive and mult is just one instruction; but the 'do extra work' is slightly counter intuitive

roklenarcic08:03:18

don't cache the result of a single multiply

roklenarcic08:03:41

unless you're multiplying BigInt

roklenarcic08:03:56

and even then it could go either way

gganley17:03:04

Is github down? I just checked with two different “is is down” sites and they agreed

gganley17:03:21

I was looking at like 5 pages waiting for it then all of a sudden BAM they loaded

gganley17:03:25

that was strange

Alex Miller (Clojure team)17:03:44

probably a tree root growing through your cable

bronsa18:03:47

@gganley it was super slow for me too

qqq19:03:53

What is a good service for a private hosted wiki ?

mpenet20:03:45

Bitbucket has a wiki per repo (private or not)

mpenet20:03:18

If you re looking for something free it s not bad

qqq19:03:28

I don't want to manage servers myself; and I don't want the wiki to be public.

gganley21:03:44

How do you keep dry erase markers from drying out? I’m sick and tired of seeing every single professor struggle with swapping out 9 different markers every single class.

langmartin21:03:24

chalk! plus, you get that air of authority

gganley21:03:30

Unfortunately chalk is quite ineffective on whiteboards

gganley21:03:54

That said I sometimes wish we had blackboards for this very reason

langmartin21:03:43

the only serious thing I've ever seen is hanging the cap on string off to the side and removing the tray at the bottom, which is irritating

langmartin21:03:01

but makes it hard to set the marker down without capping it

alexk21:03:09

not my img…

danielglauser21:03:22

We just wrote a thing about Elasticsearch. If you use Elasticsearch or are thinking about using Elasticsearch, please let me know if this type of article is helpful: http://bit.ly/es-index-aliases-clj

borkdude22:03:27

I’m trying this for fun, but there is trouble with the quote in require:

clj -Sdeps ‘{:deps {clj-time {:mvn/version “0.14.2”}}}’ -e \
“$(cat << EOF
(require ’[clj-time.core :as t]) (println (str (t/now)))
EOF
)”