This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-09-07
Channels
- # architecture (35)
- # babashka (9)
- # beginners (31)
- # biff (15)
- # calva (8)
- # catalyst (3)
- # cider (7)
- # clerk (4)
- # clj-kondo (24)
- # clj-yaml (10)
- # clojure (58)
- # clojure-europe (65)
- # clojure-japan (1)
- # clojure-nl (1)
- # clojure-norway (89)
- # clojure-spec (1)
- # clojure-sweden (1)
- # clojure-uk (8)
- # clojurescript (14)
- # cursive (3)
- # datahike (1)
- # datomic (29)
- # emacs (8)
- # graalvm (20)
- # graphql (1)
- # gratitude (2)
- # helix (6)
- # hyperfiddle (65)
- # jobs-discuss (7)
- # leiningen (1)
- # lsp (6)
- # malli (14)
- # missionary (12)
- # nrepl (8)
- # off-topic (24)
- # polylith (29)
- # reagent (14)
- # sci (14)
- # shadow-cljs (6)
- # spacemacs (10)
- # sql (4)
Hey.
I'd like to know what is the best way to modify the installation script to install dependencies.
For instance I'd like to install the dependencies once when I do bb deploy
and then I'd not like to do it again on consecutive calls :thinking_face:
I'm completely fine if I could run my own shellscript/babashkascript during deploy :thinking_face:
I can also run my initialization when the app starts. But I thought whether I should do something better, if possible.
what kind of dependencies do you mean? The ones installed by server-setup.sh? or libraries in deps.edn?
assuming you mean server dependencies--you can just ssh into the server and install them by hand. And then be sure to edit your server-setup.sh
file so it installs the dependencies, in case you ever need to provision a new server.
> And then be sure to edit your I did this but this seems inelegant. But well... it works. :man-shrugging:
gets the job done 😉
First time hearing of Biff. Thanks for https://clojurians.slack.com/archives/C8NUSGWG6/p1694104169560209. Phase 1 of my project is a chatbot interface to a set of evolving backend knowledge graphs. https://en.wikipedia.org/wiki/Word_embedding# and connection to one or more LLMs is mixed in. Based on that brief description, does investigating Biff make sense? Up to this point, I’ve been assuming a full-stack, Datomic/Ion system.
Hi! Yeah, it sounds like something that Biff would potentially be a good fit for. The main thing you'll probably want to do is play around with XTDB a bit to get a feel for it. It has Datalog graph queries similar to Datomic, though the way you store data is fundamentally different (documents instead of datoms). I think at one point I was using XTDB for storing word embeddings from fastText--worked fine for me, though it wasn't a huge system in terms of load or anything 🙂

I'm not sure if any of them are interactive, but there are some tutorials here: https://www.xtdb.com/learn Probably the best way to start is to try out an in-memory node and play with it in the repl prompt:
$ clj -Sdeps '{:deps {com.xtdb/xtdb-core {:mvn/version "1.23.1"}}}'
user=> (require '[xtdb.api :as xt])
nil
user=> (def node (xt/start-node {}))
#'user/node
You can also start a new biff project and then there'll be a repl.clj
file that has some example code for submitting transactions and running queries. Though note that Biff has its own https://biffweb.com/docs/reference/transactions/ that wraps XT's transactions--probably best to learn plain XT first.Cool, happy to answer any other questions you run into.