Re: How to restrict the number of test with stest/check

2018-03-07 Thread Chris Shellenbarger
Alex, 
 When I attempt to specify :num-tests, ie: 

(stest/check `do-something {:clojure.spec.test.check/opts {:num-tests 10}})

It usually seems to work, but sometimes I can see code executing far more 
than the number of tests I've specified.  This appears to be correlated to 
when it finds an error - but I usually don't know that until after the test 
run has completed.  Is this a case of spec attempting to 'shrink' the input 
to arrive at the cause of the problem?

I am running the command from the repl and so maybe that impacts it?  
However, even with summarize-results it feels like the effect would be the 
same.  Is there a different way that I'm supposed to consume this lazy 
sequence generated by stest/check?

Thanks!
Chris

On Wednesday, August 3, 2016 at 1:46:32 PM UTC-5, Alex Miller wrote:
>
> As the docstring for check notes:
>
> "The opts map includes the following optional keys, where stc
> aliases clojure.spec.test.check:
>
> ::stc/opts  opts to flow through test.check/quick-check
> :genmap from spec names to generator overrides"
>
> So the opts map would be like:
>
> (stest/check `myfunc {:clojure.spec.test.check/opts {:num-tests 2}})
>
>
> On Wednesday, August 3, 2016 at 9:34:11 AM UTC-5, Burt wrote:
>>
>> Hi,
>>
>> (stest/check `myfunc) runs very, very long
>>
>> so i tried
>>
>> (stest/check `myfunc {:num-tests 2})
>>
>> but unfortunately that does not restrict the number of test.
>>
>> Can anybody help?
>>
>> Kind regards, Burt
>>
>

-- 
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: Developing in Clojure with Emacs: Mastering the Keyboard

2018-03-04 Thread Chris Shellenbarger
Thanks Magomimmo -  the main thing I did to get it working was to load the 
`seq` file directly - for some reason requiring the package wasn't loading 
the functions that the CIDER repl was calling.   Anyway it was strange but 
I cobbled together something that worked well enough for me to evaluate.

