This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-01-15
Channels
- # adventofcode (6)
- # beginners (63)
- # boot (39)
- # cider (25)
- # clara (9)
- # cljs-dev (27)
- # clojure (100)
- # clojure-dev (39)
- # clojure-dusseldorf (7)
- # clojure-italy (32)
- # clojure-russia (23)
- # clojure-spec (28)
- # clojure-uk (51)
- # clojurescript (197)
- # core-async (44)
- # cursive (3)
- # datomic (14)
- # emacs (4)
- # fulcro (27)
- # graphql (23)
- # hoplon (4)
- # jobs (9)
- # juxt (1)
- # leiningen (3)
- # nyc (1)
- # off-topic (6)
- # om (7)
- # onyx (6)
- # parinfer (11)
- # re-frame (23)
- # reagent (15)
- # ring-swagger (1)
- # rum (15)
- # shadow-cljs (37)
- # sql (24)
- # uncomplicate (4)
- # unrepl (17)
Morning everyone. Who would like to give a talk at the monthly London Clojurians meetup on 6th February?
Any topics welcome. Personally I would be interested in hearing experiences with Clojure 1.9 and also the new clj and deps.edn command line tools.
On a different note, any recommendations for running Leiningen on Windows behind a corporate firewall? It seems running Leiningen on windows 7 doesn't always want to download dependencies, even if you have local mirrors set up. I am encouraging other Dev teams to adopt Clojure, so want to minimise the setup (e.g., avoid setting up local proxy servers or using Loinux environments (Cygwin, msys2). Cursive / IntelliJ seems to play nicely, however it relies on Leiningen, so gets tripped up with the dependencies still.
@jr0cket Try setting HTTP_PROXY
and HTTPS_PROXY
environment variables. This works for me on my Windows work laptop behind a firewall.
We had set these environment variable, but still had issues with Leiningen . Then we found a different proxy server to point these variables at and Leiningen worked. So not all corporate proxy servers are equal.
Morning
morning
morning
TIL. Map and Keyword lookup can take a default value, Vector and Set lookup cannot. (without recourse to (get ...)
)
can you call a symbol as a function?
TI-also-L: ('get {'get 5}) => 5
@reborg what is going on "under the hood" with that?
symbol can be used as a function to lookup itself in the associative structure passed as first argument (assumed). Symbol didn't find itself there, so returning default value "1"
And picking up the mantle for @peterwestmacott for today... Random core function of the day:
-------------------------
clojure.core/unchecked-long
([x])
Coerce to long. Subject to rounding or truncation.
Good explanation @reborg
user=> ('+ 1 1)
1
user=> ('+ 2 1)
1
user=> ('+ 2 2)
2
user=> ('+ 1 2)
2
As of unchecked-long, it has very few use cases. I guess the only time I'd use would be in very tight loops where every millisecond counts and you definitely know your numbers are not overflowing (and you need to cast to a long)
(unchecked-long (inc' (Long/MAX_VALUE)))
throws with normal long
and change the sign in this case
@rickmoynihan don't forget to post in #jobs as well!
Ahh thanks @thomas
happy hunting @rickmoynihan
Cheers @otfrom 🙂
Yeah @rickmoynihan that looks like a great opportunity; good hunting!
Thanks @maleghast. It’s a good company, doing some good work. Nice people, smart, humble, considerate.
It has its challenges for sure, but it’s well suited to the domain. And the challenges provide real opportunities to make some really nice things.
TLDR; it can be quite good fun 🙂
LOL. No I didn’t. I’m just being honest 🙂
Sounds like a great gig - I am not currently looking to make a change, but I will try to remember that you guys are “out there” should my circumstances change… For one thing commuting to Manchester from up here would be simpler, and it is my spiritual home, having been born there and had many formative experiences in Manchester, some in the Northern Quarter FWIW… 😉
@mccraigmccraig hey you know how you were saying you use promesa with reframe, and have an effect that uses promesa when you want to chain async http calls. Do you write one reg-fz
per thing you need to do, or do you use some kind of data-ish abstraction?
@danieleneal we've got an effect-per-thing atm - it doesn't happen very often in the codebase
yeah that makes sense. I think for me login is probably gonna be the main one
just contemplating approaches again
thanks 🙂
yeah, iirc it was initialising the app which was the first use-case for http chaining
@jr0cket You might want to consider running a standard (previously setup) Linux VM on your Windows Desktop and but instead setting the http_proxy/https_proxy environment variables on the vm side similarly as suggested by @chrisjd.
We had set these environment variable, but still had issues with Leiningen . Then we found a different proxy server to point these variables at and Leiningen worked. So not all corporate proxy servers are equal.