Skip to content

Use hegg to rewrite expressions when interpreting #126

Description

@mchav

This may help us avoid some redundant computations.

Activity

  1. mchav commented on Jan 15, 2026

    @mchav
    MemberAuthor

    I need to figure out how to make hegg more generic first. Consulting with @alt-romes.

  2. alt-romes commented on Jan 15, 2026

    @alt-romes

    I think that will be made possible by alt-romes/hegg#44.

    I would like to try that branch on a sample project with a sketch of what you mean to do.

  3. alt-romes commented on Jan 15, 2026

    @alt-romes

    Note: horde-ad also has the need for something like this, see Mikolaj/horde-ad#103. I want to get it right for all these use cases

  4. mchav commented on Jan 15, 2026

    @mchav
    MemberAuthor

    Okay. I'll leave a sample gist that doesn't compile in the comments.

  5. mchav commented on Jan 22, 2026

    @mchav
    MemberAuthor

    @alt-romes I fought with it the whole morning and doing something that looks like dynamic typing.

    The gist with hegg: https://github.com/proxy/gist.github.com/mchav/6747a2ab3db17745faa55ef0aba3f983

  6. mchav commented on Jan 22, 2026

    @mchav
    MemberAuthor

    I'll proceed with this approach until we figured out indexed types.

  7. mchav commented on Jan 23, 2026

    @mchav
    MemberAuthor

    @alt-romes I've changed the implementation to be pretty dynamic using type.reflection similar to how I do it from data frame.

    This means the operations can be polymorphic but the type universe is still somewhat closed.

    Can you take a look at the gist again?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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