Re: Using a dynamic var for my database connection for implicit connections+transactions

2015-08-04 Thread J . Pablo Fernández
On 3 August 2015 at 23:47, Rob Lally  wrote:

> I’m also a little confused by your suggestion that it would be impossible
> to enclose each test in a transaction. The article you point to shows one
> way.


It shows how to pass data to the test by using a dynamic var, which is what
we are using to track the connection, which is what I'm interested in
passing in to the test. If my solution to use a dynamic var to track the
connection is dirty and unacceptable, so is that one. The only difference I
can think of is, using a dynamic var only for tests dirties only tests but
using a dynamic var to track connections is consistent across the code-base.


-- 
J. Pablo Fernández  (http://pupeno.com)

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ANN] Clojure 1.8.0-alpha4

2015-08-04 Thread Nicola Mometto

There is some weirdeness going on with the new release.
Compare:

Clojure 1.7.0
user=>  (def foo String)
#'user/foo
user=> (defn ^{:tag foo} a [])
#'user/a

with

Clojure 1.8.0-master-SNAPSHOT
user=> (def foo String)
#'user/foo
user=> (defn ^{:tag foo} a [])
CompilerException java.lang.IllegalArgumentException: Unable to resolve
classname: foo, compiling:(NO_SOURCE_PATH:2:1)

It loooks like clojure is now trying to use a value that should be available at
runtime (after evaluation) at compile time (using the literal form).

I realize this might be necessary, clojure already does something
similar with :arglists (that causes some issues too) or even
inevitable but I fear this will start affecting more and more tools
writers.

Perharps this calls for an official clarification/specification of how
:tag (and :arglists) is evaluated in the different places it can be
used, what values are possible and what should be considered an
error/undefined behaviour.

Dragan Djuric writes:

> Clojure only supports long and double primitives as function hints. You are 
> using int; it didn't work with pre-1.8.0 clojure.

--

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ANN] Planck OS X REPL

2015-08-04 Thread Mike Fikes
Planck is a self-contained bootstrapped ClojureScript REPL for OS X.

http://planck.fikesfarm.com 

Planck is now available via Homebrew: 

  http://blog.fikesfarm.com/posts/2015-08-04-pour-a-pint-of-planck.html 


- Mike

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ANN] Planck 1.0 - Bootstrapped ClojureScript OS X REPL

2015-08-04 Thread Mike Fikes
Planck 1.3 is now available via Homebrew:

   http://blog.fikesfarm.com/posts/2015-08-04-pour-a-pint-of-planck.html

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[meta] Can't view one unread topic here.

2015-08-04 Thread Fluid Dynamics
The front page of this group shows no unread threads to me, but shows a (1) 
next to "Google Groups" in the page title. So there's one topic with unread 
posts, but I can't get the interface to show it to me. I've tried refresh, 
shift-refresh, and navigate-away-and-back. I'm sure I haven't done anything 
that would filter my view of the group. What do I need to do to make the 
unread topic visible?

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [meta] Can't view one unread topic here.

2015-08-04 Thread Mike Fikes
I recently posted in mistake and deleted the post. Perhaps that is causing what 
you are seeing.

- Mike

> On Aug 4, 2015, at 10:09 AM, Fluid Dynamics  wrote:
> 
> The front page of this group shows no unread threads to me, but shows a (1) 
> next to "Google Groups" in the page title. So there's one topic with unread 
> posts, but I can't get the interface to show it to me. I've tried refresh, 
> shift-refresh, and navigate-away-and-back. I'm sure I haven't done anything 
> that would filter my view of the group. What do I need to do to make the 
> unread topic visible?
> 
> -- 
> 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 unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en 
> 
> --- 
> You received this message because you are subscribed to the Google Groups 
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to clojure+unsubscr...@googlegroups.com 
> .
> For more options, visit https://groups.google.com/d/optout 
> .

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ANN] Onyx 0.7.0: 2x Throughput, 5x Latency Improvement

2015-08-04 Thread Michael Drogalis
We're happy to announce version 0.7.0 of the Onyx Platform. This release of 
Onyx features a massive jump in performance with the integration of the new 
peer-to-peer library Aeron. Additionally, we've begun to open the door for 
cross language support into Java.

