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

WIP: more complete function application for case-> #757

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from

Commits on Aug 15, 2018

  1. more complete function application

    i.e. when applying a case->, the result is the intersection of
    each applicable range.
    
    Here are some quickly gathered performance results from this change:
    
    Compile time ratio (old time / new time):
    schml-specify-rep: 0.99 (i.e. slower, 8.63s (σ 0.09) to 8.72s (σ 0.05))
    schml-interp-casts-help: 1.01 (i.e. faster, 20.05s (σ 0.24) to 19.77s (σ 0.01))
    parser: 0.95 (i.e. slower, 2.22s (σ 0.05) to 2.33s (σ 0.09))
    old-metrics: 0.96 (i.e. slower, 2.68s (σ 0.04) to 2.78s (σ 0.09))
    new-metrics: 0.98 (i.e. slower, 3.61s (σ 0.02) to 3.7s (σ 0.08))
    math-flonum: 0.98 (i.e. slower, 3.76s (σ 0.02) to 3.83s (σ 0.08))
    fsm: 0.94 (i.e. slower, 4.91s (σ 0.09) to 5.22s (σ 0.19))
    forth: 0.97 (i.e. slower, 4.87s (σ 0.18) to 5.01s (σ 0.01))
    dungeon: 0.95 (i.e. slower, 8.64s (σ 0.11) to 9.11s (σ 0.18))
    bernoulli: 0.95 (i.e. slower, 3.95s (σ 0.04) to 4.16s (σ 0.09))
    acquire: 0.96 (i.e. slower, 15.53s (σ 0.23) to 16.2s (σ 0.08))
    
    And for the math library, compile time increased from 2m28.281s
    to 2m40.492s.
    
    Note that some primtives (i.e. like those which operate on the
    numeric tower) currently have quite verbose function types which
    can be greatly simplified after this change is adopted.
    pnwamk committed Aug 15, 2018
    Configuration menu
    Copy the full SHA
    b2c6654 View commit details
    Browse the repository at this point in the history
  2. simplify add1 type

    pnwamk committed Aug 15, 2018
    Configuration menu
    Copy the full SHA
    9c90969 View commit details
    Browse the repository at this point in the history
  3. simplify sub1 type

    pnwamk committed Aug 15, 2018
    Configuration menu
    Copy the full SHA
    4859c46 View commit details
    Browse the repository at this point in the history
  4. simplify abs type

    pnwamk committed Aug 15, 2018
    Configuration menu
    Copy the full SHA
    ccb69f2 View commit details
    Browse the repository at this point in the history
  5. simplify + type

    pnwamk committed Aug 15, 2018
    Configuration menu
    Copy the full SHA
    6e0e975 View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2018

  1. improve subtyping

    pnwamk committed Aug 16, 2018
    Configuration menu
    Copy the full SHA
    b17ef07 View commit details
    Browse the repository at this point in the history
  2. initial, really slow inference

    pnwamk committed Aug 16, 2018
    Configuration menu
    Copy the full SHA
    3691f96 View commit details
    Browse the repository at this point in the history