This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-06-24
Channels
- # beginners (61)
- # boot (1)
- # cider (55)
- # cljs-dev (17)
- # cljsrn (1)
- # clojure (31)
- # clojure-india (5)
- # clojure-spec (9)
- # clojure-uk (42)
- # cursive (3)
- # datomic (29)
- # editors (3)
- # fulcro (23)
- # hoplon (2)
- # lumo (12)
- # off-topic (8)
- # pedestal (6)
- # re-frame (3)
- # reagent (8)
- # reitit (23)
- # shadow-cljs (82)
- # specter (14)
- # tools-deps (8)
fwiw I think I’ve written < 3 production macros and I’d advise people not to use them if not totally necessary - one of the big ➕ of clojure is a simpler mental model and that begins to go away with greater arbitrary abstraction
but maybe that’s just me 😕
I like that clojure makes me feel less dumb, and I’ll happily do away with features in order to preserve that
I find myself only using macros occasionally and pretty much always as syntactic sugar over an existing function. The second most common usage is for code-generation (in the small).
I forgot how useful that immutability thing is:
(or
(when-let [match-result (match-pattern pattern env)]
(resolve-handler matched match-result))
(do (assoc! env :remainder orig-remainder)
nil))))
I'll live, but will the code?Morning all 👋
@dominicm with transients you must use them "functionally", using the return value of the last operation as input value to the next
user=> (let [x (transient {})] (dotimes [n 100] (assoc! x n true)) (count (persistent! x)))
8
@bronsa I'm in the context of:
(some #(that-fn % transient-map) xs)
And I decided to hack around that-fn
performing a modification on :remainder
, by "returning" :remainder
back to it's original state.anything of the form (f .. (f .. (f ..) ..) ..)
instead of (list (f ..) (f ..) (f ..))
It definitely felt unnatural. Very interesting that a new object is returned when the underlying structure changes. I didn't know there was a problem with this though. What is a mutable bang?
Quick drive-by Q for a Sunday evening... If you decide that Datomic Cloud is the Datomic for you, what's the deal with development environments..?
Finally does Datomic Cloud support encrypted at rest data, and how well does it integrate with KMS or similar to facilitate that if it does..?
(I am trying to figure out if we should run our own Datomic Pro On-Prem and use the PostgreSQL adapter (as we already use PG for "other things") or simply adopt Datomic Cloud)
If nothing else can I develop my app with Datomic running locally through my developer subscription and then deploy onto a system that uses Datomic Cloud, or are the approaches / features significantly different that I need to make a decision before we get started?
^+1 for this, I’ve wondered it too
@maleghast Have you tried asking in #datomic ?
When we asked, we were informed that the datomic team were developing by spinning up personal environments in AWS.
Interesting. Yeah, that sort of makes sense but isn't necessarily convenient 🙂
I'm noticing a contention with all this cloud stuff which works against my desire to be functional offline.
@dominicm Yeah, I feel more comfortable about a stack I can run isolated, offline, on my laptop.
@seancorfield This is something that is bothering me about adopting Datomic Cloud