Re: Lambda: A lniux distro for clojurists

2012-05-25 Thread abaitam
Great idea. But this be implemented as a pallet or vagrant script instead 
of a ready-made VM? 

On Thursday, May 24, 2012 4:11:21 PM UTC-4, banseljaj wrote:

 Hello Guys,

 I am quite new to clojure, and I am a fan. It's a great thing. One thing 
 that seems missing, however, is a single unified way of setting up the 
 clojure environment. Which seemed pretty daunting to me at first.

 So I have decided to create a Linux Distro specifically for Clojure 
 development.

 I have been bouncing this idea in #clojure and it got a good response. So 
 now I have started the complete development effort.

 My plan so far is as follows.

 Mission Statement for the Distro

 The distro should be able to:

- Connect to internet.
- Be able to convert itself into An VM/Iso/LiveCD etc
- Have all IDEs for Clojure installed and preconfigured.
   - Eclipse
   - Vim
   - Emacs
   - Netbeans
- Have a ready to play connection to clojure forums and channels
- Have at-least one book on clojure programming on board
- Have following clojure specific features
   - It should have leiningen installed and configured
   - It should have a local repo of all current clojure plugins
   - It should have a local cloud on which you can deploy web apps 
   easily
   - it should have REPLlabs on baord and configured
- Have Clojure specific branding



 The packages that are needed absolutely:

- OpenJDK 1.7.0
- Leiningen
- Clojure
- Eclipse
- Vim
- Emacs 24
- Netbeans
- Emacs Starter kit
- CCW plugin for eclipse
- Firefox/Chrome
- A local webserver
- Postgresql
- LXDE/XFCE
- Gwibber/Other Social network Client
- xchat
- irssi
- git
- Regular packages for system functioning.


 I am still open to ideas. I intend to roll it as a complete distro, so I 
 will love any and all input.

 For now, the specific things I need input for are:

- Who/How to create the art for branding.
- Any packages that are missing from the above listing.
- Any suggestions for the overall functioning.


 I will soon have an actual website set up.


 It is my intention to create a fully functional, independent Development 
 environment for Functional programmers by release 2. Right now, I am 
 working on release 0.0.1.

 Looking forward to all input.

 regards.

 banseljaj




-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: Lack in the documentation

2012-02-18 Thread abaitam
  - This Clojure-IDE is actually Eclipse for Clojure (which integrates
  Clojure, Counterclockwise and lein libraries - not as external tools)

 Hang on, you were advocating Clojure for non-Java devs, yes? Yet you
 want to inflict Eclipse on them? I'm only half-joking here. Non-Java
 developers are going to want to use something lightweight and
 simple... that's not Eclipse (it's not Emacs either)... not sure what
 is the best route here (Clooj?).


I suggested Eclipse for several reasons:
- It is AFAIK an IDE to build IDEs and can be rebranded the way you
want.
- It is the shortest path to have an IDE instead of starting from
scratch. Creating that IDE is a matter of integrating and repackaging
since the tools are already there (CCW, lien, test frameworks).
- I hope you didn't misunderstand what I said above. I am not against
Java and I am aware the Java interop is one of Clojure's strength and
eventually you will need an IDE that can deal with both languages and
Eclipse is an IDE for both. A simpler IDE, like CLOOJ, might be good
for a newcomer but when he has advanced in the language and needs both
languages, the simpler IDE will have to provide the tools Eclipse (and
VS) currently provide for the host language.

That's why I think an Eclipse-based IDE is the better choice for an
official IDE.

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: Lack in the documentation

2012-02-17 Thread abaitam
It is clear that most Clojure documentation (books, tutorials, blog posts) 
address Java or other language developers. I am at chapter three of the 
Clojure Programming book and so far I have seen many snippets of Ruby and 
Python code. That's not necessarily wrong but obviously the 
book assumes you are a Java, Ruby or Python developer. AFAIK, all Clojure 
books do. There is no lack of documentation addressed to experienced 
developers. But there is indeed a lack of documentation that addresses 
people who are just starting programming? This is because, I suppose, many 
in the community probably believe that Clojure is not suitable as a first 
programming language. This has been discussed on the list before and some 
in the community believe it is and some don't. I, for one, believe that a 
new developer or a computer science student should be able to go a long way 
learning Clojure and write applications with Clojure alone without any 
mention of interop until the very end. Such a book would be useful to 
anyone whether he is familiar with another programming language or not.

However, I think it is more of an advocacy problem that appears as a 
documentation one. It is as if the community is advocating Clojure only to 
existing developers. But Clojure is a hard sell to existing developers 
especially Java developers. It is better to advocate Clojure to 
new generations of developers, computer science students and professors and 
even power computer users (like Excel programmers!). These are not served 
as much with books and tutorials while existing developers are served very 
well. 

Why is Clojure hard to sell to Java developers? 

When Clojurians write about Java it is as if there is a love-hate 
relationship to Java and they have a conflicting message. First we tell 
them how bad Java (or their language is): It is fine to hate Java and love 
the JVM; Java is mutable and uncontrolled mutability is bad; it is 
imperative; Java's time model is broken and so on. But then after stating 
all the bad things about Java, we tell these enterprise guys who have 
invested a lot in Java: wait, you can write Java in Clojure better than in 
Java. You can still use all the (mutable, imperative) Java you have 
written over the years in Clojure. 