Blog 
post: http://michaeldrogalis.github.io/jekyll/update/2015/06/08/Onyx-0.7.0.html
Core: https://github.com/onyx-platform/onyx

Thanks to everyone that contributed!

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


better clojure support for atom?

2015-08-04 Thread benedek fazekas
wonder how much need/interest is out there for better support for 
clojure/clojurescript editing in atom. i suppose doing an integration of 
cider-nrepl and/or refactor-nrepl would not be too hard for advanced editing 
features/experience. opinions welcome!

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ANN] Clojure 1.8.0-alpha3

2015-08-04 Thread Alex Miller
I think 1.8.0-alpha4 addresses this issue? Can you verify?

On Wednesday, July 29, 2015 at 8:23:16 PM UTC-5, Mikera wrote:
>
> Hi Alex, 
>
> 1.8.0-alpha3 is breaking core.matrix at the moment.
>
> Root cause appears to be related to how protocols are being handled when 
> used with Java arrays:
>
> e.g. for the protocol implementation:
> (extend-protocol mp/PImplementation
>   (Class/forName "[Ljava.lang.Object;")
> (implementation-key [m] :object-array)
> (meta-info [m]
>   {:doc "Clojure.core.matrix implementation for Java Object arrays"})
> (new-vector [m length] (construct-object-vector (long length)))
> (new-matrix [m rows columns]
>   (let [columns (long columns)
> m (object-array rows)]
> (dotimes [i rows]
>   (aset m i (construct-object-vector columns)))
> m))
> (new-matrix-nd [m shape]
>   (construct-nd shape))
> (construct-matrix [m data]
>   (construct-object-array data))
> (supports-dimensionality? [m dims]
>   (>= dims 1)))
>
> When called as:
> (clojure.core.matrix.protocols/construct-matrix (object-array 1) [1])
>
> Gives exception:
> VerifyError (class: clojure/core/matrix$eval10586, method: invokeStatic 
> signature: ()Ljava/lang/Object;) Incompatible object argument for function 
> call  java.lang.Class.getDeclaredConstructors0 (:-2)
>
>>
>>

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


What "Counted" interface is for?

2015-08-04 Thread Keisuke Fukuda
Hello,

I've been investigating the basic data structures and their underlying
concepts in Clojure, particularly focusing on the definitions of coll, seq,
map, vector, set, etc. and their inclusion relationships.

I saw a Venn diagram in this page[1]. Although it is as of Clojure 1.3, I
confirmed it is still correct. "Counted" interface has its only method
count() and it implies that we can get the explicit size of a "Counted"
collection.

However, IPersistentCollection, which is actually the definition of
collections, also has count() method. It's a bit surprising to me that even
LazySeq supports count() (indirectly via ISeq).

Questions:
If IPersistentCollection has count() method, What is "Counted" for?
Is it always reasonable for LazySeq to support count() method? Shouldn't
there be an explicit "CountedLazySeq",

Thanks.
Keisuke

[1] http://www.brainonfire.net/files/seqs-and-colls/main.html


-- 
FUKUDA, Keisuke <福田圭祐>
Tokyo, Japan
Email: keisukefuk...@gmail.com

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: What "Counted" interface is for?

2015-08-04 Thread Laurent PETIT
If I'm remember correctly, the Counted interface must only be implemented
by collection implementations for which it is guaranteed that count() is an
O(~1) operation

2015-08-04 17:07 GMT+02:00 Keisuke Fukuda :

> Hello,
>
> I've been investigating the basic data structures and their underlying
> concepts in Clojure, particularly focusing on the definitions of coll, seq,
> map, vector, set, etc. and their inclusion relationships.
>
> I saw a Venn diagram in this page[1]. Although it is as of Clojure 1.3, I
> confirmed it is still correct. "Counted" interface has its only method
> count() and it implies that we can get the explicit size of a "Counted"
> collection.
>
> However, IPersistentCollection, which is actually the definition of
> collections, also has count() method. It's a bit surprising to me that even
> LazySeq supports count() (indirectly via ISeq).
>
> Questions:
> If IPersistentCollection has count() method, What is "Counted" for?
> Is it always reasonable for LazySeq to support count() method? Shouldn't
> there be an explicit "CountedLazySeq",
>
> Thanks.
> Keisuke
>
> [1] http://www.brainonfire.net/files/seqs-and-colls/main.html
>
>
> --
> FUKUDA, Keisuke <福田圭祐>
> Tokyo, Japan
> Email: keisukefuk...@gmail.com
>
> --
> 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 unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Laurent Petit

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: What "Counted" interface is for?

