Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Clojure

 
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just started learning Clojure with a few friends using the ProgPrag book:
http://www.pragprog.com/titles/shcloj/programming-clojure

Anyone else around here taking the time to learn Clojure?
 
Ranch Hand
Posts: 376
Scala Monad
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is in my TODO list. I'm really interested in the concurrency constructs it provides (STM specially). Maybe that's enough to get over my aversion to Lisp code...
 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ive spent quite a bit of time with it, and I really like it. Rich hickey gives some excellent talks, which is what got me interested initially. Chunked sequences are quite nice.

Is the question simply to see who is learning the language or did you have other specific reasons for the post?

I am not using it professionally yet but I have a friend who is using it for unit testing (which as far as I can tell, as with any unit testing, is simply exploiting syntax and not really any of the language benefits).
 
Marc Peabody
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm mainly putting my feelers out to see if others are actively studying it. Hopefully when I run into problems I can post them here.
 
clojure forum advocate
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, Clojure is on my list.
I'm really excited about it since I never learnt about LISP.
Currently I'm confused about what is my second language on the JVM: Groovy, Scala or Clojure.
 
Hussein Baghdadi
clojure forum advocate
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My latest update:
I added Clojure to my arsenal and I really enjoy it, I wish if I can do some serious projects with it.
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've started learning it too. But still I'm struggling to find any good reason to use it.
 
Hussein Baghdadi
clojure forum advocate
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Christophe Verré wrote:I've started learning it too. But still I'm struggling to find any good reason to use it.


I have a lot of reasons to use it but I can't employ it in my current job (as iOS developer).
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you tell me some of these reasons ?
 
Hussein Baghdadi
clojure forum advocate
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm by no mean an expert, just a Clojure enthusiast.
  • Low ceremony, highly expressive which means Clojure programs are short and easy to maintain (of course after you get a Clojure eye).
  • It is Lisp which means code is data, the crown jewel of Lisp legendry power.
  • Clojure is fast and version 1.3 is promising to deliver a magnificant performance boost.
  • Concurreny in Clojure is awesome, IMHO Clojure support for concurrency (not to forget Akka framework) is the current best solution.
  • Excellent Java interoperability (although I think Scala offers the best Java interoperability).

  • Of course the list is much bigger but these are quick points.
     
    Christophe Verré
    Sheriff
    Posts: 14691
    16
    Eclipse IDE VI Editor Ubuntu
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Thank you John. But these are Clojure appeal points. I've read them too in the doc. I was looking for something more like :

    A: "If I were to made a program which does X and Y, I'd go for Clojure."
    B: "Why ? You can do it in Java too."
    A: "Yes, but Clojure allows you to do it this way and that way. It's easier."

    I'm looking for something more practical. If I want to sort a file, I'll probably use a unix command. If I want to sort files, compare them and do special stuff, I might use Perl. Why would I use Clojure ? I'm really interested in trying to use, but I can't find any concrete application to it.

    PS : I haven't gone deep enough yet, so I might just be missing the whole point
     
    Hussein Baghdadi
    clojure forum advocate
    Posts: 3479
    Mac Objective C Clojure
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    I'm using Clojure primarily as a scripting language.
    For example, I'm writing now Clojure script to import my saved bookmarked links in Delicious and save them to Zootool.
    I didn't do any serious Clojure development but I'm absolutely sure it will brings a lot of added values to my software.
     
    Christophe Verré
    Sheriff
    Posts: 14691
    16
    Eclipse IDE VI Editor Ubuntu
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator

    John Todd wrote:I'm using Clojure primarily as a scripting language.
    For example, I'm writing now Clojure script to import my saved bookmarked links in Delicious and save them to Zootool.
    I didn't do any serious Clojure development but I'm absolutely sure it will brings a lot of added values to my software.


    Now that's concrete Thanks John. I guess you are using some libraries to achieve that ?
     
    Hussein Baghdadi
    clojure forum advocate
    Posts: 3479
    Mac Objective C Clojure
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    I'm trying not to fall back to any Java library or API, I'm trying to implement it in idiomatic and pure Clojure.
    Delicious allows you to fetch your bookmarks via HTML feeds.
    I'm trying to lean heavily on Clojure sequences.
     
    Christophe Verré
    Sheriff
    Posts: 14691
    16
    Eclipse IDE VI Editor Ubuntu
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    It sounds interesting ! And it may be a fun practical exercise.
     
    Hussein Baghdadi
    clojure forum advocate
    Posts: 3479
    Mac Objective C Clojure
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator

    Christophe Verré wrote:It sounds interesting ! And it may be a fun practical exercise.


    Although it is really trivial but I will release the source code once I finish it (not soon to be sure ).
     
    Danger, 10,000 volts, very electic .... tiny ad:
    Thread Boost feature
    https://coderanch.com/t/674455/Thread-Boost-feature
      Bookmark Topic Watch Topic
    • New Topic