Re: How to get a value of a var in Java

2021-06-18 Thread Alex Ott
does this answer your q:
https://stackoverflow.com/questions/2181774/calling-clojure-from-java/2182608#2182608
?

On Fri, Jun 18, 2021 at 12:53 PM ru  wrote:

> Dear Clojure users and team!
> Citation 1 from Clojure documentation:
>
> "Calling Clojure From Java..
> IFn plus = Clojure.var("clojure.core", "+");
> plus.invoke(1, 2);.."
>
> With functions all well but with def..
>
> Citation 2:
>
> "(def *symbol* *doc-string*? *init*?)
>
> Creates and interns or locates a global var
> <https://clojure.org/reference/vars> with the name of *symbol* and a
> namespace of the value of the current namespace (*ns*). "
>
> I can not figure out how to get the value of the symbol, created with def
> construct in Clojure and, for example, print it with System.out.println in
> Java.
>
> I tried everything, nothing works! :(
>
> Any help would be greatly appreciated.
>
> Sincerely,
>
>   Ru
>
>
>
>
>
> --
> 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
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/clojure/fcbd3883-705a-4180-9b99-7ccad64a09afn%40googlegroups.com
> <https://groups.google.com/d/msgid/clojure/fcbd3883-705a-4180-9b99-7ccad64a09afn%40googlegroups.com?utm_medium=email_source=footer>
> .
>


-- 
With best wishes,Alex Ott
http://alexott.net/
Twitter: alexott_en (English), alexott (Russian)

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/clojure/CALV1_%3DKecD-Jtkkz%2BWZ5vn48ZHqq9EuZttZN6gJAWvv1_w8fOg%40mail.gmail.com.


Re: Clojure interop with Spark

2020-07-10 Thread Alex Ott
>From Spark perspective, I would really advise to use Dataframe API as much
as possible, including the Spark Structured Streaming instead of Spark
Streaming - the main reason is more optimized execution of the code because
of all optimizations that Catalyst is able to make. But I really don't see
libraries that wrap dataframe API

On Thu, Jul 9, 2020 at 11:36 PM Tim Clemons  wrote:

> I'm putting together a big data system centered around using Spark
> Streaming for data ingest and Spark SQL for querying the stored data.  I've
> been investigating what options there are for implementing Spark
> applications using Clojure.  It's been close to a decade since sparkling or
> flambo have received any updates and it doesn't look like either will
> accommodate recent distributions of Spark.  I've found powderkeg an
> interesting option, and I like how it supports remote REPLs and the use of
> tranducers rather than wrapped Scala fns.  However, it looks like it's also
> seen a few years without commits and I've heard loose talk that the
> developers have moved on to other pursuits.
>
> Part of the problem seems to be Spark.  The project seem unapologetic
> about breaking interfaces and seems willing to sacrifice third-party code
> that tries to track Spark's development.
>
> So my options seem to be the following:
>
> 1. Deploy an older version of Spark that's compatible with one of the
> above mentioned libraries.  While we don't need to be bleeding edge,
> deploying a three year old version just to accommodate my preferred
> language is hard to justify.
>
> 2. Create a merge to update one of those libraries to more recent versions
> of Spark and be prepared to maintain it internally for the lifespan of this
> project.  This may be vastly overestimating my personal heroics.
>
> 3. Code my own solution from scratch using Java/Scala interop, sketching
> out just enough of a Clojure wrapper to suit my ends.
>
> 4. Learn Scala.
>
> I realize that Spark isn't the only game in town (Onyx, for example).
> However, I'm working with a team of developers who are not familiar with
> Clojure (though I'm working to be an advocate). I choose Spark as an
> established solution that supports multiple languages and handles both
> streaming and batch processing.
>
> Any insights?  Any solutions I'm overlooking?
>
>
>
> --
> 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
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/clojure/259f5ff6-dd66-4688-aa80-439fed88ab39o%40googlegroups.com
> <https://groups.google.com/d/msgid/clojure/259f5ff6-dd66-4688-aa80-439fed88ab39o%40googlegroups.com?utm_medium=email_source=footer>
> .
>


-- 
With best wishes,Alex Ott
http://alexott.net/
Twitter: alexott_en (English), alexott (Russian)

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/clojure/CALV1_%3DJtBC02CchwoCT3%3DgHbdMBfaACRA_T6yRnZo0KCr9tACg%40mail.gmail.com.


Re: GSoC: Congratulations Aleksandr and Prasant!

2014-08-25 Thread Alex Ott
I join to congratulations - this is fantastic work!


On Mon, Aug 25, 2014 at 8:15 AM, Mikera mike.r.anderson...@gmail.com
wrote:

 Hi All,

 Prasant and Aleksandr have been working all summer making Clojure even
 better for data science / numerical computing. On behalf of myself and my
 co-mentor Alex Ott I want to offer congratulations to them both for
 successfully completing their Google Summer of Code projects!

 Thanks to Prasant, we now have full, idiomatic, linear algebra support for
 Clojure. The implementation (part of vectorz-clj) is pure JVM code - i.e.
 no need for native dependencies. In terms of performance, we are already
 competitive with many Java matrix implementations and with some further
 optimisation could easily be one of the fastest linear algebra libaries on
 the JVM. To see the results of Prasant's work, check out core.matrix,
 vectorz-clj and vectorz.

 https://github.com/mikera/core.matrix
 https://github.com/mikera/vectorz
 https://github.com/mikera/vectorz-clj

 Thanks to Aleksandr, we have completed the Incanter / core.matrix
 implementation work which will make it possible to use core.matrix
 implementations seamlessly within Incanter 2.0. You can use regular Clojure
 vectors (nested persistent vectors of numbers), vectorz-clj (pure JVM,
 double precision), Clatrix (native BLAS support) or any combination of
 these. There is also new, improved Dataset support which makes it
 possible to create custom dataset types by implementing some new dataset
 protocols. To see the results of Aleksandr's work, check out Incanter,
 Clatrix and core.matrix

 https://github.com/incanter/incanter
 https://github.com/tel/clatrix/commits/master
 https://github.com/mikera/core.matrix

 Taken together, these projects represent a significant step towards making
 Clojure a leading language for data science and analytics.

 Well done Prasant and Aleksandr!




-- 
With best wishes,Alex Ott
http://alexott.net/
Twitter: alexott_en (English), alexott (Russian)
Skype: alex.ott

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: GSoC: Congratulations Aleksandr and Prasant!

2014-08-25 Thread Alex Ott
There is no specific date yet, but I plan to cut intermediate release(s) as
Incanter 1.9.x so you can try new functionality  report bugs if you find
some. After this stabilization phase (together with accepting pending pull
requests  fixing the issues) the version 2.0 will be released - I hope
that this will happen in October.

I'll send separate notification (together with longer blog post) when 1.9.0
will be pushed to clojar


On Mon, Aug 25, 2014 at 12:21 PM, Gadzhi Musaev musaevgad...@gmail.com
wrote:

 So, can you tell us, when Incanter 2.0 will be released?)


 On 25 August 2014 11:08, Ambrose Bonnaire-Sergeant 
 abonnaireserge...@gmail.com wrote:

 Fantastic!

 Thanks,
 Ambrose


 On Mon, Aug 25, 2014 at 2:15 AM, Mikera mike.r.anderson...@gmail.com
 wrote:

 Hi All,

 Prasant and Aleksandr have been working all summer making Clojure even
 better for data science / numerical computing. On behalf of myself and my
 co-mentor Alex Ott I want to offer congratulations to them both for
 successfully completing their Google Summer of Code projects!

 Thanks to Prasant, we now have full, idiomatic, linear algebra support
 for Clojure. The implementation (part of vectorz-clj) is pure JVM code -
 i.e. no need for native dependencies. In terms of performance, we are
 already competitive with many Java matrix implementations and with some
 further optimisation could easily be one of the fastest linear algebra
 libaries on the JVM. To see the results of Prasant's work, check out
 core.matrix, vectorz-clj and vectorz.

 https://github.com/mikera/core.matrix
 https://github.com/mikera/vectorz
 https://github.com/mikera/vectorz-clj

 Thanks to Aleksandr, we have completed the Incanter / core.matrix
 implementation work which will make it possible to use core.matrix
 implementations seamlessly within Incanter 2.0. You can use regular Clojure
 vectors (nested persistent vectors of numbers), vectorz-clj (pure JVM,
 double precision), Clatrix (native BLAS support) or any combination of
 these. There is also new, improved Dataset support which makes it
 possible to create custom dataset types by implementing some new dataset
 protocols. To see the results of Aleksandr's work, check out Incanter,
 Clatrix and core.matrix

 https://github.com/incanter/incanter
 https://github.com/tel/clatrix/commits/master
 https://github.com/mikera/core.matrix

 Taken together, these projects represent a significant step towards
 making Clojure a leading language for data science and analytics.

 Well done Prasant and Aleksandr!

  --
 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
 ---
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to clojure+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


  --
 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
 ---
 You received this message because you are subscribed to the Google Groups
 Clojure group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to clojure+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


  --
 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
 ---
 You received this message because you are subscribed to the Google Groups
 Clojure group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to clojure+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.




-- 
With best wishes,Alex Ott
http://alexott.net/
Twitter: alexott_en (English), alexott (Russian)
Skype: alex.ott

-- 
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

Re: Parsing ODT files (with Pantomime?)

2014-06-04 Thread Alex Ott
Hi

Pantomime right now doesn't support the text extraction, but you can take
the https://github.com/alexott/clj-tika (outdate although) - it uses the
Apache Tika for text extraction


On Wed, Jun 4, 2014 at 1:27 AM, Bastien bastiengue...@gmail.com wrote:

 Hi all,

 I'm trying to get the content of an ODT file as plain text.

 I've found Pantomime, but don't understand how to use it?

 Can anyone put me on the right tracks with a minimal working
 example?

 Thanks in advance!

 --
  Bastien

 --
 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
 ---
 You received this message because you are subscribed to the Google Groups
 Clojure group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to clojure+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.




-- 
With best wishes,Alex Ott
http://alexott.net/
Twitter: alexott_en (English), alexott (Russian)
Skype: alex.ott

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Parsing ODT files (with Pantomime?)

2014-06-04 Thread Alex Ott
lein try clj-tika 1.2.0

user= (use 'tika)
user= (def res (parse 
https://www.oasis-open.org/committees/download.php/25054/07-08-22-MetaData-Examples.odt
))
#'user/res

res - the map consisting of:
 - :text - extracted text
 - all other fields - metadata from document





On Wed, Jun 4, 2014 at 2:33 PM, Bastien bastiengue...@gmail.com wrote:

 Hi Alex,

 Alex Ott alex...@gmail.com writes:

  Pantomime right now doesn't support the text extraction, but you can
  take the https://github.com/alexott/clj-tika (outdate although) - it
  uses the Apache Tika for text extraction

 thanks -- I stumbled upon clj-tika but didn't understand how to use
 it.  Would you have a minima example?  The README is pretty terse.

 Thanks in advance,

 --
  Bastien

 --
 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
 ---
 You received this message because you are subscribed to the Google Groups
 Clojure group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to clojure+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.




-- 
With best wishes,Alex Ott
http://alexott.net/
Twitter: alexott_en (English), alexott (Russian)
Skype: alex.ott

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: ANN: [R User Conference]

2014-05-30 Thread Alex Ott
There is also new book from Eric:
http://www.packtpub.com/mastering-clojure-data-analysis/book - I haven't
read it yet

Packt also released the book Clojure for Machine Learning
http://www.packtpub.com/clojure-for-machine-learning/book - not so bad,
covers parts of Incanter + other libraries


On Thu, May 29, 2014 at 10:59 PM, TP wing...@gmail.com wrote:

 On Thu, May 29, 2014 at 12:21 PM, Gregg Reynolds d...@mobileink.com
 wrote:

 On Thu, May 29, 2014 at 1:22 AM, A aael...@gmail.com wrote:

 I hope it's allright to mention here that the R User Conference is
 happening June 30-July 3 in Los Angeles.  There are a number of ways
 Clojure and R can be used together for statistical programming and data
 analysis.

 Observing the R community may be insightful for the Clojure community
 with respect to the Incanter project and other data science oriented
 efforts in Clojure.


 Ditto for Julia.  JuliaCon 2014 http://juliacon.org/ will be in
 Chicago in June.  Any other Clojurites going?  I'm mainly interested in
 Clojure, mainly because it's hard to beat it as a data integration language
 (whatever that means), but I think Julia is worth a hard look.

 -Gregg


 There is also the newish book Clojure Data Analysis Cookbook (Packt,
 March 2013) by Eric Rochester [1]. I haven't read it but it covers things
 like working with R, Mathematica, and Inchanter via Clojure.

 [1] http://www.packtpub.com/clojure-data-analysis-cookbook/book

  --
 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
 ---
 You received this message because you are subscribed to the Google Groups
 Clojure group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to clojure+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.




-- 
With best wishes,Alex Ott
http://alexott.net/
Twitter: alexott_en (English), alexott (Russian)
Skype: alex.ott

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: core.async and Joy of Clojure

2014-04-28 Thread Alex Ott
The Seven Concurrency Models in Seven Weeks: When Threads Unravel (
http://pragprog.com/book/pb7con/seven-concurrency-models-in-seven-weeks)
has the description of the core.async in the CSP chapter...


On Mon, Apr 28, 2014 at 4:42 PM, gamma235 jesus.diama...@gmail.com wrote:


 Hey guys,

 I have studied the sample code snippets on the github page, read through
 several tutorials and watched many talks on core.async, but am still unable
 to effectively implement this library in my programs. I am trying to level
 up here with this subject, but feel like the existing documentation is kind
 of lacking in the middle. Are there any good resources out there that can
 bridge the gap between code snippets and show how the concepts of this
 library pertain to system design? I heard that Joy of Clojure would be
 adding a lot in the 2nd edition, including a section on core.logic; is
 core.async also on that list?

 J

 --
 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
 ---
 You received this message because you are subscribed to the Google Groups
 Clojure group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to clojure+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.




-- 
With best wishes,Alex Ott
http://alexott.net/
Twitter: alexott_en (English), alexott (Russian)
Skype: alex.ott

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Books for learning Clojure

2014-04-22 Thread Alex Ott
Hi

I would recommend to take Programming Clojure or Clojure Programming first,
and after that take the The Joy of Clojure (2ed)...


On Tue, Apr 22, 2014 at 8:18 PM, Cecil Westerhof cldwester...@gmail.comwrote:

 I have a ‘little’ to learn. ;-) I have worked with a lot of languages,
 including Lisp. I was thinking about the following books (in that order):
 - Practical Clojure
 - Clojure in Action
 - The Joy of Clojure
 - Clojure Programming
 - Programming Clojure

 Someone told me it was better to start with Programming Clojure and after
 that The Joy of Clojure. Any idea's about this?

 --
 Cecil Westerhof

 --
 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
 ---
 You received this message because you are subscribed to the Google Groups
 Clojure group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to clojure+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.




-- 
With best wishes,Alex Ott
http://alexott.net/
Twitter: alexott_en (English), alexott (Russian)
Skype: alex.ott

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ANN] Gorilla REPL initial release (0.1.2)

2014-02-23 Thread Alex Ott
, as in I can paste in some MathML and it
 renders as a formula. It's so horrible compared to laTeX though I don't see
 why you'd want to do it! Get revising that laTeX :-)


 A long post! Love to hear your thoughts, and thanks for the support :-)


 Jony

 --
 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
 ---
 You received this message because you are subscribed to the Google Groups
 Clojure group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to clojure+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
