Clojurians around Bielefeld, Germany?

2012-07-16 Thread Alex Ott
Hi all it will be talk about Clojure in Bielefeld this week, at Wednesday, 18th July at 19:00 (http://hackerspace-bielefeld.de/ai1ec_event/functionalowl-clojure/) - come, if you're interested ;-) -- With best wishes,Alex Ott http://alexott.net/ Tiwtter: alexott_en (English),

talking to machines: Teaching beginners to program with an interactive ClojureScript REPL

2012-07-16 Thread Pascal Chatterjee
Hey everyone, I've made a website http://talkingtomachines.org that embeds an interactive ClojureScript REPL that I'd like to try and use to teach beginners the basics of programming. Try out the first chapter http://talkingtomachines.org/chapter/1 and let me know what you think! The site

Re: Clojure Editor

2012-07-16 Thread Matt
Bluefish version 2.2.3 fresh install. Document -- Language Mode - no clojure on the list.. has support for Clojure been dropped? On Sunday, March 13, 2011 2:09:52 PM UTC+2, WoodHacker wrote: If you are looking for a very good editor for Clojure try Bluefish. It's been around for ever, is

Teaching beginners to program using an interactive ClojureScript REPL

2012-07-16 Thread Pascal Chatterjee
Hey everyone, I've built a website, http://talkingtomachines.org, that tries to teach beginners to program using an interactive ClojureScript REPL. Try it out and let me know what you think! It's a work-in-progress, and the source is on GitHub, so if anyone has any suggestions for improvements

community interest in machine learning (?)

2012-07-16 Thread Joshua Bowles
New to Clojure (but not Lisp). Does anyone have a good sense of the interest in machine learning in Clojure community? I've seen in the last few threads some interesting posts and libraries related to machine learning, and there is plenty of stuff one can get from Java (mahout, weka, clj-ml

Re: community interest in machine learning (?)

2012-07-16 Thread Alex Ott
Hi Joshua I know several people who're interested in this. I slowly working on translation of Mahout in Action examples to Clojure (https://github.com/alexott/mia-clj), and hope, that using these examples, as a base, we can build clojurish bindings for Mahout. I think, that some basic building

Re: Why :inline have to define the function twice?

2012-07-16 Thread Aaron Cohen
My guess: to allow functions with :inline metadata to still be used as higher order (first class) functions. Note, the fn specified by :inline is more of a macro than a function, it's called at compile time. How would the following work without a function body? (map pos? [-1 0 1]) definline

Re: Teaching beginners to program using an interactive ClojureScript REPL

2012-07-16 Thread Baishampayan Ghose
I've built a website, http://talkingtomachines.org, that tries to teach beginners to program using an interactive ClojureScript REPL. Try it out and let me know what you think! I played around with the app right now, and I really liked it! Keep up the good work, Pascal. Regards, BG --

Re: community interest in machine learning (?)

2012-07-16 Thread Joshua Bowles
Incanter does look great; look forward to getting into it; I'll check out your mahout examples too... I'm about ready to tear into that book. So much research has been done in Artificial Intelligence with LISP. With the applied history of LISP it just seems like a perfect fit for Clojure to take

Re: Teaching beginners to program using an interactive ClojureScript REPL

2012-07-16 Thread Erlis Vidal
I really like it. The feature to select and have the doc is super! Also having the live execution is neat! I can see some similarities with Ligth Table. Are you using it? Keep going, I think is really a neat way to learn! We can have even have books in this format... living books, the SICP ?

Re: Much longer build time for Clojure on HDD vs. SSD (4 min vs 30s)

2012-07-16 Thread Raju Bitter
I'm a bit concerned that it's a hard disk problem, but I've checked the disk, tested other build processes using Ant, and don't see a similar effect. -- Raju -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to

Much longer build time for Clojure on HDD vs. SSD (4 min vs 30s)

2012-07-16 Thread Raju Bitter
I've checked out the Clojure source code, and build the JAR using the Ant command. I'm seeing a strange effect, where the compile time on my normal hard disk takes almost 4 min (with most the time being spent in the compile-clojure task, and doing the same build process on my SSD taking 30-35s.

Re: Why :inline have to define the function twice?

2012-07-16 Thread dennis zhuang
Yes, thank you for your reply,i total agree with you about why we need :inline form in meta map. But my problem is that why clojure compiler could not use the body form as the :inline value automatically for us instead of writing a duplicate form? I think below codes is more suitable: (defn pos?

Re: Much longer build time for Clojure on HDD vs. SSD (4 min vs 30s)

2012-07-16 Thread Craig Brozefsky
Raju Bitter rajubit...@googlemail.com writes: I've checked out the Clojure source code, and build the JAR using the Ant command. I'm seeing a strange effect, where the compile time on my normal hard disk takes almost 4 min (with most the time being spent in the compile-clojure task, and doing

Re: community interest in machine learning (?)

2012-07-16 Thread Alex Ott
If you'll start to read this book, and plan to do examples in Clojure, then I can give you access to my repository - to benefit from collaborative work ;-) I also thought about using Weka, but the Data Mining: Practical Machine Learning Tools and Techniques, 3ed is still waiting in reading

Re: community interest in machine learning (?)

2012-07-16 Thread Joshua Bowles
Nice. I'm still few weeks from diving in... still groking the Clojure API... but when I'm ready I'm up for a collaborative effort! On Mon, Jul 16, 2012 at 10:25 AM, Alex Ott alex...@gmail.com wrote: If you'll start to read this book, and plan to do examples in Clojure, then I can give you

Re: Why :inline have to define the function twice?

2012-07-16 Thread Aaron Cohen
On Mon, Jul 16, 2012 at 11:26 AM, dennis zhuang killme2...@gmail.com wrote: Yes, thank you for your reply,i total agree with you about why we need :inline form in meta map. But my problem is that why clojure compiler could not use the body form as the :inline value automatically for us

Re: Why :inline have to define the function twice?

2012-07-16 Thread Timothy Baldridge
But my problem is that why clojure compiler could not use the body form as the :inline value automatically for us instead of writing a duplicate form? I think below codes is more suitable: It's not a duplicate form. Sure it may appear to be to those of us with organic brains that excel at

Re: newer versions

2012-07-16 Thread Haim Ashkenazi
Hi I've never used it but there is a plugin to pull git dependencies: https://github.com/tobyhede/lein-git-deps HTH On Sun, Jul 15, 2012 at 5:58 PM, cej38 junkerme...@gmail.com wrote: I know that this might be more of a question for elsewhere, but I have been playing with core.logic from

Please I urgently need help with my Clojure written App.

2012-07-16 Thread Oo Nwoye
Hi Guys/Girls, I need your help. I am a non-programmer (I barely write HTML) with a music music app that was built in Clojure. The app has been down for a few days and I cannot get in touch with the person that built it. And unfortunately, it is really hard to get someone that knows Clojure.

Re: Why do I get Agent Failed when running futures/promise example?

2012-07-16 Thread Tassilo Horn
larry google groups lawrencecloj...@gmail.com writes: I copy and paste the example to my REPL in emacs. Everything seems to work fine, and I get the correct answer, and yet at the end I see a message that says Agent Failed. Why? What does it mean? This is from my REPL: user (def x

Re: Much longer build time for Clojure on HDD vs. SSD (4 min vs 30s)

2012-07-16 Thread Ben Smith-Mannschott
On Mon, Jul 16, 2012 at 5:21 PM, Raju Bitter rajubit...@googlemail.com wrote: I've checked out the Clojure source code, and build the JAR using the Ant command. I'm seeing a strange effect, where the compile time on my normal hard disk takes almost 4 min (with most the time being spent in the

Re: Much longer build time for Clojure on HDD vs. SSD (4 min vs 30s)

2012-07-16 Thread Ben Smith-Mannschott
On Mon, Jul 16, 2012 at 9:17 PM, Ben Smith-Mannschott bsmith.o...@gmail.com wrote: On Mon, Jul 16, 2012 at 5:21 PM, Raju Bitter rajubit...@googlemail.com wrote: I've checked out the Clojure source code, and build the JAR using the Ant command. I'm seeing a strange effect, where the compile

How-to construct for example (.value record) with a macro

2012-07-16 Thread john
Hello, I have for example: (defrecord record [^long value]) (def aRecord (record. 123)) ; Now I want to construct code like (.value aRecord) ; with a macro I tried (defmacro inline-first-method[] (let [methods (record/getBasis)] (list '. (first methods) aRecord ))) ;but (macroexpand-1

Re: Much longer build time for Clojure on HDD vs. SSD (4 min vs 30s)

2012-07-16 Thread Raju Bitter
Thanks a lot for your answers. That explains the behavior I'm seeing. - Raju -- 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

seeking namespace-aware xml lib

2012-07-16 Thread Ben Smith-Mannschott
TL;DR: I'm looking for a Clojure library that round trips XML+namespaces through Clojure data structures and back again. I'm hacking on a chewing-gum-and-bailing-wire solution publish my wife's novels as EPUB. I've got most of a prototype of the core functionality working, but an stubbing my

Re: Much longer build time for Clojure on HDD vs. SSD (4 min vs 30s)

2012-07-16 Thread Andy Fingerhut
There are links to older discussions on this topic in the description of ticket CLJ-703: http://dev.clojure.org/jira/browse/CLJ-703 Also proposed patches to Clojure, although I don't know whether some of those may lead to incorrect behavior. Andy On Jul 16, 2012, at 12:48 PM, Raju Bitter

Re: Much longer build time for Clojure on HDD vs. SSD (4 min vs 30s)

2012-07-16 Thread David Powell
In my opinion, on-disk consistency isn't and wasn't a goal. And the spamming of calls to sync does nothing other than make compilation ridiculously slow on file systems that are slow at sync. sync should not have any user visible effects. It just seems to me to be a bit of voodoo code that

Re: Teaching beginners to program using an interactive ClojureScript REPL

2012-07-16 Thread Pascal Chatterjee
Thanks for your feedback, I'm glad you like it! I'm reading through the SICP right now and I'll definitely use it as inspiration for future chapters. The trickiest thing I've found so far is that, for simplicity, I've explained def as a function that takes a symbol and a value as arguments.

Re: talking to machines: Teaching beginners to program with an interactive ClojureScript REPL

2012-07-16 Thread Pascal Chatterjee
Oops, double post, can someone delete this? On Saturday, 14 July 2012 18:03:16 UTC+2, Pascal Chatterjee wrote: Hey everyone, I've made a website http://talkingtomachines.org that embeds an interactive ClojureScript REPL that I'd like to try and use to teach beginners the basics of

Re: How-to construct for example (.value record) with a macro

2012-07-16 Thread Moritz Ulrich
Simply use the alternative dot-form: (. (java.util.Date.) getDate) (. record value) On Mon, Jul 16, 2012 at 9:42 PM, john john.vie...@gmail.com wrote: Hello, I have for example: (defrecord record [^long value]) (def aRecord (record. 123)) ; Now I want to construct code like (.value

Re: How-to construct for example (.value record) with a macro

2012-07-16 Thread john
Thanks very much for the help ...even when it comes from Cologne (-: -- 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

re-sharing clojure on rlwrap

2012-07-16 Thread raschedh
I want to reshare something. The `Getting Started' section in the clojure reference contains a link to the `Getting Started' section of a wiki. On that wiki page, two years or so, ago, there was a script, that showed how to run a REPL on rlwrap. That script was great stuff. Sadly, it

Re: Much longer build time for Clojure on HDD vs. SSD (4 min vs 30s)

2012-07-16 Thread Laurent PETIT
Hello, Le 16 juil. 2012 à 22:52, David Powell d...@djpowell.net a écrit : In my opinion, on-disk consistency isn't and wasn't a goal. And the spamming of calls to sync does nothing other than make compilation ridiculously slow on file systems that are slow at sync. sync should not have any

Re: Tagged literals: undefined tags blow up reader

2012-07-16 Thread kovas boguta
Bumping this thread, since this is becoming more of a blocker for my efforts with Session. I think there are three operations you want to do on the unknown literal wrapper: 1. print/serialize it (this would just output the original string you read in) 2. get the tag name 3. get the uninterpreted

Re: Much longer build time for Clojure on HDD vs. SSD (4 min vs 30s)

2012-07-16 Thread Craig
I'm happy to now be aware of this issue. In amongst other (software, hardware) changes, I migrated a reasonably sized clojure application from 1.2 and 1.3 and compile times ballooned. It took me a while to realise it was a clojure issue. On Jul 17, 6:26 am, Andy Fingerhut

Re: Much longer build time for Clojure on HDD vs. SSD (4 min vs 30s)

2012-07-16 Thread Laurent PETIT
Hi, Le 17 juil. 2012 à 01:05, Craig craig.worr...@gmail.com a écrit : I'm happy to now be aware of this issue. In amongst other (software, hardware) changes, I migrated a reasonably sized clojure application from 1.2 and 1.3 The addition of the call to sync() in the compiler predates 1.2

Re: community interest in machine learning (?)

2012-07-16 Thread dmirylenka
Not sure about the community, but I personally would be very interested in having a machine learning library or environment in Clojure. I'm playing with classification and clustering of academic papers, and use clojure for the whole research cycle - crawling and parsing the data from the web,

Re: Clojure shell calls results inconsistent with actual shell calls.

2012-07-16 Thread Eric in San Diego
Thanks for everyone's input. I think at this point I've concluded that this is not a clojure problem, but rather something going on with the program I'm calling in the shell. I'm talking to the support community there. In the meantime I've found a work-around. Thanks again for everyone's

Re: Tagged literals: undefined tags blow up reader

2012-07-16 Thread kovas boguta
The special but important case of compiling clojurescript also raises some issues. When clojurescript source code is read, this is done by clojure, and thus the clojure tag readers apply. Currently they are re-bound to read the tag literals into clojurescript source code which, when executed,

Re: Much longer build time for Clojure on HDD vs. SSD (4 min vs 30s)

2012-07-16 Thread Softaddicts
Hi, Raju, We often AOT build here and we dropped standard disks a while ago. It brought us down to a build time around 30 seconds before it was several minutes. We have a mix of Clojure and Java code. Would not get back to a standard drive for all the $ in the world. Jar packaging also benefits

Re: Tagged literals: undefined tags blow up reader

2012-07-16 Thread Stuart Sierra
Hi Kovas, I considered the problem of what to do with undefined tags when I implemented this, but I didn't have a clear idea of what the result type should be, so I ignored it. I also didn't know what to do with the metadata. For example, on the JVM, you can't put metadata on Java types like

Re: re-sharing clojure on rlwrap

2012-07-16 Thread Zhitong He
I would highly recommend using leiningen. install leiningen 2.0 and run `lein repl`, there comes clojure REPL with readline and tab completion support like ipython. On Tue, Jul 17, 2012 at 6:07 AM, raschedh rasche...@gmail.com wrote: I want to reshare something. The `Getting Started' section

community interest in machine learning (?)

2012-07-16 Thread Jeff Heon
I could not comment on the community as a whole, but certainly a part of it has interest in it. Here is a presentation about using ML in Clojure for genome research: Hacking the Human Genome Using Clojure and Similarity Search http://bit.ly/yKFnPA Also, an interview with the speaker:

Re: Much longer build time for Clojure on HDD vs. SSD (4 min vs 30s)

2012-07-16 Thread Laurent PETIT
Le 17 juil. 2012 à 02:04, Softaddicts lprefonta...@softaddicts.ca a écrit : Hi, Raju, We often AOT build here and we dropped standard disks a while ago. It brought us down to a build time around 30 seconds before it was several minutes. We have a mix of Clojure and Java code. Would not

Re: Please I urgently need help with my Clojure written App.

2012-07-16 Thread Murtaza Husain
Hi, Can you post something so that we can take a look at it. Maybe upload the code to github ? Or provide us access to it in some form. Thanks, Murtaza On Monday, July 16, 2012 10:09:35 PM UTC+5:30, Oo Nwoye wrote: Hi Guys/Girls, I need your help. I am a non-programmer (I barely write

Re: Why :inline have to define the function twice?

2012-07-16 Thread dennis zhuang
Thanks. Yeath,i know the defline macro,and it is the best way to define inline function.I got your point,thanks. 2012/7/17 Aaron Cohen aa...@assonance.org On Mon, Jul 16, 2012 at 11:26 AM, dennis zhuang killme2...@gmail.com wrote: Yes, thank you for your reply,i total agree with you about