posix_monad
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?
Ask HN: How do you approach service-to-service authentication?
Services often need to talk to each-other, but how should they control access?In an ideal world, callers can prove who they are to services and services only grant access to a minimal set of consumers. There should be low boiler-plate for maintaining service identities and things like token revocation, secret rotation, etc. should be "easy". Bonus points for avoiding vendor lock-in.What...
Economic impacts of mortgage credit expansion policies
Brown's golden shot was not the miss his critics would have you believe (2015)
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.
You cannot ask it to build a complex system and then use the output as-is. It's not enough to replace developer knowledge, but it also inhibits acquiring developer knowledge.
UK's Right-Wing Reform Party Floats Overhaul of BOE's QE Program
There are Microsoft-backed F# bindings for Spark and Torch, but no one seems interested. And this is despite a pretty compelling proposition of lightweight syntax, strong typing, script-ability and great performance.
The answer will probably be JavaScript.
Everyone already knows the language - all that's missing is operator overloading and a few key bindings.
Static single assignment for functional programmers (2011)
It would be nice, but this is really hard to do when modern software has so many layers of crud. Good luck getting say, a PyTorch app, to work doing this without some serious time investment.
It will have to be executed on many different developer machines (or even your own machine several years in the future) so a simple, reproducible build process, including fetching pip dependencies, is critical.
- Python is not easy to build into portable binaries
- The package ecosystem is very hard to use in a reproducible way
- The language is not truly typed - types add massive value for infrastructure and scripts because they are less likely to be unit-tested
- The lack of a "let" or "var" keyword makes simple programming errors more likely (again, this code is less likely to be unit-tested)
Maybe I'm missing something? I don't know why I would want to introduce Python in this domain.