posix_monad
Joined 2 years ago
Joined 2 years ago
What we want to express here is an object with a map of properties (name to type):
string Type map
For the OOP minded: Map<string, Type>
And also compose those: type Foo = { "_foo", int }
type Bar = { "_bar", string }
type FooBar = mergeMaps Foo Bar
But at compile-time, of course.Have any languages achieved this? I know TypeScript can do some of these things, but it's clunky.
You need to create:
- Grammar, parser, compiler, interpreter (delete as appropriate)
- Editor plugins for nice syntax highlighting
- Language server
- Packages for common things
- Nice website (or no one will use it)
- etc...
So the pressure is always to shoe-horn a big existing language into you problem. Maybe you can build a nice library if your language has decent syntax (or little to no syntax). If you have an AST representation, you probably dump it to JSON etc.
I am curious if any projects are trying to make this easier.
How do we deploy a list of certificates that a service should accept?
How do we do certificate rotation and revocation?
The last era where we had this kind of society, was probably the 70s and we are still recycling the cultural artefacts of that time.