Fork me on GitHub

Thanks guys, I fixed this problem. Because my book example code deprecated. So many problems. I got answer in #sql


So, what do I need to do or precondition, in order to connect a repl to a running program?


I spent 30 minutes on that famous repl vimeo, which didn't provide many clues 30 minutes in.


> Covering this topic extensively would take us too far for the scope of this guide On first look, really very disappointing, compared to the hand-wavy sweeping statements of perfection at Architect's hubris?! or is it really simple beyond that awkward piece of documentation?


Any great example workflow attaching to a running program?


@U1YTUBH53 I'm not quite sure what you're looking for? If your application starts a REPL server (either an explicit nREPL server process started by your application, or a Socket Server REPL started by Clojure via the JVM options), then you can connect to it and work via the REPL...


The Guide is hinting at things like Component and Integrant for structuring your application in a way that makes it easy to start and stop your application within the REPL -- that's not the scenario you're asking about (connecting to a running program).


(and, yes, it lists those and other libraries at the end)


Happy to help if I can better understand your question...


Thanks @U04V70XH6 I just saw this now! I should probably learn what’s the Socket Server REPL feature


Thanks in advance!

Maksim Gatilin11:06:40

Is anyone here? I'm trying to use vscode for development but I can't configure repl...


This question might be better asked in #vscode

Maksim Gatilin14:06:35

Thank you. Btw, I decided to use Cursive:slightly_smiling_face:


hmm.. I've never used that. I use VSCode for most all stuff... at least if I don't really need an IDE. I'll have to check that out... Although I also am running Clojure in a docker container right now.. so since I don't have the toolchain installed locally, not sure how much it would be of assistance.


Hi, if I try to slurp from a URL that moved the repl "hangs" for a long time. How do I interrupt that without killing the repl?


hi there, is it a problem to have a namespace called myproject.core in a file with the path myproject/src/cljs/myproject/core.cljs? I am having problems with my luminus project based on leiningen.


@magra isn't ctrl+c enough?


@funyako.funyao156 in a clj repl it kills the repl, in cider it does nothing, in lein repl it works. Maybe my setup is broken.


@a.maksadbek may I recommend to you Atom with proto-repl, instead?


how do I add a hashmap to a vector? so I can get [{:foo "bar"}]?


vector is an atom.


used (swap! hashmapthingie into {:foo "bar"}) but got [[:foo "bar"]].


when I expected [{:foo "bar"]].


instead of into


side question... a vector of hash-maps is familiar because it's like json... but am I better off with something else in clojure?


depends on the use case having vector with hash-maps is totally valid


As I've been looking at clojure and how to pitch it to my colleagues, some of the things they bring up are "Well I've never heard of it being used in production, is it reliable? It doesn't have any big corporations backing it like Java. Why would we switch when we already know Java?" Does anybody have any examples or anywhere I can look for these answers?


These are the easier questions for me and often a lunch and learn / demo helps explain away most of these issues after you’ve familiarized yourself enough with the language to be the ‘expert’. The harder questions come from people who know just enough about the language to form a counter productive opinion such as, “It’s just another lisp and there are too many parentheses so I don’t like it.'


People who have a genuine interest in learning new things often will tag along in your desire to learn it. me> Here is a problem that I have been having with Java. I was learning clojure and found an interesting way to think about this problem. them> That’s interesting, I’m not familiar enough with it to understand. me> Goes through the details to familiarize them with the solution and they pick it up from there.


wasnt there also a talk by boing or airbus where they used clojure on their flight systems?


oh yeah, there was


and a brasilian bank that build on the full clojure stack with datomic at the backend, not sure if there was a talk, but I read about them some time


I guess if you can build financial products and avionic systems on the clojure stack you can build almost anything.


I've got working, but I'm trying to figure out how I could send a message from the repl connected buffer to the webpage, as opposed to from the webpage input.. any thoughts?


I want to be able to type a form into the buffer, evaluate it, and see the webpage change.


it would seem to be a key part of dashboards, say, that update when things change on the server.


all I can think is that I somehow defonce the WebServer so I can send messages to it in the buffer, but I'm not sure what to do after that or how I'd interact with it.