This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-05-21
Channels
- # announcements (2)
- # aws (1)
- # beginners (172)
- # boot (3)
- # calva (19)
- # cider (18)
- # clj-kondo (5)
- # cljsrn (18)
- # clojure (47)
- # clojure-europe (9)
- # clojure-finland (7)
- # clojure-italy (3)
- # clojure-nl (15)
- # clojure-spec (20)
- # clojure-sweden (2)
- # clojure-uk (72)
- # clojurescript (45)
- # cursive (42)
- # datomic (6)
- # duct (4)
- # emacs (4)
- # expound (48)
- # figwheel-main (7)
- # fulcro (64)
- # graphql (8)
- # hoplon (9)
- # hyperfiddle (1)
- # jackdaw (8)
- # jobs (4)
- # jobs-discuss (61)
- # klipse (5)
- # leiningen (6)
- # off-topic (72)
- # pathom (2)
- # planck (11)
- # re-frame (1)
- # reagent (3)
- # reitit (16)
- # remote-jobs (17)
- # ring-swagger (3)
- # shadow-cljs (49)
- # spacemacs (12)
- # sql (3)
- # tools-deps (124)
- # vim (64)
- # xtdb (4)
måning
morning
I like how pretty much every baddy in Scooby doo was some kind of capitalist rent seeker
it’s a good way of teaching kids that the villain is likely to be the local petty gentry
somethings added to s3, it triggers a put event, goes to sqs which triggers a lambda. I found it to be ok-ish, you had to implement some java method to have it running, i think it was a handler or something. Also you had to be careful about the deps for the project as well, as theres a soft 20mb limit iirc for the jar. It basically made me feel like you should write the lambda in python or something else.
Thank you. The team has started to look to use lambda heavily, and they're taking about doing it in python
But, since I'm the only "lisp-er" here, then I don't think they would be interested in my ramblings about clojure 😉
for example if you are just doign some data transformations etc, its worth just giving it a go, for your own personal knowledge
- have some sort of transformation function - create lambda handler - have some validation - test on aws The hard part is really testing locally and all the config set up, theres localstack i think? which is like aws but emulated locally
@dharrigan for lambda, use cljs
quicker runs
butttt
you get that sellotaped together vibe that a lot of cljs has, especially server side
and I hope you like promises and node interop
honestly I’d be hard pressed making the argument against doing it in python
for the largest serverless project I did, it was functional python in a very lispy style
Yes, that's the thoughts. Right tool for the job. I think the team will use Python 😉
most AWS APIs return lists, so the pattern of functions that operate over a single item comp’d together into list functions makes sense
^ you can get v functional with it and then the unit testing is ace, you can test yr individual functions as well as all the compositions
then the only thing you need to integration test is the lamda handler itself
which is kind of like an i/o form, or a main function
that just sequentially executes yr fns
(aside - probably you can tell from this how much I miss the threading macro when I write python lol)
I've done java clojure on lambda, that was slow. But I'd strongly consider graalvm if I was doing it today.
^ this is also a fair point
you could look into lambda layers if you’re on AWS
(tbf there’s also a lambda layer for haskell)
How does that work for lambda? can u just specify to use graalvm instead of jvm? :thinking_face:
not tried it so YMMV but you’d just compile it into a native executable and run that as the lambda
biggest compatibility with graal native code is it can’t use reflection. So you wouldn’t be able to use amazonica.
and haskell’s monadic i/o actually makes a lot of sense when composing together AWS lambdas, but I digress…
https://github.com/envoylabs/cljs-serverless-workshop <-- here’s the code for the workshop I ran last night if you want something to poke
aaand here’s the instructor notes. Shouldn’t take more than a few mins to have something deployed if you have AWS creds configured https://gist.github.com/the-frey/767a9c403e691df9915e3ecf04f05594
but like I say you might have a tough time arguing against python 🙂
@dharrigan you triggered the self plug ;) maybe helpful https://labs.uswitch.com/how-we-use-aws-lambda/
https://github.com/FieryCod/holy-lambda this looked pretty cool (haven't used) builds on the above ^
that’s a nice project by the look of it
portkey is quite cool as well, if you haven’t seen it
yeah it’s wild
here is a video from last years Dutch Clojure Days from someone who used Lambda and clojure https://www.youtube.com/watch?v=kXb1DHw632s
is it possible to use REBL with a cljs repl?
anyone done this??