That's an interesting idea.  Maybe there's a way to build a set of Specter
navigators that operate on transients, and then use its corresponding
eqiuvalences for assoc-in, update-in, etc.

On Thu, Jun 2, 2016 at 9:01 PM, Colin Fleming <colin.mailingl...@gmail.com>
wrote:

> Have you looked at Specter? I actually don't know if it uses transients
> under the hood or not, or if you can make it do so, but it seems like a
> good fit for the data manipulation problem, at least.
>
> On 3 June 2016 at 14:43, Mark Engelberg <mark.engelb...@gmail.com> wrote:
>
>> Let's say I have an object represented by a series of nested maps:
>>
>> {:a {:b 1} :c {:d 2}}
>>
>> and now I'm going to be making a whole slew of edits to the submaps.
>>
>> To do this efficiently, I need to make all the levels of the map
>> transients, because any update to the inner map also updates the outer map:
>>
>> (transient {:a (transient {:b 1}), :c (transient {:d 2})})
>>
>> and then at the end I need to do a nested persistent! operation.
>>
>> However, there aren't good facilities for dealing with nested transients,
>> for example, there's no assoc!-in.  So it's a real pain to work with.
>>
>> Has anyone dealt with this already, and developed a suite of tools for
>> working with nested transients, or other techniques for making batch
>> updates efficient for deeply nested objects?
>>
>> --
>> 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.
>>
>
> --
> 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.
>

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

Reply via email to