Web meeting series: data visualization and literate programming

2019-07-19 Thread Daniel Slutsky
Hi.

In August, the Scicloj  community will begin a
series of web meetings about data visualization and literate programming in
Clojure.


On the first meeting, Friday, Aug 9th, 5pm-7pm UTC, @Christopher_Smallwill talk
about Oz  .


If you are interested in this series, it is recommended to follow this
topic here
at
the Clojurians Zulip.

If you wish to suggest a topic for this series of meetings, it would be
great to suggest it under that topic, or in a private message.


See you there,

Daniel

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/clojure/CADTWONMbw4s1rcFF-iHARYMMV8Eb_Q2cfGLwH5S-pUAbo%3DddPQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Translation of the QuickCheck properties in the paper "How to specify it!" by John Hughes into clojure test.check

2019-07-19 Thread Beau Fabry
Added a reporting property and tweaked the key generator to be closer to 
the numbers in the paper

On Thursday, July 18, 2019 at 8:25:25 AM UTC-7, Beau Fabry wrote:
>
> https://github.com/bfabry/specify-it
>
> Attempted translation of the QuickCheck properties in this paper:
>
> "How to specify it!" - John Hughes
>
> https://www.dropbox.com/s/tx2b84kae4bw1p4/paper.pdf?dl=0
>
> Into Clojure test.check properties. I recreated the first 5 bugs in the 
> paper
> (and the test.check properties do fail on them) but got bored after that 
> as they
> assumed an implementation of `union` that isn't as silly as mine.
> Run the properties by redefining the vars at the top of `bst-spec` to 
> point to the implementation of your choice and running `check-props`. 
> There's also a BST that passes all the tests
> in `bst`. It's stupidly slow.
>
> Would love some help in how to make the `bst-spec` namespace 
>
> 1. have less boilerplate
> 2. be more idiomatic.
> 3. I couldn't figure out how to make properties that test shrinking as in 
> the paper
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/clojure/b396098d-d920-4130-8440-86aeb3b1ac5b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Arity problem with multi-methods

2019-07-19 Thread Art Goldhammer
Seven years later, a big thank you from me. I was also being driven crazy 
by this bug. It is insane that this not better documented. In any case it 
should have been fixed by now.

On Thursday, November 22, 2012 at 2:51:03 AM UTC-5, Baishampayan Ghose 
wrote:
>
> Christian,
>
> defmulti has defonce-like semantics which I guess is to prevent the 
> associated defmethods from being wiped out when the form is recompiled.
>
> Cite - 
> https://github.com/clojure/clojure/blob/master/src/clj/clojure/core.clj#L1622
>
> -BG
>
>
> On Wed, Nov 21, 2012 at 11:45 PM, Christian Sperandio <
> christian...@gmail.com > wrote:
>
>> Thank you !
>> I became crazy because I didn't see the problem in my code. 
>>
>> Why is there this issue with multi-methods? (and not with standard 
>> functions)
>>
>>
>> Chris
>>
>> Le 22 nov. 2012 à 02:34, grinnbearit > 
>> a écrit :
>>
>> Hi Chris,
>>
>> If you change multimethod arities you'll have to def the multimethod to 
>> nil or restart the swank/nrepl server. It doesn't update that on 
>> recompilation.
>>
>> Sidhant
>>
>> On Thursday, November 22, 2012 3:44:10 AM UTC+5:30, Christian Sperandio 
>> wrote:
>>>
>>> Hi,
>>>
>>> I try to define multi-methods but when I call one I get an exception.
>>>
>>> I declared the multi-methods like below:
>>>
>>> (defmulti new-food-item (fn [food expiration]
>>>   (if (number? expiration)
>>> ::duration
>>> ::expiration-date)))
>>>
>>> (defmethod new-food-item ::duration [food expiration-duration]
>>>   (let [expiration-date (GregorianCalendar.)]
>>> (.add expiration-date GregorianCalendar/DAY_OF_MONTH 
>>> expiration-duration)
>>> {:name food :expiration-date expiration-date}))
>>>
>>> (defmethod new-food-item ::expiration-date [food expiration-date]
>>>   {:name food :expiration-date expiration-date})
>>>
>>>
>>> And when I do: (new-food-item "tomatoes" 5)
>>> I get this exception:
>>> ArityException Wrong number of args (2) passed to: core$class 
>>>  clojure.lang.AFn.throwArity (AFn.java:437)
>>>
>>> I don't understand where is the problem :/
>>>
>>> Some help?
>>>
>>> Thank you.
>>>
>>> Chris
>>>
>>> -- 
>> 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
>> clo...@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 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
>> clo...@googlegroups.com 
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>>
>
>
>
> -- 
> Baishampayan Ghose
> b.ghose at gmail.com
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/clojure/a4b3ce99-11e0-4400-9139-a01b49dd9342%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.