Coder Social home page Coder Social logo

Comments (7)

marnovo avatar marnovo commented on September 2, 2024

[OKRs Review]:

@dennwc @smola @mcuadros to review/clarify [P2] Structural pointers.

from okrs.

marnovo avatar marnovo commented on September 2, 2024

[OKRs Review]: Removing link to #23 since too low level for OKRs.

from okrs.

juanjux avatar juanjux commented on September 2, 2024

Status as of friday 29th of june:

  • Higher level apis unneeded since the semantic objects are in the exported UAST.
  • Higher level categories for nodes are defined and implemented, but in PR state in the SDK v2 semantic branch (so not done, but close).
  • Structural pointers are not done.

from okrs.

dennwc avatar dennwc commented on September 2, 2024

Update regarding structural pointers. I think we can safely drop them from the list of objectives, because:

  • If the meaning of the node is known and it's worth to represent it in UAST we can define it as a high-level type instead of roles + structural pointers.
  • If the node is unique and exists only in one language, than it doesn't make sense to define roles for it, thus structural pointer will have no effect.

from okrs.

juanjux avatar juanjux commented on September 2, 2024

@dennwc structural pointers are for relational analysis of AST nodes which is a different problem than the one the high level types solve.

from okrs.

dennwc avatar dennwc commented on September 2, 2024

@juanjux Not sure what you mean by this. Can you elaborate?

Structural pointers were meant to solve ambiguity for native AST nodes by presenting the pointer to a "structural root". High-level types solve this because there is no ambiguity. If you have a function name, you will always recognize it because the structure of function declarations is unified.

from okrs.

juanjux avatar juanjux commented on September 2, 2024

Structural pointer were for defining the semantic root of a node so a researcher could do, for example, analysis about how different languages organize the trees of common objects (without ambiguity) but were not intended to be the solution for high level concepts, for that before the latest changes with the new DSL the idea from the meetings was to have a set of standard functions implemented by each driver that would return the objects of a specific type with an unified structure.

from okrs.

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.