Skip to content

Comment on An Inconsistent Truth: Next.js and Typesafety

Comments

It will happen. Eventually runtime / io typesafety will happen, just not yet. A good example of how this was solved in the past was Microsofts IUnknown interface where the type of a blob is determined after it is downloaded. It basically converts unknown to a type on access, but is just too heavy duty for bandwidth requirements in a runtime/JIT environment.

IUnknown was the base type for all COM interfaces. What does that have to do with downloads?

I was referring to memory bandwidth and processing bandwidth, not download bandwidth. Re-reading I can see how that is confusing.

It was also the base type for all DirectX interfaces. It effectively provides type info for a binary blob with implicit version information that could be used for extremely robust runtime data-typing. However there's all kinds of overhead associated with it, especially if the interface needs to be parsed constantly.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.