This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # announcements (2)
- # architecture (83)
- # asami (2)
- # babashka (49)
- # bangalore-clj (2)
- # beginners (235)
- # braveandtrue (1)
- # calva (17)
- # clojure (109)
- # clojure-australia (5)
- # clojure-czech (5)
- # clojure-dev (24)
- # clojure-europe (17)
- # clojure-germany (2)
- # clojure-nl (3)
- # clojure-serbia (13)
- # clojure-spain (1)
- # clojure-spec (1)
- # clojure-uk (20)
- # clojurescript (3)
- # community-development (34)
- # conjure (10)
- # crux (4)
- # cursive (21)
- # data-science (1)
- # datahike (1)
- # datalog (1)
- # datomic (12)
- # etaoin (3)
- # events (2)
- # fulcro (13)
- # graphql (8)
- # heroku (2)
- # lsp (58)
- # malli (32)
- # membrane (24)
- # off-topic (63)
- # parinfer (2)
- # pathom (14)
- # portal (14)
- # re-frame (16)
- # reagent (50)
- # releases (1)
- # rum (1)
- # shadow-cljs (10)
- # sql (6)
- # startup-in-a-month (1)
- # timbre (2)
- # tools-deps (61)
There is a lot in Java already to build upon. There is a sweet spot for a language, being small enough to be stable, but not so small you need a lot of additional libraries for it to be practical. Clojure seems to do this well.
I would be interested to see Rich Hickey’s take on designing cloud services 😬 Currently learning GCP at work, it’s so much stuff, I wonder how much of cloud’s complexity is incidental
There are some thoughts on cloud in Rich's talk on datomic ions: https://github.com/matthiasn/talk-transcripts/blob/master/Hickey_Rich/DatomicIons.md
well, there are so many sub-services that must interop inside a cloud platform, complexity grows organically. That gets even worse when you want to respect backward compatibility (and you do want that)
when cloud services talk about lambda/functions, I just feel that they took Erlang and put fancy UI on top of it. In erlang you can replace a module without shutting down whole app. I wish Clojure come up such feature.
that is something we do in repl. usually apps are packaged as jar/war. but in erlang a single file (module) can be reloaded in production
clojure provides a repl in clojure.main, you can load new definitions in your process if your ops flow is OK with it
I've done it in the distant past, but in recent jobs we decided reproducibility (strict mapping from identifiable artifact to code) was more important so haven't used the feature
But by itself hot code reload is not used much, even in Erlang. Much simpler to just restart the whole app.
basically you create a vm profile for your "function", with all it's deps, start the service, snapshot it and when invoked you just run from the snapshoted state
Erlang hot-core reload is actually much worse than Clojure, because you can't really do it in a dev environment AFAIK – you need a proper OTP release and writing migration handlers for existing state etc, so I think hardly anyone uses it "just because it's there". For hardcore Erlang users it's a great option for deployment though.
Working on a project at work where we have a number of js file that are named like foo.12.0.0.js, bar.27.0.0.js etc and each time you change you these files you have to bump the version number...
He says it's because the browsers at the sites won't pick up changes to the js unless the file name changes and users won't see changes after deploy without a hard refresh.
In HTTP 1.0 days we used to append timestamp or version number to js url in query string
And then of course update all the files that reference those js files to reference the new file names.
Looking for recommendations on libraries for building documentation and blog pages. Preferably something I can integrate with Reagent!
https://clojureverse.org/t/what-is-your-favourite-way-to-document-your-programs/7353 this recent thread on clojureverse discusses a lot of options for docs
I started using https://www.mkdocs.org/, but I'm not a fan because 1. it introduces a non-Clojure project to our stack, and 2. it's hard to integrate cleanly with our public-facing SPA (Reagent) website
Looking for examples of Clojure projects that use Makefile or something similar to list tasks that are commonly invoked. You may reply in a thread.
Not sure if this helps, but antq uses a https://github.com/liquidz/antq/blob/main/Makefile
Thanks. a Makefile with almost all tasks "phony", same as clojure-lsp: this is what I see a lot
Can you be more specific about what you're looking for? I use Just for one of my work projects and I've been quite happy with it.
Thanks. So this confirms my hypothesis that deps.edn invites to using tools like make or just because nobody can remember all these invocations from the top of their head
I just remembered I use a Makefile for Sigel: https://github.com/eerohele/sigel/blob/master/Makefile But it's the same story as with the other ones: just phony tasks.
A Makefile equivalent is also useful in CI: if the command for one of the tasks gets updated, it's enough to just update it in one place.
Exactly. So with bb's task runner, this would become:
bb :fix-fmt bb :bump-deps bb :clean:test
Anyone know android phones? I'm having a strange problem with my phone and my headphones. When the headphones are plugged in and their is music playing and the headphones jiggle a little in the headphone jack the music pauses and the lady in my phone tells me the time. I have no idea what is going on or why it's doing this. I assume the headphone jack is slightly damaged over time but how this translates to telling me the time, I can't fathom.
the headphone port can register certain connections between pins as button press events
the jiggle of a plug in a broken port can create spurious connections between pins
speaking of "the lady in my phone" my galaxy note 9 has a dedicated "bixby button" and in the current OS there's no way to reassign or disable the button, so I have a dedicated physical switch on the device whose purpose is to make an annoying assistant that I never want to use wake up and talk to me
I had some stupid Google assistant thing on my TV. I was watching an episode of Joe Rogan and his guests said something like "Ok, Google is blah bnlah", it stopped the episode and was waiting on voice input... Dumb!
But I guess people are using these voice assistants. I jsut feel a bit daft talking to my phone / tablet / tv
My Android phone often wakes up and asks if it can help, while we are just watching TV. I haven’t managed to train Google to only respond to my voice 😐