ldnclj

Find us on #clojure-uk
korny 2015-05-28T06:49:59.000099Z

mornin'

mccraigmccraig 2015-05-28T06:51:12.000100Z

måning

xlevus 2015-05-28T07:27:33.000101Z

G'morn

agile_geek 2015-05-28T07:40:49.000103Z

Bore da

agile_geek 2015-05-28T07:47:40.000104Z

Open question to oh great wise & experienced Clojurians: Does alter-var-root not break the concept of immutability? I know it’s really a re-binding but I’m not sure I understand it’s use cases and the difference between it and an atom?

martintrojer 2015-05-28T07:48:50.000105Z

its overwriting the root binding for a var, thus making it visible to all threads.

martintrojer 2015-05-28T07:49:10.000106Z

its last man wins, not as CAS operation like (swap!) for atoms

martintrojer 2015-05-28T07:50:06.000108Z

so having multiple threads doing alter-var-root on the same var is a big no-no.

agile_geek 2015-05-28T07:51:04.000109Z

@martintrojer: thanks for explanation. So follow up question: why have it at all?

martintrojer 2015-05-28T07:52:16.000110Z

I think its a matter of “I know what I’m doing Clojure, don’t get in my way!"

tcrayford 2015-05-28T07:52:53.000111Z

it's so you can reload code at the repl mostly

tcrayford 2015-05-28T07:53:04.000112Z

(at least, that's mostly why vars exist)

tcrayford 2015-05-28T07:53:32.000113Z

might as well expose that mechanism to users such that they can use it if they want to

agile_geek 2015-05-28T07:54:26.000114Z

OK - so reloading code was the use case that sprang to my mind too.

martintrojer 2015-05-28T07:55:00.000115Z

or hacky tests where you want to swap out a fn somewhere

martintrojer 2015-05-28T07:55:23.000116Z

(and can’t be bothered to do the whole defprotocol, defrecord thing)

agile_geek 2015-05-28T07:55:48.000118Z

@martintrojer: in test case wouldn’t you just close over using with-redefs?

tcrayford 2015-05-28T07:55:54.000119Z

see also: stuart sierra's reloaded, where you often want a global place to put a ref to the whole system

agile_geek 2015-05-28T07:57:06.000120Z

@tcrayford: so much to read and learn..so little time! 😉

tcrayford 2015-05-28T07:57:43.000121Z

I like reloaded/component a bunch (more reloaded than component, but that's a personal thing). It's a good way of structuring systems

agile_geek 2015-05-28T07:58:43.000122Z

@tcrayford: both have been on my list of stuff to look at for > 6 months but other stuff always gets in the way.

tcrayford 2015-05-28T07:59:02.000123Z

yeah haha :simple_smile:

tcrayford 2015-05-28T07:59:02.000124Z

know that feel

agile_geek 2015-05-28T08:01:38.000125Z

@gjnoonan: picking up your thread about Clojurians in the the North. I live in NE (Newcastle/Sunderland area) and work in London. I am, to my knowledge, the only NE Clojurian! Would be a lonely Dojo!

gjnoonan 2015-05-28T08:08:20.000126Z

@agile_geek: I know the feeling, I am the only clojurian I know in the North East or Yorkshire

agile_geek 2015-05-28T08:09:21.000127Z

@gjnoonan: I’m working on converting some Scala/Java devs! 😉

2015-05-28T08:14:41.000128Z

morning

2015-05-28T08:14:49.000129Z

ah, using slack with erc as Crom intended

2015-05-28T08:14:53.000130Z

#emacs4life

2015-05-28T08:16:00.000131Z

look at me going back and forth between irc and slack

thomas 2015-05-28T08:20:26.000132Z

morning

2015-05-28T08:21:42.000133Z

morning

agile_geek 2015-05-28T08:22:03.000134Z

@otfrom I had trouble setting up slack in erc. Can’t remember issue now, something to do with https I think?

xlevus 2015-05-28T08:30:16.000135Z

@otfrom: temporal conversation!

korny 2015-05-28T10:10:51.000137Z

Clojurian in Wolverton (north edge of Milton Keynes) here - but I'm working in London, so that's where I am most likely to dojo / drink beer...

korny 2015-05-28T10:11:27.000138Z

Hmm, I should try erc. Maybe if emacs takes over enough of my life, I'll start using it for clojure again :simple_smile:

2015-05-28T10:54:41.000139Z

@agile_geek pretty easy to set up as a function

2015-05-28T10:55:11.000140Z

(defun erc-clojurians ()

2015-05-28T10:55:11.000141Z

(interactive)

2015-05-28T10:55:11.000142Z

(erc-tls :server "http://clojurians.irc.slack.com" :full-name "Bruce Durling" :nick "otfrom" :password "yer password goes here"))

2015-05-28T10:55:11.000143Z

2015-05-28T10:55:22.000144Z

oh dear, sorry about that

martintrojer 2015-05-28T10:55:39.000145Z

good password bruce! :simple_smile:

agile_geek 2015-05-28T10:56:55.000146Z

@otfrom cheers. I’ll give it a go when I’m not in locked down corporate hell!

jonpither 2015-05-28T16:12:59.000150Z

sup

xlevus 2015-05-28T16:16:31.000151Z

not much.

jonpither 2015-05-28T16:16:45.000152Z

k

thomas 2015-05-28T16:20:58.000153Z

good evening guys... see you tomorrow.