Fork me on GitHub
#clojure-uk
<
2018-01-22
>
thomas08:01:06

moin moin morning

guy10:01:13

Happy Monday 😄

guy10:01:19

Morning all 😄

maleghast10:01:52

Morning All! 🙂

maleghast10:01:16

How’s Clojure-Land today?

yogidevbear11:01:06

No reason to complain @maleghast

maleghast11:01:20

Glad to hear it 🙂

yogidevbear11:01:09

Is anyone here actively using Lacinia for GraphQL? I've been working through the official tutorial. Looks pretty cool

guy11:01:23

Yeah we’ve been using it too, i find it really great

yogidevbear11:01:33

I got to the part where GraphiQL is being integrated

yogidevbear11:01:00

The doc discovery interface on the right hand column is very nice

yogidevbear11:01:45

The next portion of the tutorial is going to bring in Stuart Sierra's component library.

maleghast11:01:12

This is encouraging - @jonpither Are you / you guys using it on systems where the storage back-end is Datomic?

maleghast11:01:49

This is even more encouraging

chrjs12:01:09

Excited to be spiking on datomic these next couple of days. But first, got a queue of yak yak yak that need shaving.

thomas13:01:52

I can send an MQTT message to my program and I decode (parts of) the connect message and I can turn into a Clojure map and call a Clojure function and print it...

maleghast13:01:16

@thomas - That sounds awesome!

maleghast13:01:31

What’s MQTT - did I miss a conversation / thread?

thomas13:01:36

I have achieved something... (but no real work as of yet today 😨)

maleghast13:01:57

I know the feeling all I’ve done is attend a conference call and book some flights, accom and parking.

thomas13:01:03

Message Queue Telemetry Transport... a protocol used a lot in the IoT space

yogidevbear13:01:17

Sounds like fun

maleghast13:01:20

Oh cool! (No really that’s exciting and cool)

thomas13:01:53

{:client-id , :protocol-name MQTT, :protocol-version 4} is the output at the moment

thomas13:01:12

(and loads more System.out.printlns of course

thomas13:01:43

I guess now I have to figure out how to send back the CONACK message 😉

thomas13:01:26

and I suspect my code is rather inefficient... Java NIO is confusing to say at least....

maleghast13:01:56

Blimey… Are you not using an MQTT library..? Of course I am assuming that there is one…

thomas13:01:50

nope... I am using the http-kit as an example on how to do NIO... and build a (very very simple) broker around that.

thomas13:01:00

has been done before of course. nothing new here.

thomas15:01:47

well... I can get send back a hardcoded CONNACK message: received CONNACK... so a but more progress this afternoon....

thomas15:01:21

but for some strange reason my clojure handler doesn't seem to return anything to the Java side of things.... :thinking_face:

maleghast15:01:39

Well I applaud the desire to do something “low-level”, but why are you punishing yourself in this way, @thomas 😉

thomas15:01:01

because I like pain?

maleghast16:01:18

Oh, that explains it 😉