This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-08-29
Channels
- # aws (1)
- # beginners (78)
- # boot (27)
- # cider (16)
- # clara (15)
- # cljs-dev (84)
- # cljsjs (13)
- # cljsrn (19)
- # clojure (65)
- # clojure-france (10)
- # clojure-italy (8)
- # clojure-russia (35)
- # clojure-spec (34)
- # clojure-uk (124)
- # clojurescript (50)
- # clojutre (3)
- # core-async (16)
- # data-science (18)
- # datascript (1)
- # datomic (9)
- # emacs (2)
- # flambo (3)
- # fulcro (55)
- # graphql (3)
- # hoplon (4)
- # jobs (2)
- # juxt (21)
- # keechma (6)
- # lumo (73)
- # off-topic (4)
- # om (10)
- # onyx (5)
- # parinfer (1)
- # pedestal (3)
- # re-frame (60)
- # reagent (19)
- # specter (24)
ah thank you @dominicm and @chrisjd I was assuming as all I could ever see was \"
, that was what was being returned
måning
morgnin
Morning
@jonpither how was the cruise? Or are you still on holiday?
Back at work today 🙂 The cruise was excellent thanks, saw a bit of Pompeii, Naples, Nice. We started in Barcelona - arrived during a media invasion and marches over the terrorist incident which was a bit surreal and sad. I now need some health living after eating Amercian style - the cruise was run by Disney. The kids loved it, safe to say.
Sounds like a really memorable trip. You can pester Catharine for healthy living tips 😉
@jonpither - “too much wine”…? I am not sure that I understand,,,
thanks @maleghast
I can no longer procrastinate over my ClojuTre talk... although it's amazing the tricks your mind plays on you when you're trying to force it to do something
I have the outline of the talk planned, it's just.... write it all up and practice to an empty room
Sunny in West Sussex
My procrastination monster is starting to rear it's scary head and chase the mindless monkey away. I've got less than two months until my (first ever) talk in October.
Been playing around a little with Gorilla-REPL and think it works quite nicely as a tool for giving the talk
Thinking I might save a few Gorilla-REPL worksheets and load them in as/when I need to cover different topics
"What could possibly go wrong?"
@yogidevbear Been talking with @malcolmsparks about this recently. I think there's some room for a new notebook that: * Works outside leiningen * Works with your normal editor: emacs/vim/etc. We have a concrete use-case for Malcolm's talk coming up also. I have a design that looks like it should work, but haven't proof tested it yet.
I remember you mentioning this a few weeks back
I really like the idea
I'd be happy to help out with testing (and maybe some development down the line maybe), but I'm not an emacs/vim user so I'd fall into the "etc." part there
There shouldn't be any requirement. You could type stuff into a lein repl
prompt & it should work.
Hi All, @mccraigmccraig was kind enough to give this interview. Please please show some clojure-uk LOVE and RT it? https://twitter.com/juxtpro/status/902495940291985408
aye, that be me @yogidevbear
But it looks like a polar opposite to your slack profile pic... Does not compute 😉
slack profile pic was from a party, there was fancy dress and giant wigs were involved... the rest of the difference is accounted for by time and a deep-seated aversion to razor blades
maybe the image is upside down
¡umown!
Nice interview! 🙂 Really enjoy reading those; it's a good source of motivation and just interesting to get the insight.
thanks @chrisjd. The next one is Yogthos. He just happens to speak a million words a minute full of interesting stuff and so it will take us a little longer to transcribe. He's doing a guest Clojure In - the first one outside of Europe.
Yeah, great interview - really enjoy this series, @jonpither
(give me another year, as long as the funding holds out and I will have enough of a tale to tell myself… 😉 )
I'm about to start re-writing the infrastructure of an application which uses too many records at the moment. I'd normally reach for component for this kind of thing, but in the spirit of avoiding records maybe integrant makes more sense? I will have to repeat this refactoring process several times for different applications, so I'm interested in any experience you lot may have of using the two in comparable circumstances?
@conan integrant scratches most of the component itches i had (principally record infection), and if i didn't also want clojurescript support and an ability to deal with factory functions which return promises of things then i would go with it
oh, i'm wrong - it is cljs friendly
but i don't think it works with promises
(i.e. you can put a promise of something into your system, but if you want to pass the value in that promise to the constructor of something else you are out of luck)
i love that the benefits of writing the same language on the frontend and backend extend well beyond syntax, having the same infrastructure and workflow is awesome btw
@conan Not gone deep on integrant, but I did port JUXT's starter repo to it. It was a very pleasant experience.
i wrote something that does deal with promises - https://github.com/employeerepublic/deferst - but i'm not nearly as good at supporting my stuff as weavejester 😊
@mccraigmccraig curious to know of concrete examples of async component creation in cljs?
@dominicm i have components which depend on cordova filesystem DirectoryEntry
s and getting these presents a callback API, which we then wrap in a promise API... i think there are some other cordova plugins we use too which return a promise of an object on initialisation
@conan Curious to know what you put into components on the front-end? (never needed it myself)
it's pretty much the same as on the backend, just a different set of running things. the biggest project i worked on had a couple of event-handling loops, a websocket connection, a logging system, that sort of thing
it's so nice to have the same keyboard shortcuts for (go)
and (reset)
in my IDE for both clj and cljs REPLs
I wonder if I should use it for that. Those mostly end up in a defonce, then passed around. I can recall a handful of times where nothing worked until a hard refresh, possibly related.
it's the same problem i always used to have in my java days, but less bad: you start a new project, including a big workflow library or framework doesn't seem worth it, then 30 minutes later you're making progress and start to wish you'd done it from the beginning
right, well i'll try integrant and if i find anything interesting i'll write a blog post
we're looking at taking on a medium sized clj codebase, and debating whether or not we should carry on with what's there, or do a big port to techs we would prefer. In the past, I've always been surprised at how quickly you can port across a technology.... once you get into the rhythm you can become somewhat robotic about it.
@jonpither that somewhat makes me question whether the libraries are all that different?
what are the technologies you're thinking of migrating to/from
@malcolmsparks is more up for the second one than I, but I would definitely migrate a JS front end to cljs and I wouldn't expect it to take that long
yeah, it makes sense with being a clojure shop as well 😄
Yada FTW!
what's making you hesitate about the second one
I was once on a project where talking about changing a tech was much more involved and arduous than doing the actual change (Storm -> raw core.async)
i generally believe you should be rewriting your high-value applications anyway, so i'd always say to run a test of the port for a short time and see how far you get
if the system is keeping your company ahead of the competition, you need to keep the system ahead of the competition
@danieleneal - I like Datomic, but I wouldn't automatically sign off a rewrite without sizing up how much SQL there is... and if there's funky PSQL extensions used etc
(i'm also considering a PSQL > Datomic migration, but that is a bigger job so comes later)
the other day somebody asked me how frequently a value in our DB changed. i immediately promised that it would be easy to get that data, until i remembered it wasn't datomic and so there was no accessible record of changes
@jonpither i'm actually thinking of building a new system with a new, Datomic DB, and slowly borging the other systems into it
but then we also have other reasons to avoid distribution in our architecture which may not apply everywhere (for example, we don't really have to worry about scalability)
theoretically it's great for horizontal scaling of Peers, but it's not for big data, and for where performance is massively important, then you'll likely be relying on other caches also (cloud front caches)
if you're in a very high write throughput environment then it might be troublesome, but actually you'll find similar problems with other systems, i'm not convinced that datomic will add a smaller bottleneck than the underlying storage it's running on (unless you're backing it with a massive cassandra cluster or something)
@conan the problem really is that high write environments + datomic = datomics datom limit quite quickly.
from my notes: Datomic has a 10B datom soft limit<<dod10>>. The current hard limit reported by Cognitect is 100B datoms<<dod100>>. [quote, Stuart Halloway, 'http://www.datomic.com/day-of-datomic-2016-part-5.html[~39:40 100 Billion limit]'] __ If you're gonna put more than 100B datoms in datomic. Just don't __
The advice is to call cognitect if you're going to exceed 10b, & do special capacity planning with them.
Plus there are good reasons to use PostgreSQL for some__ things… 😉 (I like Datomic and think that I may love__ it given more exposure, but there are solid reasons for using other tech choices instead and / or as well in a lot of cases.)
i broadly agree with that statement, but beyond integration or skill reasons (i.e. you want to use another tool or a person that uses SQL) then i can't think of any reason to use Postgres. Maybe geo stuff, does Datomic do that? I'm basically in love with Datomic.
@conan - Price, GIS and JSONB are all (potentially) good reasons to use PostgreSQL either alongside or instead of Datomic.
@conan - Check this out https://blog.codeship.com/unleash-the-power-of-storing-json-in-postgres/
@maleghast yeah that makes sense. i've used elasticsearch alongside datomic before, so i can see the use case