Pmap on hash maps

2016-04-16 Thread Alex Miller
You can call pmap on hash maps!

-- 
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: Extending IAssociative/Associative in clj and cljs

2016-04-16 Thread JvJ
I know I have to do it with CLJC.  I just didn't want to mess around with 
too many reader conditionals.

On Saturday, 16 April 2016 19:52:30 UTC-7, tbc++ wrote:
>
> You have to do it with CLJC. Not optimal, but that's the way it goes right 
> now. And yeah Associative.java is broken up into multiple smaller protocols 
> in CLJS. 
>
> Timothy
>
> On Sat, Apr 16, 2016 at 8:19 PM, JvJ  
> wrote:
>
>>
>> I was attempting to create a cross-platform (clojure and clojurescript) 
>> datatype that would act as an associative collection.  I can see that cljs 
>> has a number of protocols for this under cljs.core.  However, those 
>> protocols are not present in clojure.  There is the java interface 
>> Associative, but that's not really a clojure protocol.
>>
>> Is there an easy way to write cross-platform code that can extend 
>> associative collections?
>>
>> Thanks
>>
>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to clo...@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+u...@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+u...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> “One of the main causes of the fall of the Roman Empire was that–lacking 
> zero–they had no way to indicate successful termination of their C 
> programs.”
> (Robert Firth) 
>

-- 
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] CIDER 0.12 (Seattle)

2016-04-16 Thread Bozhidar Batsov
Hey everyone,

CIDER 0.12 (Seattle) is out! It packs a lot of small improvements and bug
fixes!

Check out the release notes here
https://github.com/clojure-emacs/cider/releases/tag/v0.12.0

We've also got a brand new user manual
http://cider.readthedocs.org/en/stable/ for your
consideration. We'd love to get some help and feedback to make it better.

Enjoy!

-- 
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: Extending IAssociative/Associative in clj and cljs

2016-04-16 Thread Timothy Baldridge
You have to do it with CLJC. Not optimal, but that's the way it goes right
now. And yeah Associative.java is broken up into multiple smaller protocols
in CLJS.

Timothy

On Sat, Apr 16, 2016 at 8:19 PM, JvJ  wrote:

>
> I was attempting to create a cross-platform (clojure and clojurescript)
> datatype that would act as an associative collection.  I can see that cljs
> has a number of protocols for this under cljs.core.  However, those
> protocols are not present in clojure.  There is the java interface
> Associative, but that's not really a clojure protocol.
>
> Is there an easy way to write cross-platform code that can extend
> associative collections?
>
> 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 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.
>



-- 
“One of the main causes of the fall of the Roman Empire was that–lacking
zero–they had no way to indicate successful termination of their C
programs.”
(Robert Firth)

-- 
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.


Extending IAssociative/Associative in clj and cljs

2016-04-16 Thread JvJ

I was attempting to create a cross-platform (clojure and clojurescript) 
datatype that would act as an associative collection.  I can see that cljs 
has a number of protocols for this under cljs.core.  However, those 
protocols are not present in clojure.  There is the java interface 
Associative, but that's not really a clojure protocol.

Is there an easy way to write cross-platform code that can extend 
associative collections?

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 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.


Pmap on hash maps

2016-04-16 Thread JvJ

Does anyone know if there exists a convenient method to call something like 
pmap on a hash map?

-- 
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: Symbol's function definition is void: cider-turn-on-eldoc-mode

2016-04-16 Thread Johannes
thanks for the hint!

Johannes

Am Samstag, 16. April 2016 20:31:17 UTC+2 schrieb Bozhidar Batsov:
>
> This was deprecated a while back (and deleted recently). Use `eldoc-mode` 
> instead in your hooks. 
>
> On 16 April 2016 at 08:55, Johannes  
> wrote:
>
>> Hi every,
>>
>> I have upgrade the latest emacs-cider:
>> clojure-mode (version 5.3.0)
>> CIDER 0.12.0snapshot (package: 20160414.1712)
>>
>> But now when I try to start a nREPL server I get the following error 
>> messages:
>>
>> nREPL server started on 64355
>> [nREPL] Establishing direct connection to localhost:64355 ...
>> [nREPL] Direct connection established
>> error in process filter: run-hooks: Symbol's function definition is void: 
>> cider-turn-on-eldoc-mode
>> error in process filter: Symbol's function definition is void: 
>> cider-turn-on-eldoc-mode
>>
>> I never saw this message before. What ist going wrong?
>>
>> Johannes
>>
>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to clo...@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+u...@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+u...@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: Macro for quickly switching libraries

2016-04-16 Thread Will Bridewell
Thanks for this. Gives me a much better idea of where to start. This is the 
second time that I've run across a need to switch libraries on the fly, so I 
figure it's time to work out a better approach. 

-- 
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: Symbol's function definition is void: cider-turn-on-eldoc-mode

2016-04-16 Thread Bozhidar Batsov
This was deprecated a while back (and deleted recently). Use `eldoc-mode`
instead in your hooks.

On 16 April 2016 at 08:55, Johannes  wrote:

> Hi every,
>
> I have upgrade the latest emacs-cider:
> clojure-mode (version 5.3.0)
> CIDER 0.12.0snapshot (package: 20160414.1712)
>
> But now when I try to start a nREPL server I get the following error
> messages:
>
> nREPL server started on 64355
> [nREPL] Establishing direct connection to localhost:64355 ...
> [nREPL] Direct connection established
> error in process filter: run-hooks: Symbol's function definition is void:
> cider-turn-on-eldoc-mode
> error in process filter: Symbol's function definition is void:
> cider-turn-on-eldoc-mode
>
> I never saw this message before. What ist going wrong?
>
> Johannes
>
> --
> 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.


Symbol's function definition is void: cider-turn-on-eldoc-mode

2016-04-16 Thread Johannes
Hi every,

I have upgrade the latest emacs-cider:
clojure-mode (version 5.3.0)
CIDER 0.12.0snapshot (package: 20160414.1712)

But now when I try to start a nREPL server I get the following error 
messages:

nREPL server started on 64355
[nREPL] Establishing direct connection to localhost:64355 ...
[nREPL] Direct connection established
error in process filter: run-hooks: Symbol's function definition is void: 
cider-turn-on-eldoc-mode
error in process filter: Symbol's function definition is void: 
cider-turn-on-eldoc-mode

I never saw this message before. What ist going wrong?

Johannes

-- 
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: Encapsulating Local Mutable State

2016-04-16 Thread Stefan Kamphausen
Hi Francis,


Thanks for taking the time to thoroughly explain your approach.  I find it 
interesting and was not yet aware of it.  Need to wrap my head around it a 
bit.


Best,
Stefan

-- 
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.