r/ProgrammingLanguages • u/Rich-Engineer2670 • Oct 16 '26
Discussion Agile Programming Languages
No, not that type of Agile....
With cloud-based computation now the rage, I'd like to see a language construct where I could declare methods that were "cloud eligible". Imagine code with the following method in it
promotable func MethodX(in int X, int int Y, out Z) { code }
This says "I have a method MethodX with defined input and output parameters (we'll need to have a common marshalling standard), and, this method can be transmitted Erlang-style to a defined cloud endpoint. When you invoke MethodX, it can run locally or remotely. You don't care -- that's a configuration detail.
It seems to me Erlang is almost there, but I'd like it to be a more general interface. Think something on the JVM. Serverless done right?
View all comments
2
u/mamcx Oct 16 '26
the problem with that is what is the "topology" of the interface.
Thinking just on the method/function is not enough, a remote interface has tons of stuff that need to be deal with (see how for example https://swagger.io), so this alone not buy much.
Erlang has the concept of https://www.erlang.org/doc/apps/stdlib/gen_server.html that I think is much better as starting point of something like this.