2015-08-04 Thread Gary Verhaegen
I don't know of it is correct, but I also remember reading that Counted was
a "marker interface", i.e. it does not actually add any method but it
implies that the count operation will be "fast".

On Tuesday, 4 August 2015, Laurent PETIT  wrote:

> If I'm remember correctly, the Counted interface must only be implemented
> by collection implementations for which it is guaranteed that count() is an
> O(~1) operation
>
> 2015-08-04 17:07 GMT+02:00 Keisuke Fukuda  >:
>
>> Hello,
>>
>> I've been investigating the basic data structures and their underlying
>> concepts in Clojure, particularly focusing on the definitions of coll, seq,
>> map, vector, set, etc. and their inclusion relationships.
>>
>> I saw a Venn diagram in this page[1]. Although it is as of Clojure 1.3, I
>> confirmed it is still correct. "Counted" interface has its only method
>> count() and it implies that we can get the explicit size of a "Counted"
>> collection.
>>
>> However, IPersistentCollection, which is actually the definition of
>> collections, also has count() method. It's a bit surprising to me that even
>> LazySeq supports count() (indirectly via ISeq).
>>
>> Questions:
>> If IPersistentCollection has count() method, What is "Counted" for?
>> Is it always reasonable for LazySeq to support count() method? Shouldn't
>> there be an explicit "CountedLazySeq",
>>
>> Thanks.
>> Keisuke
>>
>> [1] http://www.brainonfire.net/files/seqs-and-colls/main.html
>>
>>
>> --
>> FUKUDA, Keisuke <福田圭祐>
>> Tokyo, Japan
>> Email: keisukefuk...@gmail.com
>> 
>>
>> --
>> 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 unsubscribe from this group, send email to
>> clojure+unsubscr...@googlegroups.com
>> 
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Clojure" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to clojure+unsubscr...@googlegroups.com
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Laurent Petit
>
> --
> 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 unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> 
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: What "Counted" interface is for?

2015-08-04 Thread Raymond Huang
That sounds about right.

See
https://github.com/clojure/clojure/blob/41af6b24dd5be8bd62dc2b463bc53b55e18cd1e5/src/jvm/clojure/lang/Counted.java

On Tue, Aug 4, 2015 at 11:06 AM, Gary Verhaegen 
wrote:

> I don't know of it is correct, but I also remember reading that Counted
> was a "marker interface", i.e. it does not actually add any method but it
> implies that the count operation will be "fast".
>
>
> On Tuesday, 4 August 2015, Laurent PETIT  wrote:
>
>> If I'm remember correctly, the Counted interface must only be implemented
>> by collection implementations for which it is guaranteed that count() is an
>> O(~1) operation
>>
>> 2015-08-04 17:07 GMT+02:00 Keisuke Fukuda :
>>
>>> Hello,
>>>
>>> I've been investigating the basic data structures and their underlying
>>> concepts in Clojure, particularly focusing on the definitions of coll, seq,
>>> map, vector, set, etc. and their inclusion relationships.
>>>
>>> I saw a Venn diagram in this page[1]. Although it is as of Clojure 1.3,
>>> I confirmed it is still correct. "Counted" interface has its only method
>>> count() and it implies that we can get the explicit size of a "Counted"
>>> collection.
>>>
>>> However, IPersistentCollection, which is actually the definition of
>>> collections, also has count() method. It's a bit surprising to me that even
>>> LazySeq supports count() (indirectly via ISeq).
>>>
>>> Questions:
>>> If IPersistentCollection has count() method, What is "Counted" for?
>>> Is it always reasonable for LazySeq to support count() method? Shouldn't
>>> there be an explicit "CountedLazySeq",
>>>
>>> Thanks.
>>> Keisuke
>>>
>>> [1] http://www.brainonfire.net/files/seqs-and-colls/main.html
>>>
>>>
>>> --
>>> FUKUDA, Keisuke <福田圭祐>
>>> Tokyo, Japan
>>> Email: keisukefuk...@gmail.com
>>>
>>> --
>>> 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 unsubscribe from this group, send email to
>>> clojure+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/clojure?hl=en
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "Clojure" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to clojure+unsubscr...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> Laurent Petit
>>
>> --
>> 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 unsubscribe from this group, send email to
>> clojure+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Clojure" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to clojure+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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 unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: What "Counted" interface is for?

