[ioke-dev] Re: Data structure melee

  • From: Ola Bini <ola.bini@gmail.com>
  • To: Kosta Welke <kosta@fillibach.de>
  • Cc: dev@ioke.kenai.com, ioke-language@googlegroups.com
  • Subject: [ioke-dev] Re: Data structure melee
  • Date: Thu, 29 Jan 2009 14:15:48 +0100
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=XrYzUWJpe3f/5w6FvDabPpFeTPxhtu0n0UOmvM+DD+xMReArmacMGUFPrJ1jVnnogM ejQc9D+D+zM7ZslsrMHU1t0WP/wXfn2OE8DzCuPOhqFH5f2c+KgbTb15OUymNYLWE/+W O/AXiAbOgF4eQGciL2c7RvwmvBektiQXrvIoc=

Kosta Welke wrote:
On Thu, 29 Jan 2009 13:43:00 +0100, Ola Bini <ola.bini@gmail.com> wrote:

So, as you know, I've been trying to find a good data structure to use for representations of cells in Ioke. This mail will first detail the problem/requirements, and then talk about my current ideas.
Ideas, thoughts?

I suppose you know Steve Yegges "Universal Design Pattern" blog entry? It exactly about that problem. He also uses Java to implement a protype language.

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

Short version: Use a an array up to a certain size, then a hashtable or a tree.

If you cache mimic cells that means you need some way to mark their children dirty, which means objects have a list of objects that mimic them. But it speeds up peformance.

I hope my summary is correct, I read it some time ago.

Kosta

I'm sorry, but that isn't the problem. His recommendation of data structures doesn't take inheritance into account. Take a look at the current structure in my mail again to see why. Steve mostly doesn't talk about this problem.

Cheers

--
Ola Bini (http://olabini.com) Ioke creator (http://ioke.org)
JRuby Core Developer (http://jruby.org)
Developer, ThoughtWorks Studios (http://studios.thoughtworks.com)
Practical JRuby on Rails (http://apress.com/book/view/9781590598818)

"Yields falsehood when quined" yields falsehood when quined.




[ioke-dev] Data structure melee

Ola Bini 01/29/2009

[ioke-dev] Re: Data structure melee

Kosta Welke 01/29/2009

[ioke-dev] Re: Data structure melee

Ola Bini 01/29/2009

[ioke-dev] Re: Data structure melee

Kosta Welke 01/30/2009

Message not available

Message not available

[ioke-dev] Re: Data structure melee

Kosta Welke 01/30/2009
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120127.ac94057)
 
 
Close
loading
Please Confirm
Close