Fork me on GitHub
#clojure-uk
<
2018-07-03
>
alexlynham08:07:34

goooooooood morning

alexlynham08:07:28

once I've got this serverless app I'm building done, I might try and wrap all the boilerplate (inc the repl setup etc) into a neat luminus-style template so it gives a neat bootstrapper and project structure for serverless cljs apps

alexlynham08:07:12

the cljs-lambda stuff is cool but if I had to bring somebody else up to speed that maybe hadn't seen it before... well, it probably needs to be a bit more opinionated. Luminus level tho, not Rails-level

alexlynham08:07:36

thanks for joining us for another edition of #alexsprecoffeethoughts

simple_smile 12
alexlynham08:07:52

I've mainly used figwheel for cljs development in the browser - for cljs repls are people using that, or piggieback, or...?

otfrom08:07:15

a luminous for serverless sounds really useful

otfrom08:07:21

would this be cljs serverless or clj?

guy08:07:53

Morning!

hyankov08:07:42

Morning everyone

alexlynham09:07:46

@otfrom cljs for now because it's leveraging the serverless framework (http://www.serverless.com) which is node

alexlynham09:07:01

plus no cold start penalty

maleghast11:07:18

@alex.lynham - Oooh, I like the look of this...

maleghast11:07:07

There are a bunch of use-cases in the platform I am slowly chipping away at by myself (rest assured there will be clear and active / almost boring in its repetitiveness, recruiting going on in here when I am in a position to hire people) that would really fit well into the Lambda / Serverless paradigm, and being able to implement them in cljs instead of node or Python would be dead good...

maleghast11:07:17

Morning everyone, btw 👋

👋 8
alexlynham11:07:41

@maleghast yep, I've been using that. I've pushed a couple of updates to the template. I think the maintainer wants it super-lean and unopinionated so going to work out whether the best thing is a new lein template that inherits stuff, or a fork or what

alexlynham11:07:14

I don't want to reinvent the wheel, but I want a dev env immediately, with some sensible repl defaults and a folder structure à la luminus

alexlynham11:07:18

it's a great plugin though

alexlynham11:07:26

the maintainer is a legend for making it

alexlynham11:07:00

hopefully I'll have some time this weekend to hack and think (maybe even break out the hammock if the weather holds)

maleghast12:07:34

@alex.lynham - Sounds great, I have to admit 🙂

maleghast12:07:48

(was at lunch, tactically sans phone or laptop)

alexlynham13:07:51

what I'm trying to do is put the backend on lambda and then use re-frame for the front so it's essentially near free to host a mid-sized app with a nosql backend (dynamodb, probably)

alexlynham13:07:34

been doing python/lambda at work and it's much more painful than my spare time cljs/serverless setup (granted, that's partly big org governance)

😱 4
mccraigmccraig14:07:02

hmm. i wonder if i could make my cassandra client work on cljs+dynamodb... that might be interesting

👍 12
alexlynham14:07:47

> that might be interesting you can say that again

mccraigmccraig14:07:43

it would take some real work... the fundamental abstraction ( a cats promise-monad ) is using manifold-deferred on clj, but works fine with bluebird promises on cljs, but there is a bunch of stuff around streaming result-sets and stream-joins which uses manifold-streams which would need porting to core.async, and i'd need to have a look at the dynamodb model to see how well the cassandra abstractions we support map on to dynamodb abstractions (e.g. LWTs for unique-key maintenance)

alexlynham14:07:47

:wind_blowing_face: 😄 ^ that's it going right over my head. Sounds v cool though 🙂

alexlynham15:07:18

one other point I guess about serverless is that the node vs clj (JVM) argument is a lil like python vs scala in the spark world, if you're scaling resources horizontally at the platform level, most of the work is being done at that abstraction so runtime speed doesn't matter so much maybe (although tbf node benchmarks are fast now)

mccraigmccraig15:07:05

another thing you might like if you are looking at serverless @alex.lynham is https://github.com/employeerepublic/deferst - it does integrant / component like stuff, but is non-blocking, i.e. supports object graphs with factory-fns delivering promises, as is common in js-land

alexlynham16:07:08

thanks for the link!

alexlynham19:07:33

had some time to look at the code a bit more, and actually it might be as simple as adding a profile like in luminus +piggyback or what have you and then compiling with lumo to use the serverless-offline node plugin

dominicm20:07:53

Odd question for this channel: has anyone ever owned a kitchen thermometer? We mostly cook chicken and stuff in the oven from a packet, but we had a bad experience tonight and a few other times with food that's not cooked quite right. I started looking into it, and it seems that a thermometer might be able to tell us when our chicken burger is actually cooked?

guy20:07:51

u can get like a meat one

guy20:07:57

let me find it

guy20:07:41

tbh we just have one that is a spike basically

guy20:07:46

u just stick it in the meat etc

dominicm20:07:50

@guy am I right in saying that I'm just waiting for it to hit a particular temperature? Or am I waiting for a temperature for an amount of time?

guy20:07:57

i’m not an expert cook i’m afraid but just google it and u will find ur answer

minimal22:07:06

The instant temperature that chicken is safe is around 74 C depending on the part. But you can do lower temps for longer time. 63 C sous vides is pretty awesome. See this table https://www.seriouseats.com/2015/07/the-food-lab-complete-guide-to-sous-vide-chicken-breast.html#safe

dominicm06:07:28

That guide is epic. I skipped this because I was cooking "Sous Vide" (which I had no idea what it was)

minimal09:07:19

Yeah Kenji’s guides are great. If you aren’t doing sous vides then a Thermopen measuring for the instant pasteurisation temperature is what you want. Or if you are doing a whole chicken then an oven meat probe with alarm is great.

dominicm09:07:48

I just don't want to eat raw chicken burgers 😂

dominicm09:07:06

(and figured there's an optimal point)

minimal09:07:41

If it’s breast then 74 should do it. If it’s thigh then 77.

dominicm09:07:06

Awesome, thanks for clarifying for me 🙂

👍 4