Re: [ANN] Clojure 1.9.0 is now available!

2017-12-09 Thread Alex Miller
> is the new clj CLI going to be alternative to Lein? No, it’s not intended to replace lein. clj is about building classpath and launching programs, not building or deploying artifacts. > For example can I run repl with middleware? No. > also, if I use lein repl, is deps.edn taken into

Re: [ANN] Clojure 1.9.0 is now available!

2017-12-09 Thread Georgi Danov
is the new clj CLI going to be alternative to Lein? For example can I run repl with middleware? also, if I use lein repl, is deps.edn taken into account? I love that feature -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group,

Re: [ANN] Clojure 1.9.0 is now available!

2017-12-09 Thread Rostislav Svoboda
To give you a bit of an explanation - I'd like to use clojure/clojurescript for scripting... I was reading the: http://blog.brunobonacci.com/2017/08/10/lumo-vs-planck-vs-clojure-vs-pixie/ and got curious how does the 1.9.0 behave when talking about startup times. (Oh BTW notice that lumo and

RE: [ANN] Clojure 1.9.0 is now available!

2017-12-09 Thread Sean Corfield
also, if I use lein repl, is deps.edn taken into account? I love that feature It shouldn’t be hard for someone to write a Leiningen plugin that uses tools.deps to read the cascade of deps.edn files and provide support for resolve/classpath aliases etc. I’ve already done this for Boot:

Terminating 'clj' REPL session

2017-12-09 Thread Alan Thompson
Hi - Just downloaded the new Clojure 1.9.0 package. When I tried the repl I noticed that it doesn't respond to either `exit` or `quit` as one might expect from the lein repl: ~/cool/tools > clj Clojure 1.9.0 user=> (+ 2 3) 5 user=> exit CompilerException java.lang.RuntimeException: Unable to

OutOfMemoryError when using Plumatic Schema and infinite lazy lists

2017-12-09 Thread Alan Thompson
I am a huge fan of Plumatic Schema, and it regularly helps me to find mistakes in my code early in the development process. However, I just tracked down a very unexpected error when using a lazy infinite list such as that produced by `(range)` Suppose you define two simple functions like

Re: Terminating 'clj' REPL session

2017-12-09 Thread Alan Thompson
Would a message such as "use CRTL-D to exit" be appropriate? Right now it is very bare. Maybe this? ~ > clj Clojure 1.9.0 (use ^D to exit) user=> ~ > Alan On Sat, Dec 9, 2017 at 5:15 PM, Sean Corfield wrote: > I find the fact that "exit" and "quit" work in leiningen repls

Re: Terminating 'clj' REPL session

2017-12-09 Thread Alan Thompson
I just noticed that Python will give you hints (but only after guessing wrong): ~ > python Python 2.7.12 (default, Nov 20 2017, 18:23:56) [GCC 5.4.0 20160609] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> exit Use exit() or Ctrl-D (i.e. EOF) to exit >>> quit

RE: Terminating 'clj' REPL session

2017-12-09 Thread Sean Corfield
I find the fact that "exit" and "quit" work in leiningen repls to be weird I agree. I’ve always used ctl-d to exit a Leiningen REPL or a Boot REPL – or pretty much any console program I’ve ever used. I’m only surprised when ctl-d _doesn’t_ work in such a program! And, after all, both Leiningen

Re: Terminating 'clj' REPL session

2017-12-09 Thread Justin Smith
I find the fact that "exit" and "quit" work in leiningen repls to be weird - this doesn't follow the otherwise consistent rules of the language. What about an exit function, something like (defn exit ([] (exit 0)) ([n] (System/exit n)) so that it's not an out of band special case input? On

Terminating 'clj' REPL session

2017-12-09 Thread Alex Miller
This really just the standard behavior of clojure.main, not a feature of the clj tool, so this would require a change in Clojure itself. -- 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