2015-08-04 Thread Keisuke Fukuda
Thank you for your answers.

I think now I understand it.
It makes sense that it's a maker interface.
I was confused from the fact that List supports O(1) but it is, of course,
possible in actual implementations.

Regards.
Keisuke



On Wed, Aug 5, 2015 at 5:40 AM, Raymond Huang <12ay.hu...@gmail.com> wrote:

> That sounds about right.
>
> See
> https://github.com/clojure/clojure/blob/41af6b24dd5be8bd62dc2b463bc53b55e18cd1e5/src/jvm/clojure/lang/Counted.java
>
> On Tue, Aug 4, 2015 at 11:06 AM, Gary Verhaegen 
> wrote:
>
>> I don't know of it is correct, but I also remember reading that Counted
>> was a "marker interface", i.e. it does not actually add any method but it
>> implies that the count operation will be "fast".
>>
>>
>> On Tuesday, 4 August 2015, Laurent PETIT  wrote:
>>
>>> If I'm remember correctly, the Counted interface must only be
>>> implemented by collection implementations for which it is guaranteed that
>>> count() is an O(~1) operation
>>>
>>> 2015-08-04 17:07 GMT+02:00 Keisuke Fukuda :
>>>
 Hello,

 I've been investigating the basic data structures and their underlying
 concepts in Clojure, particularly focusing on the definitions of coll, seq,
 map, vector, set, etc. and their inclusion relationships.

 I saw a Venn diagram in this page[1]. Although it is as of Clojure 1.3,
 I confirmed it is still correct. "Counted" interface has its only method
 count() and it implies that we can get the explicit size of a "Counted"
 collection.

 However, IPersistentCollection, which is actually the definition of
 collections, also has count() method. It's a bit surprising to me that even
 LazySeq supports count() (indirectly via ISeq).

 Questions:
 If IPersistentCollection has count() method, What is "Counted" for?
 Is it always reasonable for LazySeq to support count() method?
 Shouldn't there be an explicit "CountedLazySeq",

 Thanks.
 Keisuke

 [1] http://www.brainonfire.net/files/seqs-and-colls/main.html


 --
 FUKUDA, Keisuke <福田圭祐>
 Tokyo, Japan
 Email: keisukefuk...@gmail.com

 --
 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 unsubscribe from this group, send email to
 clojure+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en
 ---
 You received this message because you are subscribed to the Google
 Groups "Clojure" group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to clojure+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.

>>>
>>>
>>>
>>> --
>>> Laurent Petit
>>>
>>> --
>>> 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 unsubscribe from this group, send email to
>>> clojure+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/clojure?hl=en
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "Clojure" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to clojure+unsubscr...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> 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 unsubscribe from this group, send email to
>> clojure+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Clojure" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to clojure+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> 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 unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To u

Recommendations for a schema-based data language for use in Hadoop?

2015-08-04 Thread Ryan Schmitt
Hi Clojure people,

I'm currently working on some problems in the big data space, and I'm more 
or less starting from scratch with the Hadoop ecosystem. I was looking at 
ways to work with data in Hadoop, and I realized that (because of how 
InputFormat splitting works) this is a use case where it's actually pretty 
important to use a data language with an external schema. This probably 
means ruling out Edn (for performance and space efficiency reasons) and 
Fressian (managing the Fressian caching domain seems like it could get 
complicated), which are my default solutions for everything, so now I'm 
back to the drawing board. I'd rather not use something braindead like JSON 
or CSV.

It seems like there are a few language-agnostic data languages that are 
popular in this space, such as:

* Thrift
* Protobuf
* Avro

But since the Clojure community has very high standards for data languages, 
as well as a number of different libraries that run code on Hadoop, I was 
wondering if anyone could provide a recommendation for a fast, extensible, 
and well-designed data language to use. (Recommendations of what to avoid 
are also welcome.)

-- 
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 unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.