Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation #21

Open
bjmtrk opened this issue Jan 29, 2016 · 1 comment
Open

Documentation #21

bjmtrk opened this issue Jan 29, 2016 · 1 comment

Comments

@bjmtrk
Copy link

bjmtrk commented Jan 29, 2016

Hi,
Is there a documentation talking about the source code like an API documentation?

I am developing a structure like:
Given that Const is a subtype of Exp
f{T<:Exp}(x::T,y ::T ) = Composite(x,y)
f(x::Const,y::Const) => here I look for optimization cases where Const(0.0) or Const(1.0) and in the fall back case , I need to call f{T<:Exp}(x::T,y ::T ).

This definitely needs this sort of dispatch. I developed my own expression tree matching system. however i need to develop a decision tree and linearization scheme like yours? So If there is a document about the process, it would be awesome.

Or at least, an explanation about each type or jl file that you use in your code would be a nice thing.

Thanks

@toivoh
Copy link
Owner

toivoh commented Feb 7, 2016

Hi, sorry for the late reply, have been away without internet for a while.
Unfortunately, there's not really any documentation besides the source itself. It's been a while since I wrote this so I don't quite remember how everything fits together either, but if you make some more specific questions I might be able to answer them.

2 years ago I was working an a major overhaul of the package, but it never quite got to the state where I was happy to release it. It's really a reimplementation using a somewhat different design for the internals, but I also made an effort to document more of the working principles for that design. You can find it in the readme for https://github.com/toivoh/PatternDispatch.jl/tree/new_pattern. Perhaps it might give some insight?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants