Re: Using @ alone

2015-05-21 Thread Colin Yates
Yes, exactly. In my previous email I incorrectly said '() was a set. On 21 May 2015 01:07, "Pierre Thibault" wrote: > No: > > (type '()) > clojure.lang.PersistentList$EmptyList > > It a list just like it should be. > > Le mercredi 20 mai 2015 20:02:22 UTC-4, Colin Yates a écrit : >> >> That's OK,

Re: Accessing static fields

2015-05-21 Thread martin madera
I don't want to start a flamewar here, but Python is quite a different beast than Java or Clojure. TBH Python is more complex language than Clojure but many things were made easy in Python and Python looks like that someone really thought about newbie experience. A newbie experience in Clojure

[ANN] New release of Alia, Cassandra driver/client for clojure

2015-05-21 Thread Max Penet
New release of Alia, the lean cassandra driver for clojure. https://github.com/mpenet/alia Alia focuses on performance, stability, simplicity, extensibility, being feature complete and tries to expose java-drivers' API in a clojure friendly way. It provides a "blocking" API, but also has interf

Question about sequence with transducers

2015-05-21 Thread Mark Engelberg
According to the website: sequence To create a sequence from the application of a transducer to an input collection, use sequence : (sequence xf (range 1000)) The resulting sequence elements are incremen

[BUG?] loading Clojure source files from various data sources (classloading)

2015-05-21 Thread Alex Fowler
Hello! I am developing a Java application where Clojure is used as a library. The application is required to load sources (including Clojure sources) from arbitrary locations in filesystem, internet and maybe a dozen other places. Hence I have developed corresponding classloaders for that, whic

Re: [BUG?] loading Clojure source files from various data sources (classloading)

2015-05-21 Thread Alex Fowler
I want also to add that Sun/Oracle realize the importance of loading things from other sources, read the very last paragraph of this notice . But Clojure currently prevents this by hard-code. -- You r

Re: [BUG?] loading Clojure source files from various data sources (classloading)