On Sunday, March 4, 2018 at 8:07:14 AM UTC-6, Magomimmo wrote:
>
> Hi Chris,
> in my past experience you have to fix more things to update 
> emacs-for-clojure to latest stable CIDER release (I'm currently using 
> emacs-prelude instead):
>
> In your init.el
>
> (add-to-list 'package-archives
>  '("melpa-stable" . "http://stable.melpa.org/packages/;) t)
> (add-to-list 'package-pinned-packages
>  '(cider . "melpa-stable") t)
> (add-to-list 'package-pinned-packages
>  '(seq . "melpa-stable") t)
> (add-to-list 'package-pinned-packages
>  '(clojure-mode . "melpa-stable") t)
>
> And in your customizations/setup-clojure.el you have to fix the minibuffer 
> documentaion as follows:
>
>
> (add-hook 'cider-mode-hook 'eldoc-mode)
>
> HIH 
>
> mimmo
>
>
>
> On Sat, Mar 3, 2018 at 5:11 PM, Chris Shellenbarger <ch...@cloudrepo.io 
> > wrote:
>
>> I spent the last week learning and using Emacs and CIDER for Clojure 
>> Development.
>>
>> I've started to write up a lot of the lessons I've learned from doing so 
>> in the hopes that it will help some other people who attempt something 
>> similar.
>>
>> Anyway, if you're interested in getting started with Emacs and CIDER, 
>> you'll have to learn about how to use the keyboard so I wrote a couple of 
>> key lessons in a Medium post:  Developing in Clojure with Emacs: 
>> Mastering the Keyboard 
>> <https://medium.com/@chris.shellenbarger/developing-in-clojure-with-emacs-mastering-the-keyboard-6cb9bef7f760>
>> .
>>
>> My environment was Emacs 24.5.1 with CIDER 0.16.0 on Linux Mint 18.3.
>>
>> I used the Clojure for the Brave and True <https://www.braveclojure.co> book 
>> for a basic intro into Emacs <https://www.braveclojure.com/basic-emacs/> and 
>> used the provided emacs configuration files as a starting point.  However, 
>> these only worked with CIDER 0.8.0 and were about four years old.  I made 
>> some modifications of the files to work with CIDER 0.16.0 and put them up 
>> for anyone to use on my BitBucket Repository 
>> <https://bitbucket.org/64BitChris/linux-emacs-configuration>.
>>
>> I have a lot more to share about my Emacs experience, but I found that 
>> there was so much that I had to split it into multiple posts.   
>>
>> Hope it helps someone out there!
>>
>>
>>
>> -- 
>> 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: Developing in Clojure with Emacs: Mastering the Keyboard

2018-03-04 Thread Chris Shellenbarger
I found them useful for getting the repl to run - after following these 
instructions I was able to run 'cider-jack-in' and get to a repl that 
worked the same was as the one I had been using in Cursive.

They also pointed me to a couple of suggested packages to install, in which 
whichkey was one. 

However, with a running REPL, I had no idea what to do - I was consulting 
cheat sheets for things I knew I wanted to do, but did not have a clear way 
to discover all the options available to me.  That's when I turned to the 
CftBT book and his configuration because at least I could see what a 
Clojure Developer was using.   Installing whichkey and whatever package 
allows the search for functions was incredibly helpful (which inspired the 
original post).

What I feel is missing from a lot of the Clojure world is documentation on 
how the real professional Clojure developers are working from a day to day 
perspective.  This includes any that work in Emacs/CIDER - how are they 
working more productively than we can in Cursive or another IDE?  With the 
tools I mention in my post, I can see how you can get started down that 
path.

As far as the CIDER docs go, I think a huge way to increase their utility 
would be to provide an example Emacs configuration so that people can just 
download it and get up and running within a context that can be discussed 
in the documentation.  I'm sure people have these configurations running - 
you can use the ones that I put up as well.


On Sunday, March 4, 2018 at 7:13:37 AM UTC-6, Bozhidar Batsov wrote:
>
> Btw, didn't you find the instructions in the official manual useful (
> http://cider.readthedocs.io/en/latest/installation/ and 
> http://cider.readthedocs.io/en/latest/up_and_running/). Admitted they are 
> not great, but they do cover a lot of ground and are reasonably up-to-date. 
>
> On 3 March 2018 at 23:11, Chris Shellenbarger <ch...@cloudrepo.io 
> > wrote:
>
>> I spent the last week learning and using Emacs and CIDER for Clojure 
>> Development.
>>
>> I've started to write up a lot of the lessons I've learned from doing so 
>> in the hopes that it will help some other people who attempt something 
>> similar.
>>
>> Anyway, if you're interested in getting started with Emacs and CIDER, 
>> you'll have to learn about how to use the keyboard so I wrote a couple of 
>> key lessons in a Medium post:  Developing in Clojure with Emacs: 
>> Mastering the Keyboard 
>> <https://medium.com/@chris.shellenbarger/developing-in-clojure-with-emacs-mastering-the-keyboard-6cb9bef7f760>
>> .
>>
>> My environment was Emacs 24.5.1 with CIDER 0.16.0 on Linux Mint 18.3.
>>
>> I used the Clojure for the Brave and True <https://www.braveclojure.co> book 
>> for a basic intro into Emacs <https://www.braveclojure.com/basic-emacs/> and 
>> used the provided emacs configuration files as a starting point.  However, 
>> these only worked with CIDER 0.8.0 and were about four years old.  I made 
>> some modifications of the files to work with CIDER 0.16.0 and put them up 
>> for anyone to use on my BitBucket Repository 
>> <https://bitbucket.org/64BitChris/linux-emacs-configuration>.
>>
>> I have a lot more to share about my Emacs experience, but I found that 
>> there was so much that I had to split it into multiple posts.   
>>
>> Hope it helps someone out there!
>>
>>
>>
>> -- 
>> 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: Any better client then telnet for connecting to a socket repl server?

2018-03-03 Thread Chris Shellenbarger
Can you use NREPL?  https://github.com/clojure/tools.nrepl  

This seems to be what most tools that provide a REPL are built on top of 
(Cursive, CIDER, etc).

On Friday, March 2, 2018 at 7:49:45 PM UTC-6, Didier wrote:
>
> I want to connect to a Clojure socket repl server, but telnet is a really 
> terrible repl experience. Anyway I can have a better client to connect to 
> it that would have some better support for history, backspace, maybe even 
> some auto-complete, highlight, etc. Whatever I can get over telnet?
>
> 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.


Developing in Clojure with Emacs: Mastering the Keyboard

2018-03-03 Thread Chris Shellenbarger
I spent the last week learning and using Emacs and CIDER for Clojure 
Development.

I've started to write up a lot of the lessons I've learned from doing so in 
the hopes that it will help some other people who attempt something similar.

Anyway, if you're interested in getting started with Emacs and CIDER, 
you'll have to learn about how to use the keyboard so I wrote a couple of 
key lessons in a Medium post:  Developing in Clojure with Emacs: Mastering 
the Keyboard 

.

My environment was Emacs 24.5.1 with CIDER 0.16.0 on Linux Mint 18.3.

I used the Clojure for the Brave and True  book 
for a basic intro into Emacs  and 
used the provided emacs configuration files as a starting point.  However, 
these only worked with CIDER 0.8.0 and were about four years old.  I made 
some modifications of the files to work with CIDER 0.16.0 and put them up 
for anyone to use on my BitBucket Repository 
.

I have a lot more to share about my Emacs experience, but I found that 
there was so much that I had to split it into multiple posts.   

Hope it helps someone out there!



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


Key Lesson: Building CloudRepo With Clojure

2018-02-20 Thread Chris Shellenbarger
I struggled for a long time with Clojure and experiencing some of the power 
that I had heard about form others.  I realize now that it was because I 
had been so ingrained in the OO paradigm that I wasn't coding in the way 
that Clojure wanted me to.

Anyway, I've since overcome that and now that I've realized how to model 
'Data as the API' and design systems as flows of data, I have experienced a 
lot of the power of Clojure.

I wrote a post that shares what I've learned - figured it might help 
someone else down the line if they have similar struggles:

https://medium.com/@chris.shellenbarger/key-lesson-building-cloudrepo-with-clojure-99bc1c1c405e


Thanks,
Chris

-- 
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: java interop help for beginner calling java class

2014-03-29 Thread Chris Shellenbarger
Did you move it to the corresponding directory structure?  So, 
com.example.mystuff would need a directory hierarchy like com/example/mystuff.  
The mystuff directory is where you need to put your java files that are in the 
com.example.mystuff package.

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