Re: Transient Collection Identity

2016-04-22 Thread Alex Miller
transient collections collect values in an internal (mutable) data structure and periodically add them in batch. So you will typically see the identical value returned for a while, then it will change. You should *always* use the return value - the same usage pattern as with persistent collecti

Re: Possible bug with (keys some-container) in a try-catch?

2016-04-22 Thread Kevin Downey
keys is lazy, you see the exception at the repl because printing out the result forces the sequence, but if you don't do anything with the result then it isn't forced, so no errors. On 04/22/2016 01:28 PM, Steve Riley wrote: > I am trying to determine if a container, x, passed to a function, is a

Re: Possible bug with (keys some-container) in a try-catch?

2016-04-22 Thread Alex Miller
(keys x) is a lazy seq so in (try (keys x) true), the (keys x) is created but not realized so the error is not discovered. The REPL will print the result, which requires the values to be realized. On Friday, April 22, 2016 at 3:37:07 PM UTC-5, Steve Riley wrote: > > I am trying to determine if

Possible bug with (keys some-container) in a try-catch?

2016-04-22 Thread Steve Riley
I am trying to determine if a container, x, passed to a function, is a map or not. If I evaluation (keys x) at a REPL prompt, and, x is instantiated list, vector or set, I will get a java.lang.ClassCastException that some item in x cannot be cast to java.util.Map$Entry. On the other hand, if I

Re: Transient Collection Identity

2016-04-22 Thread Timothy Baldridge
The answer is that you should treat them as you would persistent structures. It's true that they don't always change, but they may eventually change and without notice. For vectors this will be somewhere in the range of once every 32 conj! calls, but could change in a future version of clojure, so

Transient Collection Identity

2016-04-22 Thread JvJ
While doing operations on transient collections, I've noticed that the result of assoc! or conj! is always identical to the original structure (i.e. it satisfies "identical?", and is not merely equivalent). Is this always the case, or can the return value of assoc! or conj! sometimes be a diff

Re: [ANN] es-boat - an expert system for coastal navigation

2016-04-22 Thread ru
Thank you, Ivh, for finding my project! пятница, 22 апреля 2016 г., 16:57:31 UTC+3 пользователь lvh ‌ написал: > > I couldn’t find a link to your project, but I think this is it: > https://github.com/rururu/es-boat > > Looks awesome!! Thanks for showing :D > > On Apr 22, 2016, at 8:50 AM, ru > wr

Re: [ANN] es-boat - an expert system for coastal navigation

2016-04-22 Thread lvh
I couldn’t find a link to your project, but I think this is it: https://github.com/rururu/es-boat Looks awesome!! Thanks for showing :D > On Apr 22, 2016, at 8:50 AM, ru wrote: > > Hi, > > A prototype of an expert system for coastal navigation - test exampl

[ANN] es-boat - an expert system for coastal navigation

2016-04-22 Thread ru
Hi, A prototype of an expert system for coastal navigation - test example for the rete4frames expert system shell - complex Clojure-ClojureScript client-server application. It uses: - Protege-3.5 ontology editor as a knowl