Fork me on GitHub
#clojure-uk
<
2017-02-03
>
jonpither07:02:05

Good morning peeps

maleghast09:02:25

Morning UK peoples

jonpither09:02:05

Please could I get some RT love for this uk clojure tweet https://twitter.com/juxtpro/status/827449132264611840

jonpither09:02:22

muy apreciado

jonpither09:02:16

morning. Thx for the RT sire @otfrom

otfrom09:02:50

jonpither pleasure

reborg09:02:00

:thumbsup: for Luca at signal!

jonpither10:02:40

Anyone want to do a Clojure In.. please give me a buzz

jonpither12:02:23

The idea is to show that Clojure in prod really is happening in London, the UK and Europe

jonpither12:02:35

So we all get more Clojure

yogidevbear12:02:59

It would be cool if you could get someone like citi bank on there

glenjamin12:02:13

quote from an email I just received: > I would really like to get your opinion on a piece of thought leadership we are currently producing

mccraigmccraig12:02:32

you should definitely give an unfiltered opinion @glenjamin

glenjamin12:02:05

meh, it’s a multichoice survey

glenjamin12:02:29

seems to just be a way to find out what people’s salary brackets are for various roles in various industries

mccraigmccraig12:02:26

"i would really like you to cram your opinion into these few dimensions so we can pretend to do some insightful analysis"

thomas13:02:01

@mccraigmccraig on a Friday afternoon?!??!?! 😱

glenjamin13:02:53

I used to mock people who were scared of friday releases

glenjamin13:02:01

then i broke a system at 4pm on a Friday with a release

glenjamin13:02:14

and had to decide whether to roll it back or stay and fix it

mccraigmccraig13:02:14

roll it back ? lol, you don't get that opportunity when you release on the iOS appstore

mccraigmccraig13:02:03

you can't roll-back on google-play either, but you can at least push a new release in a couple of hours, rather then the iOS multi-day approval delay

Rachel Westmacott13:02:11

I really don’t miss the iOS release process.

mattford13:02:08

Anyone got any good reads on the cider repl along the lines of "using it like da boss!"

mattford13:02:29

How can I get back a function def? Or list all defined functions?

glenjamin13:02:02

ns-publics perhaps

mattford13:02:24

Things like cider-ns-browser.

mattford13:02:24

I'll read the manual 🙂

maleghast14:02:42

@jonpither - I've done you an RT as well; really interesting episode of Clojure In...

maleghast14:02:22

new goal, get a job that allows me to be interviewed by @jonpither and @malcolmsparks for "Clojure In..."

mattford14:02:12

Actually I'm not going mad.

mattford14:02:39

I have this

