Fork me on GitHub
#hyperfiddle
<
2024-05-27
>
eunmin03:05:43

Folks, I created an LLM library called https://github.com/constacts/ragtacts. I made an LLM chat playground example using electric. I received a lot of help from this channel, especially regarding file uploads. clojure-spin https://github.com/constacts/ragtacts/tree/main/examples/playground

6
🎉 2
grounded_sage09:05:43

I notice that sometimes when I update a .clj file I have to restart electric to get access to the new function I created. Is this just a requirement or is there something I can do to fix this.

xificurC09:05:22

reload-on-save only works on cljc files, shadow doesn't watch clj files. Do you eval the clj file in a clojure REPL?

grounded_sage09:05:01

Yes but I haven’t figured out how to connect the REPL to electric since IC update

grounded_sage09:05:18

This is good to know on how to get the reload on save even if I just do that for development.

xificurC10:05:41

cljc files autoreload clj files user needs to reload through the REPL. Setup of that is IDE dependent

xificurC11:05:52

e.g. me as a doom emacs user I start the REPL through the setup we used to have in the readme, https://github.com/hyperfiddle/electric/pull/6/files. Then I type (dev/-main) in the REPL to start shadow and the app

grounded_sage11:05:53

I use calva. Used to do a connect to REPL sequence where I chose generic and typed in 9001 if I remember correctly but that stopped working and I was too lazy to check here on how to get going again

Vincent17:05:17

if i name my .clj into .cljc i get free reload hax? can i just wrap everything in one giant reader conditional? lol

grounded_sage18:05:59

Yea the reload thing and how to connect to repl both server and client would be nice to have documented somewhere I feel. Even if not on main repo.

xificurC18:05:56

It would fit in the starter app. PRs welcome

Vincent20:05:56

I would write a description if I knew how to do it

grounded_sage03:05:28

Yea I also don't know how to connect a repl since the latest release

braai engineer17:05:09

What's the fastest JDK for local dev? Oracle Java?

henrik19:05:56

Just learned of https://braid.org, interesting stuff.

👀 2
Vincent00:05:00

I saw that and immediately thought of electric clojure . i think having the "data fresh and accurate since this branch id" will be bandwidth saving and it's hard to believe the internet has existed so long without something like this

Dustin Getz11:05:06

These document sync technologies are used in applications like Google Docs and other multiplayer editors, the reason we don't see them in other domains is that they are document centric not relational/database centric and thus have scalability issues

henrik06:05:34

As I understand, they’re not particularly about document sync: “The Braid Protocol allows multiple synchronization algorithms to interoperate over a common network protocol…” Maybe I’m misunderstanding, but it sounds more like it’s about conveyance than any particular sync strategy.

Vincent11:05:19

have you played the video game Braid? you can "reverse time" and the music plays in reverse.