nuprl / retic_performance

Performance evaluation of Reticulated Python
MIT License
3 stars 1 forks source link

retic blames well typed programs? #89

Closed bennn closed 7 years ago

bennn commented 7 years ago

Translate this example to the calculus from their POPL'17 paper. What happens?

def dynint()->Dyn:
  return "NaN"

def make_list()->List(Int):
  return [dynint()]

def f(xs:List(Int))->Int:
  return xs[0] + 1

f(make_list())

Running in reticulated:

Reading about dereferences (x[0]) in their calculus:

NOTE "coercion" and "cast" are my own words, I'm not sure that's exactly what they say in the paper.

bennn commented 7 years ago

Nope no evidence of this