Git Product home page Git Product logo

Comments (3)

SergeBredin avatar SergeBredin commented on August 25, 2024

Why Koala algorithm reevaluates each time ??

Le 27 avr. 2016 à 14:48, iOiurson [email protected] a écrit :

Formulas like:
=(totalDecom-SUM(INDEX(FA_RecCostsDecom;1;1):INDEX(FA_RecCostsDecom;1;CA_Periods-1)))*Deprec_UOPRates when calculated on a cell referenced as FA_RecCostsDecom triggers infinite loop.

This is because currently our koala algorithm reevaluates a range each time it sees it in a formula.
A good way to handle this would be to store Ranges (in a koala sense) in a Spreadsheet.range_dict object so that when koala encounters a Range it already knows, it can directly use the values without reevaluating the Range (then avoiding the infinite loop).

2 problems though:

this means the way to initialize Ranges must be adjusted so that a Range is created in the dict on the first element inserted (otherwise the previous formula wouldn't work either)
this might be a lot of effort for a few cases, since this might not happen that many times

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub #8

from koala.

bleucitron avatar bleucitron commented on August 25, 2024

Imagine the case:
In cell A1 you write =A1, koala would compile this into eval_cell('A1'), leading to an infinite loop.
Excel prevents this behaviour by displaying a warning, explaing how to treat Circular references.

But in our case, this is not a real circular reference, since we call the previous cell in the current range. Still, koala doesn't how to compile this, and will end up looping infinitely.

from koala.

SergeBredin avatar SergeBredin commented on August 25, 2024

Sorry, I thought you were speaking about reevaluating each range for each call

Le 27 avr. 2016 à 14:56, iOiurson [email protected] a écrit :

Imagine the case:
In cell A1 you write =A1, koala would compile this into eval_cell('A1'), leading to an infinite loop.
Excel prevents this behaviour by displaying a warning, explaing how to treat Circular references.

But in our case, this is not a real circular reference, since we call the previous cell in the current range. Still, koala doesn't how to compile this, and will end up looping infinitely.


You are receiving this because you commented.
Reply to this email directly or view it on GitHub #8 (comment)

from koala.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.