Skip to content

trouble with type inferenceΒ #10

@cscherrer

Description

@cscherrer

Hi, in you Future Work section, you say

Julia's type-inference seems to have quite some trouble inferring through the core algorithms of ExtensibleEffects. Hence in case type-inference and speed is crucial to your effectful/monadic code, we recommend to use TypeClasses.jl as of now. The monads of TypeClasses.jl do not compose that well as the effects in ExtensibleEffects.jl, but type-inference is much simpler.

Do you see this problem across the package, or only for some types of effects? Do you have a small-ish "this really ought to work better" kind of example?

I have a couple of reasons for asking. First, I've been having some discussions with Ari Katz (I forget his username, so I'll tag him later). Ari mentioned your package and also Minijyro.jl and it seems like this approach might work well for Tilde.jl, especially given Pyro's success in this direction.

We're also both very interested in static computations, including type inference. I won't speak for Ari, but I'm no compiler expert myself - just a user who hopes the compiler can have strong support for idioms from some other languages, especially staged compilation and FP.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions