This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-02-27
Channels
- # beginners (113)
- # calva (39)
- # cider (18)
- # cljs-dev (19)
- # cljsrn (1)
- # clojure (80)
- # clojure-dusseldorf (1)
- # clojure-finland (1)
- # clojure-gamedev (1)
- # clojure-germany (2)
- # clojure-italy (38)
- # clojure-nl (16)
- # clojure-spec (90)
- # clojure-uk (81)
- # clojurescript (28)
- # clojutre (9)
- # cursive (47)
- # data-science (4)
- # datomic (21)
- # emacs (1)
- # events (2)
- # fulcro (11)
- # graphql (2)
- # hoplon (8)
- # hyperfiddle (23)
- # jobs (2)
- # kaocha (4)
- # lein-figwheel (1)
- # luminus (1)
- # mount (1)
- # off-topic (41)
- # pathom (5)
- # pedestal (27)
- # reitit (6)
- # remote-jobs (7)
- # ring-swagger (6)
- # shadow-cljs (42)
- # spacemacs (1)
- # sql (9)
- # tools-deps (6)
- # uncomplicate (2)
- # vim (5)
is there a known time scale (or terminology) that makes a single millisecond sound expensive?
e.g. 1ms = 1000 blubs
My function takes 20000 blubs to run -> sounds nasty, will fix
Conversely, 0.089405 msecs
is not very expressive, it makes me perform a mental multiplication in order to figure out if the fn was expensive (in "computer" timescale, not in human timescale) or not
* going to the toilet * going to the convenience store * a hike trail * crossing the Sahara * an interplanetary expedition yeah, could be a nice touch. ๐
@me1740 microseconds sound great! had forgotten about them, I see them only occasionally in programming
nanoseconds would be still confusing... e.g. (time 2)
-> 150000 nanoseconds, too big of a number to constitute a baseline
The same metric prefixes apply to all standard units so it's worth knowing: https://en.wikipedia.org/wiki/Metric_prefix
I played a bit with Criterium. Yes one can quite easily get used to deal with nanos and micros (which Criterium uses interchangeably) Wasn't that satisfied though... so I "came up" with this (apostrophes because it might be common practice)
(defn throughput [microseconds]
(-> 1.0 (/ microseconds) (* 1000000)))
e.g. a get-user
function that takes 350 microseconds to complete, has a throughput of 2857 users/second. A human would hardly see that without help!Is it reasonable to assume that you'll never find EDN where a key in a map is another map?
you can have arbitrary data as keys in EDN, so it would be very brittle to assume this would never happen
clojure.set/index produces indices with maps as keys, which I may want to serialize for whatever reason
unless you specify a schema that you enforce yourself between (de)serialization, but in general you should not make any assumptions
(edn being a serialization format for clojure's datastructures, which everyone wants to use as the name for clojure datastructures for some reason)
In this case, I mean EDN-EDN, as in https://github.com/edn-format/edn
there have been a few other impls: https://github.com/edn-format/edn/wiki/Implementations
I am fairly new to spark, so I am not sure what the best way to put a repl on the EMR is
Has anybody ever used https://fission.io for functions in docker containers/kubernetes?
What is that talk where Rich Hickey says something along the lines of "the person with the simpler system will drastically outperform the person with a more complex system"?
"Simplicity is not about you, and simplicity is hard work. It is actually work, to do the job of simplifying things. But, there's a huge payoff. The person who has a genuinely simpler system, a system made out of genuinely simple parts is gonna be able to affect the greatest change with the least work, he's gonna kick your ass. He's never gonna gem install hairball. He's gonna spend more time simplifying things up front, and in the long haul he's gonna wipe the plate with you, he or she, because they'll have that ability to change things when you're struggling to push elephants around"
Maybe I should send a PR to the talk transcripts. It doesn't have this talk ๐
(I mean, that's the whole theme of "Simple Made Easy", and most of his talks, but there was a particular quote about "outperforming" that I'm looking for)
Is that maybe the bit where he talks about the juggling analogy? "Better jugglers can juggle 7 or 8 balls, but nobody can juggle 100," something like that?
maybe grep here https://github.com/matthiasn/talk-transcripts/tree/master/Hickey_Rich
Thanks, I'll try that.
I love lodash but...this is their cond api? https://lodash.com/docs/4.17.11#cond
I guess clojure's cond is a macro, so you have to have such a funny api to do something similar in js
Yeah... wrote about that a while ago :) https://vvvvalvalval.github.io/posts/2018-01-06-so-yeah-about-clojures-syntax.html#separation_of_concerns:_code_layout_%E2%8A%A5_program_structure