Re: asm-based clojure yet?

2013-06-03 Thread Aaron
I'll throw in my own work in progress as a low-footprint target of Clojure: 
https://github.com/aaronc/c-in-clj. It's not an attempt to compile Clojure 
code to C, but rather a way to write C code efficiently from Clojure that 
can be dynamically invoked from Clojure.

On Friday, May 17, 2013 7:49:08 AM UTC-4, Gary Trakhman wrote:
>
> I think these qualify as low-footprint clojures:
>
> https://github.com/clojure/clojurescript on node..
> https://github.com/takeoutweight/clojure-scheme compiles to native
> https://github.com/halgari/mjolnir llvm targets.
>
>
> On Fri, May 17, 2013 at 7:10 AM, atkaaz >wrote:
>
>> Ok, weird question: is there some clojure port on assembler yet? Even 
>> if(/especially if) it doesn't have jvm/java/javalibs support
>>
>> Or should I just check https://github.com/clojure/clojure-clr ?
>>
>> I'm mainly interested in low memory footprint and fast startup times 
>> (does clojure-clr have that?)
>>
>> -- 
>> -- 
>> 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/groups/opt_out.
>>  
>>  
>>
>
>

-- 
-- 
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/groups/opt_out.




Re: asm-based clojure yet?

2013-06-03 Thread Aaron
If you use ngen, it won't be so bad: 
http://clojureclr.blogspot.com/2011/12/using-ngen-to-improve-clojureclr.html

On Friday, May 24, 2013 6:29:24 AM UTC-4, atkaaz wrote:
>
> making a note that (on my system, win7 64bit btw) clojureclr startup time 
> is about (at least)10 seconds.
> tested both Clojure.Main.exe and Clojure.Compile.exe  from package 
> clojure-clr-1.4.1-Debug-4.0.zip
>
> I might be looking into Haskell which seems to have like 2 sec(max) 
> startup time, and the hello world .exe file is 1,132,640 bytes (big but 
> depends only on kerner32/user32/msvcrt/wsock32  .dll files)
>
>
>
>
> On Fri, May 17, 2013 at 2:10 PM, atkaaz >wrote:
>
>> Ok, weird question: is there some clojure port on assembler yet? Even 
>> if(/especially if) it doesn't have jvm/java/javalibs support
>>
>> Or should I just check https://github.com/clojure/clojure-clr ?
>>
>> I'm mainly interested in low memory footprint and fast startup times 
>> (does clojure-clr have that?)
>>
>
>

-- 
-- 
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/groups/opt_out.




Re: Leiningen on CLR

2013-06-03 Thread Aaron
Just to chime in - my nleiningen prototype has a repl and a compile task, 
but is basically just a prototype or proof of concept. It more or less 
works (i.e. can download dependencies & compile namespaces), but it's very 
rough at this point... Hopefully soon we can put some more work into it.

On Thursday, May 30, 2013 9:57:34 AM UTC-4, Plinio Balduino wrote:
>
> Hi there
>
> I'm playing with Clojure CLR (good job, guys) and I miss something like 
> Leiningen. I quickly saw Kumar's lein-clr, but I don't know if it could be 
> used in a production environment (or explaining better, in a dev 
> environment for a production application) and if there is any other 
> solution.
>
> Thanks in advance
>
> Plinio
>

-- 
-- 
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/groups/opt_out.




Re: leiningen checkout dependencies

2013-06-03 Thread vrakade


On Tuesday, February 5, 2013 1:35:50 PM UTC-6, Phil Hagelberg wrote:
>
>
> This is the correct way to do it, but you need to run `lein install` in 
> the sub project first. 
>

It appears it's possible to update source changes to sub-projects loaded 
via checkouts/ by restarting the JVM,[1] however if a sub-project's 
dependencies change (ie. update to "checkouts/.../project.clj"), then `lein 
install` on that sub-project needs to occur in order to refresh.

- Is that the correct process?

- If so, could a warning be issued if a sub-project needs to be `lein 
install`ed either because of new or updated sub-dependencies?


[1]: JVM restart, or ```(use (ns-name *ns*) :reload-all :verbose)```, but 
surprisingly not ```clojure.tools.namespace.repl/refresh```

-- 
-- 
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/groups/opt_out.




Re: Clojure for Map Reduce (on hadoop > 0.22)

2013-06-03 Thread ronen
Iv used Alex version and works great (on that note thank you Alex for 
keeping it going)

Ronen

On Wednesday, May 29, 2013 11:45:13 AM UTC+3, Alex Ott wrote:
>
> Hi
>
> https://github.com/alexott/clojure-hadoop - updated version
>
>
> On Wed, May 29, 2013 at 1:55 AM, Ramesh 
> > wrote:
>
>> Hi All,
>>
>> I want to use clojure to write map reduce tasks on Hadoop version > 0.22. 
>> I was wondering if this is possible with Stuart Sierra's clojure hadoop 
>> https://github.com/stuartsierra/clojure-hadoop
>>
>> If not, are there other libraries which allow me to write map-reduce jobs 
>> in clojure?
>>
>>
>> -ramesh
>>  
>> -- 
>> -- 
>> 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/groups/opt_out.
>>  
>>  
>>
>
>
>
> -- 
> With best wishes,Alex Ott
> http://alexott.net/
> Twitter: alexott_en (English), alexott (Russian)
> Skype: alex.ott 
>

-- 
-- 
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/groups/opt_out.




Re: ref-history-count always return 0?

2013-06-03 Thread Colin Fleming
That looks great, Tom, thanks - I'll definitely spend some time exploring
that.

Cheers,
Colin


On 3 June 2013 19:55, Tom Van Cutsem  wrote:

> If you're the kind of person who rather reads source code than
> documentation, you might also be interested in my meta-circular
> implementation of Clojure's STM (it implements refs in terms of atoms): <
> https://github.com/tvcutsem/stm-in-clojure> (the vanilla MVCC version is
> < 200 LoC)
>
> Cheers,
> Tom
>
>
> 2013/6/2 Michał Marczyk 
>
>> Mark Volkmann has a very comprehensive article on Clojure's STM available
>> here:
>>
>> http://java.ociweb.com/mark/stm/
>>
>> Cheers,
>> Michał
>>
>>
>> On 31 May 2013 13:31, Stefan Kamphausen  wrote:
>> > You may want to use the code from
>> https://gist.github.com/Chouser/456326 to
>> > study how the history in refs works.  See the accompanying discussion at
>> > http://clojure-log.n01se.net/date/2010-06-28.html.  I've been using
>> variants
>> > of that stress test to explain the ref history behavior since then and
>> > people seem to be happy with it.
>> >
>> > Kudos to chouser obviously!
>> >
>> > --
>> > --
>> > 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/groups/opt_out.
>> >
>> >
>>
>> --
>> --
>> 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/groups/opt_out.
>>
>>
>>
>  --
> --
> 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/groups/opt_out.
>
>
>

-- 
-- 
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/groups/opt_out.




Re: WSS Clojure client

2013-06-03 Thread Dima Sabanin
New nginx does websocket proxying, so you could terminate SSL there and use
Aleph for a plain HTTP websocket server in Clojure. That's what we're doing
at beanstalkapp.com.




On Mon, Jun 3, 2013 at 5:47 PM, Matty Williams wrote:

> I'm trying to write a clojure library that will need to connect to a
> secure websocket. I've looked at aleph which looks great but I'd need to
> use something like stud to handle the ssl, which as I'm writing a library
> isn't a great solution. I've tried looking at some java libraries but most
> seem server oriented. Does anyone have any ideas?
>
> --
> --
> 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/groups/opt_out.
>
>
>



