This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-05-30
Channels
- # aleph (1)
- # beginners (126)
- # cider (2)
- # clara (38)
- # cljsrn (2)
- # clojars (2)
- # clojure (49)
- # clojure-dev (31)
- # clojure-dusseldorf (1)
- # clojure-finland (1)
- # clojure-france (6)
- # clojure-italy (13)
- # clojure-nl (12)
- # clojure-russia (9)
- # clojure-sg (1)
- # clojure-spec (33)
- # clojure-uk (83)
- # clojurescript (206)
- # community-development (3)
- # core-async (40)
- # cursive (4)
- # datomic (7)
- # duct (21)
- # emacs (9)
- # fulcro (36)
- # funcool (2)
- # graphql (12)
- # instaparse (4)
- # jobs (4)
- # lumo (24)
- # mount (1)
- # nyc (4)
- # off-topic (29)
- # onyx (1)
- # pedestal (2)
- # random (4)
- # re-frame (60)
- # reagent (136)
- # remote-jobs (1)
- # schema (1)
- # shadow-cljs (20)
- # spacemacs (6)
- # specter (14)
- # tools-deps (2)
Morning
Ello ello
@lady3janepl looks yummie...
There will be team integration tests after lunch 😉 if the product works out, it’ll be ready for a launch at clojurex XD
Bore da
I grew up around ‘kids’. I can do a brilliant goat impression too!
vidz plz @U05390U2P
@U0524B4UW of the impression…. or of me as a kid amongst the kids (cos video camera’s didn’t exist then!)
i was thinking of the goat impression, rather than impossible vidz
I’ll save it for if I get a talk submission accepted in a conference and will send you a link to the video! 😉
can't wait
"Who, me?" https://img00.deviantart.net/dc27/i/2015/289/d/8/baby_hellboy_by_chocolatefrizz89-d9dcxo4.jpg
Our’s used to love thistles! But not as much as the Donkey we had when I was a kid.
That's a cool project
“find the problems”, which is very similar to what people actually do in day jobs a lot
anyone here use transit?
Seems transit-java
writes BigDecimals
with an ~f
https://github.com/cognitect/transit-java/blob/master/src/main/java/com/cognitect/transit/impl/WriteHandlerMap.java#L43
but transit-cljs
doesn’t know what to do with ~f
bit of a weird mismatch
@shan i switched a program from EDN to transit recently because it was easy to add custom read/write handlers to transit... if there's a read handler missing in cljs, then you should be able to add it easily enough
e.g. this handler parses "i32"
tags - https://gist.github.com/8ee5411ac8886350643269afa2c24a58
>(transit/write (transit/writer out :json) {:test 123.1M})
nil
> (.toString out)
["^ ","~:test","~f123.1"]
So I’d just need something with:
(def custom-transit-read-handlers
{"f" (reify ReadHandler
(fromRep [_ o]
;; some equivalent cljs conversion to bigdec?
something like that - assuming that the "f"
tag isn't some special reserved thing
it’s a bit strange as the transit-clj
lib will convert BigDecimals
["^ ","~:test","~f123.1"]
but currently the transit-cljs
reader doesn’t know how to decode it so it’s outputting
[TaggedValue: f, 0.159]
I guess "f"
isn’t reserved thenmaybe there isn't a decent standard js structure to hold a BigDecimal without loss ?
there seem to be some npm packages which implement BigDecimals though, so you could do transit read/write handlers with one of those
true, interestingly if you do a BigDecimal in cljs it comes out as
> (cognitect.transit/write (cognitect.transit/writer :json {}) {:test 123.001M})
["^ ","~:test",123.001]
so it looks like you can just pull out the value: http://increasinglyfunctional.com/2015/11/12/transit-clojurescript-big-decimal/
>(cognitect.transit/bigdec "123.1")
#object[Transit$TaggedValue [TaggedValue: f, 123.1]]
> (.-rep (cognitect.transit/bigdec "123.1"))
123.1
FYI, I ended up doing this until we decide what BigDecimal
implementation we use:
(ajax/transit-response-format
{:handlers {"f" (fn [value]
(js/parseFloat value))}})
tfw you're trying to untether from an old laptop that you're about to stop using
Oh man, I know those feels @yogidevbear
When I sold on my first Retina MacBook Pro when I was out in The Philippines... I spent a day double-checking and triple-checking that I had imaged the drive before I finally wiped it and then I kept it with me all day, looking at the stickers and so on... Was a SAD day...
I've been going through all my code projects and making sure I've committed them to git repos somewhere on the interwebs
I delete code projects that I can't be bothered to commit to a git repo somewhere. It's very freeing.
Yup, been doing some of this too
I just used rsync to copy my home dir to a new clean user on my new laptop…worked a treat.
https://severeoverfl0w.github.io/naga-editor/ I made a thing, it infers some family relationships. Delete the closing paren to see it in action.
I’m not sure what the direction of the relationship is, [:anne :parent :mary]
adds mary and george with a parent relationship
https://github.com/threatgrid/naga a datalog rules engine.
In that case it's saying that Anne's parent is mary. Because anne and george are siblings, if one has a parent, so does the other!
https://github.com/SevereOverfl0w/naga-editor/blob/master/src/io/dominic/naga_editor/main.cljs the rules are in the top of this file.
oh, nice! I’ve only seen https://github.com/cerner/clara-rules before
I now put my whole mac world on DropBox - either directly, or via encrypted backup scripts:
ls -al ~ | grep ">"
lrwxr-xr-x 1 korny staff 33 5 Oct 2017 .aws -> ManualBak/secure/data/config/.aws
lrwxr-xr-x 1 korny staff 39 22 Feb 2017 .oh-my-zsh -> ManualBak/secure/data/config/.oh-my-zsh
lrwxr-xr-x 1 korny staff 44 23 Feb 16:57 .password-store -> /Users/korny/Dropbox/macbook/.password-store
lrwxr-xr-x 1 korny staff 33 21 Feb 2017 .ssh -> ManualBak/secure/data/config/.ssh
lrwxr-xr-x 1 korny staff 35 19 May 2017 .zshrc -> ManualBak/secure/data/config/.zshrc
lrwxr-xr-x 1 korny staff 20 26 Feb 2017 apps -> Dropbox/macbook/apps
lrwxr-xr-x 1 korny staff 32 20 Feb 2017 bin -> /Users/korny/Dropbox/macbook/bin
lrwxr-xr-x 1 korny staff 24 19 Feb 2017 prj -> /Users/korny/Dropbox/prj
lrwxr-xr-x 1 korny staff 21 20 Feb 2017 sprj -> ManualBak/secure/sprj
Moving to a new mac, I generally have to reinstall OSX apps and homebrew
apps manually, but I find that’s a good way to ensure the machine is relatively clean. Everything else is on DropBox (or work stuff on Google Drive)