[ANN] org.clojure/core.memoize 0.8.2

2019-11-01 Thread Sean Corfield
Pluggable memoization based on org.clojure/core.cache

https://github.com/clojure/core.memoize

New in 0.8.2:
- updates core.cache dependency to 0.8.2
- fixes a bug in the seed implementation for PluggableMemoization
- adds memoizer as an easier way to build memoization on top of custom
caches
- deprecates build-memoizer (the older, harder way to build memoization on
top of custom cache factories)

The bump in version number (from 0.7.2) is partly to signify the internal
re-plumbing to use memoizer instead of build-memoizer and partly to get
back in sync with core.cache, since the two libraries are fairly tightly
coupled.
-- 
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles Networks, LLC. -- https://worldsinglesnetworks.com/

"Perfection is the enemy of the good."
-- Gustave Flaubert, French realist novelist (1821-1880)

-- 
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/CAD4thx_9yJdPNWaK0rkkG1CHPs-hhYfMmpAoKvXnuVkSJR%2Bx9A%40mail.gmail.com.


Re: Why does this core.logic program never terminate if you ask for too many results?

2019-11-01 Thread Satyam Ramawat
Grand!!

On Fri, 1 Nov 2019 at 1:08 PM, Laurens Van Houtven <_...@lvh.io> wrote:

> Sure: I'm saying figuring out the formula from a handful of examples is
> tricky. But I can do that, and I already know Clojure has conditionals. I'm
> trying to learn something about how the logic engine works.
>
> lvh
>
> On Thu, Oct 31, 2019 at 5:23 PM Satyam Ramawat 
> wrote:
>
>> Laurens,
>>
>> Have you tried checking up to what extent it goes?
>>
>>
>>
>> On Thu, Oct 31, 2019 at 9:44 PM Laurens Van Houtven <_...@lvh.io> wrote:
>>
>>> I always need all of them. Figuring out how many that are
>>> combinatorially is surprisingly tricky!
>>>
>>> On Thu, Oct 31, 2019 at 11:33 AM Satyam Ramawat 
>>> wrote:
>>>
 I mean you can limit the answer according to need, by running into loop
 until end users value satisfy, will can be either 5,20 or N. so it will
 throw output according to run of a loop.

 On Thu, 31 Oct 2019 at 4:28 PM, Laurens Van Houtven <_...@lvh.io> wrote:

