Giter Club home page Giter Club logo

Comments (4)

mkery avatar mkery commented on July 4, 2024

Ok, I've decoupled the pieces in Typescript, but for performance, a bunch of analysis operations from lilgit Typescript side really need to be offloaded to python.

from verdant.

mkery avatar mkery commented on July 4, 2024

Current APIs operations:

  • Utils
    • findNodeAtRange
    • inRange
    • reduceASTDict (could be done at parsing stage?)
    • dictToCodeCellNodey (why is this needed?)
  • Match [Py]
    • recieve_newVersion
    • finalizeMatch
    • grabUnmatchedParents
    • matchParentNodes
    • scoreMatch
    • matchLeaves
    • findMatchOptions
    • buildStarNode
    • matchLiterals
    • forceReplace
  • Resolve
    • repairMarkdown
    • repairCellAST
    • shiftAllAfter
    • shiftAllChildren
    • dictToNodeyList
    • nodeyToLeaves
  • coldStart [Ts] is for when we start a notebook with no prior history
  • hot start [Ts] is for when we start a notebook with prior history and want to match on init
  • freshNodey & createCellNodey (can probably be combined?)
    • generateCodeNodey is different how?
  • repairCell (why are we repairing only at the cell level???)
    • repairCodeCell
  • parseRequest [Ts]
  • failSafeParse [Py]
  • cleanCodeString [Ts]

from verdant.

mkery avatar mkery commented on July 4, 2024

Seeing some formatting on the Ts end that should be handled in the original parsing:

if ("type" in dict === false) {
      dict.type = "Module";
    }

Also, need to return safe defaults from parsing if an error occurs.

from verdant.

mkery avatar mkery commented on July 4, 2024

Next step: isolate everything out that should be moved to Py, and make sure app works with no Py language support ... ie, how the app will work with Julia or R, make sure that safe default behavior works well, and that will ensure the language support API is cleanly separated

from verdant.

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.