2015-05-21 Thread tokomakoma...@gmail.com
HTC J より送信 - Reply message - 送信者: "Alex Fowler" 宛先: 件名: [BUG?] loading Clojure source files from various data sources (classloading) 日付: 木, 5月 21日, 2015年 20:25 Hello! I am developing a Java application where Clojure is used as a library. The application is required to load sources (in

Question about sequence with transducers

2015-05-21 Thread Alex Miller
Lazy sequences are more lazy. In particular, expanding transformations (most commonly mapcat) will produce elements that are consumed as needed in a lazy sequence. In a transducer the entire expansion will get produced when it's encountered and then doled out to one by one. So intermediate opera

[BUG?] loading Clojure source files from various data sources (classloading)

2015-05-21 Thread Alex Miller
What version of Clojure are you using? -- 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 unsubscri

Re: [BUG?] loading Clojure source files from various data sources (classloading)

2015-05-21 Thread Alex Fowler
We are using [org.clojure/clojure "1.7.0-beta3"] for desktop and [org.clojure-android/clojure "1.7.0-beta6"] for Android. By your question I assume you're refering to the fact that some of the links I have made in the original post are for clojure-android, I am sorry, apparently I mixed up the

Re: Using @ alone

2015-05-21 Thread Sam Ritchie
That’s probably with a macro body, where it takes on a slightly different meaning. `(+ ~@[1 2 3]) In that form, ~@ strips off the sequence following it. The form macroexpands to (clojure.core/+ 1 2 3) I believe ~@ only works inside a backticked form. Sam Ritchie (@sritchie) RaceHub Co-Founder

Re: Using @ alone

2015-05-21 Thread Sam Ritchie
Whoops, sorry all. Only the first message in the thread loaded. Sam Ritchie (@sritchie) RaceHub Co-Founder 703.863.8561 www.racehubhq.com Twitter // Facebook > On May 21, 2015, at 8:33 AM, Sam Ritchie wr

Re: Accessing static fields

2015-05-21 Thread Timothy Baldridge
It would probably be good to have a better example of what you are trying to accomplish. Chances are with a few small tweaks we can help you find something both elegant and fast. On Thu, May 21, 2015 at 1:28 AM, martin madera wrote: > I don't want to start a flamewar here, but Python is quite a

Re: [ANN] Demo of the Holy Grail workflow

2015-05-21 Thread blake
Interesting. I'm somewhat concerned that the "genius.com" annotation says the kingdom of Assyria was around for 25,000 years, though. On Wed, May 20, 2015 at 6:03 PM, Daniel Szmulewicz < daniel.szmulew...@gmail.com> wrote: > Hi everybody, > > A video showcasing the Holy Grail workflow has been p

Re: [ANN] Demo of the Holy Grail workflow

2015-05-21 Thread Daniel Szmulewicz
Haha. That does sound long-ish, doesn't it? Even for an unfamiliar civilization. Here you go: the eternal peril of cinéma vérité. On Thursday, May 21, 2015 at 5:53:55 PM UTC+3, blake wrote: > > Interesting. > > I'm somewhat concerned that the "genius.com" annotation says the kingdom > of Assyr

Re: Accessing static fields

2015-05-21 Thread Pierre Thibault
For me it is difficult because I tend to translate OO in functional and functional in OO. But I am starting to think differently. I guess I am at point where my knowledge can hurt me for learning something new. I am glad that the community is so responsive. This is great! :-) Le jeudi 21 mai 20

[ANN] Clojure 1.7.0-RC1 now available

2015-05-21 Thread Alex Miller
Clojure 1.7.0-RC1 is now available. Try it via - Download: https://repo1.maven.org/maven2/org/clojure/clojure/1.7.0-RC1/ - Leiningen: [org.clojure/clojure "1.7.0-RC1"] The only change since 1.7.0-beta3 is CLJ-1706, which makes reader conditional splicing an error at the top level (previously it w

Re: [ANN] Demo of the Holy Grail workflow

2015-05-21 Thread blake
Anyway, good demo, and I like how you got Werner Herzog to narrate. On Thu, May 21, 2015 at 8:03 AM, Daniel Szmulewicz < daniel.szmulew...@gmail.com> wrote: > Haha. That does sound long-ish, doesn't it? Even for an unfamiliar > civilization. Here you go: the eternal peril of cinéma vérité. > > >

Re: [ANN] Demo of the Holy Grail workflow

2015-05-21 Thread Daniel Szmulewicz
Thanks! I'll try to make some more. Ha! Werner Herzog's cameo appearance. That may have been a one-off. I was recovering from a heavy flu. My regular voice is less nasal. The accented Euro English will remain, that I promise. On Thursday, May 21, 2015 at 7:40:43 PM UTC+3, blake wrote: > > An

Re: [ANN, GSoC] A Common Clojure Source Metadata Model

2015-05-21 Thread Russell Mull
There are some potential applications for literate programming here. For example, when doing an 'untangle' from your literate program source (to extract the code), the typical way to allow changes to be merged back in is to add comments with line number information. A more structured place to p

Re: [ANN] Clojure 1.7.0-RC1 now available

2015-05-21 Thread Sergey Didenko
As I mentioned in another thread, how would you type hint an empty vector? (set! *warn-on-reflection* true) (java.util.ArrayList. []);Reflection warning (java.util.ArrayList. ^java.util.Collection []) ;Reflection warning At the same time: (java.util.ArrayList. ["a"]) ;OK

Re: [ANN] Clojure 1.7.0-RC1 now available

2015-05-21 Thread Andy Fingerhut
I believe this issue has been reported in this ticket: http://dev.clojure.org/jira/browse/CLJ-1093 Currently it is not planned to be fixed in Clojure 1.7.0. Maybe a later release will fix it. Andy On Thu, May 21, 2015 at 11:24 AM, Sergey Didenko wrote: > As I mentioned in another thread, how

Re: [ANN] Clojure 1.7.0-RC1 now available

2015-05-21 Thread Andy Fingerhut
That may not be the right ticket. Nicola Mometto may have the number memorized, if there is one :-) Here is a workaround that avoids the reflection warning: (let [^java.util.Collection x []] (java.util.ArrayList. x)) Andy On Thu, May 21, 2015 at 11:37 AM, Andy Fingerhut wrote: > I believe

Re: [ANN, GSoC] A Common Clojure Source Metadata Model

2015-05-21 Thread Alex Miller
It is a non-goal to define any new "standard" metadata for vars as part of the project. But it does seem reasonable that retaining var metadata and making it available would be useful to enable tooling for examples or anything else. On Thursday, May 21, 2015 at 1:15:17 PM UTC-5, Russell Mull wr

Relational mapping - turning an sql query result into array of hashes (with joins)

2015-05-21 Thread Krzysiek Herod
I've found the question appearing here, but a long time ago, so I thought that maybe the situation changed: Is there a relational mapper in clojure (or in java) that takes query result and generates an array of hashmaps? I mean something that converts the result of this query: "SELECT * FROM pos

Re: [ANN, GSoC] A Common Clojure Source Metadata Model

2015-05-21 Thread Laurent PETIT
Sorry for jumping late inside the pool, but the topic has retained my attention from day one. As a developer of an IDE plugin (CounterClockWise for Eclipse), I'm very interested in this effort. Here are my ideas/questions/remarks: - Finding a winning scenario for adoption is key. A perfect tool w

a simple question about Arrays.asList

2015-05-21 Thread webber
I am trying to use java.util.Arrays/asList in Clojure. (java.util.Arrays/asList 1 2 3) CompilerException java.lang.IllegalArgumentException: No matching method: asList, compiling:(NO_SOURCE_PATH:1:1) (java.util.Arrays/asList 1) ClassCastException java.lang.Long cannot be cast to [Ljava.lang.O

Re: a simple question about Arrays.asList

2015-05-21 Thread Aaron Cohen
Since Arrays.asList is a variadic method, the Java compiler is magically creating an array behind the scenes for you when you write Java code invoking it. Clojure does variadic functions differently for native clojure code. To do interop with a Java variadic method have to create the array yourse

Re: a simple question about Arrays.asList

2015-05-21 Thread Mauricio Aldazosa
There are many things that need to be understood in a call like this. First of all, that method receives an array as its argument: https://docs.oracle.com/javase/7/docs/api/java/util/Arrays.html#asList(T...) >From your first example I think you are trying to translate to clojure the following jav

cljs.test usage

2015-05-21 Thread David Nolen
People have been asking about cljs.test usage for a while now. I've finally written up some notes https://github.com/clojure/clojurescript/wiki/Testing. Feel free to edit for clarity / typos etc. David -- You received this message because you are subscribed to the Google Groups "Clojure" group.

Re: Why isn't definterface in the cheatsheet?

2015-05-21 Thread Andy Fingerhut
definterface, sequence, and clojure.repl/dir added in v25 of the Cheatsheet, available here: http://jafingerhut.github.io which is also where you get when you click the 'Download other versions with tooltips' link at clojure.org/cheatsheet Andy On Wed, May 20, 2015 at 8:41 PM, Mars0i wrote: >

Re: [BUG?] loading Clojure source files from various data sources (classloading)

2015-05-21 Thread Steven Yi
Hi Alex, I'm not sure this will help, but I was working on a test project with embedding Clojure in Java and ended up adding my custom class loader to a map, bound to *ns*, and pushing/popping it to thread bindings: https://gist.github.com/kunstmusik/8e7817f71dff5ceb5229 In some commented out

Re: [ANN] Demo of the Holy Grail workflow

2015-05-21 Thread Daniel
"this video is not available" I am attempting to view on a mobile. -- 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 y

Re: [ClojureScript] [ANN] Clojure 1.7.0-RC1 now available

2015-05-21 Thread Andy Fingerhut
Alex, doing a quick sweep of new public Vars in 1.7.0-RC1 that were not in Clojure 1.6.0 (complete list of all 21 below), I noticed that the following two do not have any doc strings. Intentional, or oversight? *suppress-read* Throwable->map Andy *suppress-read* ->Eduction Throwable->map cat c

Re: [ANN] Demo of the Holy Grail workflow

2015-05-21 Thread Daniel Szmulewicz
I really don' know what to say. Works fine here. Including from my mobile. Anyone else has a problem accessing the video? On Friday, May 22, 2015 at 2:54:06 AM UTC+3, Daniel wrote: > > "this video is not available" > > I am attempting to view on a mobile. -- You received this message because y

Re: [ANN] Demo of the Holy Grail workflow

2015-05-21 Thread Daniel Compton
Same issues here. I'm guessing there may be some copyrighted material which isn't approved for viewing in some regions? On Fri, 22 May 2015 at 12:30 pm Daniel Szmulewicz < daniel.szmulew...@gmail.com> wrote: > I really don' know what to say. Works fine here. Including from my mobile. > Anyone else

Re: [ANN] Demo of the Holy Grail workflow

2015-05-21 Thread Daniel Szmulewicz
Oh Good Lord. That could very well be, but shouldn't it say so? When I uploaded the video, it said indeed that there was copyrighted material, and therefore it would be monetized by the copyright holders, and that there would be ads. But nothing was mentioned regarding availability / unavailabil

Re: [ANN, GSoC] A Common Clojure Source Metadata Model

2015-05-21 Thread Richard Möhn
Thanks for the great feedback! Am Freitag, 22. Mai 2015 05:48:38 UTC+9 schrieb Laurent PETIT: > > Sorry for jumping late inside the pool, but the topic has retained my > attention from day one. > > As a developer of an IDE plugin (CounterClockWise for Eclipse), I'm very > interested in this effo

Re: [ClojureScript] [ANN] Clojure 1.7.0-RC1 now available

2015-05-21 Thread Alex Miller
Thanks Andy. Throwable->map should have a docstring. -- 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: [ANN, GSoC] A Common Clojure Source Metadata Model

2015-05-21 Thread Colin Fleming
> > On one of the latest Cognicasts, Colin Fleming talked about a repo where > library authors can upload extensions that help the IDE understand their > macros. I have to listen to it again, but it sounded a bit like what you're > talking about. Right now I can't find that repo, though. Maybe he w

[CFP] *DEADLINE EXTENDED* Scheme and Functional Programming Workshop 2015

2015-05-21 Thread Andy Keep
*DEADLINE EXTENDED: Submissions is now May 31st, 2015* *Call For Papers:* Scheme and Functional Programming Workshop 2015 Vancouver, British Columbia, Canada (Co-located with ICFP 2015) http://andykeep.com/SchemeWorkshop2015/ Submissions related to Scheme, Racket, Clojure, and functional progr

are there any real examples on Github of how to use reducers?

2015-05-21 Thread piastkrakow
Can anyone point me to a project on Github that is using Clojure 1.5 reducerers? -- 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

Re: [ANN] Demo of the Holy Grail workflow

2015-05-21 Thread Shaun Mahood
Can't play it in Canada from my mobile. -- 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 unsubscr

Re: are there any real examples on Github of how to use reducers?

2015-05-21 Thread Max Countryman
Kyle Kingsbury’s linearizability checker “Knossos” uses reducers. (See the core, history, and util namespaces.) https://github.com/aphyr/knossos > On May 21, 2015, at 19:55, piastkra...@gmail.com wrote: > > > Can anyone point me to a project on Github that is using Clojure 1.5 > reducerers?