Re: An Error spec?

2018-10-26 Thread Serzh Nechyporchuk
Why exceptions are the pattern we encourage? So if I spec'ed my function input, output and input-to-output there is no way to specify errors when something goes wrong, because neither spec nor clojure does not allow you to describe exception that can be thrown in your function. Returning

Re: clojure.spec to match string

2016-09-30 Thread Serzh Nechyporchuk
t;> An Architect's View -- http://corfield.org/ >> >> "If you're not annoying somebody, you're not really alive." >> -- Margaret Atwood >> >> On 9/29/16, 7:20 AM, "Serzh Nechyporchuk" <clojure@googlegroups.com on >> behalf o

Re: clojure.spec to match string

2016-09-29 Thread Serzh Nechyporchuk
Thank you Alex. That’s true, I can use just predicate to validate string. But I want a little more from this. I really want to use generators and conforming. I know that strings are seqable, s/cat works with seq. So my question is: Are there any way to combine this? > On Sep 29, 2016, at

clojure.spec to match string

2016-09-29 Thread Serzh Nechyporchuk
Hello to everyone. Are there any ability to use specs to match string, something like standard regex? For example, I have a function that takes a specially constructed string as parameter: (defn parse-something [s] ...) ;; s => "a=1; b=2; c=3" It would be nice doing this, because I be able

Re: [ANN] Clojure 1.8.0-RC3

2015-12-10 Thread Serzh Nechyporchuk
We also considered no issues with update to 1.8. 2015-12-11 3:19 GMT+02:00 Matthias Nehlsen : > No problems here, I updated it in all my projects and everything is > working nicely. Thanks! > > > On Wednesday, December 2, 2015 at 5:03:31 PM UTC+1, Alex Miller wrote:

Re: [ANN] Clojure 1.8.0-RC2

2015-12-03 Thread Serzh Nechyporchuk
There is an error in the link in the issue: you leave "):" in the end of url. On Monday, November 16, 2015 at 4:32:10 PM UTC+2, Alex Miller wrote: > > Clojure 1.8.0-RC2 is now available. *This build is a "release candidate"!* We > would appreciate any and all testing you can do on your own

Re: [ANN] Clojure 1.8.0-RC3

2015-12-03 Thread Serzh Nechyporchuk
In our app we have 30% speed improvements. Although direct-linking helps us with code obfuscation. -- 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

Re: [ANN] Clojure 1.8.0-RC2

2015-12-03 Thread Serzh Nechyporchuk
> On Tuesday, December 1, 2015 at 1:46:22 AM UTC-6, Serzh Nechyporchuk wrote: >> >> Hello, Alex. Thank you for your work. >> >> Direct linking is a feature that we wait for a long. We need to obfuscate >> our code, so direct linking is really helps us. &

Re: [ANN] Clojure 1.8.0-RC2

