This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-01-19
Channels
- # announcements (19)
- # asami (9)
- # babashka (26)
- # beginners (87)
- # biff (23)
- # calva (6)
- # clerk (7)
- # clj-kondo (3)
- # cljsrn (3)
- # clojure (115)
- # clojure-belgium (1)
- # clojure-berlin (1)
- # clojure-europe (31)
- # clojure-gamedev (5)
- # clojure-nl (2)
- # clojure-norway (8)
- # clojure-uk (2)
- # clojurescript (43)
- # clr (23)
- # datalevin (1)
- # datomic (14)
- # dev-tooling (23)
- # fulcro (38)
- # graphql (1)
- # gratitude (1)
- # jobs (1)
- # lsp (30)
- # off-topic (7)
- # pathom (25)
- # portal (21)
- # quil (6)
- # releases (5)
- # remote-jobs (1)
- # shadow-cljs (34)
- # sql (5)
- # tools-deps (6)
- # xtdb (13)
moorning!
morning ☕++
Morning! I've just deployed a tiny #C68M60S4F webapp to http://Fly.io Great tooling, smooth sailing. But the amazon Correto alpine based image has over 400MB and the app run out of memory b/c JVM doesn't expect the OS only has 256MB ram 😭
does explicitly setting your JVM -Xmx
not help ?
https://medium.com/@jasebell/preventing-java-maxing-out-cpu-in-docker-containers-995a450604f1 I use these a lot in any of my Java container things.
yes, I think it did, thanks
👋 It's always fun to wake up and then see a nice blog post like this: https://rattlin.blog/bbgum.html
so i have a new version of a lib which is essentially a rewrite - it provides roughly the same API function, but the dependencies are different and the datatypes it uses to provide the API are different the old deps and new deps play together perfectly nicely - so should i leave the new version of the lib in the same namespace, thus forcing all-or-nothing upgrades, or should i move it to a new namespace, so the new version and old version can co-exist in the same vm and incremental upgrades are possible ?
does anyone know if it's possible to use with-redefs
to decorate a function? I'm trying it and hitting a stack overflow, because of course when it reaches the inner/decorated/original version of my function, that is redeffed as well
turns out it's a simple as binding the var you're redeffing to a local in a let
block, and then inside that let
block you can with-redefs
and refer to that local inside your redeffed function to your heart's content.
Since you’re dealing with redefs, be aware of laziness. If you’re resolving lazy sequences outside the scope of the redef, you’ll be using the original function. I heard this from a friend…
ah, yes
thank you for the reminder
it's not an issue in this case, but definitely something to be aware of
Good morning