But I doubt that enterprise people and developers would do so for many 
reasons:

a) All those concrete things around you look like objects that has 
properties and actions: this keyboard I am using; that car in the street, 
that toaster. It is very easy to sell OOP when you explain it starting with 
the concrete going to the abstract to a new developer and it sounds very 
natural. Most early examples in OOP books (about cars, people and 
things) sound immediately natural and practical. It doesn't matter that 
this model or analogy breaks very soon; the developer will have already 
been sold on the idea. That's what most existing developers are used to. In 
contrast, it is hard to think functionally about practical matters and 
most early examples in functional language books are about numbers and 
mathematics that are not practical to a new developer. b) Similarly, the 
imperative style of programming feels more natural as well to a junior 
developer and very similar to how we do things in life. Algorithms, to 
them, are just recipes of steps; not mapping, filtering and reducing data 
structures which sounds mathematical (the horror). Just reference that 
library; do this, that, then a loop over a collection there and you're done 
and can go home and sleep all night. Functional programming, on the other 
hand, is high on the abstraction level from the very beginning; but the 
average developer doesn't care about high levels of abstraction. At every 
corner, a newcomer has to change the way he thinks to grok Clojure. 
Everything is completely different; even adding two numbers (+ 1 2) looks 
weird to what people are used to. c) It is easier to get used to Java 
syntax and it reads easily from the beginning. It takes longer time, 
probably months, and perseverance to get used to reading Clojure code. Try 
to read aloud some Java code and some Clojure code; the later sounds like 
reading algebraic equations; the former reads like sentences (albeit 
missing prepositions, ands and buts..). You scroll pages skimming Java code 
but you need to ponder for sometime to understand a Clojure function or a 
macro.  It is as if there a hill on the road to learning the two languages; 
the hill is at the very beginning on the road to Clojure and it is at the 
end for Java. Iff a newcomer perseveres he will climb the hill and 
eventually get used to reading Clojure code and will appreciate how pithy 
it is. He will be shocked when he realizes that all he needs 
one-page cheat-sheet (for the language and most of its functions) instead 
of a huge reference for his language syntax and APIs. But that was a very 
big IF. Clojure is completely different in style, syntax and way of 
thinking 

Re: ClojureScript One - Getting Started with ClojureScript

2012-01-12 Thread abaitam
I am dying to try this. However, the script/run script (on MAC) gives
me this error message:

Exception in thread main java.lang.ClassNotFoundException:
clojure.main
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:229)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at jline.ConsoleRunner.main(ConsoleRunner.java:73)

I appreciate any help.

On Jan 11, 2:27 pm, Brenton bashw...@gmail.com wrote:
 Today we are releasing ClojureScript One. A project to help you get
 started writing single-page applications in ClojureScript.

 http://clojure.com/blog/2012/01/11/announcing-clojurescript-one.html

 http://clojurescriptone.com/

 https://github.com/brentonashworth/one

 This project is the result of a lot of hard work from the people at
 Relevance. Thanks everyone.

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: ClojureScript One - Getting Started with ClojureScript

2012-01-12 Thread abaitam
Thanks, but I did run script/deps and it successfully completed I have
all the jars under lib. I cloned CLJS1 several times but always got
the same error.

What information do you need to help me solve the problem?

On Jan 12, 4:50 pm, Brenton bashw...@gmail.com wrote:
 It looks like you don't have Clojure. Did you run script/deps? Do you
 have anything in the lib directory?

 Try running it again.

 Brenton

 On Jan 12, 4:28 pm, abaitam abai...@gmail.com wrote:







  I am dying to try this. However, the script/run script (on MAC) gives
  me this error message:

  Exception in thread main java.lang.ClassNotFoundException:
  clojure.main
          at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
          at java.security.AccessController.doPrivileged(Native Method)
          at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
          at sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:229)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
          at java.lang.Class.forName0(Native Method)
          at java.lang.Class.forName(Class.java:169)
          at jline.ConsoleRunner.main(ConsoleRunner.java:73)

  I appreciate any help.

  On Jan 11, 2:27 pm, Brenton bashw...@gmail.com wrote:

   Today we are releasing ClojureScript One. A project to help you get
   started writing single-page applications in ClojureScript.

  http://clojure.com/blog/2012/01/11/announcing-clojurescript-one.html

  http://clojurescriptone.com/

  https://github.com/brentonashworth/one

   This project is the result of a lot of hard work from the people at
   Relevance. Thanks everyone.

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: ClojureScript One - Getting Started with ClojureScript

2012-01-12 Thread abaitam
Hi,
I removed the reference to jline.ConsoleRunner and the exception
stopped but I get another error now:

