Giter Site home page Giter Site logo

Comments (2)

mame avatar mame commented on August 10, 2024

The order was reversed due to topological sort of classes declared in RBS (to process a superclass earlier, a subclass later).

Now, TypeProf outputs Matrix, Vector, and ExceptionForMatrix. This is because TypeProf defines Matrix and Vector based on matrix.rbs, and then defines ExceptionForMatrix based on lib/matrix.rb. I'm unsure if this is the best order, but this is where things are currently.

$ time bundle exec exe/typeprof ../ruby/lib/matrix.rb matrix.rbs
# Classes
class Matrix
  ...
end

class Vector
 ...
end

module ExceptionForMatrix
  ...
end

real    0m6.422s
user    0m6.322s
sys     0m0.091s

BTW, I've investigated the performance bottleneck in analysis of matrix.rb, and found a heavy but useless calculation. By removing it, now the analysis takes about a few seconds. (But note that it may become longer again in future by further precision improvement.)

from typeprof.

marcandre avatar marcandre commented on August 10, 2024

Now, TypeProf outputs Matrix, Vector, and ExceptionForMatrix. This is because TypeProf defines Matrix and Vector based on matrix.rbs, and then defines ExceptionForMatrix based on lib/matrix.rb. I'm unsure if this is the best order

Sounds perfect! 👍

from typeprof.

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.