slang icon indicating copy to clipboard operation
slang copied to clipboard

Write proposal for simplifying/formalizing/enhancing slang's type system

Open expipiplus1 opened this issue 1 year ago • 2 comments

Hopefully will cover such topics as:

  • How far can we write down and specify in documentation Slang's existing type system, having a set of typing judgements for Slang programs in one place would be an invaluable tool to guide type system enhancements and implementation.
  • What inconsistencies or holes can we fill in our existing type system
  • Is it possible and desirable to perform more type inference, and how far can it be made compatible with existing code
  • Is it possible to restrain or more accurately specify tricky topics such as implicit casts and function overloading.
  • What type system enhancements could we introduce with the goal of improving safety and runtime performance?

And work towards an implementation plan for some or all of these

expipiplus1 avatar Oct 08 '24 15:10 expipiplus1

For type system formalization, please make sure to work with @tangent-vector to see if you should collaborate on the formal spec work that she is working on: https://github.com/shader-slang/spec

csyonghe avatar Oct 09 '24 23:10 csyonghe

We should prioritize documenting the existing type system in the current quarter. Will likely do enhancements going forward.

bmillsNV avatar Oct 10 '24 19:10 bmillsNV