-- 
Best regards,
Dima Sabanin
http://twitter.com/dimasabanin

-- 
-- 
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/groups/opt_out.




WSS Clojure client

2013-06-03 Thread Matty Williams
I'm trying to write a clojure library that will need to connect to a secure 
websocket. I've looked at aleph which looks great but I'd need to use 
something like stud to handle the ssl, which as I'm writing a library isn't 
a great solution. I've tried looking at some java libraries but most seem 
server oriented. Does anyone have any ideas?

-- 
-- 
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/groups/opt_out.




Re: No-source-path ? how to run init-db?

2013-06-03 Thread jayvandal


On Monday, June 3, 2013 12:20:34 AM UTC-6, jayvandal wrote:
>
> I am trying to run the my-website.
> My structure is
>  my-website top level
>  src
>my-website
>model
>   db.clj
>
> sould I use this command
> lein repl
> (load-file "c:/my-website/src/my-website/models/db.clj")
> then run the file (my-website/src/my-web-site/models/init-db)
> Thanks for nay pointers
>
>

-- 
-- 
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/groups/opt_out.




Re: alter a map in a vector (reference)

2013-06-03 Thread Alex Baranosky
You *can* update this inside the vector, but if you want to key by :id, I
would personally recommend, you put the email data into a map and look it
up by :id, like this:

