Re: [ANN] Clojure 1.9.0 is now available!

2017-12-09 Thread Georgi Danov
is the new clj CLI going to be alternative to Lein? For example can I run repl with middleware? also, if I use lein repl, is deps.edn taken into account? I love that feature -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group,

Re: clojure.spec

2016-05-28 Thread Georgi Danov
: > > spec is not for text parsing - there are plenty of more suitable tools for > that. It is not a general-purpose regex tool either. > > > > On May 28, 2016, at 5:46 PM, Georgi Danov <georgi...@gmail.com > > wrote: > > > > I love the regexp approach, so

Re: clojure.spec

2016-05-28 Thread Georgi Danov
I love the regexp approach, so decided to implement JSON parser in order to get acquainted with spec. The parser treats the input as char sequence. The parser works, code is very readable, however performance is horrible — json file with 3.5k characters takes 350 seconds to process — 10

clojure.spec possible bug

2016-05-26 Thread Georgi Danov
I am trying to match sequences with fixed start and end but varying content. After lots of experiments I start to suspect there is either bug, or severe misunderstanding on my side. Here is one example that behaves illogical to me (sp/conform (sp/cat :start #{1} :mid (sp/+

syntax of ^:arglists ?

2015-12-21 Thread Georgi Danov
Hi, Is there some formal syntax used by ^:arglists? I want to express key-value pairs that are spliced, e.g. (some-fn :k1 value :k2 value) Thanks, Georgi -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to

Re: syntax of ^:arglists ?

2015-12-21 Thread Georgi Danov
I'd like the keys to be optional and destructuring does not support that. On Mon, Dec 21, 2015, 3:48 PM Herwig Hochleitner wrote: > I'd say, same as you would destructure them inline: [& {:keys [k1 k2]}] > > -- > You received this message because you are subscribed to

Re: safety and reusability of clojure.lang.RT, Compiler and co. in multi-classloader environment

2015-10-26 Thread Georgi Danov
Just for the record, there is one more relevant thread https://groups.google.com/d/topic/clojure/0AgUIiY8BQ8/discussion On Tuesday, September 29, 2015 at 12:08:16 AM UTC+2, Georgi Danov wrote: > > Hi, > I am integrating clojure into java micro container. It has hierarchical >

Re: safety and reusability of clojure.lang.RT, Compiler and co. in multi-classloader environment

2015-10-02 Thread Georgi Danov
ot-clj/boot and its “pods” facility: > >> https://github.com/boot-clj/boot/tree/master/boot/pod which uses > >> https://github.com/projectodd/shimdandy . > >> > >> More on pods: https://github.com/boot-clj/boot/wiki/Pods > >> > >> A presentation about

Re: safety and reusability of clojure.lang.RT, Compiler and co. in multi-classloader environment

2015-09-29 Thread Georgi Danov
https://github.com/projectodd/shimdandy . > >> > >> More on pods: https://github.com/boot-clj/boot/wiki/Pods > >> > >> A presentation about boot (including pods): > >> https://www.youtube.com/watch?v=TcnzB2tB-8Q . > >> > >> —Steve > >

safety and reusability of clojure.lang.RT, Compiler and co. in multi-classloader environment

2015-09-28 Thread Georgi Danov
Hi, I am integrating clojure into java micro container. It has hierarchical classloaders and can restart modules on the fly. It's almost REPL for Java :). I have clojure running inside it, but even after reading some of the RT and Compiler classes source code I don't understand well enough

Re: How to move an element within a vector?

2015-08-25 Thread Georgi Danov
How about filtering? BTW I don't see how it would help converting to array - what would be the solution then? On Tuesday, August 25, 2015 at 7:06:30 PM UTC+2, Hussein B. wrote: Hi, For a vector like [A B C D E], how to remove an element to a specific location? For example [A D B C E] ?

Re: Anotating functions for pre-processing

2015-08-10 Thread Georgi Danov
you seen this thread? https://groups.google.com/forum/#!topic/clojure/0hKOFQXAwRc Shantanu On Wednesday, 5 August 2015 17:28:42 UTC+5:30, Georgi Danov wrote: Hi, I have had good 6 months of fun with Clojure and have big appreciation for it's way of doing things. Coming from the Java/Spring

Anotating functions for pre-processing

2015-08-05 Thread Georgi Danov
Hi, I have had good 6 months of fun with Clojure and have big appreciation for it's way of doing things. Coming from the Java/Spring world however, I still have this nagging desire to be able to annotate functions and have some preprocessor pick up these annotations and decorate the code

Re: Anotating functions for pre-processing

2015-08-05 Thread Georgi Danov
Thank you Steve with the help of the robect-hooke library I got close: (defn ^:test-meta t [a] (println a)) ;;copy the metadata to the function object (def tt (with-meta t (meta #'t))) (defn adv1 [f a] (println advising f with meta (meta f)) (f a)) (defn adv2 [f a] (println hey! f your

Re: separation of concerns w/o encapsulation

2015-05-12 Thread Georgi Danov
No tool or technology beats the combination of: a) component/responsibility blueprint b) discipline in communicating, following and adapting it encapsulation can be a nice safety net once you have the things above, but it would never be a solution to the problem. just a convenience. coding and

Re: [ClojureScript] Re: ANN: ClojureScript 0.0-3196, Conditional Reading, REPLs, and Code Motion

2015-04-12 Thread Georgi Danov
thanks! On Saturday, April 11, 2015 at 5:15:06 PM UTC+2, David Nolen wrote: Yep, the clojure.main option is the one you want. David On Sat, Apr 11, 2015 at 10:45 AM, Georgi Danov georgi...@gmail.com wrote: I did read it very carefully several times, but kept trying to use it via

Re: ANN: ClojureScript 0.0-3196, Conditional Reading, REPLs, and Code Motion

2015-04-11 Thread Georgi Danov
Hi, I keep having troubles running repl with piggieback and once again I see in the changelog this was improved. I also saw the screenshot in your last tweet which clearly shows intellij can connect. Can you please share your project set-up? Some sort of sample project that has that up

Re: [ClojureScript] Re: ANN: ClojureScript 0.0-3196, Conditional Reading, REPLs, and Code Motion

2015-04-11 Thread Georgi Danov
to connect IntelliJ to a REPL because Cursive can now connect to a ClojureScript REPL started in the usual way. There is no special setup, make sure you've taken the time to read the new ClojureScript Quick Start. HTH, David On Sat, Apr 11, 2015 at 5:06 AM, Georgi Danov georgi