> Satyam: you're suggesting limiting the answers asked from run, or
> something else?
>
> On Thu, Oct 31, 2019 at 11:24 AM Satyam Ramawat <
> satyamrama...@gmail.com> wrote:
>
>> On a very simple way, you can restrict by using if statement by
>> crossing checking the count/length of the list,
>> https://clojuredocs.org/clojure.core/if
>>
>> On Tuesday, October 29, 2019 at 11:06:54 PM UTC, Laurens Van Houtven
>> wrote:
>>>
>>> Hi,
>>>
>>> I'm trying to divide a list into 3 lists such that (= my-list
>>> (concat a b c)). I guess you could say I'm writing concato :-)
>>>
>>> (l/run n
>>>   [a b c]
>>>   (l/fresh [A B] ;; uppercase are internal accumulators
>>> (l/appendo a b A)
>>> (l/appendo A c B)
>>> (l/== B '(p q r s
>>>
>>> ... running this program with small n (let's say 5) works fine. Ask
>>> for more answers than there are (e.g. 20) and it ostensibly runs 
>>> forever.
>>>
>>> 1. Why?
>>> 2. How do I fix that? (I've tried reordering the goals.)
>>>
>>> thanks
>>> lvh
>>>
>> --
>> 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/bb6c0a89-203a-4a4d-83ed-f0338a0c26cb%40googlegroups.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/CAE_Hg6ZCC8umbiRsi7u%3DTJSmYQJ8mVf0zuT8v6%3Dbz10eOKxmCg%40mail.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
 

ANN: duratom 0.4.9

2019-11-01 Thread dimitris

Hi folks,

This new release adds a new constructor-fn `duragent`, which as the name 
implies, will return a durable agent. Unlike `duratom`, this is not a 
wrapper type - what you get is an actual `clojure.core/agent` (with a 
watch + some metadata). All the existing backends written for `duratom` 
will/should work with `duragent`.


This release includes a breaking change in the IStorageBackend protocol, 
so any backend implementors outside the duratom `project` will have to 
be careful. This was necessary in order to de-complect what is being 
committed from how it's being committed. But if you have functional 
duratom backends today, I would very much appreciate PRs ;).



Have a great month :)

Kind regards,

Dimitris



--
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/3ec014ef-df94-774d-b5a5-8e167e3f9bcd%40gmail.com.


Re: Why does this core.logic program never terminate if you ask for too many results?

2019-11-01 Thread Laurens Van Houtven
Sure: I'm saying figuring out the formula from a handful of examples is
tricky. But I can do that, and I already know Clojure has conditionals. I'm
trying to learn something about how the logic engine works.

lvh

On Thu, Oct 31, 2019 at 5:23 PM Satyam Ramawat 
wrote:

> Laurens,
>
> Have you tried checking up to what extent it goes?
>
>
>
> On Thu, Oct 31, 2019 at 9:44 PM Laurens Van Houtven <_...@lvh.io> wrote:
>
>> I always need all of them. Figuring out how many that are combinatorially
>> is surprisingly tricky!
>>
>> On Thu, Oct 31, 2019 at 11:33 AM Satyam Ramawat 
>> wrote:
>>
>>> I mean you can limit the answer according to need, by running into loop
>>> until end users value satisfy, will can be either 5,20 or N. so it will
>>> throw output according to run of a loop.
>>>
>>> On Thu, 31 Oct 2019 at 4:28 PM, Laurens Van Houtven <_...@lvh.io> wrote:
>>>
 Satyam: you're suggesting limiting the answers asked from run, or
 something else?

 On Thu, Oct 31, 2019 at 11:24 AM Satyam Ramawat <
 satyamrama...@gmail.com> wrote:

> On a very simple way, you can restrict by using if statement by
> crossing checking the count/length of the list,
> https://clojuredocs.org/clojure.core/if
>
> On Tuesday, October 29, 2019 at 11:06:54 PM UTC, Laurens Van Houtven
> wrote:
>>
>> Hi,
>>
>> I'm trying to divide a list into 3 lists such that (= my-list (concat
>> a b c)). I guess you could say I'm writing concato :-)
>>
>> (l/run n
>>   [a b c]
>>   (l/fresh [A B] ;; uppercase are internal accumulators
>> (l/appendo a b A)
>> (l/appendo A c B)
>> (l/== B '(p q r s
>>
>> ... running this program with small n (let's say 5) works fine. Ask
>> for more answers than there are (e.g. 20) and it ostensibly runs forever.
>>
>> 1. Why?
>> 2. How do I fix that? (I've tried reordering the goals.)
>>
>> thanks
>> lvh
>>
> --
> 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/bb6c0a89-203a-4a4d-83ed-f0338a0c26cb%40googlegroups.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/CAE_Hg6ZCC8umbiRsi7u%3DTJSmYQJ8mVf0zuT8v6%3Dbz10eOKxmCg%40mail.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/CAC7NMxjY32qLvfr96XqRWuBMq_p%3D29W6XSrSJDKphqi6%2Bd4tew%40mail.gmail.com
>>> 

Re: Web meeting: Tommi Reiman about Malli -- plain data schemas in Clojure/Script

2019-11-01 Thread Daniel Slutsky
Here is the Malli meeting video:
https://twitter.com/scicloj/status/1190173919082364928

Many thanks to Tommi Reiman for the talk, and to Teodor Heggelund for
moderating.

On Mon, 14 Oct 2019 at 23:56, Daniel Slutsky 
wrote:

> On the next Scicloj meeting, Oct. 28th 6PM UTC,
>
> Tommi Reiman will tell about the development of Malli:
> https://github.com/metosin/malli
> As always, we will have a discussion afterwards.
>
> Registration:
> https://twitter.com/scicloj/status/1183845705380696064
>

-- 
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/CADTWONO_K%3DA8EhZ8KMg1X6qOaqRDMoYDk--OEkxGM_5Jqf88Wg%40mail.gmail.com.