inducer / loopy

A code generator for array-based code on CPUs and GPUs
http://mathema.tician.de/software/loopy
MIT License
587 stars 73 forks source link

Improve type inference #47

Closed inducer closed 7 years ago

inducer commented 8 years ago

For now, type inference falls flat for cases like this:

<> z = 0
z = z + (initially unknown type)

(it just derives the type of zero)

inducer commented 8 years ago

Fixed point iteration might do the job, or else do this properly and implement Hindley-Milner.

inducer commented 7 years ago

Done as of 6995a1ad1aefaa337b289462a67e8f023d2c6501.