There could be more linear and "resource-aware" type systems coming down the pipes through research. These would allow the type checker to show performance / resource information. Check out Resource Aware ML.https://www.raml.co/about/
https://arxiv.org/abs/2205.15211
amw-zero|1 month ago