Re: hello world question !!!

2017-10-31 Thread John M. Switlik
Thanks. I have been using clojure, as an example, on discussions on Quora. In essence, extrapolating from Lisp, pre-web, to clojure. Now, is that a huge leap? I don't expect so. I saw the approximation of something built on Lisp re-done (or attempted, anyway) via objective-C. The trade offs were ob

Re: hello world question !!!

2017-10-30 Thread Didier
> > I will see how the initial build toward having something effective for me > compares with the ease of Python. > Python's focus is on making things easy, not simple. Clojure's focus is on simplicity. Lisp's syntax is simple, not easy. So Clojure uses it. Macros extend the language in simple

Re: hello world question !!!

2017-10-30 Thread John M. Switlik
Forgot a link. https://www.quora.com/What-did-Alan-Kay-mean-by-Lisp-is-the-greatest-single-programming-language-ever-designed/answer/John-M-Switlik -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegro

Re: hello world question !!!

2017-10-30 Thread John M. Switlik
Hey, clojure world, your work got this old Lisp guy excited. Keep up the good work. It has been three weeks so far since I first saw the paper showing clojure as being (well, they said marginally, but I think more) better (in a quality sense) than most. What I have seen in terms of usage, and poten

Re: hello world question !!!

2017-10-30 Thread Damien Mattei
thank, i have not read it in depth now but seems really interesting about both Java and Clojure Damien On Friday, October 20, 2017 at 7:23:37 PM UTC+2, Didier wrote: > > I also suggests if you want to understand how to compile Clojure without > thw help of tools loke boot or lein, to read th

Re: hello world question !!!

2017-10-20 Thread Gregg Reynolds
There once was a man named Gustava Whose Clojure code smelled just like Guava He tried to use gen-class Which made it smell stink-ass So he went back to working in Java Hardy-har-har. Containers long for bytecode on disc. You can minimize it, but you have to have it to bootstrap the Clojure runti

Re: hello world question !!!

2017-10-20 Thread Didier
I also suggests if you want to understand how to compile Clojure without thw help of tools loke boot or lein, to read those two short tutorials: 1. http://www.flyingmachinestudios.com/programming/how-clojure-babies-are-made-the-java-cycle/ 2. http://www.flyingmachinestudios.com/programming/how

Re: hello world question !!!

2017-10-20 Thread Didier
I think you can use lein-ring or lein-uberwar to package any ring based clojure web app into a War. But, a War is just a zip file with a known set of files and directory structure. So depending on your needs, you could create it yourself too. -- You received this message because you are subscr

Re: hello world question !!!

2017-10-16 Thread Justin Smith
the uberjar option bundles clojure.jar (as well as any other dependencies you specify in your project.clj) into the output jar for you On Mon, Oct 16, 2017 at 6:36 AM Damien Mattei wrote: > following this tutorial : > https://github.com/technomancy/leiningen/blob/stable/doc/TUTORIAL.md#tutorial

Re: hello world question !!!

2017-10-16 Thread Damien Mattei
following this tutorial : https://github.com/technomancy/leiningen/blob/stable/doc/TUTORIAL.md#tutorial i succeed with leiningen to build a project,run it and after make a jar file : lein new app my-stuff cd my-stuff lein uberjar lein run or : cd target; java -jar my-stuff-0.1.0-SNAPSHOT-standal

Re: hello world question !!!

2017-10-15 Thread terje
Damien: A good starting point for a simple web server might be to use lein new pedestal-service Then you can do lein uberjar to get a jar ready to run. Or check the README for running local dev with a local REPL. If instead you want a WAR, you can switch from pedestal.jetty to pedestal.immutan

Re: hello world question !!!

2017-10-15 Thread Damien Mattei
thanks for the answers and comments of John, James and others, the discussion has opened many aspect of web application development and it is is positive. about the IDE, i'm not using Netbeans with Scheme or LisP exclusively, in fact Netbeans was used in the office just to create web service in

Re: hello world question !!!

2017-10-14 Thread John M. Switlik
James, Thanks. I saw a writeup mentioning Leiningen that I will go back to. It is not the 'toy' issue that concerns me. It is that all sorts of browsers exist as well as a whole slew of different types of users. And, if I am going to push something down to a remote device, I want to expect that i

Re: hello world question !!!

2017-10-13 Thread Alan Moore
Lolz, I actually liked the coffee to code autocorrect... the autocorrect machine learning algorithm was probably trained on the old joke about that very thing. Thanks for the laugh after the week I’ve endured... Alan -- You received this message because you are subscribed to the Google Groups

Re: hello world question !!!

2017-10-13 Thread James Gatannah
It's been a couple of years, but (from what I remember) it works great. Immutant (or maybe it's wildfly?) has an option to deploy "exploded .WAR files." I'm very fuzzy on the details, but it seems like the basic choices were either: 1) deploy an uberwar with AOT (advantage: faster startup time

Re: hello world question !!!

2017-10-13 Thread James Gatannah
This is really "just" a +1 for using Leiningen. TL;DR: Just start with `lein new app hello-world` and get an editor integrated with your REPL quickly. Come back to these sorts of things later, if/when you still think they're worthwhile. I came to clojure from the python/c++ world, with just eno

