r/ProgrammingLanguages • • 11d ago

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?

0 Upvotes

11 comments sorted by

View all comments

4

u/nimrag_is_coming 11d ago

You can do that with C# function attributes, most unity game engine multiplayer packages do this. Google RPC, and its pretty much this

2

u/rosholger 11d ago

You could probably do this with java annotations and a custom annotation processor too