Hi Attila,

Thanks for sharing that thread (disclaimer, yeah I'm the CEO at jClarity
now) - I thought I knew a little about this space but definitely got given
a masterclass by Gil et al.

Happy to do the Java Advent post again this year - was great fun last time!
Do you want me to write the wrapper post for the last day again?

*waves at the Posse* - hey guys, missed you at JavaOne, but Belgian beer
awaits us shortly at Devoxx :-)

Cheers,
Martijn


On 5 October 2013 15:42, Attila-Mihaly Balazs <dify....@gmail.com> wrote:

> Hi all,
>
> I'm reposting the message here since (a) I didn't get any answer when
> posting it to the javaposse gmail address (b) comments are not enabled on
> the forums and (c) it might be of more general interest.
>
> Here it goes:
>
> Just wanted to chime in regarding references. The linked article sums up
> the main points, but just wanted to underscore the following:
>
> - in practice I found that Soft references are cleared out very late (in
> fact I couldn't create a scenario to force their clearing - I even tried
> pushing the VM memory to the limit) and I much more prefer WeakReferences
> which are almost guaranteed to be collected at a major collection (which is
> a good thing IMHO, but YMMV).
>
> - phantom references are/can indeed be used when we want to be notified
> that an object no longer exists, so that we can clean up some resource
> (think closing a DB connection or deleting a file). For an explanation and
> example code see the second example of this article: http://www.**
> javaadvent.com/2012/12/weak-**weaker-weakest-harnessing-**garbage.html<http://www.javaadvent.com/2012/12/weak-weaker-weakest-harnessing-garbage.html>
>
> Talking about the Java Advent calendar (see the smooth transition there?
> :-)), I want to run it again this year. This means an interesting article
> per day between the 1st and 24th of December on http://www.javaadvent.com/
>  **(and yes, it can be "Java related" - last year we had Kawa and NetRexx
> for example - so this year we could mention Scala and Clojure :-)).
>
> If you like the idea I would appreciate your help with this effort,
> especially:
> - writing articles (it would be great if some of you could write on some
> of the days)
> - getting the word out to your community that we are looking for
> contributors
> - getting the word out in general so that people who might be interested
> can find out about it.
>
> Also, since sending this email, there was a long discussion on the friend
> of JClarity list (http://www.jclarity.com/) where people of the caliber
> of Gil Tene of Azul fame chimed in. The discussion can be summed up as:
> don't use SoftReferences. Here is the link to the thread for your reading
> pleasure:
> https://groups.google.com/a/jclarity.com/forum/#!topic/friends/sBuCd1GmbKE
>
> Attila
>
> --
> You received this message because you are subscribed to the Google Groups
> "Java Posse" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to javaposse+unsubscr...@googlegroups.com.
> To post to this group, send email to javaposse@googlegroups.com.
> Visit this group at http://groups.google.com/group/javaposse.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups "Java 
Posse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to javaposse+unsubscr...@googlegroups.com.
To post to this group, send email to javaposse@googlegroups.com.
Visit this group at http://groups.google.com/group/javaposse.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to