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
3
u/Inconstant_Moo 🧿 Pipefish Oct 16 '26
It sounds like my
externalkeyword covers what you want to do, though not how you want to do it.A Pipefish app can either do
import "filepath/to/service/foo.pf"orexternal "url/path/to/service/foo"and then can call public functions the same way,foo.qux(x), with the functions in the external service working syntactically and semantically as though you'd imported the libraryfoo. You can decompose your monolith into microservices in minutes (and, better still, put it back together again just as quickly when your manager learns what "latency" is).The reason this is possible is that all values in Pipefish are immutable, otherwise you'd have a problem where service
footells the client "You know that mutable value you gave me yesterday? I just mutated it ... oh, you're offline? Welp, I'm off to share the news with all the other services I passed it to", and then things become stupid.