Conversation

This Tweet was deleted by the Tweet author. Learn more
This Tweet was deleted by the Tweet author. Learn more
This Tweet was deleted by the Tweet author. Learn more
This Tweet was deleted by the Tweet author. Learn more
Explicitly supporting platform-specific code is good. How to define “platform” is important—build/host/target+CPU+OS+…? I generally want to choose from a short list of coarse-grained supported platforms (arch+OS) or depend on fine-grained platform features (OS APIs, CPU insns).
1
2
I want to do the latter in Kitten—platform constraints as constraints on functions—partly because it’s more flexible, partly so that it’s more of a first-class thing in the type system, but tbh largely because I don’t know where to draw lines—posix, linux, gnu/linux, ubuntu…?
2
2