This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-01-22
Channels
- # announcements (5)
- # aws (38)
- # aws-lambda (21)
- # babashka (45)
- # beginners (87)
- # boot (1)
- # calva (32)
- # cider (23)
- # clara (7)
- # clj-kondo (41)
- # cljs-dev (29)
- # clojure (145)
- # clojure-europe (6)
- # clojure-italy (12)
- # clojure-nl (4)
- # clojure-spec (39)
- # clojure-uk (45)
- # clojurescript (171)
- # copenhagen-clojurians (4)
- # cursive (14)
- # datomic (48)
- # docker (6)
- # figwheel-main (2)
- # fulcro (54)
- # jackdaw (1)
- # jobs (1)
- # kaocha (3)
- # leiningen (7)
- # luminus (6)
- # malli (2)
- # off-topic (51)
- # pathom (8)
- # quil (20)
- # re-frame (14)
- # reagent (1)
- # reitit (2)
- # remote-jobs (1)
- # shadow-cljs (39)
- # tools-deps (1)
- # vim (12)
- # xtdb (5)
Some people here?
That not the same. I want inline Clojure in my Cloudformation 🙂
At least I think it's not the same
As far as I know I cannot do inline code when I use normal Clojurescript https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html#cfn-lambda-function-code-zipfile
So I need a custom layer that is compatible with the standard node versions and add the sci package. In the inline code i will do something like
sci.eval-string("my-pr-str-ed clojure code")
The problem with normal Clojure is that there is no support for inline functions. With a normal Clojurescript layer I'm not sure, but than your layer will become really big to have it support eval
@U1G5P6G0L do you agree or do you have different thoughts?
@U1G5P6G0L Hi Juha, I've been looking at Lambdas in Clojurescript on Node.js. Interested to hear more about your approach.
@U4L1N279N here’s a small example project with CLJS using shadow-cljs and Serverless framework. https://github.com/vharmain/serverless-healthcheck
That’s my current ‘goto setup’ with lambda and cljs. It’s relatively simple and I’m most happy with the small bundle sizes.
@jeroenvandijk I don't think inline code is supported for non node.js/python lambdas
@U050ECB92 You are right. Therefore I want to use a node.js lambda with sci 🙂 I've been able to add a Layer to an inline lambda, but I need to figure out how to call the other layer. No success yet. I'll create a normal layer-ed lambda first. In the interface the look the same so I'm still positive
If sci works, self-hosted clojurescript would work as well I suppose
@U050ECB92 After endless trial and error how to generate an AWS nodejs package... I can confirm this inline idea works! 🎉
I guess the story here is the same as for Java? Somebody has surely blogged about that... :)