2015-11-30 Thread Serzh Nechyporchuk
Hello, Alex. Thank you for your work. Direct linking is a feature that we wait for a long. We need to obfuscate our code, so direct linking is really helps us. But I wonder, why there is keyword and symbols interning left in the static initalizer in the class: L1 { ldc

Re: stuartsierra/component is oop, can clojure namespace self init to solve the dependencies?

2015-06-19 Thread Serzh Nechyporchuk
OOP always talks about object (mutable or immutable) in terms of polymorphism, encapsulation and inheritance. Components library misses only inheritance, which, obviously, the killer feature in OOP. So we could say that Components library that take good ideas from OOP. If you want call something

Re: IllegalStateException Attempting to call unbound fn

2014-08-22 Thread Serzh Nechyporchuk
: On 21/08/2014 14:35, Serzh Nechyporchuk wrote: This code works fine for me. Did you try to reload repl? Reloaded but now getting this error: CompilerException java.lang.IllegalArgumentException: Unable to resolve classname: LinkedBlockingQueue Maybe something needs :require-ing

Re: IllegalStateException Attempting to call unbound fn

2014-08-21 Thread Serzh Nechyporchuk
Can you put all file that you try to load? 2014-08-21 11:04 GMT+03:00 gvim gvi...@gmail.com: I can't work out why this code produces an exception: (defn fints [ args] (assert (every? integer? args)) (vec args)) (defn testf [x] (fints x)) (testf 42) IllegalStateException

Re: IllegalStateException Attempting to call unbound fn

2014-08-21 Thread Serzh Nechyporchuk
Can you put all file that you try to load? Четвер, 21 серпня 2014 р. 11:04:33 UTC+3 користувач g vim написав: I can't work out why this code produces an exception: (defn fints [ args] (assert (every? integer? args)) (vec args)) (defn testf [x] (fints x)) (testf 42)

Re: Presentation about Clojure

2014-08-21 Thread Serzh Nechyporchuk
Adding to previous answer, I think that you have to say about clojure macro power and lisp's programming paradigm as library. And also you have to mention about clojure polymorphism and how it solves expression problem. 2014-08-21 13:18 GMT+03:00 Kalina Todorova kalinalyudmil...@gmail.com:

Re: Presentation about Clojure

2014-08-21 Thread Serzh Nechyporchuk
I can give you my presentation about Clojure. I have several questions: - (classic) parenthesis - How do you model your domain without objects? - About dsl. If clojure is good for dsl, does it mean that when you get new librarty with its own dsl, you have to learn new language? - How does new

Re: Presentation about Clojure

2014-08-21 Thread Serzh Nechyporchuk
/1ewQYugwi9mBdogWMLGQM74uadrI-jw4Kf3Tasxve_bs/edit?usp=sharing 2014-08-21 13:39 GMT+03:00 Cecil Westerhof cldwester...@gmail.com: 2014-08-21 12:33 GMT+02:00 Serzh Nechyporchuk nechyporc...@gmail.com: I can give you my presentation about Clojure. I have several questions: - (classic) parenthesis

Re: Presentation about Clojure

2014-08-21 Thread Serzh Nechyporchuk
: 2014-08-21 12:49 GMT+02:00 Serzh Nechyporchuk nechyporc...@gmail.com: In most programming languages cool features are provided as core functionality and you can't extend it manually. But in lisp you can do it just as library. For example: - Go channels - core.async - logic programming

Re: Presentation about Clojure

2014-08-21 Thread Serzh Nechyporchuk
too. In it I show production examples of using clojure and repl-driven development. So it will be very nice if you have time for a second talk too. You are welcome :) Четвер, 21 серпня 2014 р. 14:56:00 UTC+3 користувач Cecil Westerhof написав: 2014-08-21 13:43 GMT+02:00 Serzh Nechyporchuk

Re: IllegalStateException Attempting to call unbound fn

2014-08-21 Thread Serzh Nechyporchuk
This code works fine for me. Did you try to reload repl? 2014-08-21 16:29 GMT+03:00 gvim gvi...@gmail.com: On 21/08/2014 09:39, Serzh Nechyporchuk wrote: Can you put all file that you try to load? Here it is. Just bits and pieces for practice: (ns gh1.core) (defn foo I don't do

Clojure production environment

2014-08-20 Thread Serzh Nechyporchuk
Hi, guys I've just googled about clojure production environments and found nothing about it. I want to ask what environments for production do you use (e.g. application server, cloud platform, deploy tool, etc)? I think this information will be interesting for many people. For now in our

Re: Future termination

2014-08-20 Thread Serzh Nechyporchuk
. Thanks, Andy On Thu, Jul 31, 2014 at 5:38 AM, Serzh Nechyporchuk nechyp...@gmail.com wrote: On my Ubuntu 14.04 laptop process doesn't terminates at all. I was waiting about an hour. Also this issue affects code which uses datomic.api, which, I think, uses futures too. Середа, 30 липня

Re: Future termination

2014-07-31 Thread Serzh Nechyporchuk
at 12:33 PM, Serzh Nechyporchuk nechyp...@gmail.com javascript: wrote: Hello. I have a problems using code with futures. For example, if I run following code: java -jar clojure-1.6.0.jar -e (println 1) the process prints 1 and terminates. But when I'm trying to run code with futures

Future termination

2014-07-30 Thread Serzh Nechyporchuk
Hello. I have a problems using code with futures. For example, if I run following code: java -jar clojure-1.6.0.jar -e (println 1) the process prints 1 and terminates. But when I'm trying to run code with futures: java -jar clojure-1.6.0.jar -e (future 1) the process doesn't terminates. This

Fn as value matcher in core.match

2014-04-07 Thread Serzh Nechyporchuk
How can I match fns as values? For example: (let [fun assoc] (match [fun] [get] get [assoc] assoc :else other)) The example above is not match correctly. It always matches on first clause. Thank you. -- You received this message because you are subscribed to the Google Groups