Re: IllegalStateException Attempting to call unbound fn

2014-08-21 Thread Serzh Nechyporchuk
You should import LinkedBlockingQueue to your namespace. (ns ... (:import java.util.concurrent.LinkedBlockingQueue)) (recommended way) or (import 'java.util.concurrent.LinkedBlockingQueue) Why do this error is misleading for you? 2014-08-22 1:35 GMT+03:00 gvim : > On 21/08/2014

Re: tools.analyzer[.js/.jvm], tools.emitter.jvm, status report

2014-08-21 Thread Colin Fleming
Hi Alex, Is the current feature expressions design basically what's under "Proposed Solution: feature expressions" at http://dev.clojure.org/display/design/Feature+Expressions? I read through the comments a while back and a lot of the suggestions there got fairly complicated, I'd be interested to

Re: tools.analyzer[.js/.jvm], tools.emitter.jvm, status report

2014-08-21 Thread Alex Miller
Hey David, I'm working on the feature expressions stuff. At the moment I've been focusing on the clj/cljs use case as that seems to be most urgent. I had been planning to circle back around to clr eventually though and would be very interested in any known issues. Alex -- You received this m

Re: IllegalStateException Attempting to call unbound fn

2014-08-21 Thread gvim
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 If this is

Re: setrlimit from Clojure

2014-08-21 Thread Chai Tadada
Yes, it seems possible this way (haven't tried it yet, though). Thanks! -- 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 w

Re: idiomatic filter-not or inverting predicate

2014-08-21 Thread Daniel Solano Gómez
On Thu Aug 21 13:01 2014, Andy C wrote: > Hi, > > > I was wondering what is the nicest way to do filter-not in Clojure. Here > are 3 expressions: > > user=> (filter #(apply = %) '([1 2] [1 1])) > ([1 1]) > user=> (filter #(apply not= %) '([1 2] [1 1])) > ([1 2]) > user=> (filter #(not (apply = %

Re: idiomatic filter-not or inverting predicate

2014-08-21 Thread Ambrose Bonnaire-Sergeant
Also see clojure.core/remove. On Thu, Aug 21, 2014 at 4:04 PM, Sam Ritchie wrote: > I think you want complement, like (filter (complement odd?) ...) > > Andy C > August 21, 2014 at 2:01 PM > Hi, > > > I was wondering what is the nicest way to do filter-not in Clojure. Here > are 3 expressio

Re: idiomatic filter-not or inverting predicate

2014-08-21 Thread Sam Ritchie
I think you want complement, like (filter (complement odd?) ...) Andy C August 21, 2014 at 2:01 PM Hi, I was wondering what is the nicest way to do filter-not in Clojure. Here are 3 expressions: user=> (filter #(apply = %) '([1 2] [1 1])) ([1 1]) user=> (fil

idiomatic filter-not or inverting predicate

2014-08-21 Thread Andy C
Hi, I was wondering what is the nicest way to do filter-not in Clojure. Here are 3 expressions: user=> (filter #(apply = %) '([1 2] [1 1])) ([1 1]) user=> (filter #(apply not= %) '([1 2] [1 1])) ([1 2]) user=> (filter #(not (apply = %)) '([1 2] [1 1])) ([1 2]) First one is just a base filterin

Re: Presentation about Clojure

2014-08-21 Thread Bruno Kim Medeiros Cesar
I've given the following presentation in 30 minutes: https://github.com/brunokim/learning-clojure. I've used LightTable to change and evaluate code live, mutating from the code in short-preso/ to the one in notes/. It's probably not well annotated, I intended to make a video with that but didn'

[ANN] shadow-pgsql: PostgreSQL without JDBC

2014-08-21 Thread Thomas Heller
Hey Clojure Folk, I'm close to releasing the first alpha version of https://github.com/thheller/shadow-pgsql a "native" interface to PostgreSQL I wrote. Its an implementation of the native binary protocol without any intent to ever support JDBC. Mostly because that provides a bunch of features

Re: Is Clojure a language for growth?

2014-08-21 Thread Steven Degutis
Call me old-fashioned, but this seems like not the best way to approach choosing a language. It should be chosen pragmatically, by considering what works best for the task at hand, not because of arbitrarily set rules, and never because a language is new and exciting. Good programming techniques ar

Re: Is Clojure a language for growth?

2014-08-21 Thread Sean Corfield
On Aug 21, 2014, at 1:48 AM, Arthur Boyer wrote: > One idea that's come up several times is the notion that if we push Clojure > then any problems we have will get blamed on Clojure, and unfortunately this > rings true to me. At the same time, my boss is keen on choosing one language > and stic

Re: tools.analyzer[.js/.jvm], tools.emitter.jvm, status report

2014-08-21 Thread dmiller
Nicola, Thanks for the very helpful comments. I'll likely proceed with the translation -- there are calls to get core.async sync'ed up with the JVM version and tools.analyzer.* has to be there. Thanks for pointing me to the feature expressions discussion. That will be extremely useful, should

Re: Is Clojure a language for growth?

2014-08-21 Thread Kalina Todorova
>> If a company wants to be able to hire staff and get them up to speed, as >> well as have options for bringing in contractors and outsourcing some work, >> is Clojure a good choice? >> > > My friend works in a project which is being rewritten from Rails to > Clojure (due to usual scaling problems

Re: Is Clojure a language for growth?

2014-08-21 Thread Jan Ziniewicz
> > > If a company wants to be able to hire staff and get them up to speed, as > well as have options for bringing in contractors and outsourcing some work, > is Clojure a good choice? > My friend works in a project which is being rewritten from Rails to Clojure (due to usual scaling problems

Re: Presentation about Clojure

2014-08-21 Thread David Powell
For me the most practical benefit of Clojure is how easy it makes combining, transforming, and processing data from various sources. Just as SQL is better for querying a relational database than writing a load of imperative for-loops; Clojure's functional transformations of immutable data are far m

Re: Presentation about Clojure

2014-08-21 Thread Ashton Kemerling
Whenever I try and sell Clojure, I sell four things: 1. JVM based deploy and performance. 2. A complete state model for safe and easy concurrency 3. Macros to eliminate boilerplate and add features otherwise impossible 4. An ecosystem of decoupled libraries that take a "no magic" appr

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 : > 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 a whol

Re: IllegalStateException Attempting to call unbound fn

2014-08-21 Thread gvim
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 a whole lot." [x] (println x "Hello, World!")) (foo "Garry") (doseq [x [1 2 3 4 5] y [11 22 33 44 55]]

Re: Is Clojure a language for growth?

2014-08-21 Thread Magnus Therning
On Wed, Aug 20, 2014 at 03:37:40AM -0700, aboy021 wrote: > Is Clojure a suitable language for a company that needs to grow > quickly? > > If a company wants to be able to hire staff and get them up to > speed, as well as have options for bringing in contractors and > outsourcing some work, is Cloj

Re: [ClojureScript] DevArt Co(de)Factory open source release

2014-08-21 Thread Dylan Butman
This is really awesome Karsten! I first got obsessed with programming writing particle systems in processing with toxiclibs. Thanks for all your work! Will definitely be digging deep into this one. -- You received this message because you are subscribed to the Google Groups "Clojure" group. T

Re: Presentation about Clojure

2014-08-21 Thread Serzh Nechyporchuk
> > ​Good idea, I am always a more technical person, but your way will be more > productive. > It is a two day event. I could ask if it would be possible to give it on > the first day and have the option to give a hands-on the second day if > there is interest for that. I also had a second t

Re: tools.analyzer[.js/.jvm], tools.emitter.jvm, status report

2014-08-21 Thread Nicola Mometto
David, I personally have no plans to port tools.analyzer.jvm to a tools.analyzer.clr, not for disinterest but simply because I don't know anything about the .NET platform nor about clojureCLR. That said, it shouldn't be hard to port it at all, the main file to port would be https://github.com/cl

Re: Presentation about Clojure

2014-08-21 Thread Cecil Westerhof
2014-08-21 13:43 GMT+02:00 Serzh Nechyporchuk : > You can use this presentation as your own :) > ​I probably will change some things (but reading the rest of your email less as I expected), but will certainly at least mention it is inspired on your presentation. Credit where credit is due. I want

Re: Presentation about Clojure

2014-08-21 Thread Serzh Nechyporchuk
You can use this presentation as your own :) The auditory I was talked to consists of: - several java - one clojure :) - rest python developers. In this presentation I intentionally don't focus on syntax and other "getting started" features. I think that this is less important and it is really easy

Re: Presentation about Clojure

2014-08-21 Thread Cecil Westerhof
2014-08-21 12:49 GMT+02:00 Serzh Nechyporchuk : > 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 - core.logic > > Link

Re: Presentation about Clojure

2014-08-21 Thread Serzh Nechyporchuk
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 - core.logic Link to presentation https://docs.google.com/presentation/d/1ewQYugwi

Re: Presentation about Clojure

2014-08-21 Thread Cecil Westerhof
2014-08-21 12:33 GMT+02:00 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

Re: Presentation about Clojure

2014-08-21 Thread Cecil Westerhof
2014-08-21 12:23 GMT+02:00 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. > ​Thanks.​

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 peop

Re: Presentation about Clojure

2014-08-21 Thread Cecil Westerhof
2014-08-21 12:18 GMT+02:00 Kalina Todorova : > Well if it is introduction to Clojure you can stick to the main things > about immutability, lists, concurrency, JVM, repl, interop > ​I could handle that. But can I fill three quarters of an hour with that? Also, is there someone who has done somet

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 : > Well if it is introduction to

Re: Is Clojure a language for growth?

2014-08-21 Thread Luc Prefontaine
+1 same weakness + big fingers on small iPhone keyboard :( Urgent need for a second one... We choose Clojure in 2008 strictly for efficiency. In 2009 after being in prod, we were told that hiring would be a major problem. We dealt with this noise by accepting the fact that we will train people.

Re: Presentation about Clojure

2014-08-21 Thread Kalina Todorova
Well if it is introduction to Clojure you can stick to the main things about immutability, lists, concurrency, JVM, repl, interop On Thu, Aug 21, 2014 at 12:06 PM, Cecil Westerhof wrote: > I am far from an expert on Clojure, but I am thinking about giving a talk > about it on an Open Source eve

Presentation about Clojure

2014-08-21 Thread Cecil Westerhof
I am far from an expert on Clojure, but I am thinking about giving a talk about it on an Open Source event. Any tips about what to treat and what not to treat? I will have about 45 minutes. -- Cecil Westerhof -- You received this message because you are subscribed to the Google Groups "Clojur

Re: Is Clojure a language for growth?

2014-08-21 Thread Arthur Boyer
Thanks for all the great advice. I think it really reinforces another thing I like about Clojure, that it has a wonderful community. One idea that's come up several times is the notion that if we push Clojure then any problems we have will get blamed on Clojure, and unfortunately this rings true t

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)) > > (test

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

Re: Weird data reader issue (clj-time)

2014-08-21 Thread dan . stone16321
Thats it! Thanks for the great explanation. On Wednesday, August 20, 2014 5:55:18 PM UTC+1, Marshall Bockrath-Vandegrift wrote: > > What's your `print-dup` for instants print them as? The way compilation > for these expressions is going to work is: > > (a) The initial form will be read using th

IllegalStateException Attempting to call unbound fn

2014-08-21 Thread gvim
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 Attempting to call unbound fn: #'gh1.core/testf clojure.lang.Var$Unbound.throwArity (Var.java:43) gvim --

Re: Is Clojure a language for growth?

2014-08-21 Thread Henrik Eneroth
+ Grammar. I should not write correspondence before having coffee. On Thursday, August 21, 2014 9:31:42 AM UTC+2, Henrik Eneroth wrote: > > Sweden has some things going for it, and some not, as always. I think > business overall is somewhat less cutthroat here than in the States, which > is why

Re: Is Clojure a language for growth?

2014-08-21 Thread Henrik Eneroth
Sweden has some things going for it, and some not, as always. I think business overall is somewhat less cutthroat here than in the States, which is why it struck me that I might be making assumptions about what OP should or should not do out of ignorance of his situation. The scape goat reasoni