Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipse-incubator-e4-dev] Interesting article on modelling with prototype-based leanings

Hi Markus,

> I once did some calculations for a simple Hashmap implementation versus
> just using instance variables. See my old blog
> at http://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/5163

interesting post. EMF is something in between. If you use
generated classes (fixed properties), the overhead is 4
additional object attributes. In case of dynamic EMF you
are much better than using HashMaps, because the attributes
are stored in an array and the key (IStructuralFeature) has
an index into that array (I am sure Ed can give some
numbers here). So, with EMF you have the choice
between dynamic and fixed properties and you can
mix both approaches.....

Unfortunately EMF is not good at delegating non existing
properties to another instance. Just two weeks ago I
worked with a colleague on an extension of EMF that
allows this (in fact it adds a kind of aspects (AOP) to
EMF that allows interception of the set/get methods).

>     http://steve-yegge.blogspot.com/2008/10/universal-design-pattern.html

Pretty interesting article but quite long -- I started reading
but after 30 min I decided to "fast read" the rest...


Michael


Hi all,
I agree that's an interesting post. But Steve IMHO doesn't point out that the main problem with this approach is that it can have a high memory overhead. I once did some calculations for a simple Hashmap implementation versus just using instance variables. See my old blog at http://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/5163

Regards,
Markus

On Mon, Oct 20, 2008 at 5:44 PM, Simon Kaegi <Simon_Kaegi@xxxxxxxxxx <mailto:Simon_Kaegi@xxxxxxxxxx>> wrote:

    http://steve-yegge.blogspot.com/2008/10/universal-design-pattern.html


    _______________________________________________
    eclipse-incubator-e4-dev mailing list
    eclipse-incubator-e4-dev@xxxxxxxxxxx
    <mailto:eclipse-incubator-e4-dev@xxxxxxxxxxx>
    https://dev.eclipse.org/mailman/listinfo/eclipse-incubator-e4-dev



------------------------------------------------------------------------

_______________________________________________
eclipse-incubator-e4-dev mailing list
eclipse-incubator-e4-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipse-incubator-e4-dev



Back to the top