News for hackers. Stuff that matters.
Re:Typedefs by breck on Wednesday November 04, 2020 @05:54PM (#24993917)
I like this project, and have followed it for a couple of years.

I have a prediction for this space.

I think we will see a DSL for type defs like typedefs.com (but not quite typedefs.com—too complex), arise that becomes really popular and becomes the "English" of the Standards Organizations worlds.

Sort of like DefinitelyTyped or Schema.org but 1,000x+ bigger.

It won't be because everyone will finally come together and agree on a language for types. That would suffer from the https://xkcd.com/927/ problem.

Rather someone will discover some simple and beautiful way to define types that has significant technical advantages to existing standards and will spread like wildfire.

Re:Typedefs by wires on Thursday November 05, 2020 @08:44AM (#24998138)
Thanks for the comment, this is indeed the vision. We still have a lot of work to do in terms of making the language very user friendly. But theoretically speaking F-Algebra's seem like a good candidate theory for such a language (Typedefs is currently using F-Algebra's, but we started the project thinking about Polynomial Functors as a base theory- and this is still ongoing research).
Re:Typedefs by breck on Thursday November 05, 2020 @11:12AM (#24999417)
Cool! Thanks for the comment. As I said have been a fan of this project (sidenote: love the name and simple, well designed site).

I have played around with a language dubbed WWT (for "World Wide Types") https://jtree.treenotation.org/designer/#standard%20wwt). Instead of starting with the type system and working my way toward the user have gone the other way starting with the "what would the simplest language look like for building types" and worked my way toward the type system (just compiles to TypeScript for now). My thought is it should be editable in Excel.

What I think needs to happen for TypeDefs (or similar) to nail this, is to create a type language that solves the "last mile" problem. Every organization in the world has their own perspective on things, and will need to extend/modify some global CommonTypes repository. So a great type language would be something that worldwide CommonTypes could be defined in, but that is easy for a dev at the local real estate agent's office to write some code and extend. An "HTML for Types" in that sense. Just a guess.