Re: hello world question !!!

2017-10-13 Thread John M. Switlik
Damien, This is just an aside. Thanks for the question. I have not even tried Clojure, yet. So, this is good for me to follow. BTW, I have done Java (since the '90s) and so know of the 'coffee' stains everywhere. Yet, given the Lisp basis, I want to see how to make Clojure easier for the cau

Re: hello world question !!!

2017-10-13 Thread Damien Mattei
@andy to deploy the WAR file , i also use Netbeans to create it with java files, the .scm scheme, files are .class files ( https://github.com/damien-mattei/Jkawa/tree/master/eu/oca/kawafunct )precompiled with Kawa scheme ( https://github.com/damien-mattei/Jkawa )and ,Bigloo scheme ( https://git

Re: hello world question !!!

2017-10-13 Thread Damien Mattei
@james i also try to set the CLASSPATH at src but it does noot work, i will try Leiningen monday Regards, Damien On Friday, October 13, 2017 at 9:12:55 PM UTC+2, James Reeves wrote: > > The docstring for compile > >

Re: hello world question !!!

2017-10-13 Thread Andy Fingerhut
I haven't deployed an application written in Clojure to a server as a WAR file before, so can't speak from experience, but I am sure others here probably can. Hey, others, have you deployed a Clojure application via a WAR file without using AOT compilation, with only Clojure source code packaged i

Re: hello world question !!!

2017-10-13 Thread James Reeves
The docstring for compile says that "The source for the lib must be in a proper classpath-relative directory", so unfortunately you can't just create the namespace in the REPL and compile it from there. The tutorial on t

Re: hello world question !!!

2017-10-13 Thread Damien Mattei
but i am in this situation, i wrote application in Scheme (Kawa,Bigloo) ,LisP that ran on an apache tomcat server, the application is deplyed in war files , they are precompiled ,with Kawa or Bigloo Scheme, and also use regular Java class compiled with Java8. They never ran in REPL ,all the test

Re: hello world question !!!

2017-10-13 Thread Damien Mattei
yes i had tested . (point) in classpath and later added clojure/example which is not a good idea as the namespace is already clojure.examples.hello, already clojure.examples will be converted in clojure/examples but what must i do then? where must i put this hello.clj: (ns clojure.examples.hell

Re: hello world question !!!

2017-10-13 Thread Andy Fingerhut
Just a note that at the top of the documentation page you mention, it says: "Clojure compiles all code you load on-the-fly into JVM bytecode, but sometimes it is advantageous to compile ahead-of-time (AOT)." I would venture an estimate that most people who use Clojure do so without using AOT compi

Re: hello world question !!!

2017-10-13 Thread Justin Smith
also you don't need to do any of this for a basic example, you can just type code into the repl and run it, or create a proper project with a dependency manager when you want something more organized On Fri, Oct 13, 2017 at 10:22 AM Justin Smith wrote: > paths have to reflect the package and be

Re: hello world question !!!

2017-10-13 Thread Justin Smith
paths have to reflect the package and be relative to the class path, so if "clojure/examples" is on the classpath, and the namespace is clojure.examples.hello, the file needs to be in "clojure/examples/clojure/examples/hello.clj" On Fri, Oct 13, 2017 at 10:13 AM Damien Mattei wrote: > i did not

Re: hello world question !!!

2017-10-13 Thread Damien Mattei
i did not have , i just follow the tutorial: https://clojure.org/reference/compilation i made the file but still the same problem: [mattei@moita ~]$ export CLASSPATH=.:./clojure/examples [mattei@moita ~]$ clojure Clojure 1.5.1 user=> (compile 'clojure.examples.hello) FileNotFoundException Could no

Re: hello world question !!!

2017-10-13 Thread Justin Smith
Sorry for the auto correct fail, it compiles all of your code to byte-code On Fri, Oct 13, 2017, 08:29 Justin Smith wrote: > To pedantically specific, clojure compiles all of your coffee to be code > in memory, but the 'compile' function expects to find a file on disk, and > create a class file

Re: hello world question !!!

2017-10-13 Thread Justin Smith
To pedantically specific, clojure compiles all of your coffee to be code in memory, but the 'compile' function expects to find a file on disk, and create a class file on disk. Using gen-class in the repl is a no-op. On Fri, Oct 13, 2017, 07:48 James Reeves wrote: > Maybe this is a dumb question,

Re: hello world question !!!

2017-10-13 Thread James Reeves
Maybe this is a dumb question, but do you have a file "clojure/examples/hello.clj" on the classpath? Since that's what the exception is complaining about. On 13 October 2017 at 15:09, Damien Mattei wrote: > hello, > > i'm new to clojure, just installed it on a CentOS box, > > and try to compile

hello world question !!!

2017-10-13 Thread Damien Mattei
hello, i'm new to clojure, just installed it on a CentOS box, and try to compile the code below from tutorial, but it does not work, i searched a lot before posting, no answer... i do not want to use leiningen at this stage,later perheaps... just want to compile and run user=> (ns clojure.exa