Re: What is the minimal Emacs config for practical Clojure development?

2018-07-09 Thread Sonny To
Not sure what you mean by minimum but here's instruction on setting up a dev environment that works for me http://lambdakids.stigmergy.systems/2018/6/6/hello-world.blog my emacs init.el is at https://bit.ly/2z3gtyi On Monday, July 2, 2018 at 6:41:23 AM UTC+3, Austin Haas wrote: > > I don't want

Re: What is the minimal Emacs config for practical Clojure development?

2018-07-08 Thread Austin Haas
Quick update. After a reboot, my REPL starts up much faster (~3-4 seconds) than I reported above. Sorry for the noise. I started adding CLJS support to inf-clojure: https://github.com/austinhaas/inf-clojure/tree/cljs Some of the problems that I reported above were due to inf-clojure only par

Re: What is the minimal Emacs config for practical Clojure development?

2018-07-07 Thread Austin Haas
I've determined that the previously mentioned errors are related to incompatibilities with inf-clojure and clojurescript. I filed a bug, and a workaround, with inf-clojure here: https://github.com/clojure-emacs/inf-clojure/issues/150 -- You received this message because you are subscribed to t

Re: What is the minimal Emacs config for practical Clojure development?

2018-07-07 Thread Austin Haas
I shouldn't have said that two of those errors were the same. They're different, but they both mention unquoted symbols. Monroe clojure.lang.ExceptionInfo: Arguments to require must be quoted. Offending spec: (symbol (namespace (quote clojure.repl/pst))) at line 1 {:file "", :line 1, :column

Re: What is the minimal Emacs config for practical Clojure development?

2018-07-07 Thread Austin Haas
I tried this, changing node to browser, like so: clojure -J-Dclojure.server.repl="{:port ${1:-} :accept cljs.server.browser/repl}" -cljs-canary -m cljs.main -re browser -r That starts a REPL in my terminal, but when I try to connect to it from Emacs, using C-c M-c RET localhost RET ,

Re: What is the minimal Emacs config for practical Clojure development?

2018-07-07 Thread Austin Haas
Yesterday, I followed the excellent "Clojurescript Quick Start Guide" (https://clojurescript.org/guides/quick-start). Everything worked as expected. They did a great job of making it as minimal as possible. After that, I followed the "Emacs and Inferior Clojure Interaction Mode" guide (https://

Re: What is the minimal Emacs config for practical Clojure development?

2018-07-06 Thread Andrea Richiardi
> > That seems to work, but I see something like this in the minibuffer every > time I move the cursor, with or without eldoc mode enabled: > > def: (:arglists^[[0m > ^[[36m3^[[0m ^[[36m(clojure.core/meta^[[0m > ^[[36m4^[[0m ^[[36m(clojure.core/resolve^[[0m > ^[[36m5^[[0m ^[[36m(clojure.

Re: What is the minimal Emacs config for practical Clojure development?

2018-07-06 Thread Andrea Richiardi
Ok this command will open a socket REPL directly in cljs.user: clojure -J-Dclojure.server.repl="{:port ${1:-} :accept cljs.server.node/repl}" -R:cljs-canary -m cljs.main -re node -r You need the right deps.edn aliases - then you will be able to nc localhost or inf-clojure-connect to i

Re: What is the minimal Emacs config for practical Clojure development?

2018-07-06 Thread Andrea Richiardi
Ok try this one: clojure -J-Dclojure.server.repl="{:port ${1:-} :accept cljs.se}" -R:cljs-canary -m cljs.main -re node -r and then nc localhost or inf-clojure-connect to . -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to thi

Re: What is the minimal Emacs config for practical Clojure development?

2018-07-06 Thread Andrea Richiardi
On Friday, July 6, 2018 at 11:18:56 AM UTC-7, Austin Haas wrote: > > I spent a couple more hours working with Monroe and Figwheel. I still > can't figure out how to use the REPL. After trying to evaluate a few > expressions, Emacs gets completely locked up spewing the following error > message

Re: What is the minimal Emacs config for practical Clojure development?

2018-07-06 Thread Austin Haas
I spent a couple more hours working with Monroe and Figwheel. I still can't figure out how to use the REPL. After trying to evaluate a few expressions, Emacs gets completely locked up spewing the following error message 1000s of times: clojure.lang.ExceptionInfo: Arguments to require must be q

Re: What is the minimal Emacs config for practical Clojure development?

2018-07-06 Thread Austin Haas
This is good, relevant information. Thank you, Andrea. On Thursday, July 5, 2018 at 4:32:58 PM UTC-7, Andrea Richiardi wrote: > > > > On Thursday, July 5, 2018 at 1:01:14 PM UTC-7, Austin Haas wrote: >> >> Gary, I had tried Figwheel a couple years ago and I had a positive >> experience, so that w

Re: What is the minimal Emacs config for practical Clojure development?

2018-07-05 Thread Daniel
Luminus has a leiningen template which works out-of-the-box with Cider and figwheel. Just (start-fw) and (cljs) inside the repl. It would be nice if we could have both repls open simultaneously within emacs, but everything was super unreliable the last time I tried that. -- You received this m

Re: What is the minimal Emacs config for practical Clojure development?

2018-07-05 Thread Andrea Richiardi
On Thursday, July 5, 2018 at 1:01:14 PM UTC-7, Austin Haas wrote: > > Gary, I had tried Figwheel a couple years ago and I had a positive > experience, so that was the next thing I reached for. > > I just want a practical dev environment, for both Clojure and > Clojurescript. To me, that means s

Re: What is the minimal Emacs config for practical Clojure development?

2018-07-05 Thread Andrea Richiardi
There is one more trick though. The new cljs.main allows you to have a socket repl for ClojureScript. This can then be used with `inf-clojure`. It will not be fancy and probably things will be broken though...the code path has not been seen much love. I did some experimentation and it definitel

Re: What is the minimal Emacs config for practical Clojure development?

2018-07-05 Thread Austin Haas
Gary, I had tried Figwheel a couple years ago and I had a positive experience, so that was the next thing I reached for. I just want a practical dev environment, for both Clojure and Clojurescript. To me, that means simple and stable. I definitely want fewer things that can go wrong, but if I c

Re: What is the minimal Emacs config for practical Clojure development?

2018-07-05 Thread Gary Trakhman
I'm not sure the desires for lightweight clojure-emacs integration and any CLJS integration are yet sympathetic. Figwheel is a pretty complex piece of software. For example, see my issue that has been languishing for almost a year and hints at greater problems with the compiler integration: https:

Re: What is the minimal Emacs config for practical Clojure development?

2018-07-05 Thread rob
If ClojureScript repl integration works smoothly out of the box then that's already one reason to use it over Cider... (This is not a jab at Cider, just a statement of fact that Cider's support for ClojureScript development has so far been lacking, IME) On Thursday, July 5, 2018 at 10:51:02 AM

Re: What is the minimal Emacs config for practical Clojure development?

2018-07-05 Thread Austin Haas
I tried Monroe, yesterday. It seems to work as advertised. I didn't have any issues. It's nice that "jump to definition" works out of the box. It does not appear to support Eldoc, so no help with function signatures. This is the Emacs config I'm currently using: ;;; clojure-mode (add-to-list

Re: What is the minimal Emacs config for practical Clojure development?

2018-07-04 Thread Łukasz Korecki
On Tuesday, July 3, 2018 at 4:46:05 PM UTC+1, Austin Haas wrote: > > Thanks for the replies. > > I only want a stable REPL, integrated with Emacs, and nothing else. > > Łukasz, why did you switch to Monroe? What do you prefer about it? If I'm not mistaken inf-clojure works best if you use the s

Re: What is the minimal Emacs config for practical Clojure development?

2018-07-03 Thread Didier
There's also inf-clojure, which is pretty minimal. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post.

Re: What is the minimal Emacs config for practical Clojure development?

2018-07-03 Thread Austin Haas
Thanks for the replies. I only want a stable REPL, integrated with Emacs, and nothing else. Łukasz, why did you switch to Monroe? What do you prefer about it? -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to cloj

Re: What is the minimal Emacs config for practical Clojure development?

2018-07-03 Thread Jérémie Grodziski
I like very much Spacemacs with the Clojure layer for its discoverability and "out of the box" configuration. Ok it's a kind of a package manager, but once I switch to Spacemacs I've never look back. The tutorial by

Re: What is the minimal Emacs config for practical Clojure development?

2018-07-03 Thread Daniel Compton
Not sure exactly how minimal you're looking for but I like Prelude . It's maintained by Bozhidar Batsov, who also maintains CIDER, so it works well for Clojure development. On Tue, Jul 3, 2018 at 5:42 PM Łukasz Korecki wrote: > Hi! > > I've recently switched t

Re: What is the minimal Emacs config for practical Clojure development?

2018-07-02 Thread Łukasz Korecki
Hi! I've recently switched to Monroe - https://github.com/sanel/monroe Its feature set is quite limited, and it boils down to: - start a nREPL server - connect to it - a REPL buffer is created inside of Emacs - evaluate forms I've added a tiny bit of config on my side which adds a Clojure scrat

What is the minimal Emacs config for practical Clojure development?

2018-07-01 Thread Austin Haas
I don't want to use a package manager with Emacs. Should I launch a REPL outside of Emacs, then connect to it? Using the CLI tools (i.e., from the command line: clojure -J-Dclojure.server.repl="{:port :accept clojure.core.server/repl}")? Can I launch a REPL from within Emacs? I've been us

Re: Practical Clojure

2012-04-15 Thread faenvie
hi, glad to hear that. Up the Ladder of Abstraction ;-) with the books. Gruesse On Apr 14, 7:55 pm, Stuart Sierra wrote: > Hi, faenvie, > > Thanks for your comments about "Practical Clojure," really glad you enjoyed > it! > > Unfortunately, it seems unlikely ri

Re: Practical Clojure

2012-04-14 Thread Stuart Sierra
Hi, faenvie, Thanks for your comments about "Practical Clojure," really glad you enjoyed it! Unfortunately, it seems unlikely right now that there will be a second edition of "Practical Clojure" from Apress, but Luke VanderHart and I are currently working on a second bo

Re: Practical Clojure

2012-04-14 Thread Manuel Paccagnella
It depends on the audience I guess. I've bought "Practical Clojure" but I found its minimalism a little too... minimal to my experience at the time. I was (an in many ways I still am) a nearly total novice on fp and Clojure, and although it's a very good and concise intro

Re: Practical Clojure

2012-04-14 Thread Qiu Xiafei
how about Programming Clojure? I am reading it as a start point of learn clojure On Sat, Apr 14, 2012 at 4:52 PM, faenvie wrote: > light table looks like a candidate for the book ... > btw 'professional clojure' is not a good title ... better: 'beyond > clojure' ? etc. > > -- > You received this

Re: Practical Clojure

2012-04-14 Thread faenvie
light table looks like a candidate for the book ... btw 'professional clojure' is not a good title ... better: 'beyond clojure' ? etc. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note t

Re: Practical Clojure

2012-04-14 Thread JuanManuel Gimeno Illa
On Friday, April 13, 2012 9:11:07 PM UTC+2, faenvie wrote: > > > > in addition there could be a separate book 'professional clojure' that > focuses on extensions and advanced topics of the clojure cosmos: > clojurescript, monads, continuations, building dsl, core.logic, ring, > korma, noir ..

Re: Practical Clojure

2012-04-13 Thread David Cabana
I need to clarify something, since I unintentionally introduced confusion into this discussion. The initial comment by faenvie referred to the book "Practical Clojure", a very good book (I own a copy). I spaced out and thought that faenvie's comment concerned the newly re

Re: Practical Clojure

2012-04-13 Thread Sean Corfield
On Fri, Apr 13, 2012 at 6:51 AM, David Cabana wrote: > I have not read it all (yet), but what I have read is outstanding. I haven't bothered buying it because it's so out of date now. I'll buy a second edition when it gets underway, however. I bought Programming Clojure once the 2nd Ed got under

Re: Practical Clojure

2012-04-13 Thread faenvie
as i think about it, it seems to me that 'practical clojure' should be updated but stay minimal. This means strictly keep the focus on the core of clojure, correct errors, add a few missing things (add more info on destructuring for instance), add and update things that come new or ch

Re: Practical Clojure

2012-04-13 Thread Tom Maynard
On Friday, April 13, 2012 5:19:43 AM UTC-5, faenvie wrote: > > > i simply want to state that i love this book > http://www.apress.com/9781430272311 > > Which version(s) of Closure does the book cover? I have both "Joy of" and "In Action" and I find them somewhat disjointed and confusing in th

Re: Practical Clojure

2012-04-13 Thread Curtis Gagliardi
I hadn't heard of practical clojure, but while we're praising books, I'd like to say that Clojure Programming is excellent. I've been reading the early access version, and while I haven't finished it, I'm almost done with the first half, which covers the co

Re: Practical Clojure

2012-04-13 Thread David Cabana
I have not read it all (yet), but what I have read is outstanding. O'Reilly has made the table of contents and first chapter available online. If you are at all curious, check it out. The first chapter contains an exceptionally lucid and thorough section on destructuring. http://cdn.oreilly.com/o

Re: Practical Clojure

2012-04-13 Thread wschnell
Hi, you are not alone. This book is for reading again and again. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your

Practical Clojure

2012-04-13 Thread faenvie
hi community, i simply want to state that i love this book http://www.apress.com/9781430272311 it's minimalism is amazing and it helped me a lot. its good to repeatedly read single chapters to get conscious of ... minimal is good. i would love to read a second edition with maybe a chapter about

Re: Quick Practical Clojure macro question

2011-10-24 Thread Alan O'Donnell
Ah, got it. Your last sentence is very well-put! -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To

Re: Quick Practical Clojure macro question

2011-10-24 Thread Alan Malloy
Yes, definitely. Your version selects which form to evaluated once, at compile time; the original selects a form every time the expansion is evaluated. user> (defn rand-num [] (rand-expr-mulit 1 2 3 4 5 6 7 8 9)) #'user/rand-num user> (rand-num) 7 user> (rand-num) 7 user> (rand-num) 7 user> (rand-

Quick Practical Clojure macro question

2011-10-24 Thread Alan O'Donnell
Hi everyone, I'm working my way through Practical Clojure's macro chapter, and I'd like to check my understanding about one of the examples. The book discusses writing a macro to randomly evaluate a form out of a list of forms--essentially a cond that randomly selects which branch to evaluate.

practical clojure

2011-06-20 Thread faenvie
today, once again, i realized, that of all 4 books, that i have read about clojure , 'practical clojure' is the one, that i like most. minimalistic, straight to the point, mostly clear in it's language. i would love to buy a second edition once clojure 1.3 or 2.0 is out. -- Yo

Re: practical clojure

2010-09-19 Thread David J
I definitely have. I'm in the middle of trying to port some stats test from R over to Incanter, notably the Wicoxon Rank Sum test. I just meant I hope this catches on with statisticians, now that R's creator has admitted its flaws. On Sep 18, 9:09 pm, Jeff Heon wrote: > On Sep 17, 8:23 pm, David

Re: practical clojure

2010-09-18 Thread Jeff Heon
On Sep 17, 8:23 pm, David J wrote: > I second faenvie's request for "applications of Clojure" books, > especially on AI. AI is the reason I started looking at a Lisp in the > first place. I'd also like to see Clojure become *the* language for > statistics, though I understand that R statistician

Re: practical clojure

2010-09-17 Thread David J
of Lisps. I just bought Practical Clojure and am enjoying it as well. After browsing through an alternative at Barnes and Noble, I was thoroughly confused about Clojure and did not think it a beautiful language. After that, I picked up Practical Clojure and immediately connected with it (and th

Re: practical clojure

2010-09-16 Thread Stuart Sierra
Thanks! Glad you liked the book. -S On Sep 14, 8:37 am, faenvie wrote: > i just emerged from a whirlwind read > through 'practical clojure'. i like this book > very much. > > it's a very well structured, carefully written > book. kind of a minimalistic approach b

practical clojure

2010-09-14 Thread faenvie
i just emerged from a whirlwind read through 'practical clojure'. i like this book very much. it's a very well structured, carefully written book. kind of a minimalistic approach but minimalistic in the positive sense clojure itself is. so now 'students' have really