2012-01-12 18:05:34.527:INFO::Logging to STDERR via
org.mortbay.log.StdErrLog
2012-01-12 18:05:34.528:INFO::jetty-6.1.25
2012-01-12 18:05:34.545:WARN::failed SocketConnector@0.0.0.0:8080:
java.net.BindException: Address already in use
2012-01-12 18:05:34.545:WARN::failed Server@458e439a:
java.net.BindException: Address already in use
BindException Address already in use
java.net.PlainSocketImpl.socketBind (PlainSocketImpl.java:-2)

I used lsof -i | grep LISTEN to find if there is a process listening
on the 8080 port but there is none. Also, shouldn't the ip be
127.0.0.1 or localhost instead of 0.0.0.0?

Thanks for your help

On Jan 12, 5:03 pm, abaitam abai...@gmail.com wrote:
 Thanks, but I did run script/deps and it successfully completed I have
 all the jars under lib. I cloned CLJS1 several times but always got
 the same error.

 What information do you need to help me solve the problem?

 On Jan 12, 4:50 pm, Brenton bashw...@gmail.com wrote:







  It looks like you don't have Clojure. Did you run script/deps? Do you
  have anything in the lib directory?

  Try running it again.

  Brenton

  On Jan 12, 4:28 pm, abaitam abai...@gmail.com wrote:

   I am dying to try this. However, the script/run script (on MAC) gives
   me this error message:

   Exception in thread main java.lang.ClassNotFoundException:
   clojure.main
           at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
           at java.security.AccessController.doPrivileged(Native Method)
           at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
           at sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:229)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
           at java.lang.Class.forName0(Native Method)
           at java.lang.Class.forName(Class.java:169)
           at jline.ConsoleRunner.main(ConsoleRunner.java:73)

   I appreciate any help.

   On Jan 11, 2:27 pm, Brenton bashw...@gmail.com wrote:

Today we are releasing ClojureScript One. A project to help you get
started writing single-page applications in ClojureScript.

   http://clojure.com/blog/2012/01/11/announcing-clojurescript-one.html

   http://clojurescriptone.com/

   https://github.com/brentonashworth/one

This project is the result of a lot of hard work from the people at
Relevance. Thanks everyone.

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: ClojureScript One - Getting Started with ClojureScript

2012-01-12 Thread abaitam
Apparently I had Jenkins listening on port 8080. I can now see the
CLJS1 application. Will look at the jline problem later. Thanks
Brenton.

On Jan 12, 6:09 pm, abaitam abai...@gmail.com wrote:
 Hi,
 I removed the reference to jline.ConsoleRunner and the exception
 stopped but I get another error now:

 2012-01-12 18:05:34.527:INFO::Logging to STDERR via
 org.mortbay.log.StdErrLog
 2012-01-12 18:05:34.528:INFO::jetty-6.1.25
 2012-01-12 18:05:34.545:WARN::failed SocketConnec...@0.0.0.0:8080:
 java.net.BindException: Address already in use
 2012-01-12 18:05:34.545:WARN::failed Server@458e439a:
 java.net.BindException: Address already in use
 BindException Address already in use
 java.net.PlainSocketImpl.socketBind (PlainSocketImpl.java:-2)

 I used lsof -i | grep LISTEN to find if there is a process listening
 on the 8080 port but there is none. Also, shouldn't the ip be
 127.0.0.1 or localhost instead of 0.0.0.0?

 Thanks for your help

 On Jan 12, 5:03 pm, abaitam abai...@gmail.com wrote:







  Thanks, but I did run script/deps and it successfully completed I have
  all the jars under lib. I cloned CLJS1 several times but always got
  the same error.

  What information do you need to help me solve the problem?

  On Jan 12, 4:50 pm, Brenton bashw...@gmail.com wrote:

   It looks like you don't have Clojure. Did you run script/deps? Do you
   have anything in the lib directory?

   Try running it again.

   Brenton

   On Jan 12, 4:28 pm, abaitam abai...@gmail.com wrote:

I am dying to try this. However, the script/run script (on MAC) gives
me this error message:

Exception in thread main java.lang.ClassNotFoundException:
clojure.main
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:229)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:169)
        at jline.ConsoleRunner.main(ConsoleRunner.java:73)

I appreciate any help.

On Jan 11, 2:27 pm, Brenton bashw...@gmail.com wrote:

 Today we are releasing ClojureScript One. A project to help you get
 started writing single-page applications in ClojureScript.

http://clojure.com/blog/2012/01/11/announcing-clojurescript-one.html

http://clojurescriptone.com/

https://github.com/brentonashworth/one

 This project is the result of a lot of hard work from the people at
 Relevance. Thanks everyone.

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Clojure Dev Environment

2010-02-10 Thread abaitam
Hi,
There are several blog posts about setting up a development
environment for Clojure mostly in Emacs (and on Linux or Mac and not
Windows). Is there one place where I can find up-to-date information
on how to create a real-world Clojure project (and using Clojure and
Java libraries)? Do you know of someone who maintains such information
for newbies anywhere? I can't find such information on Clojure
website.

- I tried Clojure some time ago and I like it. But I was struggling
with Emacs at the same time.
- I am getting an error with Enclojure  that it cannot find the jar
files even though they are located in the prefs foloder.
- La Clojure's plugin is not working in Idea 9.

Thanks for any help

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en