Fork me on GitHub
#tools-deps
<
2020-03-02
>
seancorfield00:03:08

Ouch. Yeah, you don't have much of a choice I guess. Tho' I thought I'd read about a Beam-related library that avoided AOT recently?

sam02:03:30

Thanks for this! We have looked into existing clojure libraries for Beam in the past, but I wasn’t aware of this one. I’ll definitely have to check it out further.

seancorfield03:03:43

It's pretty new. I can certainly understand the authors' desire to avoid AOT for this 🙂

sparkofreason14:03:42

I've been using thurber, so far very successfully. Aaron has also been very responsive to issues and questions. It's still a bit raw, but useable, and I like the philosophy of keeping Clojure wrappers of Java APIs as thin as possible. Makes it a lot easier to figure out how to go from Java-based docs etc. to the Clojure equivalent.

seancorfield00:03:34

> AOT Nothing Fully dynamic experience. Reload namespaces at whim. thurber's dependency on Beam, Clojure, etc versions are completely dynamic/floatable. No forced AOT'd dependencies, Etc.

fabrao19:03:12

hello all, using deps.edn is there any way to load dependency dynamic as boot does?

ghadi19:03:35

what does that mean @fabrao?

borkdude19:03:47

he might be looking for the add-lib stuff

fabrao19:03:49

Humm, I think it´s what is I want, let me check

borkdude19:03:21

it is in a branch, not officially out yet, but might be later

fabrao19:03:33

so, for now only include new lib in :deps to include new lib and restart repl?

seancorfield19:03:39

@fabrao My dot-clojure file has an alias that brings in a recent add-lib branch of tools.deps.alpha and notes on how to use it to dynamically load new libraries into your REPL without a restart.

seancorfield19:03:04

I use that quite a bit to load extra libraries while I'm working.

seancorfield19:03:17

You can see how I use it with next.jdbc to bring in all of its test dependencies into the REPL while I'm working on other projects https://github.com/seancorfield/next-jdbc/blob/master/test/next/jdbc/test_fixtures.clj#L133-L149

fabrao19:03:02

I have to change it to use with cider

practicalli-john11:03:00

To use a deps.edn alias with Cider (Emacs), either use the universal constant to edit the jack-in command or create a .dir-local.el file and set the cli to run an alias https://practicalli.github.io/blog/posts/cider-jack-in-to-clojure-cli-projects-from-spacemacs/

fabrao19:03:09

it seems that it works only in REBL enviroment

seancorfield19:03:59

No, it works in a plain REPL.

seancorfield19:03:26

(in fact, it specifically does not work in REBL because REBL does not use a DynamicClassLoader)

seancorfield19:03:22

You don't need to change anything -- it's pure Clojure and works with any plain REPL, as long as you had the add-lib branch dependency on your classpath when you start the REPL.

seancorfield19:03:30

I just start a REPL with clj -A:deps (and other options for my use). If you're using Leiningen, you'd need something that pulls in Git dependencies (I do not use Leiningen).

alexmiller20:03:17

I thought we fixed the rebl thing?

alexmiller20:03:55

maybe I just filed tickets to fix it generically in prepl and socket repl

alexmiller20:03:01

don't remember now

ghadi20:03:03

yeah tickets filed for DCL

ghadi20:03:10

one ticket, I think

alexmiller20:03:10

yeah, it's in the chute for 1.11

practicalli-john11:03:00

To use a deps.edn alias with Cider (Emacs), either use the universal constant to edit the jack-in command or create a .dir-local.el file and set the cli to run an alias https://practicalli.github.io/blog/posts/cider-jack-in-to-clojure-cli-projects-from-spacemacs/