[ANN] Another one implementation of JSR 223 (Java Scripting API) for Clojure

2018-02-27 Thread Oleg Vershinin
Here is a link: https://github.com/overshinin/clojure-jsr223 -- 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

Re: Help with async operations

2015-05-25 Thread Oleg Dashevskii
Hi Rangel, thanks! works perfectly! понедельник, 18 мая 2015 г., 4:07:53 UTC+6 пользователь Rangel Spasov написал: > > You can checkout the new pipeline stuff, I think it fits what you're > looking for nicely: > > https://gist.github.com/raspasov/7c9d8f2872d6065b2145 > > -- You received this

Re: Help with async operations

2015-05-17 Thread Oleg Dashevskii
Hi Atamert, воскресенье, 17 мая 2015 г., 19:35:57 UTC+6 пользователь Atamert Ölçgen написал: > > I’m new to Clojure async operations (while have a good understanding of >> other things) and want to get a bit of advice. Atoms & agents still confuse >> me. >> >> What I’m implementing is a small R

Help with async operations

2015-05-16 Thread Oleg Dashevskii
reas updating the MAP should come synchronized, one-after-the-other. How would you implement this? -- Oleg. -- 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 n

Compile multiple files in Emacs (interactive development)

2010-06-30 Thread Oleg
out 10) in emacs and click "C-c C-k" to compile every of them. It's boring, especially if my project will grow. Is there a better solution? Cheers, Oleg -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group

Map vs For

2010-06-28 Thread Oleg
I will show example based on hiccup library: For version: [:ol (for [x coll] [:li x])] Map version: [:ol (map (fn [x] [:li x]) coll)] What's the difference between them? What is better for performance? Cheers, Oleg -- You received this message because you are subscribed to the Google G

Re: Conjure / Compojure Docs etc

2010-06-28 Thread Oleg
ng clojure and compojure development tricks. - Oleg On 28 июн, 00:56, "john.holland" wrote: > I've seen a lot of mentions of Compojure on the group. I found the > documentation a little lacking. Am I missing something obvious? > > Also, Conjure (sort of Rails done

Re: State of Clojure web development

2010-06-28 Thread Oleg
pport in oyako. I think that we need better persistency solution, as for me oyako could be great base for it. 5) Thank you guys, for your work on making clojure better - Oleg On 24 июн, 01:23, James Reeves wrote: > Hello there! > > Chas Emerick's recent "State of Clojur

Re: Non-tail recursion (Clojure way to hierarchies)

2010-06-15 Thread Oleg
I've looked at tree-seq and can say that is not suitable for non-tail "children" tasks. For example how can i attach subtotal row to bottom of each level. Any ideas? On 13 июн, 16:35, Andrzej wrote: > On Sun, Jun 13, 2010 at 7:35 PM, Oleg wrote: > > > Currently i&#

Re: Non-tail recursion (Clojure way to hierarchies)

2010-06-13 Thread Oleg
Thank you, but could you provide me a little code snippet which will iterate through collection and assoc "children" key for each row. On 13 июн, 16:35, Andrzej wrote: > On Sun, Jun 13, 2010 at 7:35 PM, Oleg wrote: > > > Currently i'm just calling functio

Non-tail recursion (Clojure way to hierarchies)

2010-06-13 Thread Oleg
ink guys? Is there are clojure-rish way to solve that problem? Cheers, Oleg -- 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 - ple

Re: Elegant way to replace a few words in string

2010-05-29 Thread Oleg
Thank you for great solution. On 28 май, 23:45, Laurent PETIT wrote: > 2010/5/28 Michael Gardner > > > On May 28, 2010, at 12:42 PM, Laurent PETIT wrote: > > > > The rule should really always be: no warning at all (with > > *warn-on-reflection* set to true, of course). > > > I strongly disagree.

Elegant way to replace a few words in string

2010-05-28 Thread Oleg
egant way to do it? Sure, i can use loop and recur to make string enter the next replacement, but is there another way to do it better? Cheers, Oleg -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojur

Re: M-X slime

2010-05-28 Thread Oleg
Hello! Thank you. It was just not fully downloaded clojure 1.2 I've asked lein to update all deps again and now it works. On 28 май, 04:10, Joost wrote: > On May 27, 8:24 pm, Oleg wrote: > > > Hello Guys! > > > Yes, i know that i can run "lein swank" in my

M-X slime

2010-05-27 Thread Oleg
Hello Guys! Yes, i know that i can run "lein swank" in my project directory and then use M-X + slime-connect in emacs. But all the time with clojure 1.1.0 i used this procedure: M-X cd to project directory and them just M-X slime (classpath is set relative to current emacs dir, so it finds swank-c

Re: Processing list more elegantly

2009-12-29 Thread Oleg Vershinin
> > (defn left-total [lst] >   (reverse (first (reduce (fn [[acc tot] cur] >                             [(cons [cur tot] acc) (+ tot cur)]) >                           [nil 0] >                           lst (defn left-total [s] (reverse (reduce (fn [y x] (cons (list x (reduce + (first y)))

Re: Processing list more elegantly

2009-12-29 Thread Oleg Vershinin
On 28 дек, 05:36, Conrad wrote: > I've been writing Clojure code today and have noticed the same pattern > show up multiple times, but can't find an elegant way to code it in > idiomatic Clojure. I feel like I'm missing an obvious solution... > anyone else see something I don't? Thanks in advanc