Re: why is it so annoying to run clojure code

2016-06-15 Thread Kenneth Tilton
On Wed, Jun 15, 2016 at 10:54 AM, James Gatannah wrote: > It was (thoughtfully and politely) pointed out that I came across as smug > here. > > I'm very sorry about that. I plead exhaustion. > Heh-heh, well, as the late, great Erik Naggum once said to me, you meant

Re: why is it so annoying to run clojure code

2016-06-15 Thread James Gatannah
It was (thoughtfully and politely) pointed out that I came across as smug here. I'm very sorry about that. I plead exhaustion. I use python for most of my day job. I was trying to convey how much more painful its workflow is for me, now that I've embraced "the lisp way" for my personal projects

Re: why is it so annoying to run clojure code

2016-06-15 Thread James Gatannah
I *totally* understand your (and pretty much every other responder's) frustration. You're approaching it wrong. Most python/ruby programmers get this wrong, also. It's OK. I did this wrong for *years* in lots of different languages. (I blame my C++ background for how long it's taking this to

Re: why is it so annoying to run clojure code

2016-06-13 Thread hiskennyness
I do not know if I have the right direction*, but qooxdoo was the low-hanging fruit for me because I have a ton of experience wrapping its so-called "Desktop" variant (Web RIAs) so... it is now pretty easy to build a mobile** app in CLJS/qx.Mobile***. * I will look at ReactNative next, though

Re: why is it so annoying to run clojure code

2016-06-13 Thread hiskennyness
On Saturday, June 11, 2016 at 6:19:06 AM UTC-4, Cornelius Goh wrote: > > Just for curiosity. What mobile phone (Android or iOS) did you port your > CommonLisp libraries onto ? I did Andoid since Cordova said it could not build for iOS on Linux, but up soon on my do-list is dusting off my Mac

Re: why is it so annoying to run clojure code

2016-06-12 Thread Alan Moore
Check out natal, renatal or any of the other react native libraries/tools found here: http://cljsrn.org/ Alan -- 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

Re: why is it so annoying to run clojure code

2016-06-12 Thread James Reeves
On 12 June 2016 at 02:40, Antonin Hildebrand wrote: > > I assume those concepts are basic to someone with experience with java. > I'm sorry for my ignorance. My path was ... -> Javascript -> ClojureScript > -> Clojure. Not Java -> Clojure -> ClojureScript. > I don't

Re: why is it so annoying to run clojure code

2016-06-11 Thread Antonin Hildebrand
> Why not just uberjar it? Good point. I didn't know that was an option at the time. My google-fu didn't reveal this option at the time. As someone originally coming from non-java lands, I wasn't asking the right questions. Just few weeks later I learned hard way that uberjars are not my good

Re: why is it so annoying to run clojure code

2016-06-11 Thread James Reeves
On 12 June 2016 at 01:36, Antonin Hildebrand wrote: > I wanted users of my library (which has dependencies) to run a helper tool > from command-line (ideally with a simple wrapper bash script). And I didn't > want to make them dependent on lein or boot. > > I came

Re: why is it so annoying to run clojure code

2016-06-11 Thread Antonin Hildebrand
> What's the difference? more than 1 lines of code[1] (not counting comments) [1] https://gist.github.com/darwin/ede8911f7b493f17c1307433484f1d80 On Sunday, June 12, 2016 at 3:05:02 AM UTC+2, Witold Szczerba wrote: > > You did not want to make then depend on Lein, which is… a script, so you

Re: why is it so annoying to run clojure code

2016-06-11 Thread Witold Szczerba
You did not want to make then depend on Lein, which is… a script, so you wrote your own script and made users of your library depend on it. What's the difference? On Sun, Jun 12, 2016 at 2:36 AM, Antonin Hildebrand < antonin.hildebr...@gmail.com> wrote: > I wanted users of my library (which has

Re: why is it so annoying to run clojure code

2016-06-11 Thread Antonin Hildebrand
I wanted users of my library (which has dependencies) to run a helper tool from command-line (ideally with a simple wrapper bash script). And I didn't want to make them dependent on lein or boot. I came up with this (bash+maven+java):

Re: why is it so annoying to run clojure code

2016-06-11 Thread Erlis Vidal
+1 Irrelevant for the current thread but I'm too really curious on how to start using Clojure for mobile development. Anything that can point us on the right direction? On Sat, Jun 11, 2016 at 6:19 AM, Cornelius Goh wrote: > Just for curiosity. What mobile phone

Re: why is it so annoying to run clojure code

2016-06-11 Thread Jiacai Liu
Thank all above suggestions, I have tried emacs + cider, which seems great for me 在 2016年6月10日星期五 UTC+8上午12:08:39,Jiacai Liu写道: > > I started learning

Re: why is it so annoying to run clojure code

2016-06-11 Thread Cornelius Goh
Just for curiosity. What mobile phone (Android or iOS) did you port your CommonLisp libraries onto ? -- 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

Re: why is it so annoying to run clojure code

2016-06-10 Thread John Gabriele
On Thursday, June 9, 2016 at 12:08:39 PM UTC-4, Jiacai Liu wrote: > > I started learning clojure recently, and I am annoyed at the way to run > it (aka. lein run). why clojure script can't be run like python,ruby or > scala, like python .py > I suggest using [Inlein](http://inlein.org/) for

Re: why is it so annoying to run clojure code

2016-06-10 Thread Andrea Richiardi
On Thursday, June 9, 2016 at 1:59:40 PM UTC-7, hiskennyness wrote: > > > Having just gotten into Clojure, I have the same pain. But I am a long > time Lisper, so I understand that this just means that Clojure is a true > Lisp, because Lisps punish noobs in cruel and unusual ways. > > And, yes,

Re: why is it so annoying to run clojure code

2016-06-10 Thread Brent Millare
You can run it like python, ruby, etc. https://en.wikibooks.org/wiki/Clojure_Programming/Tutorials_and_Tips Basically, at the top of a clj file, put: ":";exec /path/to/java -cp "/path/to/clojure.jar" clojure.main $0 "$@" (ns command-line-args) (defn command-line? []

Re: why is it so annoying to run clojure code

2016-06-09 Thread hiskennyness
On Thursday, June 9, 2016 at 12:08:39 PM UTC-4, Jiacai Liu wrote: > > I started learning clojure recently, and I am annoyed at the way to run > it (aka. lein run). why clojure script can't be run like python,ruby or > scala, like python .py > Having just gotten into Clojure, I have the same

Re: why is it so annoying to run clojure code

2016-06-09 Thread Plínio Balduino
Thanks for the tutorial On Thu, Jun 9, 2016 at 2:36 PM, Miguel Ping wrote: > I highly recommend you to learn some kind of interactive tool for clojure, > such as emacs+cider. > > I wrote a mini tutorial about it: >

Re: why is it so annoying to run clojure code

2016-06-09 Thread Miguel Ping
I highly recommend you to learn some kind of interactive tool for clojure, such as emacs+cider. I wrote a mini tutorial about it: http://mping.github.io/2015/11/17/clojure-emacs-cider.html On Thursday, June 9, 2016 at 5:08:39 PM UTC+1, Jiacai Liu wrote: > > I started learning clojure

Re: why is it so annoying to run clojure code

2016-06-09 Thread Gary Trakhman
Why hasn't anyone mentioned Boot, which provides shebang-style execution and deps for you? https://github.com/boot-clj/boot/wiki/Scripts On Thu, Jun 9, 2016 at 12:48 PM James Reeves wrote: > You can run Clojure directly, but often you don't just need Clojure, but > other

Re: why is it so annoying to run clojure code

2016-06-09 Thread James Reeves
You can run Clojure directly, but often you don't just need Clojure, but other libraries as well. The "lein run" command not only runs your code, it also handles downloading any dependencies your code might have. In Ruby terms, Leiningen is the equivalent of ruby + rbenv + bundler + rake. I'm

Re: why is it so annoying to run clojure code

2016-06-09 Thread Herwig Hochleitner
Leiningen is a tool external to clojure, that has project automation in mind. The equivalent to `python script.py` would be `java -jar clojure.jar -i script.clj`. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to

Re: why is it so annoying to run clojure code

2016-06-09 Thread Shantanu Kumar
Consider http://inlein.org/ or https://github.com/kumarshantanu/lein-exec HTH Shantanu On Thursday, 9 June 2016 21:38:39 UTC+5:30, Jiacai Liu wrote: > > I started learning clojure recently, and I am annoyed at the way to run > it (aka. lein run). why clojure script can't be run like

why is it so annoying to run clojure code

2016-06-09 Thread Jiacai Liu
I started learning clojure recently, and I am annoyed at the way to run it (aka. lein run). why clojure script can't be run like python,ruby or scala, like python .py -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send