(#function[clojure.core/partial/fn--4759] #function[clojure.core/partial/fn--4759])

mattford14:02:59

Running do over it does nothing.

mattford14:02:35

But running map (fn [f] (f)) (#func...

mattford14:02:39

Does what I expect.

minimal14:02:11

juxt looks like what you want. Do only returns the last value

minimal14:02:37

or maybe run!

mattford14:02:45

hmmm none of those work

mattford14:02:08

Actually I think my function is broken.

glenjamin14:02:02

you have a value, and you want to apply each function to it for side effects?

glenjamin14:02:11

or you want each result?

mattford14:02:24

(defn doitf
                [ x fns ]
                (map (fn [f]
                       (partial f x))
                     fns))

mattford14:02:31

That's my function.

mattford14:02:42

(map (fn [f] (f)) (doitf "matt" [println println]))

mattford14:02:28

Not sure why do doesn't.

bronsa14:02:51

how are you trying to use do?

mattford14:02:13

naively perhaps!

mattford14:02:30

(do (doitf "matt" [println println]))

bronsa14:02:39

yeah that doesn't make sense

bronsa14:02:57

(do foo) is equivalent to foo

mattford14:02:51

So foo doesn't get evaulated first and passed to do?

bronsa14:02:18

it does, but you're returning a list of two functions

bronsa14:02:31

wrapping it in a do isn't going to magically invoke those functions

mattford14:02:07

I need to remove the outer parens

glenjamin14:02:34

what’s the concrete goal? I guess this is to do with the AWS DSL thing?

minimal14:02:36

are you trying to apply a list of functions to one value?

minimal14:02:09

((juxt println println) “matt”) appears to do the same thing .

mattford14:02:48

oh that's pretty

mattford14:02:20

oh well at least I learnt about macros and quoting and lot's of stuff I don't now need

minimal14:02:10

yeah it’s good to implement some library functions yourself sometimes (if by accident)

mattford14:02:01

{:added "1.1"
   :static true}
  ([f] 
     (fn
       ([] [(f)])
       ([x] [(f x)])
       ([x y] [(f x y)])
       ([x y z] [(f x y z)])
       ([x y z & args] [(apply f x y z args)])))

mattford14:02:14

This is the def of juxt - why's it done like that?

mattford14:02:17

for performance?

mattford14:02:24

of the common cases?

mattford14:02:01

how big a difference is it?

bronsa14:02:13

lots of functions in clojure.core manually unroll the first 4 arities

bronsa14:02:23

there's a very small difference in performance

bronsa14:02:43

but because it's in functions that are so basic and used all over the place, it makes a difference

mattford14:02:29

Is do special in someway?

bronsa15:02:47

do is one of the special forms in clojure

bronsa15:02:54

it's neither a macro nor a function

bronsa15:02:30

monitor-exit case* try reify* finally loop* do letfn* if clojure.core/import* new deftype* let* fn* recur set! . var quote catch throw monitor-enter def

bronsa15:02:38

^ there's the list of special symbols

mattford15:02:47

(was trying to fix my code with a (apply do (fn1 fn2))

thomas15:02:00

euroClojure just got announced... 20-21 July in Berlin

otfrom15:02:01

given the current political climates should it be called FreeClojure ?

otfrom15:02:35

I've even heard about US citizens having problems getting into the US if they've been out of the country too long

mattford15:02:42

Remove all bindings perhaps?

mattford15:02:41

Still have the same issue with juxt in terms of evaluating the functions in the vector it creates.

otfrom15:02:11

mattford can you give us an example (or just point to a gist or repo of all the code)

mattford15:02:54

(juxt (print println) "hi")
#function[clojure.core/println]
#function[clojure.core/juxt/fn--4742]

minimal15:02:01

((juxt print println) “hi”)

minimal15:02:45

juxt just takes functions as arguments and returns another function, which you have to call with args

mattford15:02:31

trying to use it like my poor implementation of it

dominicm18:02:37

I wonder how much more expensive Euroclojure travel will be once we leave the EU.

glenjamin18:02:24

you mean on top of the massive shift in exchange rates since last june?

dominicm19:02:24

Even more, the hassle of moving within the EU, paying for visas I guess

agile_geek19:02:02

@dominicm no guarantees how it'll end up but prior to EU, UK citizens could get holiday visas pretty freely and at little or no cost. Work visa's will be a completely different thing and no doubt will incur a cost.

dominicm19:02:34

@agile_geek Do you not think it will be like holidaying in the US / Russia

agile_geek19:02:44

of course then it involved going to an embassy or a consulate which meant inconvenience and opportunity cost if you lost work. I would expect that now we have the internet that this is solved or in the process of being solved for non EU citizens anyway.

agile_geek19:02:51

@dominicm there maybe a small admin fee but doubt it'll be much. I think US admin fee is about $14?

dominicm19:02:17

I think I remember it being a time pain more than anything. Lots of admin overhead for people.

agile_geek19:02:59

Haven't been to US for 6-7 years but was all online and pretty painless then.

agile_geek19:02:58

I am more worried about whether the economy in UK holds up enough for me to have a holiday anywhere....even in UK!

agile_geek19:02:40

but at least we won't be told how curved/straight our bananas should be 😈

dominicm19:02:32

I thought that was a different group that we still had to listen to? 😄

agile_geek19:02:33

UKIP for bent bananas?

dominicm19:02:58

EU vs European Commision or something.

seancorfield19:02:08

Is May still proposing that Bill that would convert “all applicable EU law” into UK law on exit, so that businesses (and everyone) get continuity of legislation and process? (with the supposed plan to repeal things piecemeal after the fact)