With best wishes,Alex Ott
http://alexott.net/
Twitter: alexott_en (English), alexott (Russian)
Skype: alex.ott

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [$Bounty] Emacs plugin for Typed Clojure

2014-02-12 Thread Alex Ott
 to
 clojure+u...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en
 ---
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to clojure+u...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.


  --
 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
 ---
 You received this message because you are subscribed to the Google Groups
 Clojure group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to clojure+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
With best wishes,Alex Ott
http://alexott.net/
Twitter: alexott_en (English), alexott (Russian)
Skype: alex.ott

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: GSoC 2014: org applications now open

2014-02-08 Thread Alex Ott
Hi Avram

There is discussion in Incanter's issue about this:
https://github.com/liebke/incanter/issues/193 - maybe it would be possible
to implement support for different chart backends - like, D3.js, JavaFX,
etc.



On Sat, Feb 8, 2014 at 12:02 AM, A aael...@gmail.com wrote:


 A couple ideas put forth:

 1. Incanter charts with d3 (http://d3js.org/) ?  Perhaps facilitated by
 Dribnet's Strokes library (https://github.com/dribnet/strokes).

 2. Finding ways to integrate Incanter and Clojurescript.

 Thoughts?

 -Avram





 On Monday, February 3, 2014 11:59:24 AM UTC-8, Daniel Solano Gómez wrote:

 Hello, all,

 Apparently, it's already time for organisations to apply for Google
 Summer of Coder 2014 [1].   This is a great program, and there have been
 several notable projects that have benefited as a result.  For example,
 last year's successful projects included:

 * Enhance Neko for Android, Alexander Yakushev
 * core.typed: Extensions and Documentation, Ambrose Bonnaire-Sergeant
 * Clojure Compiler port to Clojure (CinC), Bronsa
 * Implementation of core.matrix-compatible multidimensional array in
 Clojure, Dmitry Groshev
 * Algebraic Expressions, Maik Schünemann
 * ClojureScript optimization and source maps support, Michal Marczyk

 I would love to see Clojure participate again this year.  In order to do
 so, we need to start our application which is due in less than two weeks.
  We need volunteers to help prepare our application, and in particular it
 would be great to have administrators that can help lead the process.  I am
 certainly willing to help out, but if there is someone who wants to lead up
 this effort, I would happy to assist.

 Ideally, we could have multiple administrators to spread out the
 following duties:

 * Updating the community wiki for the year [2]
 * Recruiting potential mentors
 * Raising the profile of GSoC within the community

 If we are accepted as a GSoC organisation, administrator duties include:

 * Ensuring we meet the deadlines
 * Arranging for travel to the mentor submit
 * Arranging for students' travel to conferences
 * If necessary, solve problems

 I am afraid that last year I let the ball drop a bit with the mentor
 summit and getting students to conferences.  With multiple administrators
 to help spread the work around, I am sure we can make GSoC an even better
 experience for everyone involved.

 If you are interested in helping out in this effort, please set up a
 profile on Melange [3] and e-mail me your profile name.

 Thanks for your help.

 Sincerely,

 Daniel


 [1]: http://google-opensource.blogspot.com/2014/02/
 mentoring-organization-applications-now.html
 [2]: http://dev.clojure.org/display/community/Google+Summer+of+Code+2013
 [3]: http://en.flossmanuals.net/melange/

  --
 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
 ---
 You received this message because you are subscribed to the Google Groups
 Clojure group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to clojure+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
With best wishes,Alex Ott
http://alexott.net/
Twitter: alexott_en (English), alexott (Russian)
Skype: alex.ott

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Namespaces in waiting

2014-01-07 Thread Alex Ott
You can use find-namespaces from
http://clojure.github.io/tools.namespace/#clojure.tools.namespace.find to +
clojure.java.classpath to get a list of all namespaces in current
classpath...


On Mon, Jan 6, 2014 at 7:45 PM, Stephen C. Gilardi scgila...@gmail.comwrote:


 On Jan 1, 2014, at 3:26 PM, Dave Tenny dave.te...@gmail.com wrote:

  When I use 'lein repl' in some project context and get to the REPL
 prompt, there's an available but as yet not ... present ... namespace, i.e.
 (all-ns) won't list the namespace(s) created in the lein project directory
 tree.
 
  Is there some API I can use to see a list these available but not active
 namespaces?

 I’m not aware of one.

  I'm guessing that looking at what's on the class path doesn't
 necessarily tell me what namespaces might be USE-able via (use 'x).

 Walking the classpath including the contents of jar files would be a way
 to construct such a list of USE-able (or REQUIRE-able) namespaces. It would
 involve  traversing the directory structure under each entry in the
 classpath and reading at least the first ns form in each candidate file (or
 jar entry).

 —Steve

 --
 --
 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
 ---
 You received this message because you are subscribed to the Google Groups
 Clojure group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to clojure+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
With best wishes,Alex Ott
http://alexott.net/
Twitter: alexott_en (English), alexott (Russian)
Skype: alex.ott

-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Incanter 1.5.4 has been released

2013-09-01 Thread Alex Ott
Hi all

The new bugfix release of Incanter was released as version 1.5.4.
See changelog (https://github.com/liebke/incanter/blob/master/Changes.md)
for details.

Thank you for all who submitted pull requests  issues!

-- 
With best wishes,Alex Ott
http://alexott.net/
Twitter: alexott_en (English), alexott (Russian)
Skype: alex.ott

-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [ANN] Leiningen 2.3.0 released

2013-08-09 Thread Alex Ott
Also fails on Linux

ott@mercury:.../Debug\lein
upgrade
8:34 0
Downloading Leiningen to
/home/ott/.lein/self-installs/leiningen-2.3.0-standalone.jar now...
  % Total% Received % Xferd  Average Speed   TimeTime Time
Current
 Dload  Upload   Total   SpentLeft
Speed
  0 00 00 0  0  0 --:--:-- --:--:--
--:--:-- 0
curl: (22) The requested URL returned error: 403
/home/ott/bin/lein: line 63: download_failed_message: command not found
ott@mercury:./Debug\wget
https://leiningen.s3.amazonaws.com/downloads/leiningen-2.3.0-standalone.jar
8:35 1
--2013-08-09 08:35:29--
https://leiningen.s3.amazonaws.com/downloads/leiningen-2.3.0-standalone.jar
Resolving leiningen.s3.amazonaws.com (leiningen.s3.amazonaws.com)...
205.251.242.192
Connecting to leiningen.s3.amazonaws.com
(leiningen.s3.amazonaws.com)|205.251.242.192|:443...
connected.
HTTP request sent, awaiting response... 403 Forbidden
2013-08-09 08:35:30 ERROR 403: Forbidden.



On Fri, Aug 9, 2013 at 7:21 AM, Sean Corfield seancorfi...@gmail.comwrote:

 I'm still getting the 403 forbidden error. Mac and Windows.

 On Thu, Aug 8, 2013 at 10:06 PM, Phil Hagelberg p...@hagelb.org wrote:
  On Thursday, August 8, 2013 8:52:47 PM UTC-7, Frank Hale wrote:
  Looks like I was way too fast. Upgrading just worked for me. Thank you!
 
 
  I got the ACL wrong on the initial upload but fixed it a few minutes
 after
  the email went out.
 
  -Phil
 
  --
  --
  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
  ---
  You received this message because you are subscribed to the Google Groups
  Clojure group.
  To unsubscribe from this group and stop receiving emails from it, send an
  email to clojure+unsubscr...@googlegroups.com.
  For more options, visit https://groups.google.com/groups/opt_out.
 
 



 --
 Sean A Corfield -- (904) 302-SEAN
 An Architect's View -- http://corfield.org/
 World Singles, LLC. -- http://worldsingles.com/

 Perfection is the enemy of the good.
 -- Gustave Flaubert, French realist novelist (1821-1880)

 --
 --
 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
 ---
 You received this message because you are subscribed to the Google Groups
 Clojure group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to clojure+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
With best wishes,Alex Ott
http://alexott.net/
Twitter: alexott_en (English), alexott (Russian)
Skype: alex.ott

-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Is it possible to increase the canvas size of an Incanter chart?

2013-08-07 Thread Alex Ott
Hi

basically, if I remember correctly, it should be configured via setPadding
method of JFreeChart class (
http://www.jfree.org/jfreechart/api/javadoc/org/jfree/chart/JFreeChart.html#setPadding%28org.jfree.ui.RectangleInsets%29),
but I haven't checked it.

P.S. for incanter questions it's better to ask in its list - there are more
people there who are working with it more often :-)



On Wed, Aug 7, 2013 at 4:10 AM, Tim Visher tim.vis...@gmail.com wrote:

 `(view … :width … :height …)` isn't what I want as that doesn't seem
 to intrinsically increase the size that incanter thinks it can use to
 draw. It more seems to have the effect that scaling the resulting
 window has, which is not desirable.

 I'm putting a bunch of box and whisker data on a single chart so I'd
 like to give it more breathing room.

 Thanks in advance!

 --

 In Christ,

 Timmy V.

 http://blog.twonegatives.com/
 http://five.sentenc.es/ -- Spend less time on mail

 --
 --
 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
 ---
 You received this message because you are subscribed to the Google Groups
 Clojure group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to clojure+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.





-- 
With best wishes,Alex Ott
http://alexott.net/
Twitter: alexott_en (English), alexott (Russian)
Skype: alex.ott

-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Incanter 1.5.2 has been released

2013-08-05 Thread Alex Ott
Ooops, completely forgot to do this - it's done now

thank you


On Mon, Aug 5, 2013 at 3:55 AM, Tom Faulhaber tomfaulha...@gmail.comwrote:

 Thanks for keeping the ball rolling, Alex. We appreciate it very much!

 Could you tag the release on github so that autodoc will build for it
 correctly?

 Thanks,

 Tom


 On Sunday, August 4, 2013 11:20:07 AM UTC-7, Alex Ott wrote:

 Hi all

 I've just pushed new release of Incanter to Clojars. This is mostly
 bugfix release. More information is at http://data-sorcery.org/2013/**
 08/04/incanter-1-5-2-bugfix-**release/http://data-sorcery.org/2013/08/04/incanter-1-5-2-bugfix-release/

 --
 With best wishes,Alex Ott
 http://alexott.net/
 Twitter: alexott_en (English), alexott (Russian)
 Skype: alex.ott

  --
 --
 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
 ---
 You received this message because you are subscribed to the Google Groups
 Clojure group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to clojure+unsubscr...@googlegroups.com.

 For more options, visit https://groups.google.com/groups/opt_out.






-- 
With best wishes,Alex Ott
http://alexott.net/
Twitter: alexott_en (English), alexott (Russian)
Skype: alex.ott

-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Incanter 1.5.2 has been released

2013-08-05 Thread Alex Ott
I don't know, how often the documentation is regenerated - I think, that
Tom can clarify this...


On Mon, Aug 5, 2013 at 3:19 PM, Jakub Holy jakub.h...@iterate.no wrote:

 I can see that http://liebke.github.io/incanter/core-api.html still reads
 Incanter 1.5.1 so either it hasn't been long enough since you tagged it
 or something else must be done to update the docs.

 Thank you!


 On Monday, August 5, 2013 8:10:38 AM UTC+2, Alex Ott wrote:

 Ooops, completely forgot to do this - it's done now

 thank you


 On Mon, Aug 5, 2013 at 3:55 AM, Tom Faulhaber tomfau...@gmail.comwrote:

 Thanks for keeping the ball rolling, Alex. We appreciate it very much!

 Could you tag the release on github so that autodoc will build for it
 correctly?

 Thanks,

 Tom


 On Sunday, August 4, 2013 11:20:07 AM UTC-7, Alex Ott wrote:

 Hi all

 I've just pushed new release of Incanter to Clojars. This is mostly
 bugfix release. More information is at http://data-sorcery.org/2013/**0
 **8/04/incanter-1-5-2-bugfix-**rel**ease/http://data-sorcery.org/2013/08/04/incanter-1-5-2-bugfix-release/

 --
 With best wishes,Alex Ott
 http://alexott.net/
 Twitter: alexott_en (English), alexott (Russian)
 Skype: alex.ott

  --
 --
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To post to this group, send email to clo...@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+u...@**googlegroups.com

 For more options, visit this group at
 http://groups.google.com/**group/clojure?hl=enhttp://groups.google.com/group/clojure?hl=en
 ---
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to clojure+u...@**googlegroups.com.

 For more options, visit 
 https://groups.google.com/**groups/opt_outhttps://groups.google.com/groups/opt_out
 .






 --
 With best wishes,Alex Ott
 http://alexott.net/
 Twitter: alexott_en (English), alexott (Russian)
 Skype: alex.ott

  --

 ---
 You received this message because you are subscribed to the Google Groups
 Incanter group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to incanter+unsubscr...@googlegroups.com.

 For more options, visit https://groups.google.com/groups/opt_out.






-- 
With best wishes,Alex Ott
http://alexott.net/
Twitter: alexott_en (English), alexott (Russian)
Skype: alex.ott

-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Incanter 1.5.2 has been released

2013-08-04 Thread Alex Ott
Hi all

I've just pushed new release of Incanter to Clojars. This is mostly bugfix
release. More information is at
http://data-sorcery.org/2013/08/04/incanter-1-5-2-bugfix-release/

-- 
With best wishes,Alex Ott
http://alexott.net/
Twitter: alexott_en (English), alexott (Russian)
Skype: alex.ott

-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Incanter 1.5.0 has been released!

2013-06-09 Thread Alex Ott
I'm happy to announce, that Incanter 1.5.0 was pushed to Clojars. Full list
of changes is in the Changelog:
https://github.com/liebke/incanter/blob/master/Changes.md, please check the
Known issues section.

Incanter (http://incanter.org/) is a Clojure-based, R-like platform for
statistical computing and graphics.  Incanter can be used as a standalone,
interactive data analysis environment or embedded within other analytics
systems as a modular suite of libraries.

-- 
With best wishes,Alex Ott
http://alexott.net/
Twitter: alexott_en (English), alexott (Russian)
Skype: alex.ott

-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Clojure for Map Reduce (on hadoop 0.22)

2013-05-29 Thread Alex Ott
Hi

https://github.com/alexott/clojure-hadoop - updated version


On Wed, May 29, 2013 at 1:55 AM, Ramesh ramesh10dul...@gmail.com wrote:

 Hi All,

 I want to use clojure to write map reduce tasks on Hadoop version  0.22.
 I was wondering if this is possible with Stuart Sierra's clojure hadoop
 https://github.com/stuartsierra/clojure-hadoop

 If not, are there other libraries which allow me to write map-reduce jobs
 in clojure?


 -ramesh

 --
 --
 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
 ---
 You received this message because you are subscribed to the Google Groups
 Clojure group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to clojure+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.






-- 
With best wishes,Alex Ott
http://alexott.net/
Twitter: alexott_en (English), alexott (Russian)
Skype: alex.ott

-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: emacs - how to wean me off the family of Java IDEs

2013-01-16 Thread Alex Ott
you can install autocomplete package (available via package.el on
MELPA) - it will provide dictionary based name completion for JS

On Wed, Jan 16, 2013 at 3:29 PM, Colin Yates colin.ya...@gmail.com wrote:
 Hi all,

 After 15 off years of using IDEs I am making the jump into Emacs.  I have
 read http://dev.clojure.org/display/doc/Getting+Started+with+Emacs and
 https://github.com/technomancy/emacs-starter-kit and I am just at the point
 where I have stopped yelling at paredit and starting to appreciate its
 point.

 My current major stumbling block though is navigating my project.  Whilst (I
 expect) the density and sane namespacing capabilities of Clojure to
 significantly reduce the number of files, that isn't true of everything.  In
 particular, ExtJS encourages you to follow the one file per class.  You
 don't have to but eventually you will have more than a handful of files
 regardless.

 So my questions:
  - is there a decent project explorer.  I really miss the tree on the left,
 editor on the right layout
  - is there a decent JS and clojure autocompletion aware plugin
  - other than paredit, nrepl and clojure-mode (and the excellent coffee-mode
 for coffeescript), what other plugins should I install

 Thanks all.

 Col

 P.S  Please don't turn this into a flame war :)

 --
 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



-- 
With best wishes,Alex Ott
http://alexott.net/
Twitter: alexott_en (English), alexott (Russian)
Skype: alex.ott

-- 
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: emacs - how to wean me off the family of Java IDEs

2013-01-16 Thread Alex Ott
just want to say, that ECB that works with fresh Emacs/CEDET is
available from my repo: https://github.com/alexott/ecb

On Wed, Jan 16, 2013 at 7:32 PM, localredhead levi.str...@gmail.com wrote:
 ECB is another option.  It shows the directory tree, methods/functions,
 altered files (waiting to be saved) etc.

 I get the sense that people avoid ECB but I've always used because it had
 IDE-like functionality that I missed.

 Configuring it can be a bit difficult but IMO worth it.  I preferred it over
 speedbar.

 -Levi

 On Wednesday, January 16, 2013 6:29:36 AM UTC-8, Colin Yates wrote:

 Hi all,

 After 15 off years of using IDEs I am making the jump into Emacs.  I have
 read http://dev.clojure.org/display/doc/Getting+Started+with+Emacs and
 https://github.com/technomancy/emacs-starter-kit and I am just at the point
 where I have stopped yelling at paredit and starting to appreciate its
 point.

 My current major stumbling block though is navigating my project.  Whilst
 (I expect) the density and sane namespacing capabilities of Clojure to
 significantly reduce the number of files, that isn't true of everything.  In
 particular, ExtJS encourages you to follow the one file per class.  You
 don't have to but eventually you will have more than a handful of files
 regardless.

 So my questions:
  - is there a decent project explorer.  I really miss the tree on the
 left, editor on the right layout
  - is there a decent JS and clojure autocompletion aware plugin
  - other than paredit, nrepl and clojure-mode (and the excellent
 coffee-mode for coffeescript), what other plugins should I install

 Thanks all.

 Col

 P.S  Please don't turn this into a flame war :)

 --
 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



-- 
With best wishes,Alex Ott
http://alexott.net/
Twitter: alexott_en (English), alexott (Russian)
Skype: alex.ott

-- 
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: emacs - how to wean me off the family of Java IDEs

2013-01-16 Thread Alex Ott
Another thing, that I want to mention, that some work for support of
Clojure in CEDET already started:
 - there is lein project type for EDE, that automatically recognizes
lein projects, and uses lein to fetch classpath information, that can
be used for name completion (after parser will be ready). You can also
compile project from any open file, by using standard commands for
compilation.
 - there is basic parser for Clojure code for CEDET:
https://github.com/kototama/clojure-semantic - I hope, that it will be
included into standard CEDET distribution...

On Wed, Jan 16, 2013 at 11:51 PM, localredhead levi.str...@gmail.com wrote:
 +1 sr-speedbar for NERDTree like functionality.  Normal speedbar being a
 different window always bothered me.

 sr-speedbar + find-files-in-project is a pretty powerful combo.


 On Wednesday, January 16, 2013 12:50:59 PM UTC-8, Gary Johnson wrote:

 There's a MELPA package (use `M-x package-list-packages') called
 sr-speedbar that displays the speedbar in the same frame you are already
 working in. I just stick sr-speedbar-toggle on F11 and call it a day. YMMV.

 On Wednesday, January 16, 2013 1:45:35 PM UTC-5, Sean Corfield wrote:

 On Wed, Jan 16, 2013 at 8:33 AM, Amirouche Boubekki
 amirouche...@gmail.com wrote:
   - is there a decent project explorer.  I really miss the tree on the
  left, editor on the right layout
  speedbar: «C-X speedbar»

 M-x speedbar - but that looks very interesting, thank you! It's kinda
 funky in full-screen mode on Mac OS X but it does satisfy the project
 explorer itch.
 --
 Sean A Corfield -- (904) 302-SEAN
 An Architect's View -- http://corfield.org/
 World Singles, LLC. -- http://worldsingles.com/

 Perfection is the enemy of the good.
 -- Gustave Flaubert, French realist novelist (1821-1880)

 --
 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



-- 
With best wishes,Alex Ott
http://alexott.net/
Twitter: alexott_en (English), alexott (Russian)
Skype: alex.ott

-- 
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: Numerical Clojure - discussion open!

2013-01-11 Thread Alex Ott
Why not to reuse existing Incanter group?

On Fri, Jan 11, 2013 at 5:12 AM, Mikera mike.r.anderson...@gmail.com wrote:
 Hello everybody,

 I've created a new discussion group Numerical Clojure for anyone
 interested in doing serious numerical computing in Clojure.

 The vision is to build a numerics capability / set of libraries in Clojure
 somewhat inspired by what the Python community has done with NumPy, but also
 building on the many natural strengths that Clojure should have in this
 space (e.g. the wealth of JVM libraries, symbolic metaprogramming, high
 level abstraction capabilities etc.)

 An initial focus is on creating a core.matrix API for vector / matrix
 maths. There's a working prototype of this on GitHub:
 - https://github.com/mikera/matrix-api

 Anyone interested in this topic, please join the group and contribute your
 ideas!

 Best regards,

Mike.

 --
 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



-- 
With best wishes,Alex Ott
http://alexott.net/
Twitter: alexott_en (English), alexott (Russian)
Skype: alex.ott

-- 
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: How to add an URL into the classpath?

2012-11-21 Thread Alex Ott
You can also use https://github.com/cemerick/pomegranate - it works fine...

On Wed, Nov 21, 2012 at 5:14 PM, Vladimir Tsichevski
tsichev...@gmail.com wrote:
 Hi Yoshinori,

 after (unsuccessfully) struggling with Clojure dynamic ClassLoaders in
 clojure-1.4, I ended up with the 'brute force' solution--just add URL
 entries to the Java system classloader. Here is a simple example on how to
 do it from clojure:

 (defn add-system-classpath
   Add an url path to the system class loader
   [url-string]
   (let [field (aget (.getDeclaredFields java.net.URLClassLoader) 0)]
 (.setAccessible field true)
 (let [ucp (.get field (ClassLoader/getSystemClassLoader))]
   (.addURL ucp (java.net.URL. url-string)

 (add-system-classpath file:/some/clojure/root/)
 (load some/clojure/file) ;; load the some/clojure/file.clj from the
 /some/clojure/root/ catalog
 (add-system-classpath file:/some/java/classes/)
 some.java.MyClass ;; use the some.java.MyClass in the /some/java/classes/
 catalog

 Regards,
 Vladimir

 --
 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



-- 
With best wishes,Alex Ott
http://alexott.net/
Twitter: alexott_en (English), alexott (Russian)
Skype: alex.ott

-- 
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: code design in clojure

2012-10-18 Thread Alex Ott
Hi Brian

Which books had you read? I found that Clojure Programming provides
many useful tips on how organize code, etc.

On Thu, Oct 18, 2012 at 5:51 AM, Brian Craft craft.br...@gmail.com wrote:
 I'm finding the books on clojure to be very focused on low-level language
 features. Are there any good references for how to design code in clojure
 (or perhaps in functional languages more generally)? For example, knowing
 when to use a data type or a protocol, knowing when and how to separate
 purely functional code from code with side effects, making use of monads,
 queues, and the other forms that one hears about in the forums, etc.

 --
 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



-- 
With best wishes,Alex Ott
http://alexott.net/
Twitter: alexott_en (English), alexott (Russian)
Skype: alex.ott

-- 
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: Coming from Common Lisp to Clojure

2012-10-17 Thread Alex Ott
Hi

I don't know about style guides, but I can recommend to look to 2
books: The Joy of Clojure  Clojure Programming - they provide a lot
of interesting information, including tips on writing idiomatic
Clojure code

On Wed, Oct 17, 2012 at 8:14 PM, Curtis cur...@ram9.cc wrote:
 I do hope this is an appropriate topic.

 I am very excited by the power and capability in clojure and amazed at the
 rapid quality of tooling that exists so early in the projects life.

 I would like to admit that i am feeling like the simplicity and elegance
 that I experienced writing in lisp seems to be bypassed in certain areas in
 favor of extra syntax [] and what seems to be local variable declarations
 as well as 'many ways' to do something around looping and recursion.

 I am wondering how others feel about this and if there are any style guides
 that i could be exposed to so that I can enjoy the poetry that I may be
 missing.

 Could some one help me with this please?

 Thank you!

 Curtis

 --
 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



-- 
With best wishes,Alex Ott
http://alexott.net/
Twitter: alexott_en (English), alexott (Russian)
Skype: alex.ott

-- 
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


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), alexott (Russian)
Skype: alex.ott

-- 
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: 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 blocks for ML could be also found in
Incanter project...

On Sun, Jul 15, 2012 at 7:10 PM, Joshua Bowles bowlesl...@gmail.com wrote:
 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
 [http://antoniogarrote.github.com/clj-ml/index.html]), but I'm curious to
 know if anyone here has a sense of the overall community interest.

 It's nice to see interesting libraries that support needed tasks for machine
 learning (I'm all for links to libraries), but what I'm really trying to get
 is a sense of the overall interest the community has in machine learning.
 For example, Python community overall has a lot of interest in scientific
 computing and machine learning. Compare this to Ruby... not that you
 couldn't provide good libraries in Ruby (for example the SciRuby project),
 but the Ruby community overall does not seem to have much interest in these
 kinds of academic pursuits.

 --
 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



-- 
With best wishes,Alex Ott
http://alexott.net/
Tiwtter: alexott_en (English), alexott (Russian)
Skype: alex.ott

-- 
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: 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 queue...

On Mon, Jul 16, 2012 at 4:24 PM, Joshua Bowles bowlesl...@gmail.com wrote:
 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 the lead in many AI sub-fields. I know also that a few people taking
 Andrew Ng's (online) Machine Learning Class did it in Clojure.


 On Mon, Jul 16, 2012 at 7:16 AM, Alex Ott alex...@gmail.com wrote:

 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 blocks for ML could be also found in
 Incanter project...

 On Sun, Jul 15, 2012 at 7:10 PM, Joshua Bowles bowlesl...@gmail.com
 wrote:
  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
  [http://antoniogarrote.github.com/clj-ml/index.html]), but I'm curious
  to
  know if anyone here has a sense of the overall community interest.
 
  It's nice to see interesting libraries that support needed tasks for
  machine
  learning (I'm all for links to libraries), but what I'm really trying to
  get
  is a sense of the overall interest the community has in machine
  learning.
  For example, Python community overall has a lot of interest in
  scientific
  computing and machine learning. Compare this to Ruby... not that you
  couldn't provide good libraries in Ruby (for example the SciRuby
  project),
  but the Ruby community overall does not seem to have much interest in
  these
  kinds of academic pursuits.
 
  --
  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



 --
 With best wishes,Alex Ott
 http://alexott.net/
 Tiwtter: alexott_en (English), alexott (Russian)
 Skype: alex.ott

 --
 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


 --
 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



-- 
With best wishes,Alex Ott
http://alexott.net/
Tiwtter: alexott_en (English), alexott (Russian)
Skype: alex.ott

-- 
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: Could not locate clojure/contrib/duck_streams__init.class or clojure/contrib/duck_streams.clj

2012-04-26 Thread Alex Ott
lein-eclipse was released 2 years ago... I think, that now it's better
to work via pom.xml - generate it with 'lein pom' and import into
eclipse

On Wed, Apr 25, 2012 at 2:55 PM, Chirag Ghiyad chirag.ghi...@searce.com wrote:
 hi,

 I have created one lein project,
 than updating its project.clj with dev-dependency of eclips

 I ran lein deps

 it downloaded all dependencies

 but into my.m2/repository directory there is no clojure directory.
 and this causes me

 leiningen.eclipse  Problem loading: java.io.FileNotFoundException:
 Could not locate clojure/contrib/duck_streams__init.class or clojure/
 contrib/duck_streams.clj on classpath:  (eclipse.clj:1)

 error when i ran lein help which abandons me to develop with eclipse
 because i cant run my lein eclipse command.

 Any solution for this???
 Thanks in advance.

 my project.clj is given below

 (defproject for_test 1.0.0-SNAPSHOT
  :description FIXME: write description
  :dependencies [[org.clojure/clojure 1.2.1]]
  :dev-dependencies [[lein-eclipse 1.0.0]]
 )

 Thnks 'n Regards,
 chirag ghiyad

 --
 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



-- 
With best wishes,                    Alex Ott
http://alexott.net/
Tiwtter: alexott_en (English), alexott (Russian)
Skype: alex.ott

-- 
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: clojurewest talk videos?

2012-03-19 Thread Alex Ott
Clojure-related posts/presentations from InfoQ should be automatically
propagated to Planet Clojure...

On Mon, Mar 19, 2012 at 3:33 PM, Alex Miller a...@puredanger.com wrote:
 Yes, all talks were recorded and will be released on http://infoq.com
 starting in about 3 weeks on a rolling basis.

 Alex


 On Sunday, March 18, 2012 1:12:41 PM UTC-5, Las wrote:

 Hi,

 will the videos of the talks be available for those who did not make it to
 the conference?

 thx

 --
 László Török

 --
 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



-- 
With best wishes,                    Alex Ott
http://alexott.net/
Tiwtter: alexott_en (English), alexott (Russian)
Skype: alex.ott

-- 
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: A question of technique: clojure-hadoop's patching of methods

2012-03-06 Thread Alex Ott
Hi Steven

just fyi - more recent version of clojure-hadoop is available at
https://github.com/alexott/clojure-hadoop - it includes many
patches/improvements

On Tue, Mar 6, 2012 at 5:18 PM, Steven E. Harris s...@panix.com wrote:
 Recently I was studying Stuart Sierra's clojure-hadoop project¹, and
 there saw a technique that I'd like to discuss. There's a Java class
 generated whose method definitions get patched based on a provided
 configuration, and I'd like to understand the scope of this patching and
 why the technique's effects are acceptable for this project.

 The namespace clojure-hadoop.job² uses the macro
 clojure-hadoop.gen/gen-job-classes³ to, well, generate a few Java
 classes. Later, in the job/configure-functions functionº, we see use of
 the alter-var-root function to change the functions associated with the
 Java methods Mapper#map() (here, mapper-map) and Reducer#reduce() (here,
 reducer-reduce).

 Now to my questions. This mutation of the
 class-method-to-Clojure-function binding appears to be global.  Will
 it impact /all/ instances of the generated classes within this Clojure
 process?

 If this impact is global, is it the case that this software never needs
 to accommodate instances of these generated classes with different
 configurations? In other words, the job-related classes wind up
 getting mutated to conform to one particular configuration. That means
 that a given run of the program can't handle more than one configuration
 at a time. Is that acceptable here because Hadoop is only going to load
 these classes for use with a single configuration?

 The patching looks like an optimization to avoid associating functions
 with each Mapper or Reducer /instance/, so that it avoids that kind of
 which-function-should-I-call-now lookup on each invocation. Is that a
 correct interpretation of the design rationale?


 Footnotes:
 ¹ https://github.com/stuartsierra/clojure-hadoop
 ² 
 https://github.com/stuartsierra/clojure-hadoop/blob/master/src/main/clojure/clojure_hadoop/job.clj
 ³ 
 https://github.com/stuartsierra/clojure-hadoop/blob/master/src/main/clojure/clojure_hadoop/gen.clj#L5
 º 
 https://github.com/stuartsierra/clojure-hadoop/blob/master/src/main/clojure/clojure_hadoop/job.clj#L31

 --
 Steven E. Harris

 --
 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



-- 
With best wishes,                    Alex Ott
http://alexott.net/
Tiwtter: alexott_en (English), alexott (Russian)
Skype: alex.ott

-- 
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: [ANN] cld 0.1.0 - Clojure Language Detection

2012-02-27 Thread Alex Ott
similar functionality is also available in clj-tika
(https://github.com/alexott/clj-tika, and clojars) - you can detect
language, mime-type of data  extract text

On Tue, Feb 28, 2012 at 3:24 AM, Lee Hinman matthew.hin...@gmail.com wrote:
 Hi all,
 I'm pleased to announce the initial 0.1.0 release of cld (Clojure
 Language Detection). CLD a tiny library wrapping language-detect[1]
 that can be used to determine the language of a particular piece of
 text very quickly. You should be able to use it from Clojars[2] with
 the following:

 [cld 0.1.0]

 Please give it a try and open any issues on the github repo[3] that
 you find. Check out the readme for the full information and usage.

 Also soliciting better names for the project than 'cld' :)

 thanks,
 Lee Hinman

 [1]: https://code.google.com/p/language-detection/
 [2]: http://clojars.org/cld
 [2]: https://github.com/dakrone/cld

 --
 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



-- 
With best wishes,                    Alex Ott
http://alexott.net/
Tiwtter: alexott_en (English), alexott (Russian)
Skype: alex.ott

-- 
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: Building Clojure applications w/ Maven

2011-12-07 Thread Alex Ott
Hi

had you seen my article on Clojure/Maven?
(http://alexott.net/en/clojure/ClojureMaven.html)

P.S. and you can look onto following project
(https://github.com/alexott/clojure-examples/tree/master/compojure-simple)
that uses multi-project maven setup

On Tue, Dec 6, 2011 at 11:35 PM, Riccardo riccardo.novie...@gmail.com wrote:
 Hello, I am doing my dissertation project with Clojure and I am using
 Maven to build. It works on REPL and it build successfully, but the
 JAR file doesn't work, it says: Java Exception all the time. Any
 suggestion?

 --
 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



-- 
With best wishes,                    Alex Ott
http://alexott.net/
Tiwtter: alexott_en (English), alexott (Russian)
Skype: alex.ott

-- 
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: Pattern matching for map content

2011-10-25 Thread Alex Ott
it's better to use https://github.com/clojure/core.match

On Tue, Oct 25, 2011 at 11:32 AM, Ben Smith-Mannschott
bsmith.o...@gmail.com wrote:
 On Tue, Oct 25, 2011 at 11:20, Michael Jaaka
 michael.ja...@googlemail.com wrote:
 Hi!
 Pattern matching is fine for sequence or vector destruction.
 Is is possible to destruct map and make pattern machting?
 For example I would like to make constraint for to some query service.
 It would be done as map for example:  { :name Tom :surname Jakarta
 :birthDate (Date.) } or { :personalId 12312312132 }
 Then I would like to dispatch this Value Object:
 (defn service
   ([ {:keys [name surname]} ] (println searching by personal data))
  ([{:keys [personalId]} ] (println searching by id)))

 Why using map instead of specific type of VO?
 Because I don't want to decleare types of VO which doesn't bring any value
 to domain problem.
 Maybe matchure or other lib already implements it?

 Clojure provides only destructuring, not pattern matching. (It's my
 impression that Rich is not a fan of mixing destructuring with control
 flow implied by pattern matching.)

 If you want pattern matching, matchure seems like just what you need.
 For your particular example, take a look at matchure's defn-match.

 https://github.com/dcolthorp/matchure

 // Ben

 --
 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



-- 
With best wishes,                    Alex Ott
http://alexott.net/
Tiwtter: alexott_en (English), alexott (Russian)
Skype: alex.ott

-- 
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: Aquamacs, swank-clojure: clojure-jack-in returns command not found

2011-05-22 Thread Alex Ott
I think, that lein isn't in your search path. You can add directory
with lein script explicitly using something like:

 (setenv PATH (concat your-lein-dir: (getenv PATH)))

On Sun, May 22, 2011 at 2:17 PM, michele michelemen...@gmail.com wrote:
 I have tried to find a solution to this problem, but to no avail.

 According to https://github.com/technomancy/swank-clojure:

 USAGE
 The simplest way is to just jack-in from an existing project using
 Leiningen:
 Install clojure-mode either from Marmalade or from git.
 lein plugin install swank-clojure 1.3.1
 From inside a project, invoke M-x clojure-jack-in
 That's all it takes! There are no extra install steps beyond clojure-
 mode on the Emacs side and the swank-clojure plugin on the Leiningen
 side.

 When running the following command in Aquamacs:
 M-x clojure-jack-in

 I get this result:
 /bin/bash: lein: command not found

 I have installed Lein, but what does From inside a project mean? I
 have a feeling I'm running the command from the wrong place, but I
 don't know how to run a command in Emacs from somewhere else. I just
 started to learn Emacs, which I really like (even though the
 documentation how to install i.e. Clojure could be clearer).

 --
 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



-- 
With best wishes,                    Alex Ott
http://alexott.net/
Tiwtter: alexott_en (English), alexott (Russian)
Skype: alex.ott

-- 
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: Clojure test framework

2011-05-08 Thread Alex Ott
Standard clojure.test works fine with maven

On Sun, May 8, 2011 at 4:29 PM, Zlatko Josic zlatko.jo...@gmail.com wrote:
 Hi,
 I need to write tests for my Clojure application.
 Which Clojure test framework would you recommend?
 I also need posibility to intergrate a framework with Maven.

-- 
With best wishes,                    Alex Ott
http://alexott.net/
Tiwtter: alexott_en (English), alexott (Russian)
Skype: alex.ott

-- 
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: Clojure CEDET?

2011-03-12 Thread Alex Ott
Hi

I have Clojure + CEDET in my TODO list ;-) Code completion will
require to add support for maven and leiningen, because we need to get
information about used external packages, etc. - using this
information we could pre-generate completion databases for java
classes  external clojure libraries.

Phil's comment on SLIME's completion is very interesting - what if we
could implement generic interface to slime for cedet?

On Tue, Mar 8, 2011 at 2:44 AM, Fred Concklin fredconck...@gmail.com wrote:
 Just wondering if anybody uses CEDET with clojure or anybody would be
 interested in clojure language support for smart code completion.

 http://cedet.sourceforge.net/



-- 
With best wishes,                    Alex Ott, MBA
http://alexott.net/
Tiwtter: alexott_en (English), alexott (Russian)
Skype: alex.ott

-- 
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: better error messages smaller stack traces

2011-02-08 Thread Alex Ott
Hello Stuart

One of problem, that sometime arise (at least for me) - errors in code
that is performed lazily - stack trace contains data about point where
it's evaluated, not where it's created:

for example, let look to something like:

I have a function that combines several functions
(defn make-funcs [ funcs]
 (fn [data]
   (flatten (map #(% data) funcs

and function that use these data, something like:

(defn do-something [data]
  ((make-funcs [func1 func2]) data))

if I omit 'funcs' in map call in 'make-funcs', then I'll get following
trace when data will evaluated in do-something, but it will contain no
pointer to make-funcs:

XXX core [ERROR] - java.lang.RuntimeException:
java.lang.RuntimeException: java.util.concurrent.ExecutionException:
java.lang.IllegalArgumentException: Wrong number of args (1) passed
to: core$map
 at clojure.lang.LazySeq.sval (LazySeq.java:47)
clojure.lang.LazySeq.seq (LazySeq.java:63)
clojure.lang.RT.seq (RT.java:450)
clojure.core$seq.invoke (core.clj:122)
clojure.core$dorun.invoke (core.clj:2450)
clojure.core$doall.invoke (core.clj:2465)
my_ns$do_something.invoke (my_ns.clj:189)

Maybe it's possible to keep information about where this lazy seq was created?

On Tue, Feb 8, 2011 at 3:01 PM, Stuart Halloway
stuart.hallo...@gmail.com wrote:
 This conversation began on Twitter [1] but I want to continue it on the
 mailing list as it may be of broader interest.
 The core team is very interested in improving error messages, and relatively
 less interested in more code to manipulate stack traces, for the following
 reasons:
 (1) The language sits at the bottom, and must solve the problems nobody
 higher up can solve. Error messages are created at the point of an error,
 and if the language gets it wrong you may not have the information to fix it
 later. OTOH, any old library code can reduce a stacktrace.
 (2) Better error messages are easy to implement [2]. Most oddball errors are
 in macroexpansion, so there is no runtime cost to doing extra work to
 improve error messages. These can be implemented as pure functions, so even
 a relative beginner could contribute a patch.
 (3) The clojure.repl/pst macro in 1.3 already provides better control of
 stack trace spewage at the REPL.
 Please let us know when you get a misleading error message from a
 macroexpansion, so we can make it better. Or contribute a patch along the
 lines of [2].
 Thanks,
 Stu
 Stuart Halloway
 Clojure/core
 http://clojure.com
 [1] http://twitter.com/marick/statuses/33760838540070912
 [2] https://github.com/clojure/clojure/commit/d694d6d45fb46195ae4de01aab9a2b9f9c06355f

 --
 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



-- 
With best wishes,                    Alex Ott, MBA
http://alexott.net/
Tiwtter: alexott_en (English), alexott (Russian)
Skype: alex.ott

-- 
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: Which branch of clojure-hadoop to use?

2011-02-06 Thread Alex Ott
Hello

I'm not working actively on clojure-hadoop, so maybe eslick's and clizzin's
forks could be more advanced (although I hadn't looked onto changes).

I think, that fragmentation of libraries is not so good thing, so I invite
everybody who wants to participate in development to join mailing list
https://groups.google.com/group/clojure-hadoop and I can give commit rights
to repository

Benny Tsai  at Fri, 4 Feb 2011 20:59:00 -0800 (PST) wrote:
 BT I have a bunch of older computers sitting at home, and thought I'd put
 BT them to use for experimenting with clojure-hadoop and swarmiji.
 BT However, I can't figure out which branch of clojure-hadoop to use.
 BT Stuart Sierra's branch looks like the canonical one, but hasn't been
 BT updated since March 2010.  alexott's branch looks to be the most
 BT frequently updated, but there are also more recent branches from
 BT eslick and clizzin.  If someone could shed light on this situation,
 BT that'd be greatly appreciated!



-- 
With best wishes, Alex Ott, MBA
http://alexott.blogspot.com/http://alexott.net/
http://alexott-ru.blogspot.com/
Skype: alex.ott

-- 
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: The Joy of Closure

2011-01-18 Thread Alex Ott
Hi

From my point of view, it's better to take 'Clojure in Action' first,
and only after it to take 'The Joy of Clojure' - it about more
advanced techniques (I reviewed it in my blog, if you interested -
http://alexott.blogspot.com/2010/10/readings-digest-september-2010.html)

On Tue, Jan 18, 2011 at 3:49 PM, flebber flebber.c...@gmail.com wrote:
 I was looking at the title on amazon, after recently discovering
 clojure recently. The product description on aamazon is somewhat
 brief. There are no reviews as the book is released in a few days.

 I have been learning and progressing via HTDP.org with Racket. I want
 to learn clojure, is this book appopriate for a new clojure user with
 limited programming skills?



-- 
With best wishes,                    Alex Ott, MBA
http://alexott.net/
Tiwtter: alexott_en (English), alexott (Russian)
Skype: alex.ott

-- 
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: Downloadable Clojure mp3s

2010-12-15 Thread Alex Ott
Hi

I'm trying to maintain actual list of videos, related to Clojure. It's
available at http://alexott.net/en/clojure/video.html

On Wed, Dec 15, 2010 at 1:02 AM, Alex Baranosky
alexander.barano...@gmail.com wrote:
 Hi guys,
 I love to listen to mp3's that I've downloaded, on my way to work.  I think
 it would be great to compile a list of links to Clojure-based mp3's.  I love
 InfoQ, but not all of the videos are downloadable.
 Here are my first two:
 Stuart Halloway on Clojure and Functional Programming
 http://www.infoq.com/interviews/stuart_holloway_clojure
 Are We There Yet by Rich Hickey
 http://www.infoq.com/presentations/Are-We-There-Yet-Rich-Hickey

-- 
With best wishes,                    Alex Ott, MBA
http://alexott.net/
Tiwtter: alexott_en (English), alexott (Russian)
Skype: alex.ott

-- 
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: Downloadable Clojure mp3s

2010-12-15 Thread Alex Ott
May of videos, listed in my list, are downloadable in corresponding
formats. I'm using Miro to download most of videos that I see

On Wed, Dec 15, 2010 at 2:26 PM, Alex Baranosky
alexander.barano...@gmail.com wrote:
 (Sorry, previous message was a mis-click. Just woke up.)
 Alex,
 That's a great idea.  When I get my new phone it will be a great list of
 videos to watch/listen to when I commute.
 Something that would be really useful would be if there wasd some indication
 of which ones were downloadable in MP3 format.


-- 
With best wishes,                    Alex Ott, MBA
http://alexott.net/
Tiwtter: alexott_en (English), alexott (Russian)
Skype: alex.ott

-- 
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


parameters destructuring sets?

2010-12-05 Thread Alex Ott
Hello all

I have following question to Rich and other core developers of Clojure -
why parameters destructuring requires presence of 'nth' implementation for
destructuring of sequences?

The [[x  more]] idiom is very popular and could make code more concise, but
it doesn't work for sets and some other collections, like java's HashMap,
etc.  If this is performance-related problem - may we could have 2
different implementations, depending on sequence type?

I found this when trying to use string/join function for set, and fixed
this in http://dev.clojure.org/jira/browse/CLJ-687 - so we can use join for
any sequence

-- 
With best wishes, Alex Ott, MBA
http://alexott.blogspot.com/http://alexott.net/
http://alexott-ru.blogspot.com/
Skype: alex.ott

-- 
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: parameters destructuring sets?

2010-12-05 Thread Alex Ott
Re

jweiss  at Sun, 5 Dec 2010 10:29:41 -0800 (PST) wrote:
 j I'm no expert on this, but i'll take a crack at it.

 j I think it's because sets don't (necessarily) impose any order, so
 j there's no concept of first or nth.  So destructuring would
 j essentially be assigning a random item to x, or for join, joining them
 j in random order.

Sometimes, order doesn't matter, for example, I want to print data from set
(or any collection that is transformable into sequence), using some
separator between elements... 

For some operations we can't also predict order, for example, conj behaves
differently for lists and vectors

-- 
With best wishes, Alex Ott, MBA
http://alexott.blogspot.com/http://alexott.net/
http://alexott-ru.blogspot.com/
Skype: alex.ott

-- 
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


encoding of non-ascii symbols in clojure.contrib.json

2010-10-28 Thread Alex Ott
Hello all

I switched from org.danlarkin/clojure-json library to
clojure.contrib.json, and found that all non-ascii characters are encoded
as \u characters.  But information on json.org states that character
could be any-Unicode-character-except--or-\-or-control-character

So, it seems that this is a bug in clojure.contrib.json... And this lead to
increased traffic when transferring text with non-ascii characters. Should
I create a bug for this case (and provide patch)?

-- 
With best wishes, Alex Ott, MBA
http://alexott.blogspot.com/http://alexott.net/
http://alexott-ru.blogspot.com/
Skype: alex.ott

-- 
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: Planet Clojure Feed Broken

2010-09-30 Thread Alex Ott
Hello

Stefan Hübner  at Wed, 29 Sep 2010 10:38:45 +0200 wrote:
 SH (sorry to use this channel)

 SH I just wanted to notice the maintainers of Planet Clojure, that it's RSS
 SH feed is outdated. The web site shows more recent articles than the feed
 SH does.

Yes, we know - there is a problem with PlanetPlanet.  Baishampayan Ghose
is trying to fix this, but with no much success yet :-(

 SH Besides of that: Thank you for this really handy service!

You're welcome ;-) If you'll find new blog, not listed in planet, just send
address to me or B.Ghose - we'll add it to planet

-- 
With best wishes, Alex Ott, MBA
http://alexott.blogspot.com/   http://alexott.net
http://alexott-ru.blogspot.com/

-- 
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: Clojure 1.3: Integrating clj-stacktrace?

2010-08-25 Thread Alex Ott
Yes, this is very important problem with current implementation of
Clojure.  Many of beginners complain, that they couldn't understand where
error happened, especially during compilation of code.

Phil Hagelberg  at Tue, 24 Aug 2010 21:55:52 -0700 wrote:
 PH One of the most common complaints about the current implementation of
 PH Clojure is that the stack traces are often unreadable. At work we have
 PH been using Mark McGranaghan's clj-stacktrace library[1] to print stack
 PH traces, and it does a great job of cleaning them up and making it much
 PH clearer as to what the actual cause of the problem is. I've found it
 PH invaluable for this--it provides indentation, better details, and even
 PH coloring to help make the relevant frames stand out in the noise.

 PH I've spoken to him about it, and he is agreeable to the idea of
 PH merging it into Clojure. He is the sole author of it, and it sounds
 PH like he'd be fine with relicensing and copyright assignment.

 PH It appears at first glance to be compatible with the existing
 PH clojure.stacktrace library. Obviously before it could be merged we
 PH would need to investigate this more thoroughly, but I think it could
 PH be a valuable improvement to Clojure 1.3.

 PH Thoughts?

 PH -Phil

 PH [1] - http://github.com/mmcgrana/clj-stacktrace



-- 
With best wishes, Alex Ott, MBA
http://alexott.blogspot.com/   http://alexott.net
http://alexott-ru.blogspot.com/

-- 
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: slime-fancy

2010-07-28 Thread Alex Ott
Re

Dave  at Wed, 28 Jul 2010 10:25:13 -0700 (PDT) wrote:
 D If I use lein swank and have (slime-setup '(slime-repl)) in my .emacs,
 D the repl doesn't work (try (+ 1 2)).  Changing this to (slime-setup
 D '(slime-repl)) fixes the problem.  Anyone know why this should be?
 D SBCL, CCL64, KAWA and QiII work fine with (slime-setup '(slime-repl)).

As I remember, slime-fancy includes slime-autodoc, that doesn't work with
Clojure in vanila SLIME.  Set 

(setq slime-use-autodoc-mode nil)

to disable it


-- 
With best wishes, Alex Ott, MBA
http://alexott.blogspot.com/http://alexott.net/
http://alexott-ru.blogspot.com/
Skype: alex.ott

-- 
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: ANN lein-daemon, lein-test-out

2010-07-16 Thread Alex Ott
Re

Just fyi - when running clojure program under daemon on windows, you can
get NPE, if you'll try to load file or resources.  See
http://www.assembla.com/spaces/clojure/tickets/379 for details

Allen Rohner  at Thu, 15 Jul 2010 15:00:03 -0700 (PDT) wrote:
 AR I'd like to announce two new lein plugins, lein daemon and lein test-
 AR out.

 AR Lein-daemon is a wrapper around the Apache Commons Daemon, for
 AR starting a clojure process as a daemon.

 AR Lein test-out is a plugin for running your tests and outputting the
 AR results to junit or TAP (using clojure.test.junit and
 AR clojure.test.tap).

 AR You can find them at http://github.com/arohner/lein-daemon , and
 AR http://github.com/arohner/lein-test-out , and clojars.

 AR Allen



-- 
With best wishes, Alex Ott, MBA
http://alexott.blogspot.com/   http://alexott.net
http://alexott-ru.blogspot.com/

-- 
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: extend-protocol bug?

2010-07-16 Thread Alex Ott
It's better to illustrate this with simple example:

If I'll define following protocol:

(defprotocol test1
  (a1 [this] a1)
  (a2 [this] a2)
  (a3 [this] a3)
  )

and then I can extend it with following constuction:

(extend-protocol test1 String
 (a1 [this] (str Hello1  this !)))

then I get no warning, that protocol test1 has 3 methods, and if I'll try
to call corresponding, not defined methods, then I'll get

(a2 bbb) -- method not defined

and if I'll try to extend it further with following call

(extend-protocol test1 String
 (a2 [this] (str Hello1  this !)))

then a2 will defined, but a1 become undefined.

May be we'll need either have a warning, that extend-protocol doesn't
defines all necessary methods, or we'll need to allow to append methods,
not defined earlier


[AvataR]  at Fri, 16 Jul 2010 16:27:36 +0300 wrote:
 [ I have record J:Bot, protocol P:Bot
 [ and two files, one extend-protocol statement by file.
 [ After loading first file i get:
 [ http://pastebin.com/Kq5GZ6RJ
 [ After loading second file i get:
 [ http://pastebin.com/Pu3kHZ1h

 [ Looks like next extend-protocol rewrite :impls seg. How/where post the
 [ bug?

 [ Or myabe this is a feature? :]



-- 
With best wishes, Alex Ott, MBA
http://alexott.blogspot.com/http://alexott.net/
http://alexott-ru.blogspot.com/
Skype: alex.ott

-- 
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: Compile multiple files in Emacs (interactive development)

2010-06-30 Thread Alex Ott
Hello

It's better to use lein or maven to run swank server - this will compile
all sources, and provide proper classpath, etc.  In Maven you can specify
script, that will be loaded automatically on swank start. For Lein, I don't
know about such feature, although it's not so hard to implement

Oleg  at Wed, 30 Jun 2010 02:16:42 -0700 (PDT) wrote:
 O Hello Guys!

 O Does somebody knows better way to compile all files of my project in
 O proper order in emacs
 O after i've changed my working directory to project base and after
 O command 'M-x slime'?

 O I'm developing compojure application and now i have to reload all my
 O project files (about 10) in emacs and click C-c C-k to compile every
 O of them.
 O It's boring, especially if my project will grow.

 O Is there a better solution?

 O Cheers, Oleg



-- 
With best wishes, Alex Ott, MBA
http://alexott.blogspot.com/   http://alexott.net
http://alexott-ru.blogspot.com/

-- 
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: compiling clojure for a servlet container (tomcat)

2010-06-21 Thread Alex Ott
Hello


 AC Notes;
 AC - to update, simply copy new app clj file/s to WEB-INF/classes and
 AC reload the context.
 AC - Borrow http://github.com/weavejester/hiccup for some cool html
 AC generation stuff.
 AC - you should be able to adapt the above (namespace requiring) to your
 AC other java integration needs.

You can use Compojure to build webapp in more convenient way.

It's also possible to use Leiningen + lein-war plugin to build .war file
with all dependencies inside.

Another possibility is use maven to build .war.  I have simple example of
Compojure + war at
http://github.com/alexott/clojure-examples/tree/master/compojure-simple/,
but I have no description of it yet (I planned to do this, but had no
time).

This is very simple multi-module example - cpj-core defines compojure
routes + implementation of functions, while cpj-war is used to generate
.war file. (cpj-standalone uses jetty to run webapp without deploying to
existing container) 


-- 
With best wishes, Alex Ott, MBA
http://alexott.blogspot.com/   http://alexott.net
http://alexott-ru.blogspot.com/

-- 
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: Basic toolset for non-Java programmer

2010-06-19 Thread Alex Ott
Hello

Paul Moore  at Sat, 19 Jun 2010 00:08:54 +0100 wrote:
 PM - Build tools: There seem to be things like ant, maven, leiningen. How
 PM do they relate to each other? Is there an obvious best answer or
 PM should I be expecting to check them all out depending on my needs? In
 PM that case, are there any good comparisons around?

I use mvn or lein to build clojure code

 PM - Profilers: Same sort of question - do IDEs offer this, are there
 PM standalone tools?

I use VisualVM to profile code

 PM - Testing: I've not really got to the documentation on Clojure's own
 PM testing tools, so maybe that's all I need, but are there testing
 PM frameworks I should look at, that sort of thing?

clojure.test provides enough features to test code

 PM - Deployment: For simple standalone utilities, am I looking at bat
 PM file wrappers (I'm on Windows mainly) to set classpath and the like?
 PM Given that there are some annoying limitations with bat files (nasty
 PM nesting behaviour, ugly console windows for GUI applications), are
 PM there any commonly used better solutions? For web applications, I
 PM gather that a servlet container (all that fancy J2EE stuff :-)) and
 PM something like compojure is a good place to start. For non-web
 PM long-running services, is it still reasonable to use an application
 PM server, or should I be looking at something to wrap a Clojure app up
 PM as a Windows service (something like Java Service Wrapper
 PM (http://wrapper.tanukisoftware.org/doc/english/download.jsp) came up
 PM for me on a Google search)?

I use procrun from apache commons daemon project to run clojure app on
windows as service. All works fine, except case when you need to load
resources manually.  See ticket #379 in Clojure's Assembly for more details

To build installers I use izpack from maven

-- 
With best wishes, Alex Ott, MBA
http://alexott.blogspot.com/http://alexott.net/
http://alexott-ru.blogspot.com/
Skype: alex.ott

-- 
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: Newbie (with no Java experience) - how best to learn?

2010-05-28 Thread Alex Ott
Re all

Dave Pawson  at Thu, 27 May 2010 20:08:53 +0100 wrote:
 DP Is there a wiki where all these info sources could be collected please?
 DP Sounds really quite useful to the newbie.

Just FYI - I have special page (http://alexott.net/en/clojure/video.html)
with links to video lectures/screencasts about Clojure


-- 
With best wishes, Alex Ott, MBA
http://alexott.blogspot.com/   http://alexott.net
http://alexott-ru.blogspot.com/

-- 
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: Newbie (with no Java experience) - how best to learn?

2010-05-28 Thread Alex Ott


Dave Pawson  at Fri, 28 May 2010 08:56:40 +0100 wrote:
 DP On 28 May 2010 08:30, Alex Ott alex...@gmail.com wrote:
  Re all
 
  Dave Pawson  at Thu, 27 May 2010 20:08:53 +0100 wrote:
   DP Is there a wiki where all these info sources could be collected please?
   DP Sounds really quite useful to the newbie.
 
  Just FYI - I have special page (http://alexott.net/en/clojure/video.html)
  with links to video lectures/screencasts about Clojure

 DP Thanks Alex.
 DP How to link to it from the clojure setup?

I don't know - we could ask Rich (or somebody else) to add link to this page

-- 
With best wishes, Alex Ott, MBA
http://alexott.blogspot.com/   http://alexott.net
http://alexott-ru.blogspot.com/

-- 
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: Choosing a Clojure build tool

2010-03-26 Thread Alex Ott
Hello

Brian Carper  at Thu, 25 Mar 2010 15:17:10 -0700 (PDT) wrote:
 BC On Mar 25, 11:55 am, Chas Emerick cemer...@snowtide.com wrote:
  I published a blog post earlier today, along with a short screencast  
  that might be of interest:
 
  Like any group of super-smart programmers using a relatively new  
  language, a lot of folks in the Clojure community have looked at  
  existing build tools (the JVM space is the relevant one here, meaning  
  primarily Maven and Ant, although someone will bark if I don't mention  
  Gradle, too), and felt a rush of disdain. I'd speculate that this came  
  mostly because of XML allergies, but perhaps also in part because when  
  one has a hammer as glorious as Clojure, it's hard to not want to use  
  it to beat away at every problem in sight.

 BC Ruby: gem install X
 BC Perl: perl -MCPAN -e shell, then install X

 BC Why does building and installing dependencies have to be harder than
 BC this?  Lein right now tries to fill this niche of being braindead easy
 BC to use, and comes pretty close.  I realize Maven does a lot more than
 BC build and install dependencies, but for some of us, that's all we want
 BC out of life, and it's pretty nice when it's that easy to do so.

Maven is good because of many plugins written for it.  I know some peoples
who are using maven to build projects written in mix of erlang, flash, etc.
I use maven to automatically generate installers using izpack plugin, for
example.

May be we'll need to provide better documentation for work with Clojure
from maven.

-- 
With best wishes, Alex Ott, MBA
http://alexott.blogspot.com/   http://alexott.net
http://alexott-ru.blogspot.com/

-- 
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

To unsubscribe from this group, send email to 
clojure+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


Re: ANN: labrepl, making Clojure more accessible

2010-03-24 Thread Alex Ott
Hello

Mark Derricutt  at Wed, 24 Mar 2010 09:30:26 +1300 wrote:
 MD 1.3.2 is the latest version of the plugin and fixes some issues with the 
replScript settings ( it actually continues to run the repl, and not
 MD just exits - doh!)

Yes, I already fixed this in my repo and created pull request - now use of
labrepl with maven is very simple - just run of 'mvn clojure:repl'

-- 
With best wishes, Alex Ott, MBA
http://alexott.blogspot.com/   http://alexott.net
http://alexott-ru.blogspot.com/

-- 
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

To unsubscribe from this group, send email to 
clojure+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


Re: ANN: labrepl, making Clojure more accessible

2010-03-23 Thread Alex Ott
Hello

Stuart Halloway  at Tue, 23 Mar 2010 10:37:51 -0400 wrote:
 SH GIt just needed a little push. It's there now. Thanks Rich!

It's better to add

plugins
  plugin
groupIdcom.theoryinpractise/groupId
artifactIdclojure-maven-plugin/artifactId
version1.3/version
  /plugin
/plugins

into build section, and

dependency
  groupIdswank-clojure/groupId
  artifactIdswank-clojure/artifactId
  version1.1.0-SNAPSHOT/version
/dependency

into dependencies - in this case user can get access to 'mvn clojure:repl'
 'mvn clojure:swank' commands

-- 
With best wishes, Alex Ott, MBA
http://alexott.blogspot.com/   http://alexott.net
http://alexott-ru.blogspot.com/

-- 
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

To unsubscribe from this group, send email to 
clojure+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


Announce: Introductory article about Clojure in Russian

2010-02-25 Thread Alex Ott
Hi all

In new issue of Russian FP journal (http://fprog.ru/) was published an
article about Clojure (http://fprog.ru/2010/issue4/alex-ott-clojure/ -
HTML, and http://fprog.ru/2010/issue4/ - different PDF sizes).

This is introduction-level article, that could be used as basis for
studying Clojure.

Discussion of article is Livejournal community -
http://community.livejournal.com/fprog/7703.html

P.S. There is one bug in HTML version - there is no indentation in
examples - we're working on fixing this issue

-- 
With best wishes, Alex Ott, MBA
http://alexott.blogspot.com/http://alexott.net/
http://alexott-ru.blogspot.com/

-- 
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: REST library

2010-02-17 Thread Alex Ott
Hello

Roman Roelofsen  at Wed, 17 Feb 2010 11:05:27 +0100 wrote:
 RR Hi,

 RR does someone knows a good Clojure REST framework? It should help with
 RR URL destructuring and maybe creating JSON return data etc.

I built web-services using compojure + clojure.json - all works fine

-- 
With best wishes, Alex Ott, MBA
http://alexott.blogspot.com/   http://alexott.net
http://alexott-ru.blogspot.com/

-- 
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


send-off, number of threads processor load

2010-02-16 Thread Alex Ott
Hello all

I have question about send-off, agents  threads - I'm trying to use
send-off to dispatch tasks, that stores some data into central agent.
Tasks could be long running.  I found following situation:
 - when I explicitly create threads and run tasks in them, I have more load
   on machine, that lead to bigger number of simultaneous tasks processed.
   Typically i see about 600% load on my machine with 8 logical processors
   (4cores with hyperthreading)
 - when I use send-off, I get less number of simultaneous connection to
   service, and load usually not bigger as 160%

Questions are: how could I control how much treads are used in agent's
queue?  How can I improve payload on my machine, so Clojure will use all
available resources?

-- 
With best wishes, Alex Ott, MBA
http://alexott.blogspot.com/   http://alexott.net
http://alexott-ru.blogspot.com/

-- 
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: send-off, number of threads processor load

2010-02-16 Thread Alex Ott
Hello

Chouser  at Tue, 16 Feb 2010 12:02:17 -0500 wrote:
 C On Tue, Feb 16, 2010 at 7:24 AM, Alex Ott alex...@gmail.com wrote:
  Hello all
 
  I have question about send-off, agents  threads - I'm trying to use
  send-off to dispatch tasks, that stores some data into central agent.
  Tasks could be long running.  I found following situation:
   - when I explicitly create threads and run tasks in them, I have more load
    on machine, that lead to bigger number of simultaneous tasks processed.
    Typically i see about 600% load on my machine with 8 logical processors
    (4cores with hyperthreading)
   - when I use send-off, I get less number of simultaneous connection to
    service, and load usually not bigger as 160%

 C I don't think there's any limit on the number of threads spawned
 C by send-off.   ...except that no single agent will ever be
 C allocated more than one thread at a time.  Are you perhaps doing
 C lots of send-offs to just one or two agents?

Yes, all send-off are sent to one agent, that accumulate information about
different documents

-- 
With best wishes, Alex Ott, MBA
http://alexott.blogspot.com/http://alexott.net/
http://alexott-ru.blogspot.com/

-- 
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: Compilation and Class Generation newbie questions

2010-02-15 Thread Alex Ott
Hello

If you declared clojure.examples.hello namespace, then you need to have
file hello.clj in clojure/examples/ directory. and you need to have
c:\clojure_tests in classpath, something like:

java -cp clojure.jar:c:\clojure_tests clojure.main

Paulo Sérgio Medeiros  at Mon, 15 Feb 2010 03:13:51 -0200 wrote:
 PSM Hello everyone,

 PSM I think i've not figured out yet how compile and/or namespace works.

 PSM I'm trying to execute the example posted in http://clojure.org/compilation

 PSM I've created a file named hello.clj and put the clojure.jar in the same 
directory (c:\clojure_tests).

 PSM Then, i started the REPL using the command: java -cp clojure.jar 
clojure.main

 PSM And executed (compile 'clojure.examples.hello), but i'm getting the 
following error:

 PSM java.io.FileNotFoundException: Could not locate 
clojure/examples/hello__init.class or clojure/examples/hello.clj on classpath:  
 PSM (NO_SOURCE_FILE:0)

 PSM If i execute compile with a different namespace like (compile 'hello) 
then i get the following error:

 PSM java.io.IOException: The system cannot find the path specified 
(hello.clj:1)

 PSM Is there any relationship between the namespace name and the file name? 
How compile determines which file is going to be compiled?

 PSM Thanks in advance,
 PSM Paulo Sergio.



-- 
With best wishes, Alex Ott, MBA
http://alexott.blogspot.com/   http://alexott.net
http://alexott-ru.blogspot.com/

-- 
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: Why recur?

2010-01-18 Thread Alex Ott
Hello all

I have a question to Rich - are there plans to introduce named
loop/recur?  In Scheme it very handy to create named let, and create nested
loops.  Currently in Clojure, I need to split nested loop into separate
function, that not so often good 

-- 
With best wishes, Alex Ott, MBA
http://alexott.blogspot.com/   http://xtalk.msk.su/~ott/
http://alexott-ru.blogspot.com/
-- 
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: Why recur?

2010-01-18 Thread Alex Ott
Re

Konrad Hinsen  at Mon, 18 Jan 2010 12:23:58 +0100 wrote:
 KH On 18.01.2010, at 12:03, Alex Ott wrote:

  I have a question to Rich - are there plans to introduce named
  loop/recur?  In Scheme it very handy to create named let, and create nested
  loops.  Currently in Clojure, I need to split nested loop into separate
  function, that not so often good

 KH Nested loops work perfectly fine in Clojure:

But this will not allow to jump to outer loop from inside of inner loop...

 KH (defn print-pairs [seq1 seq2]
 KH   (loop [s1 seq1]
 KH (when (seq s1)
 KH   (loop [s2 seq2]
 KH(when (seq s2)
 KH  (prn (first s1) (first s2))
 KH  (recur (rest s2
 KH   (recur (rest s1)

 KH (print-pairs [1 2] [a b])


-- 
With best wishes, Alex Ott, MBA
http://alexott.blogspot.com/   http://xtalk.msk.su/~ott/
http://alexott-ru.blogspot.com/
-- 
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

parsing/processing of big xml files...

2010-01-06 Thread Alex Ott
Hello all

I have question about processing big XML files with lazy-xml.  I'm trying to 
analyze
StackOverflow dumps with Clojure, and when analyzing 1.6Gb XML file with
posts, i get java stack overflow, although i provide enough memory for java
(1Gb of heap).

My code looks following way


(ns stackoverflow
  (:import java.io.File)
  (:use clojure.contrib.lazy-xml))

(def so-base /data-sets/stack-overflow/2009-12/122009 SO)

(def posts-file (File. (str so-base /posts.xml)))

(defn count-post-entries [xml]
  (loop [counter 0
 lst xml]
(if (nil? lst)
  counter
  (let [elem (first lst)
rst (rest lst)]
(if (and (= (:type elem) :start-element) (= (:name elem) :row))
  (recur (+ 1 counter) rst)
  (recur counter rst))

and run it with 

(stackoverflow/count-post-entries (clojure.contrib.lazy-xml/parse-seq 
stackoverflow/posts-file))

I don't collect real data here, so i expect, that clojure will discard
already processed data.

The same problem with stack overflow happens, when i use reduce:

(reduce (fn [counter elem]
  (if (and (= (:type elem) :start-element) (= (:name elem) :row))
(+ 1 counter)
counter))
0 (clojure.contrib.lazy-xml/parse-seq stackoverflow/posts-file))

So, question is open - how to process big xml files in constant space? (if
I won't collect much data during processing)

-- 
With best wishes, Alex Ott, MBA
http://alexott.blogspot.com/   http://xtalk.msk.su/~ott/
http://alexott-ru.blogspot.com/
-- 
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

Russian speaking members of Clojure community?

2010-01-03 Thread Alex Ott
Hello all

I want to ask Russian speaking of Clojure community to contact with me -
I'm currently writing article about Clojure for Russian journal of
functional programming (http://fprog.ru) and want to ask peoples to review
my article when it will finished (i think, during next 10-15 days)

-- 
With best wishes, Alex Ott, MBA
http://alexott.blogspot.com/http://xtalk.msk.su/~ott/
http://alexott-ru.blogspot.com/

-- 
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: strange typecheck error

2010-01-02 Thread Alex Ott
Many thanks to you Bill - it works!

.Bill Smith  at Fri, 1 Jan 2010 10:44:37 -0800 (PST) wrote:
 .S Happy New Year to you, Alex.

 .S I reproduced the problem as follows:

 .S user= (loop [x (byte 0) count 0]
 .S   (if ( count 10) (recur 0 (inc count
 .S java.lang.RuntimeException: java.lang.IllegalArgumentException: recur
 .S arg for primitive local: x must be matching primitive (NO_SOURCE_FILE:
 .S 57)
 .S user=

 .S If the compiler detects that a loop binding evaluates to a primitive,
 .S it insists that the corresponding recur argument be a reducible to a
 .S primitive as well.  You can short-circuit that logic with a type hint,
 .S like this:

 .S user= (loop [x #^Object (byte 0)]
 .S   (if ( x 10) (recur (inc x
 .S nil
 .S user=

 .S It's ugly but it works.  If you change line 65 in your example from
 .S char (.read ireader)] to char #^Object (.read ireader)], the
 .S compile error should go away.  The example in my previous posting
 .S didn't have that problem because 0 by itself is an Integer object, not
 .S an int primitive.

-- 
With best wishes, Alex Ott, MBA
http://alexott.blogspot.com/http://xtalk.msk.su/~ott/
http://alexott-ru.blogspot.com/

-- 
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: strange typecheck error

2009-12-31 Thread Alex Ott


Nikolay Petrov  at Wed, 30 Dec 2009 18:13:13 + wrote:
 NP Is process char returns char or String?

I want to return either String, either Integer, depending on condition...

-- 
With best wishes, Alex Ott, MBA
http://alexott.blogspot.com/http://xtalk.msk.su/~ott/
http://alexott-ru.blogspot.com/

-- 
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: strange typecheck error

2009-12-31 Thread Alex Ott
Hello

I'm sorry, i tried to prepare shorter example, and mixed loops  recurs.
Full example is attached.  This is code, that implements something like
'strings' command on Unixes, but for UTF-8 encoding

The problem is, that i need to return from function 'read-utf-char', either
String, either Integer, depending on condition.   Or this is not allowed by
Clojure?  I mostly programming in Scheme, that allows such tricks

.Bill Smith  at Wed, 30 Dec 2009 11:28:54 -0800 (PST) wrote:
 .S Sorry, I'm confused by the code sample.  I see several loops but no
 .S corresponding recurs.

-- 
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(ns test1
  (:import (java.io File InputStream FileInputStream InputStreamReader))
  (:import (java.nio.charset Charset))
  (:use [clojure.contrib.def :only (defvar-)])
  )

(defn is-ascii? [#^Integer n]
  (or (and (= n 32) (= n 126)) ;; 0x20-0x7e
  (== n 9)   ;; \t, \n, \v, \f, \r
  (== n 10)
  (== n 13)
  ))

(defvar- utf-8-locale (Charset/forName UTF-8))
(defvar- latin-1-locale (Charset/forName ISO-8859-1))

;;
(defn- clear-strbuf [#^StringBuffer strbuf]
  (.delete strbuf 0 (.length strbuf)))

(defn- append-from-strbuf [lst
   #^StringBuffer strbuf
   #^Integer n]
  (if (= (.length strbuf) n)
(let [str (.toString strbuf)]
  (clear-strbuf strbuf)
   (cons str lst))
(do
  (clear-strbuf strbuf)
  lst)))

(defn- detect-utf-n [#^Integer char]
  (cond
( char 0xC0) 0
(= (bit-and char 0xE0) 0xC0) 1 ;; 2-bytes seq
(= (bit-and char 0xF0) 0xE0) 2 ;; 3-bytes seq
(= (bit-and char 0xF8) 0xF0) 3 ;; 4-bytes seq
:else 0))

(defn- read-utf-char [#^InputStreamReader istream
  #^Integer char
  #^Integer utf-n]
  (let [barr (make-array Byte/TYPE (+ 1 utf-n))]
(aset-byte barr 0 char)
;; loop over rest of characters, checking their validity
(loop [cnt 0]
  (if (= cnt utf-n)
(String. barr utf-8-locale) ;; if we read all characters
(let [ch (.read istream) ;; read rest of characters
  ncnt (+ 1 cnt)]
  (if (= (bit-and ch 0xC0) 0x80)
(do 
  (aset-byte barr ncnt ch)
  (recur ncnt))
ch))

(defn- extract-text-utf-8
  Performs text extraction for UTF-8 encoding
  [#^InputStream istream
   #^Integer n
   ]
  (let [#^InputStreamReader ireader (new InputStreamReader istream 
latin-1-locale)
#^StringBuffer strbuf (new StringBuffer)
]
(loop [lst '()
   char (.read ireader)]
  (let [utf-n (detect-utf-n char)]
(cond
  (== char -1) (reverse (append-from-strbuf lst strbuf n))
  (is-ascii? char) (do
 (.append strbuf (Character/toChars char))
 (recur lst (.read ireader)))
  ( utf-n 0) (let [res (read-utf-char ireader char utf-n)]
(if (string? res)
  (do
(.append strbuf res)
(recur lst (.read ireader)))
  ;; TODO: don't forget to fix this (.read istream) - 
res issue
  (recur (append-from-strbuf lst strbuf n) 
 (.read ireader
  :else (recur (append-from-strbuf lst strbuf n)
   (.read ireader)))

(defn analyse-stream
  Performs analysis of given file and extract text in given charset
  [#^InputStream stream
   #^Integer n
   #^String locale-name]
  (extract-text-utf-8 stream n))

(defn analyse-file
  Performs analysis of given file and extract text in given charset
  [#^File file
   #^Integer n
   #^String locale-name]
  (analyse-stream (new FileInputStream file) n locale-name))

-- 
With best wishes, Alex Ott, MBA
http://alexott.blogspot.com/http://xtalk.msk.su/~ott/
http://alexott-ru.blogspot.com/


Re: strange typecheck error

2009-12-31 Thread Alex Ott
Hello Bill

.Bill Smith  at Thu, 31 Dec 2009 09:20:16 -0800 (PST) wrote:
 .S I tried out your example with a couple of files and it appeared to
 .S work.  Is it supposed to fail, or is this an example of what you had
 .S to do to work around the problem you mentioned?

Yes, this is working variant

if you'll replace '(.read ireader)' in 'recur' on line 80 with 'res', then
it will fail.

 .S It's certainly ok for a function to return different data types.  I
 .S guess the simplest example of that would be the identity function.

thanks for identity example, i'll look to it

P.S. Happy New Year to you, and rest of clojure community

-- 
With best wishes, Alex Ott, MBA
http://alexott.blogspot.com/http://xtalk.msk.su/~ott/
http://alexott-ru.blogspot.com/

-- 
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


strange typecheck error

2009-12-30 Thread Alex Ott
Hello all

I have strange problem with type inference in Clojure.  I have following
code (simplified version of real code), 


(defn- process-char [#^InputStream istream]
  (let [ch (.read istream)]
(if (= ch 10)
   AAA
   ch)))

(defn- process-text [#^InputStream istream]
(loop [char (.read istream)]
 (let [result (process-char istream)]
  (cond 
  ;; .. some additional conditions
 (string? result) (loop (.read istream))
 (number? result) (loop result)
  ...

Main idea, that in some function, i read characters in sequence, and check
their values, and in some conditions, i need to re-submit already readed
character into loop, but when i use code above, i get following error:

java.lang.IllegalArgumentException: recur arg for primitive local: char must be 
matching primitive
  [Thrown class java.lang.RuntimeException]


but if i replace (loop result) with (.read istream), then it works without
any problems

I checked type of result, and it's Integer - same type, that 'char' var in
loop will get after reading from stream.

If need, i can submit somebody full test case

-- 
With best wishes, Alex Ott, MBA
http://alexott.blogspot.com/http://xtalk.msk.su/~ott/
http://alexott-ru.blogspot.com/

-- 
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


bug or feature in (require ...)?

2009-12-18 Thread Alex Ott
Hello all

I found interesting behaviour of clojure when debugging why tests aren't
working when build incanter with maven...

In incanter there is following code:

(def test-names [:core-tests
 :stats-tests
 :io-tests
 :charts-tests
 :internal-tests
 :chrono-test
 :transformations-tests
 :probability-tests
 :information-theory-tests
 :bayes-tests])

(def test-namespaces (map #(symbol (str incanter. (name %))) test-names))

(defn run Runs all defined tests []
  (println Loading tests...)
  (apply require :reload-all test-namespaces)
  (apply run-tests test-namespaces))

that dynamically loads and executes set of tests. The problem is
if :reload-all option is used, then tests, defined in incanter.charts-tests
aren't working.  But when i change it to :reload, then all works fine.

It seems, that tests, that are loaded after charts-tests, completely reload
libraries, discarding previously loaded incanter.chart library, that is
used only in charts-tests...

Question - this is feature of require? or this is a bug?

-- 
With best wishes, Alex Ott, MBA
http://alexott.blogspot.com/http://xtalk.msk.su/~ott/
http://alexott-ru.blogspot.com/

-- 
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


initialization of clojure.contrib.logging library

2009-11-23 Thread Alex Ott
Hello all

I have one question about logging library from contrib? How i can configure
it to write data into log files?

P.S. I'm not Java developer, and may be don't know many of java's logging tricks

-- 
With best wishes, Alex Ott, MBA
http://alexott.blogspot.com/http://xtalk.msk.su/~ott/
http://alexott-ru.blogspot.com/

-- 
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