Re: How aliased "require" is different?

2014-05-04 Thread Petr Gladkikh
/refresh) > >> (println b-alias/x) ; original value > >> ; and also > >> (println b/x) ; new value > >> > >> In second case: > >> (ns a (require [b])) > >> (println b/x) ; original value > >> ; change sources of b or it's depe

Re: How to generate a serializable java class in Clojure by gen-class?

2013-03-03 Thread Petr Gladkikh
d 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: Better ways to make time tansformations?

2012-03-31 Thread Petr Gladkikh
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 -- Petr Gladkikh -- You received this messa

Source code as metadata

2012-03-29 Thread Petr Gladkikh
like NullPointerException in #(/ % d) in (defn c [d] ( ... 13)) in bugs.clj line 17 I have been using Clojure occasionally for some development automation so I could be missing something. What do you think of this idea? -- Petr Gladkikh -- You received this message because you are subscribed to the Google G

Re: [ANN]: cljsh & repls 1.6.0 - so many repls, so little time…

2012-02-06 Thread Petr Gladkikh
clojure.core$apply.invoke(core.clj:540) at leiningen.core$apply_task.invoke(core.clj:260) at leiningen.core$_main.doInvoke(core.clj:325) at clojure.lang.RestFn.invoke(RestFn.java:410) at clojure.lang.AFn.applyToHelper(AFn.java:161) at clojure.lang.RestFn.applyTo

Re: are non programmers the better programmers?

2012-01-18 Thread Petr Gladkikh
ways of using some given technology or tool. But then there is more: now I often can see redundant or unnecessary aspects of some systems that account for say 20-30% of whole codebase. This is the thing that my colleagues with little experience usually do not see since it is always obscured by nume

Re: Ending or closing malformed line in REPL

2011-12-05 Thread Petr Gladkikh
d - 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 -- Petr Gladkikh -- You received this message because you are subscri

Re: Thoughts on CUDA + Clojure

2011-09-12 Thread Petr Gladkikh
much more tightly with existing code. > > > > Any thoughts? Besides that I'm crazy... > > Timothy > In my opinion It would be wiser to target OpenCL first. So this effort will not depend on particular hardware vendor. AFAIK OpenCL is already supported by Intel, AMD

Re: Errors in Clojure

2011-08-19 Thread Petr Gladkikh
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.

Re: "Elegant tools deserve elegant solutions." -- L. E. Gant

2011-08-11 Thread Petr Gladkikh
nning to think I > have selected an arduous path (for me). > > Thoughts? > Somehow offtopic maybe, but have you looked at Snowball http://snowball.tartarus.org/ ? Algorithm is different but language that is used to describe stemmers there is almost lisp and may be useful at least as refe

Re: Predicate problem

2011-08-02 Thread Petr Gladkikh
@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=

Predicate problem

2011-08-02 Thread Petr Gladkikh
tains some of elements? -- Petr Gladkikh -- 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.

Re: Java object field access

2011-07-29 Thread Petr Gladkikh
On Tue, Jul 26, 2011 at 5:14 PM, Ken Wesson wrote: > On Tue, Jul 26, 2011 at 6:02 AM, Petr Gladkikh wrote: >> On Tue, Jul 26, 2011 at 3:28 PM, Alan Malloy wrote: >>> On Jul 25, 11:10 pm, Petr Gladkikh wrote: >>>> I am trying to construct java object and assign it&

Re: Java object field access

2011-07-26 Thread Petr Gladkikh
On Tue, Jul 26, 2011 at 3:28 PM, Alan Malloy wrote: > On Jul 25, 11:10 pm, Petr Gladkikh wrote: >> I am trying to construct java object and assign it's fields from a map. >> That is given Java object of class Something { long id; String name; } >> and Clojure map {:id

Re: Calling clojure from java.

2011-07-25 Thread Petr Gladkikh
rapped necessary functions to have less arguments to pass from Java. This way later you'll need to load single script only. Say (ns (use lobos.core)) (def db {.}) (defn create2 [table-name] (create db (table table-name))) This might not be convenient in your case however. -- Pe

Java object field access

2011-07-25 Thread Petr Gladkikh
e reflection for this... Can anyone point to what is wrong here? By the way is there already some function that allows to set fields of an object from a map? -- Petr Gladkikh -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this

Re: Why take-last of empty collection is nil?

2011-02-03 Thread Petr Gladkikh
On Thu, Feb 3, 2011 at 1:31 PM, Meikel Brandmeyer wrote: > Hi, > > On 3 Feb., 08:04, Petr Gladkikh wrote: > >> Should not it be empty colection instead? >> It seems odd to me since it is inconsistent and forces to consider one >> more case (nil or collection). &g

Why take-last of empty collection is nil?

2011-02-02 Thread Petr Gladkikh
l)) I wonder, is there already such function somewhere in Clojure libraries? -- Petr Gladkikh -- 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 ar

Re: Quicksort with accumulator

2010-12-28 Thread Petr Gladkikh
And also qsort may take up to n stack frames for collection of n elements if you partition function is not optimal. In your case - if input collection is sorted (as long as you split by first element). On Tue, Dec 28, 2010 at 11:13 PM, Petr Gladkikh wrote: > Why do you call qsort* inside

Re: Quicksort with accumulator

2010-12-28 Thread Petr Gladkikh
oup, 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://group

Re: Purpose of Macros

2010-11-29 Thread Petr Gladkikh
this direction http://petrglad.blogspot.com/2010/02/stream-close-template.html). Sorry, just nitpicking. -- Petr Gladkikh -- 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

Re: Mobile Clojure

2010-11-13 Thread Petr Gladkikh
26642c?pli=1 -- Petr Gladkikh -- 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 unsub