Re: [ANN] clj-new -- creating new Clojure projects using the clj CLI

2018-04-20 Thread Tim Visher
On Thu, Apr 19, 2018 at 1:38 PM, Sean Corfield wrote: > I had the one-liner in an earlier version of the README but decided it was > unreadable (a single long line is hard to read when it scrolls so much). > > > > Maybe I’ll put it back somewhere in there… > Might I suggest: ``` clj -Sdeps '{:d

Is the vector a sequence?

2018-04-20 Thread ru
Hi, user=> (seq? [1 2 3 4 5]) false user=> Sincerely, Ru -- 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 you

Re: Is the vector a sequence?

2018-04-20 Thread Alex Miller
No, vectors are not sequences. They are however "seqable", that is they can provide a sequence when asked... You might find this helpful: http://insideclojure.org/2015/01/02/sequences/ On Friday, April 20, 2018 at 10:33:02 AM UTC-5, ru wrote: > > Hi, > > user=> (seq? [1 2 3 4 5]) > > false > >

Re: Is the vector a sequence?

2018-04-20 Thread Timothy Baldridge
It's not a seq, but it's seqable. (seq? [1 2]) => false (seqable? [1 2]) => true (seq? (seq [1 2])) => true On Fri, Apr 20, 2018 at 9:33 AM, ru wrote: > Hi, > > user=> (seq? [1 2 3 4 5]) > > false > > user=> > > > Sincerely, > > Ru > > -- > You received this message because you are subscrib

How to build Clojure web apps for tomcat - with just clj

2018-04-20 Thread Kashyap CK
Hi, Could someone please point me to instructions on how to create Tomcat web apps in Clojure? I am looking for a non-lein based solution. It will be good if that Clojure files are compiled ahead of time. Calling eval from a JSP is not exactly what I have in mind :) Regards, Kashyap -- You rece

Re: Is the vector a sequence?

2018-04-20 Thread ru
user=> (seqable? [1 2]) CompilerException java.lang.RuntimeException: Unable to resolve symbol: seqable? in this context, compiling:(/private/var/folders/5j/k0rtjxqn3b57nykc_1jf2xnrgn/T/form-init6382892774167052117.clj:1:1) user=> пятница, 20 апреля 2018 г., 18:35:45 UTC+3 пользоват

Re: Is the vector a sequence?

2018-04-20 Thread Timothy Baldridge
seqable? was added in Clojure 1.9 On Fri, Apr 20, 2018 at 9:54 AM, ru wrote: > user=> (seqable? [1 2]) > > > CompilerException java.lang.RuntimeException: Unable to resolve symbol: > seqable? in this context, compiling:(/private/var/ > folders/5j/k0rtjxqn3b57nykc_1jf2xnrgn/T/form- > init6382

[ANN] com.walmartlabs/lacinia 0.26.0

2018-04-20 Thread Howard Lewis Ship
Lacinia is an open-source implementation of Facebook's GraphQL specification, in Clojure. GraphQL is an outstanding approach to getting diverse clients and servers exchanging data cleanly and efficiently. GitHub repo: https://github.com/walmartlabs/lacinia Documentation: http://lacinia.readthed

Re: Is the vector a sequence?

2018-04-20 Thread ru
Thank you, Alex and tbc++ пятница, 20 апреля 2018 г., 18:55:59 UTC+3 пользователь tbc++ написал: > > seqable? was added in Clojure 1.9 > > On Fri, Apr 20, 2018 at 9:54 AM, ru > wrote: > >> user=> (seqable? [1 2]) >> >> >> CompilerException java.lang.RuntimeException: Unable to resolve symbol: >>

Re: Understanding GraalVM and Clojure

2018-04-20 Thread Didier
https://github.com/oracle/graal/blob/master/substratevm/LIMITATIONS.md has some details of the limitations around native-image. Native-image is probably the more interesting part for Clojure, but I'm not sure it will fully work given those current limitations. On Thursday, 19 April 2018 03:00:1

RE: [ANN] clj-new -- creating new Clojure projects using the clj CLI

2018-04-20 Thread Sean Corfield
Alright, added command-line usage back into the README! Talk about “peer pressure” 😊 Sean Corfield -- (970) FOR-SEAN -- (904) 302-SEAN An Architect's View -- http://corfield.org/ "If you're not annoying somebody, you're not really alive." -- Margaret Atwood From

Re: [ANN] clj-new -- creating new Clojure projects using the clj CLI

2018-04-20 Thread Gregg Reynolds
On Fri, Apr 20, 2018, 2:29 PM Sean Corfield wrote: > Alright, added command-line usage back into the README! Talk about “peer > pressure” 😊 > ... > > "If you're not annoying somebody, you're not really alive." > -- Margaret Atwood > Apparently you are alive and well! Very well done, btw. G >

Re: Is the vector a sequence?

2018-04-20 Thread Rick Moynihan
It's also worth mentioning vectors are sequential: (sequential? [1 2 3]) ;; => true R. On 20 April 2018 at 16:35, Timothy Baldridge wrote: > It's not a seq, but it's seqable. > > (seq? [1 2]) => false > (seqable? [1 2]) => true > (seq? (seq [1 2])) => true > > > > On Fri, Apr 20, 2018 at 9:33

Strange Loop 2018 CFP is now open!

2018-04-20 Thread Alex Miller
Strange Loop 2018 Sept 27-28, 2018 St. Louis, MO https://thestrangeloop.com The Strange Loop conference is currently holding an open call for presentations. We are looking for 40 minute sessions for this year's event. Requested topics include: * Programming languages, compilers, virtual machine