{1 {:id 1 :email {"a...@mail.com 1}}
  2 {:id 2 :email {"d...@mail.com 1}}
  3 {:id 3 :email {"g...@mail.com 2}}}

Best,
Alex

On Mon, Jun 3, 2013 at 1:44 PM, Yinka Erinle  wrote:

> Thanks Meikel for the prompt reply, that does it.
>
> Please can you elaborate on how I can use the solution below to update a
> particular entry in the vector.
>
> [{:id 1 :email {"a...@mail.com 1}}
>   {:id 2 :email {"d...@mail.com 1}}
>   {:id 3 :email {"g...@mail.com 2}}]
>
> So I will like to write a function that accepts an id and then updates the
> counter in email section of the given id.
>
> (defn update-counter [x xs]
>(dosync
>   (alter result ..
>
> Thanks again for your time.
>
>
> On Monday, June 3, 2013 9:23:47 PM UTC+1, Meikel Brandmeyer (kotarak)
> wrote:
>>
>> Hi,
>>
>> Am Montag, 3. Juni 2013 22:16:54 UTC+2 schrieb Yinka Erinle:
>>>
>>> Given I have the following
>>> (def result (ref [ { :id 1 :emails { "yi...@mail.com" 1}} ] ) )
>>>
>>> I like to alter the result in a transaction to become
>>> [{:id 1 :emails { "yi...@mail.com" 2}}]; increment the counter from
>>> 1 to 2
>>>
>>> Please can someone provide pointers.
>>>
>>>
>> You can use the uniform update principle to stitch together alter and
>> update-in.
>>
>> (dosync
>>   (alter result update-in [0 :emails "a@b.c"] inc))
>>
>> Kind regards
>> Meikel
>>
>>
>  --
> --
> 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/groups/opt_out.
>
>
>

-- 
-- 
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/groups/opt_out.




Re: Problem seting up ritz nrepl in emacs

2013-06-03 Thread Novi Border
Hi,

I have tried this already but it does not seem to work for me..

I have a working setup with normal nrepl without ritz and it is working 
nice for me so far.

I would really like to use ritz though, for setting breakpoints and than 
evaluating expressions inside a let statement.
Currently if I want such functionality I have to first bind each let 
statement to a symbol in a namespace and then
evaluate expressions which can be quite cumbersome..



On Monday, June 3, 2013 6:44:36 PM UTC+2, sw1nn wrote:
>
>
> On Mon, Jun 3, 2013 at 4:20 PM, Novi Border 
> > wrote:
>
>>
>> java.io.FileNotFoundException: Could not locate complete/core__init.class 
>> or complete/core.clj on classpath: 
>>
>
> There's some history around this missing dependency that I don't recall 
> the details of but,you can try adding:
>
> [clojure-complete "0.2.2"]
>
> to your :dependencies in profiles.clj to avoid the exception.
>

-- 
-- 
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/groups/opt_out.




Re: alter a map in a vector (reference)

2013-06-03 Thread Yinka Erinle
Thanks Meikel for the prompt reply, that does it.

Please can you elaborate on how I can use the solution below to update a 
particular entry in the vector.

[{:id 1 :email {"a...@mail.com 1}}
  {:id 2 :email {"d...@mail.com 1}}
  {:id 3 :email {"g...@mail.com 2}}]

So I will like to write a function that accepts an id and then updates the 
counter in email section of the given id.

(defn update-counter [x xs]  
   (dosync 
  (alter result ..

Thanks again for your time.

On Monday, June 3, 2013 9:23:47 PM UTC+1, Meikel Brandmeyer (kotarak) wrote:
>
> Hi,
>
> Am Montag, 3. Juni 2013 22:16:54 UTC+2 schrieb Yinka Erinle:
>>
>> Given I have the following 
>> (def result (ref [ { :id 1 :emails { "yi...@mail.com" 1}} ] ) )
>>
>> I like to alter the result in a transaction to become
>> [{:id 1 :emails { "yi...@mail.com" 2}}]; increment the counter from 
>> 1 to 2
>>
>> Please can someone provide pointers.
>>
>>
> You can use the uniform update principle to stitch together alter and 
> update-in.
>
> (dosync
>   (alter result update-in [0 :emails "a@b.c"] inc))
>
> Kind regards
> Meikel
>  
>

-- 
-- 
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/groups/opt_out.




Re: alter a map in a vector (reference)

2013-06-03 Thread Meikel Brandmeyer (kotarak)
Hi,

Am Montag, 3. Juni 2013 22:16:54 UTC+2 schrieb Yinka Erinle:
>
> Given I have the following 
> (def result (ref [ { :id 1 :emails { "yi...@mail.com " 1}} ] 
> ) )
>
> I like to alter the result in a transaction to become
> [{:id 1 :emails { "yi...@mail.com " 2}}]; increment the 
> counter from 1 to 2
>
> Please can someone provide pointers.
>
>
You can use the uniform update principle to stitch together alter and 
update-in.

(dosync
  (alter result update-in [0 :emails "a@b.c"] inc))

Kind regards
Meikel
 

-- 
-- 
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/groups/opt_out.




Re: optional first map argument

2013-06-03 Thread Meikel Brandmeyer (kotarak)
Hi,

there is always the possibility of a macro.

(defmacro defwidget
  [name & body]
  (let [[docstring [attrs _ contents] body]
(if (string? (first body))
  [(first body) (second body) (nthnext body 2)]
  [nil (first body) (next body)])]
`(defn ~name
   ~@(when docstring [docstring])
   [& args#]
   (let [[~attrs ~contents] (if (map? (first args#))
  [(first args#) (next args#)]
  [{} args#])]
 ~@body

Usage:

(defwidget my-widget
  "Some widget."
  [attrs & contents]
  [:some [:hiccup attrs contents]])

Kind regards
Meikel

-- 
-- 
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/groups/opt_out.




alter a map in a vector (reference)

2013-06-03 Thread Yinka Erinle
Hi,

I struggling to find a way to alter a value in a map that resides in a 
vector.

Given I have the following 
(def result (ref [ { :id 1 :emails { "yi...@mail.com" 1}} ] ) )

I like to alter the result in a transaction to become
[{:id 1 :emails { "yi...@mail.com" 2}}]; increment the counter from 1 
to 2

Please can someone provide pointers.

Thanks,
Yinka.

-- 
-- 
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/groups/opt_out.




Re: optional first map argument

2013-06-03 Thread Alice
> (defn my-widget
>     ([attrs contents] (apply widget-creator attrs contents)) ;;I have no idea 
> what widget-creator might be
>     ([contents] (my-widget {} contents))
>     ([] (my-widget {} []))

contents of one arity version can be a map. so the code should be

(defn my-widget
([attrs contents] ...
([arg] (if (map? arg) (my-widget arg nil) (my-widget {}
contents)) )
([] (my-widget {} []))

but this doesn't look simpler than

(defn my-widget
  [& args]
  (let [attrs(if (map? (first args)) (first args) {})
contents (if (map? (first args)) (next args) args)]
...

-- 
-- 
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/groups/opt_out.




Re: optional first map argument

2013-06-03 Thread Jim - FooBar();

On 03/06/13 19:04, Alice wrote:

It's more readable.

(my-widget {:id "id1"} "hello" "world")


you can get to almost exactly that with the last variant I posted.

(defn my-widget
   ([attrs contents] (apply widget-creator attrs contents)) ;;I have no idea 
what widget-creator might be
   ([contents] (my-widget {} contents))
   ([] (my-widget {} []))



 Basically, it becomes:

(my-widget {:id "id1"} ["hello" "world"]) ;;notice the extra vector

of course, then you need to use 'apply' on the contents if the fn you're 
eventually calling expects variadic args (from hiccup I guess).

 (apply hiccup/widget* attrs contents)

Jim


--
--
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/groups/opt_out.




Re: optional first map argument

2013-06-03 Thread Alice
The same reason that hiccup tag vector is taking optional attribute
map.
It's more readable.

(my-widget {:id "id1"} "hello" "world")

vs.

(my-widget {:attr {:id "id1"} :contents '("hello" "world")})

On Jun 4, 2:38 am, "Jim - FooBar();"  wrote:
> On 03/06/13 18:22, Alice wrote:
>
> > I often need to do this when writing hiccup helper functions:
>
> > (defn my-widget
> >    [& args]
> >    (let [attrs    (if (map? (first args)) (first args) {})
> >          contents (if (map? (first args)) (next args) args)]
> >      ...
>
> > I found this post, but considering that it is 4 years old, is there
> > any new library developed to help with this situation?.
>
> >https://groups.google.com/group/clojure/browse_frm/thread/125a8af6881...
>
> why are you not using named arguments? Is there somethign in hiccup that
> prevents you from doing so? It seems to me they would save you quite a
> bit of hassle and make the code more evident...
>
> (defn my-widget
>    [& {:keys [attrs contents]}]
>    ...
>
> or if you don't know exactly what keys will come in you can relax it a
> bit with  (defn my-widget  [& {:as opts]}] ...
>
> HTH,
>
> Jim
>
> ps: assuming there is no constrain I'd go for this one:
>
> (defn my-widget
>    ([attrs contents] ...)
>    ([contents] (my-widget {} contents))
>    ([] (my-widget {} []))

-- 
-- 
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/groups/opt_out.




Re: optional first map argument

2013-06-03 Thread Alice
I sometimes need to inspect or modify the map in the function, but
defelem only merges the map.

On Jun 4, 2:30 am, gaz jones  wrote:
> You could look at the impl:
>
> https://github.com/weavejester/hiccup/blob/master/src/hiccup/def.clj
>
>
>
>
>
>
>
> On Mon, Jun 3, 2013 at 12:22 PM, Alice  wrote:
> > I often need to do this when writing hiccup helper functions:
>
> > (defn my-widget
> >   [& args]
> >   (let [attrs    (if (map? (first args)) (first args) {})
> >         contents (if (map? (first args)) (next args) args)]
> >     ...
>
> > I found this post, but considering that it is 4 years old, is there
> > any new library developed to help with this situation?.
>
> >https://groups.google.com/group/clojure/browse_frm/thread/125a8af6881...
>
> > --
> > --
> > 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, visithttps://groups.google.com/groups/opt_out.

-- 
-- 
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/groups/opt_out.




Re: optional first map argument

2013-06-03 Thread Jim - FooBar();

On 03/06/13 18:22, Alice wrote:

I often need to do this when writing hiccup helper functions:

(defn my-widget
   [& args]
   (let [attrs(if (map? (first args)) (first args) {})
 contents (if (map? (first args)) (next args) args)]
 ...


I found this post, but considering that it is 4 years old, is there
any new library developed to help with this situation?.

https://groups.google.com/group/clojure/browse_frm/thread/125a8af68813cd98



why are you not using named arguments? Is there somethign in hiccup that 
prevents you from doing so? It seems to me they would save you quite a 
bit of hassle and make the code more evident...


(defn my-widget
  [& {:keys [attrs contents]}]
  ...

or if you don't know exactly what keys will come in you can relax it a 
bit with  (defn my-widget  [& {:as opts]}] ...


HTH,

Jim

ps: assuming there is no constrain I'd go for this one:

(defn my-widget
  ([attrs contents] ...)
  ([contents] (my-widget {} contents))
  ([] (my-widget {} []))

--
--
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/groups/opt_out.




Re: optional first map argument

2013-06-03 Thread gaz jones
You could look at the impl:

https://github.com/weavejester/hiccup/blob/master/src/hiccup/def.clj


On Mon, Jun 3, 2013 at 12:22 PM, Alice  wrote:

> I often need to do this when writing hiccup helper functions:
>
> (defn my-widget
>   [& args]
>   (let [attrs(if (map? (first args)) (first args) {})
> contents (if (map? (first args)) (next args) args)]
> ...
>
>
> I found this post, but considering that it is 4 years old, is there
> any new library developed to help with this situation?.
>
> https://groups.google.com/group/clojure/browse_frm/thread/125a8af68813cd98
>
> --
> --
> 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/groups/opt_out.
>
>
>

-- 
-- 
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/groups/opt_out.




optional first map argument

2013-06-03 Thread Alice
I often need to do this when writing hiccup helper functions:

(defn my-widget
  [& args]
  (let [attrs(if (map? (first args)) (first args) {})
contents (if (map? (first args)) (next args) args)]
...


I found this post, but considering that it is 4 years old, is there
any new library developed to help with this situation?.

https://groups.google.com/group/clojure/browse_frm/thread/125a8af68813cd98

-- 
-- 
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/groups/opt_out.




Re: Problem seting up ritz nrepl in emacs

2013-06-03 Thread Neale Swinnerton
On Mon, Jun 3, 2013 at 4:20 PM, Novi Border  wrote:

>
> java.io.FileNotFoundException: Could not locate complete/core__init.class
> or complete/core.clj on classpath:
>

There's some history around this missing dependency that I don't recall the
details of but,you can try adding:

[clojure-complete "0.2.2"]

to your :dependencies in profiles.clj to avoid the exception.

-- 
-- 
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/groups/opt_out.




Re: Problem seting up ritz nrepl in emacs

2013-06-03 Thread László Török
AFAIK emacs-live does not support ritz, as per this thread

https://groups.google.com/forum/?fromgroups#!topic/emacs-live/TKkRXHD6XGY


2013/6/3 Josh Kamau 

> Did you try emacs live ? https://github.com/overtone/emacs-live
>
> It will give you a head start.
>
> Josh
>
>
> On Mon, Jun 3, 2013 at 7:22 PM, Novi Border  wrote:
>
>> Hi
>>
>> It does not seem to help..
>>
>> After removing ac-nrepl, nrepl-ritz-jack-in just hangs until I switch
>> buffer to *inferior-lisp*, after which *inferior-lisp* buffer gets the repl
>> output but things are messed up.
>> I can type in the repl just fine but many repl functions dont' work. For
>> example nrepl-ritz-break-on-error says "Wrong type of argument stringp nil".
>>
>>
>>
>> On Monday, June 3, 2013 5:31:13 PM UTC+2, Las wrote:
>>
>>> Hi,
>>>
>>> I think ac-nrepl doesn't play nice with ritz, try disabling it.
>>>
>>> Las
>>>
>>> Sent from my phone
>>> On Jun 3, 2013 5:28 PM, "Novi Border"  wrote:
>>>
  Hi

 I am currently developing clojure in sublime text, and have tried
 eclipse before, but I would like to switch to emacs for all the goodies it
 brings. I have followed a number of tutorials for seting up emacs
 enviroment but I can't get the ritz debuger to work.

 I allways get the following error after nrepl-ritz-jack-in

 java.io.FileNotFoundException: Could not locate
 complete/core__init.class or complete/core.clj on classpath:
  at clojure.lang.RT.load (RT.java:443)
 clojure.lang.RT.load (RT.java:411)
 clojure.core$load$fn__5018.**invoke (core.clj:5530)
 clojure.core$load.doInvoke (core.clj:5529)
 clojure.lang.RestFn.invoke (RestFn.java:408)
 clojure.core$load_one.invoke (core.clj:5336)
 clojure.core$load_lib$fn__**4967.invoke (core.clj:5375)
 clojure.core$load_lib.doInvoke (core.clj:5374)
 clojure.lang.RestFn.applyTo (RestFn.java:142)
 clojure.core$apply.invoke (core.clj:619)
 clojure.core$load_libs.**doInvoke (core.clj:5413)
 clojure.lang.RestFn.applyTo (RestFn.java:137)
 clojure.core$apply.invoke (core.clj:619)
 clojure.core$require.doInvoke (core.clj:5496)
 clojure.lang.RestFn.invoke (RestFn.java:408)
 user$eval2549.invoke (SOURCE_FORM_4:1)
 clojure.lang.Compiler.eval (Compiler.java:6619)
 clojure.lang.Compiler.eval (Compiler.java:6582)
 clojure.core$eval.invoke (core.clj:2852)
 ritz.repl_utils.compile$eval_**region.invoke (compile.clj:55)
 ritz.nrepl.middleware.**tracking_eval$evaluate$fn__**2006.invoke
 (tracking_eval.clj:51)
 clojure.lang.AFn.applyToHelper (AFn.java:159)
 clojure.lang.AFn.applyTo (AFn.java:151)
 clojure.core$apply.invoke (core.clj:617)
 clojure.core$with_bindings_**STAR_.doInvoke (core.clj:1788)
 clojure.lang.RestFn.invoke (RestFn.java:425)
 ritz.nrepl.middleware.**tracking_eval$evaluate.invoke
 (tracking_eval.clj:48)
 ritz.nrepl.middleware.**tracking_eval$eval_reply$fn__**2020.invoke
 (tracking_eval.clj:89)
 clojure.core$comp$fn__4154.**invoke (core.clj:2330)
 
 clojure.tools.nrepl.**middleware.interruptible_eval$**run_next$fn__913.invoke
 (interruptible_eval.clj:138)
 clojure.lang.AFn.run (AFn.java:24)
 java.util.concurrent.**ThreadPoolExecutor.runWorker
 (ThreadPoolExecutor.java:1145)
 java.util.concurrent.**ThreadPoolExecutor$Worker.run
 (ThreadPoolExecutor.java:615)
 java.lang.Thread.run (Thread.java:722)


 I am using stock ubuntu version of emacs (24) and have installed the
 following packages (tried both marmelade and melpa and the error persists).
 I have installed ac-nrepl, nrepl, nrepl-ritz, clojure-more,
 rainbow-delimiters, starterkit and paredit.

 I have leiningen 2.1.3 installed. I have tried lein clean on the
 project btw..

 This is my profiles.clj:

 {:user {:dependencies [[org.clojure/tools.namespace "0.2.3"]
[spyscope "0.1.3"]
[criterium "0.4.1"]
[ritz/ritz-nrepl-middleware "0.7.0"]]
 :injections [(require '(clojure.tools.namespace repl find))
  ; try/catch to workaround an issue where `lein
 repl` outside a project dir
  ; will not load reader literal definitions
 correctly:
  (try (require 'spyscope.core)
(catch RuntimeException e))]
 :plugins [[lein-pprint "1.1.1"]
   [lein-beanstalk "0.2.6"]
   [lein-clojars "0.9.1"]
   [lein-create-template "0.1.1"]
   [lein-marginalia "0.7.1"]
   [lein-ritz "0.7.0"]
   [lein-midje "3.0.0"]]}
 :repl-options {:nrepl-middleware
  [r

Re: Problem seting up ritz nrepl in emacs

2013-06-03 Thread Josh Kamau
Did you try emacs live ? https://github.com/overtone/emacs-live

It will give you a head start.

Josh


On Mon, Jun 3, 2013 at 7:22 PM, Novi Border  wrote:

> Hi
>
> It does not seem to help..
>
> After removing ac-nrepl, nrepl-ritz-jack-in just hangs until I switch
> buffer to *inferior-lisp*, after which *inferior-lisp* buffer gets the repl
> output but things are messed up.
> I can type in the repl just fine but many repl functions dont' work. For
> example nrepl-ritz-break-on-error says "Wrong type of argument stringp nil".
>
>
>
> On Monday, June 3, 2013 5:31:13 PM UTC+2, Las wrote:
>
>> Hi,
>>
>> I think ac-nrepl doesn't play nice with ritz, try disabling it.
>>
>> Las
>>
>> Sent from my phone
>> On Jun 3, 2013 5:28 PM, "Novi Border"  wrote:
>>
>>> Hi
>>>
>>> I am currently developing clojure in sublime text, and have tried
>>> eclipse before, but I would like to switch to emacs for all the goodies it
>>> brings. I have followed a number of tutorials for seting up emacs
>>> enviroment but I can't get the ritz debuger to work.
>>>
>>> I allways get the following error after nrepl-ritz-jack-in
>>>
>>> java.io.FileNotFoundException: Could not locate
>>> complete/core__init.class or complete/core.clj on classpath:
>>>  at clojure.lang.RT.load (RT.java:443)
>>> clojure.lang.RT.load (RT.java:411)
>>> clojure.core$load$fn__5018.**invoke (core.clj:5530)
>>> clojure.core$load.doInvoke (core.clj:5529)
>>> clojure.lang.RestFn.invoke (RestFn.java:408)
>>> clojure.core$load_one.invoke (core.clj:5336)
>>> clojure.core$load_lib$fn__**4967.invoke (core.clj:5375)
>>> clojure.core$load_lib.doInvoke (core.clj:5374)
>>> clojure.lang.RestFn.applyTo (RestFn.java:142)
>>> clojure.core$apply.invoke (core.clj:619)
>>> clojure.core$load_libs.**doInvoke (core.clj:5413)
>>> clojure.lang.RestFn.applyTo (RestFn.java:137)
>>> clojure.core$apply.invoke (core.clj:619)
>>> clojure.core$require.doInvoke (core.clj:5496)
>>> clojure.lang.RestFn.invoke (RestFn.java:408)
>>> user$eval2549.invoke (SOURCE_FORM_4:1)
>>> clojure.lang.Compiler.eval (Compiler.java:6619)
>>> clojure.lang.Compiler.eval (Compiler.java:6582)
>>> clojure.core$eval.invoke (core.clj:2852)
>>> ritz.repl_utils.compile$eval_**region.invoke (compile.clj:55)
>>> ritz.nrepl.middleware.**tracking_eval$evaluate$fn__**2006.invoke
>>> (tracking_eval.clj:51)
>>> clojure.lang.AFn.applyToHelper (AFn.java:159)
>>> clojure.lang.AFn.applyTo (AFn.java:151)
>>> clojure.core$apply.invoke (core.clj:617)
>>> clojure.core$with_bindings_**STAR_.doInvoke (core.clj:1788)
>>> clojure.lang.RestFn.invoke (RestFn.java:425)
>>> ritz.nrepl.middleware.**tracking_eval$evaluate.invoke
>>> (tracking_eval.clj:48)
>>> ritz.nrepl.middleware.**tracking_eval$eval_reply$fn__**2020.invoke
>>> (tracking_eval.clj:89)
>>> clojure.core$comp$fn__4154.**invoke (core.clj:2330)
>>> 
>>> clojure.tools.nrepl.**middleware.interruptible_eval$**run_next$fn__913.invoke
>>> (interruptible_eval.clj:138)
>>> clojure.lang.AFn.run (AFn.java:24)
>>> java.util.concurrent.**ThreadPoolExecutor.runWorker
>>> (ThreadPoolExecutor.java:1145)
>>> java.util.concurrent.**ThreadPoolExecutor$Worker.run
>>> (ThreadPoolExecutor.java:615)
>>> java.lang.Thread.run (Thread.java:722)
>>>
>>>
>>> I am using stock ubuntu version of emacs (24) and have installed the
>>> following packages (tried both marmelade and melpa and the error persists).
>>> I have installed ac-nrepl, nrepl, nrepl-ritz, clojure-more,
>>> rainbow-delimiters, starterkit and paredit.
>>>
>>> I have leiningen 2.1.3 installed. I have tried lein clean on the project
>>> btw..
>>>
>>> This is my profiles.clj:
>>>
>>> {:user {:dependencies [[org.clojure/tools.namespace "0.2.3"]
>>>[spyscope "0.1.3"]
>>>[criterium "0.4.1"]
>>>[ritz/ritz-nrepl-middleware "0.7.0"]]
>>> :injections [(require '(clojure.tools.namespace repl find))
>>>  ; try/catch to workaround an issue where `lein
>>> repl` outside a project dir
>>>  ; will not load reader literal definitions
>>> correctly:
>>>  (try (require 'spyscope.core)
>>>(catch RuntimeException e))]
>>> :plugins [[lein-pprint "1.1.1"]
>>>   [lein-beanstalk "0.2.6"]
>>>   [lein-clojars "0.9.1"]
>>>   [lein-create-template "0.1.1"]
>>>   [lein-marginalia "0.7.1"]
>>>   [lein-ritz "0.7.0"]
>>>   [lein-midje "3.0.0"]]}
>>> :repl-options {:nrepl-middleware
>>>  [ritz.nrepl.middleware.**javadoc/wrap-javadoc
>>>   ritz.nrepl.middleware.simple-**
>>> complete/wrap-simple-complete]**}}
>>>
>>> In the project I use clojure 1.5.1.
>>>
>>> BR
>>>
>>>
>>>
>>>
>>>  --
>>> --
>>> You received this message because you are subscribed

Re: Problem seting up ritz nrepl in emacs

2013-06-03 Thread Novi Border
Hi

It does not seem to help..

After removing ac-nrepl, nrepl-ritz-jack-in just hangs until I switch 
buffer to *inferior-lisp*, after which *inferior-lisp* buffer gets the repl 
output but things are messed up. 
I can type in the repl just fine but many repl functions dont' work. For 
example nrepl-ritz-break-on-error says "Wrong type of argument stringp nil".


On Monday, June 3, 2013 5:31:13 PM UTC+2, Las wrote:
>
> Hi,
>
> I think ac-nrepl doesn't play nice with ritz, try disabling it.
>
> Las
>
> Sent from my phone
> On Jun 3, 2013 5:28 PM, "Novi Border" > 
> wrote:
>
>> Hi
>>
>> I am currently developing clojure in sublime text, and have tried eclipse 
>> before, but I would like to switch to emacs for all the goodies it brings. 
>> I have followed a number of tutorials for seting up emacs enviroment but I 
>> can't get the ritz debuger to work.
>>
>> I allways get the following error after nrepl-ritz-jack-in
>>
>> java.io.FileNotFoundException: Could not locate complete/core__init.class 
>> or complete/core.clj on classpath: 
>>  at clojure.lang.RT.load (RT.java:443)
>> clojure.lang.RT.load (RT.java:411)
>> clojure.core$load$fn__5018.invoke (core.clj:5530)
>> clojure.core$load.doInvoke (core.clj:5529)
>> clojure.lang.RestFn.invoke (RestFn.java:408)
>> clojure.core$load_one.invoke (core.clj:5336)
>> clojure.core$load_lib$fn__4967.invoke (core.clj:5375)
>> clojure.core$load_lib.doInvoke (core.clj:5374)
>> clojure.lang.RestFn.applyTo (RestFn.java:142)
>> clojure.core$apply.invoke (core.clj:619)
>> clojure.core$load_libs.doInvoke (core.clj:5413)
>> clojure.lang.RestFn.applyTo (RestFn.java:137)
>> clojure.core$apply.invoke (core.clj:619)
>> clojure.core$require.doInvoke (core.clj:5496)
>> clojure.lang.RestFn.invoke (RestFn.java:408)
>> user$eval2549.invoke (SOURCE_FORM_4:1)
>> clojure.lang.Compiler.eval (Compiler.java:6619)
>> clojure.lang.Compiler.eval (Compiler.java:6582)
>> clojure.core$eval.invoke (core.clj:2852)
>> ritz.repl_utils.compile$eval_region.invoke (compile.clj:55)
>> ritz.nrepl.middleware.tracking_eval$evaluate$fn__2006.invoke 
>> (tracking_eval.clj:51)
>> clojure.lang.AFn.applyToHelper (AFn.java:159)
>> clojure.lang.AFn.applyTo (AFn.java:151)
>> clojure.core$apply.invoke (core.clj:617)
>> clojure.core$with_bindings_STAR_.doInvoke (core.clj:1788)
>> clojure.lang.RestFn.invoke (RestFn.java:425)
>> ritz.nrepl.middleware.tracking_eval$evaluate.invoke 
>> (tracking_eval.clj:48)
>> ritz.nrepl.middleware.tracking_eval$eval_reply$fn__2020.invoke 
>> (tracking_eval.clj:89)
>> clojure.core$comp$fn__4154.invoke (core.clj:2330)
>> 
>> clojure.tools.nrepl.middleware.interruptible_eval$run_next$fn__913.invoke 
>> (interruptible_eval.clj:138)
>> clojure.lang.AFn.run (AFn.java:24)
>> java.util.concurrent.ThreadPoolExecutor.runWorker 
>> (ThreadPoolExecutor.java:1145)
>> java.util.concurrent.ThreadPoolExecutor$Worker.run 
>> (ThreadPoolExecutor.java:615)
>> java.lang.Thread.run (Thread.java:722)
>>
>>
>> I am using stock ubuntu version of emacs (24) and have installed the 
>> following packages (tried both marmelade and melpa and the error persists). 
>> I have installed ac-nrepl, nrepl, nrepl-ritz, clojure-more, 
>> rainbow-delimiters, starterkit and paredit.
>>
>> I have leiningen 2.1.3 installed. I have tried lein clean on the project 
>> btw..
>>
>> This is my profiles.clj:
>>
>> {:user {:dependencies [[org.clojure/tools.namespace "0.2.3"]
>>[spyscope "0.1.3"]
>>[criterium "0.4.1"]
>>[ritz/ritz-nrepl-middleware "0.7.0"]]
>> :injections [(require '(clojure.tools.namespace repl find))
>>  ; try/catch to workaround an issue where `lein repl` 
>> outside a project dir
>>  ; will not load reader literal definitions correctly:
>>  (try (require 'spyscope.core)
>>(catch RuntimeException e))]
>> :plugins [[lein-pprint "1.1.1"]
>>   [lein-beanstalk "0.2.6"]
>>   [lein-clojars "0.9.1"]
>>   [lein-create-template "0.1.1"]
>>   [lein-marginalia "0.7.1"]
>>   [lein-ritz "0.7.0"]
>>   [lein-midje "3.0.0"]]}
>> :repl-options {:nrepl-middleware
>>  [ritz.nrepl.middleware.javadoc/wrap-javadoc
>>   
>> ritz.nrepl.middleware.simple-complete/wrap-simple-complete]}}
>>
>> In the project I use clojure 1.5.1.
>>
>> BR
>>
>>
>>
>>
>>  -- 
>> -- 
>> 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 o

Re: Problem seting up ritz nrepl in emacs

2013-06-03 Thread László Török
Hi,

I think ac-nrepl doesn't play nice with ritz, try disabling it.

Las

Sent from my phone
On Jun 3, 2013 5:28 PM, "Novi Border"  wrote:

> Hi
>
> I am currently developing clojure in sublime text, and have tried eclipse
> before, but I would like to switch to emacs for all the goodies it brings.
> I have followed a number of tutorials for seting up emacs enviroment but I
> can't get the ritz debuger to work.
>
> I allways get the following error after nrepl-ritz-jack-in
>
> java.io.FileNotFoundException: Could not locate complete/core__init.class
> or complete/core.clj on classpath:
>  at clojure.lang.RT.load (RT.java:443)
> clojure.lang.RT.load (RT.java:411)
> clojure.core$load$fn__5018.invoke (core.clj:5530)
> clojure.core$load.doInvoke (core.clj:5529)
> clojure.lang.RestFn.invoke (RestFn.java:408)
> clojure.core$load_one.invoke (core.clj:5336)
> clojure.core$load_lib$fn__4967.invoke (core.clj:5375)
> clojure.core$load_lib.doInvoke (core.clj:5374)
> clojure.lang.RestFn.applyTo (RestFn.java:142)
> clojure.core$apply.invoke (core.clj:619)
> clojure.core$load_libs.doInvoke (core.clj:5413)
> clojure.lang.RestFn.applyTo (RestFn.java:137)
> clojure.core$apply.invoke (core.clj:619)
> clojure.core$require.doInvoke (core.clj:5496)
> clojure.lang.RestFn.invoke (RestFn.java:408)
> user$eval2549.invoke (SOURCE_FORM_4:1)
> clojure.lang.Compiler.eval (Compiler.java:6619)
> clojure.lang.Compiler.eval (Compiler.java:6582)
> clojure.core$eval.invoke (core.clj:2852)
> ritz.repl_utils.compile$eval_region.invoke (compile.clj:55)
> ritz.nrepl.middleware.tracking_eval$evaluate$fn__2006.invoke
> (tracking_eval.clj:51)
> clojure.lang.AFn.applyToHelper (AFn.java:159)
> clojure.lang.AFn.applyTo (AFn.java:151)
> clojure.core$apply.invoke (core.clj:617)
> clojure.core$with_bindings_STAR_.doInvoke (core.clj:1788)
> clojure.lang.RestFn.invoke (RestFn.java:425)
> ritz.nrepl.middleware.tracking_eval$evaluate.invoke
> (tracking_eval.clj:48)
> ritz.nrepl.middleware.tracking_eval$eval_reply$fn__2020.invoke
> (tracking_eval.clj:89)
> clojure.core$comp$fn__4154.invoke (core.clj:2330)
>
> clojure.tools.nrepl.middleware.interruptible_eval$run_next$fn__913.invoke
> (interruptible_eval.clj:138)
> clojure.lang.AFn.run (AFn.java:24)
> java.util.concurrent.ThreadPoolExecutor.runWorker
> (ThreadPoolExecutor.java:1145)
> java.util.concurrent.ThreadPoolExecutor$Worker.run
> (ThreadPoolExecutor.java:615)
> java.lang.Thread.run (Thread.java:722)
>
>
> I am using stock ubuntu version of emacs (24) and have installed the
> following packages (tried both marmelade and melpa and the error persists).
> I have installed ac-nrepl, nrepl, nrepl-ritz, clojure-more,
> rainbow-delimiters, starterkit and paredit.
>
> I have leiningen 2.1.3 installed. I have tried lein clean on the project
> btw..
>
> This is my profiles.clj:
>
> {:user {:dependencies [[org.clojure/tools.namespace "0.2.3"]
>[spyscope "0.1.3"]
>[criterium "0.4.1"]
>[ritz/ritz-nrepl-middleware "0.7.0"]]
> :injections [(require '(clojure.tools.namespace repl find))
>  ; try/catch to workaround an issue where `lein repl`
> outside a project dir
>  ; will not load reader literal definitions correctly:
>  (try (require 'spyscope.core)
>(catch RuntimeException e))]
> :plugins [[lein-pprint "1.1.1"]
>   [lein-beanstalk "0.2.6"]
>   [lein-clojars "0.9.1"]
>   [lein-create-template "0.1.1"]
>   [lein-marginalia "0.7.1"]
>   [lein-ritz "0.7.0"]
>   [lein-midje "3.0.0"]]}
> :repl-options {:nrepl-middleware
>  [ritz.nrepl.middleware.javadoc/wrap-javadoc
>
> ritz.nrepl.middleware.simple-complete/wrap-simple-complete]}}
>
> In the project I use clojure 1.5.1.
>
> BR
>
>
>
>
>  --
> --
> 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/groups/opt_out.
>
>
>

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

Problem seting up ritz nrepl in emacs

2013-06-03 Thread Novi Border
Hi

I am currently developing clojure in sublime text, and have tried eclipse 
before, but I would like to switch to emacs for all the goodies it brings. 
I have followed a number of tutorials for seting up emacs enviroment but I 
can't get the ritz debuger to work.

I allways get the following error after nrepl-ritz-jack-in

java.io.FileNotFoundException: Could not locate complete/core__init.class 
or complete/core.clj on classpath: 
 at clojure.lang.RT.load (RT.java:443)
clojure.lang.RT.load (RT.java:411)
clojure.core$load$fn__5018.invoke (core.clj:5530)
clojure.core$load.doInvoke (core.clj:5529)
clojure.lang.RestFn.invoke (RestFn.java:408)
clojure.core$load_one.invoke (core.clj:5336)
clojure.core$load_lib$fn__4967.invoke (core.clj:5375)
clojure.core$load_lib.doInvoke (core.clj:5374)
clojure.lang.RestFn.applyTo (RestFn.java:142)
clojure.core$apply.invoke (core.clj:619)
clojure.core$load_libs.doInvoke (core.clj:5413)
clojure.lang.RestFn.applyTo (RestFn.java:137)
clojure.core$apply.invoke (core.clj:619)
clojure.core$require.doInvoke (core.clj:5496)
clojure.lang.RestFn.invoke (RestFn.java:408)
user$eval2549.invoke (SOURCE_FORM_4:1)
clojure.lang.Compiler.eval (Compiler.java:6619)
clojure.lang.Compiler.eval (Compiler.java:6582)
clojure.core$eval.invoke (core.clj:2852)
ritz.repl_utils.compile$eval_region.invoke (compile.clj:55)
ritz.nrepl.middleware.tracking_eval$evaluate$fn__2006.invoke 
(tracking_eval.clj:51)
clojure.lang.AFn.applyToHelper (AFn.java:159)
clojure.lang.AFn.applyTo (AFn.java:151)
clojure.core$apply.invoke (core.clj:617)
clojure.core$with_bindings_STAR_.doInvoke (core.clj:1788)
clojure.lang.RestFn.invoke (RestFn.java:425)
ritz.nrepl.middleware.tracking_eval$evaluate.invoke 
(tracking_eval.clj:48)
ritz.nrepl.middleware.tracking_eval$eval_reply$fn__2020.invoke 
(tracking_eval.clj:89)
clojure.core$comp$fn__4154.invoke (core.clj:2330)

clojure.tools.nrepl.middleware.interruptible_eval$run_next$fn__913.invoke 
(interruptible_eval.clj:138)
clojure.lang.AFn.run (AFn.java:24)
java.util.concurrent.ThreadPoolExecutor.runWorker 
(ThreadPoolExecutor.java:1145)
java.util.concurrent.ThreadPoolExecutor$Worker.run 
(ThreadPoolExecutor.java:615)
java.lang.Thread.run (Thread.java:722)


I am using stock ubuntu version of emacs (24) and have installed the 
following packages (tried both marmelade and melpa and the error persists). 
I have installed ac-nrepl, nrepl, nrepl-ritz, clojure-more, 
rainbow-delimiters, starterkit and paredit.

I have leiningen 2.1.3 installed. I have tried lein clean on the project 
btw..

This is my profiles.clj:

{:user {:dependencies [[org.clojure/tools.namespace "0.2.3"]
   [spyscope "0.1.3"]
   [criterium "0.4.1"]
   [ritz/ritz-nrepl-middleware "0.7.0"]]
:injections [(require '(clojure.tools.namespace repl find))
 ; try/catch to workaround an issue where `lein repl` 
outside a project dir
 ; will not load reader literal definitions correctly:
 (try (require 'spyscope.core)
   (catch RuntimeException e))]
:plugins [[lein-pprint "1.1.1"]
  [lein-beanstalk "0.2.6"]
  [lein-clojars "0.9.1"]
  [lein-create-template "0.1.1"]
  [lein-marginalia "0.7.1"]
  [lein-ritz "0.7.0"]
  [lein-midje "3.0.0"]]}
:repl-options {:nrepl-middleware
 [ritz.nrepl.middleware.javadoc/wrap-javadoc
  
ritz.nrepl.middleware.simple-complete/wrap-simple-complete]}}

In the project I use clojure 1.5.1.

BR




-- 
-- 
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/groups/opt_out.




Re: Looking for Clojure freelancers

2013-06-03 Thread Peter Taoussanis
Hi Laszlo, 

Actually good point - I should clarify: all the work would be completely 
remote. I'll normally work through some combination of GitHub, Basecamp + 
Trello.

Payment would be through PayPal.

-- 
-- 
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/groups/opt_out.




Re: Looking for Clojure freelancers

2013-06-03 Thread László Török
Damn Gmail, sorry this was not meant for the list.


2013/6/3 László Török 

> Hi Peter,
>
> I might be interested. I am a PhD candidate in Munich, where are you based?
>
> Regards,
>
> Laszlo Török
>
>
> 2013/6/3 Peter Taoussanis 
>
>> Hi all,
>>
>> From time to time I have need for one or two extra hands (or, would that
>> be pairs of hands?) on larger projects. Specifically, am looking for
>> Clojure developers that'd be interested in occasional adhoc/freelance
>> development work.
>>
>> Most of my work is on the web application side, but it can vary.
>>
>> What I'd like to ask is this: if anyone's interested, drop me an email 
>> (*ptaoussanis
>> at taoensso.com*) with some basic info including:
>>
>>- Contact details (would prefer an international telephone number
>>also if possible).
>>- Your experience / informal CV (open-source stuff is my preferred
>>reference, especially if it's Clojure-based).
>>- Any particular areas of interest/expertise (e.g. you especially
>>want to work with Datomic, backend services, Clojurescript, whatever).
>>- Your rate + how negotiable it'd be and/or how it'd scale with
>>longer-term jobs.
>>
>> I can then keep your details on file and give an occasional shout if
>> something comes up that I could potentially use you for.
>>
>> Whole thing'd be about as informal as it gets: terms will vary based on
>> the particular job, but I'll include all of that in the email so you can
>> decide if/when something grabs your fancy.
>>
>> Cheers!
>>
>> - Peter (taoensso.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/groups/opt_out.
>>
>>
>>
>
>
>
> --
> László Török
>



-- 
László Török

-- 
-- 
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/groups/opt_out.




Re: Looking for Clojure freelancers

2013-06-03 Thread Peter Taoussanis
Just occurs to me: it'd probably also be useful if you post some of your 
details here in case anyone else is also looking for devs.

-- 
-- 
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/groups/opt_out.




Re: Looking for Clojure freelancers

2013-06-03 Thread László Török
Hi Peter,

I might be interested. I am a PhD candidate in Munich, where are you based?

Regards,

Laszlo Török


2013/6/3 Peter Taoussanis 

> Hi all,
>
> From time to time I have need for one or two extra hands (or, would that
> be pairs of hands?) on larger projects. Specifically, am looking for
> Clojure developers that'd be interested in occasional adhoc/freelance
> development work.
>
> Most of my work is on the web application side, but it can vary.
>
> What I'd like to ask is this: if anyone's interested, drop me an email 
> (*ptaoussanis
> at taoensso.com*) with some basic info including:
>
>- Contact details (would prefer an international telephone number also
>if possible).
>- Your experience / informal CV (open-source stuff is my preferred
>reference, especially if it's Clojure-based).
>- Any particular areas of interest/expertise (e.g. you especially want
>to work with Datomic, backend services, Clojurescript, whatever).
>- Your rate + how negotiable it'd be and/or how it'd scale with
>longer-term jobs.
>
> I can then keep your details on file and give an occasional shout if
> something comes up that I could potentially use you for.
>
> Whole thing'd be about as informal as it gets: terms will vary based on
> the particular job, but I'll include all of that in the email so you can
> decide if/when something grabs your fancy.
>
> Cheers!
>
> - Peter (taoensso.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/groups/opt_out.
>
>
>



-- 
László Török

-- 
-- 
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/groups/opt_out.




Looking for Clojure freelancers

2013-06-03 Thread Peter Taoussanis
Hi all,

>From time to time I have need for one or two extra hands (or, would that be 
pairs of hands?) on larger projects. Specifically, am looking for Clojure 
developers that'd be interested in occasional adhoc/freelance development 
work.

Most of my work is on the web application side, but it can vary.

What I'd like to ask is this: if anyone's interested, drop me an email 
(*ptaoussanis 
at taoensso.com*) with some basic info including:

   - Contact details (would prefer an international telephone number also 
   if possible).
   - Your experience / informal CV (open-source stuff is my preferred 
   reference, especially if it's Clojure-based).
   - Any particular areas of interest/expertise (e.g. you especially want 
   to work with Datomic, backend services, Clojurescript, whatever).
   - Your rate + how negotiable it'd be and/or how it'd scale with 
   longer-term jobs.

I can then keep your details on file and give an occasional shout if 
something comes up that I could potentially use you for.

Whole thing'd be about as informal as it gets: terms will vary based on the 
particular job, but I'll include all of that in the email so you can decide 
if/when something grabs your fancy.

Cheers!

- Peter (taoensso.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/groups/opt_out.




Re: "I don't feel the absence of a debugger, because I've learnt enough that I don't ever need a debugger."

2013-06-03 Thread Phillip Lord

That looks really very nice. The reader macros are particularly nice
because it saves messing around with the structure of your code.

Phil

dgrnbrg  writes:

> I'd like to point out a similar library I wrote for Clojure called 
> spyscope: https://github.com/dgrnbrg/spyscope
>
> With spyscope, you can write a handful of characters and get the stack 
> frame, form, and its value pretty-printed and logged to a queue for future 
> querying.
>
> On Thursday, May 30, 2013 8:28:19 PM UTC-4, David Jacobs wrote:
>>
>> That's true -- that's why I wrote up the Letters debugging mini-library 
>> for Ruby (lettersrb.com). However, there's friction there, too, and a 
>> surprising number of people don't think to do this.   
>>
>>
>> On Thursday, May 30, 2013 at 5:25 PM, Timothy Baldridge wrote: 
>>
>> > Not really true, most of my programs contain this function: 
>> >   
>> > (defn debug [x] 
>> > (pprint x) 
>> > x) 
>> >   
>> > Now I can do this: 
>> >   
>> > (comp foo debug bar) 
>> >   
>> > Also, with some reader literal magic, I could write something to let me 
>> do this: 
>> >   
>> > (myfunc foo #dbg bar) 
>> >   
>> >   
>> >   
>> > On Thu, May 30, 2013 at 6:12 PM, David Jacobs 
>> > (mailto:
>> da...@wit.io )> wrote: 
>> > > Two more things: 
>> > >   
>> > > 1) printing is often not a viable option for lazily eval-ed sequences 
>> or async processes -- the output gets jumbled! And believe me, when a new 
>> Clojure dev sees that for the first time, he/she wants to quit.   
>> > > 2) printing is terrible for elegant clojure code -- thing (comp f g h 
>> (partial map z)) -- in order to figure out anything about dynamic data 
>> flowing through, you have to break apart that composition or add a let 
>> binding in one of those functions before returning a value. Both of those 
>> involve a lot of friction. 
>> > >   
>> > >   
>> > > On Thursday, May 30, 2013 5:00:13 PM UTC-7, raould wrote: 
>> > > > for a long time haskell did not have a debugger. that sucked, imho. 
>>   
>> > >   
>> > > --   
>> > > --   
>> > > 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(mailto:
>> 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  (mailto:
>> clojure%2b...@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  (mailto:
>> clojure%2b...@googlegroups.com ). 
>> > > For more options, visit https://groups.google.com/groups/opt_out. 
>> > >   
>> > >   
>> >   
>> >   
>> >   
>> >   
>> > --   
>> > “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 
>> > clo...@googlegroups.com(mailto:
>> 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  (mailto:
>> 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  (mailto:
>> clojure+u...@googlegroups.com ). 
>> > For more options, visit https://groups.google.com/groups/opt_out. 
>> >   
>> >   
>>
>>
>>
>>
>
> -- 

-- 
Phillip Lord,   Phone: +44 (0) 191 222 7827
Lecturer in Bioinformatics, Email: phillip.l...@newcastle.ac.uk
School of Computing Science,
http://homepages.cs.ncl.ac.uk/phillip.lord
Room 914 Claremont Tower,   skype: russet_apples
Newcastle University,   twitter: phillord
NE1 7RU 

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

[ANN] Library updates (Redis & DynamoDB clients, logging+profiling, i18n+L10n, serialization, A/B testing)

2013-06-03 Thread Peter Taoussanis
Hi folks, just a quick update on some libraries - figure I'll do this and 
future updates in batches to keep from spamming the group. Hoping the 
formatting comes through here...

*Carmine* - Redis client & message queue 
(GitHub
)
Current version: *1.9.1*
Clojure dependency: 1.4+
Recent changes: message queue features, distributed locks, performance 
improvements.
Thanks to Ronen (narkisr) for most of the new features.

*Faraday* - DynamoDB client (GitHub ) 
- NEW LIBRARY
Current version: *0.5.0*
Clojure dependency: 1.5+
Recent changes: full DynamoDB v2 API coverage.
Thanks to James Reaves whose library (Rotary) provided the basis for 
Faraday.

*Nippy* - serialization library (GitHub
)
Current version: *1.2.1*
Clojure dependency: 1.3+
Recent changes: sorted set+map support, performance improvements.

*Timbre* - logging & profiling library 
(GitHub
)
Current version: *2.0.0 *- MAJOR RELEASE
Clojure dependency: 1.4+
Recent changes: tools.logging support.

*Touchstone* - A/B testing library 
(GitHub
)
Current version: *1.0.0* - MAJOR RELEASE
Clojure dependency: 1.4+
Recent changes: inherited test-config support, marked API as stable.

*Tower* - i18n & L10n library (GitHub 
)
Current version: *1.7.0*
Clojure dependency: 1.4+
Recent changes: Nothing major.


I've started to push new releases (like Faraday) to Clojure 1.5+ but will 
maintain backwards-compatibility with 1.4+ where possible. Nippy is an 
exception which I'll keep at Clojure 1.3+  for at least 
the foreseeable future.

For those interested I've now setup a page at 
https://www.taoensso.com/clojure-libraries to keep track of the libraries 
I'm currently maintaining. In any event, will update the group from time to 
time when there's a bunch of significant changes queued like today.

As always, am very happy to take ideas/comments/PRs/whatever - a lot of the 
recent improvements above were a result of direct/indirect input from other 
folks (thank you!).

Have an awesome Monday, cheers!

- Peter Taoussanis (taoensso.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/groups/opt_out.




Re: ref-history-count always return 0?

2013-06-03 Thread Tom Van Cutsem
If you're the kind of person who rather reads source code than
documentation, you might also be interested in my meta-circular
implementation of Clojure's STM (it implements refs in terms of atoms): <
https://github.com/tvcutsem/stm-in-clojure> (the vanilla MVCC version is <
200 LoC)

Cheers,
Tom


2013/6/2 Michał Marczyk 

> Mark Volkmann has a very comprehensive article on Clojure's STM available
> here:
>
> http://java.ociweb.com/mark/stm/
>
> Cheers,
> Michał
>
>
> On 31 May 2013 13:31, Stefan Kamphausen  wrote:
> > You may want to use the code from https://gist.github.com/Chouser/456326to
> > study how the history in refs works.  See the accompanying discussion at
> > http://clojure-log.n01se.net/date/2010-06-28.html.  I've been using
> variants
> > of that stress test to explain the ref history behavior since then and
> > people seem to be happy with it.
> >
> > Kudos to chouser obviously!
> >
> > --
> > --
> > 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/groups/opt_out.
> >
> >
>
> --
> --
> 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/groups/opt_out.
>
>
>

-- 
-- 
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/groups/opt_out.




Re: No-source-path ??

2013-06-03 Thread Kelker Ryan
Try this.

cd my-website
lein repl
(load-file "src/my-website/models/db.clj")

03.06.2013, 15:20, "jayvandal" :
> I am trying to run the my-website.My structure is
>                      my-website top level
>                              src
>                                my-website
>                                    model
>                                       db.clj
>
> sould I use this command
> lein repl
> (load-file "c:/my-website/src/my-website/models/db.clj")
> then run the file (my-website/src/my-web-site/models/init-db)
> Thanks for nay pointers
>
> --
> --
> 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/groups/opt_out.

-- 
-- 
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/groups/opt_out.