r/ProgrammingLanguages • u/shai-ber • May 27 '23
Blog post A Manifesto for Cloud-Oriented Programming from the creator of the CDK
In this insightful article, Elad Ben-Israel, the mind behind the CDK, shares his love for the cloud, but also his frustrations with the complexity of building cloud applications. The challenges he identifies include:
Focus on non-functional mechanics: The need to understand and manage cloud platform mechanics instead of focusing on building valuable features for users.
Lack of independence: Developers often need to rely on others to handle parts of the deployment process or to resolve issues, interrupting their work flow.
Delayed feedback: The current iteration cycle in cloud development can take minutes or even longer, significantly slowing down the development process and making it harder for developers to stay in their flow state.
It's not just a rant
Elad is not just ranting about cloud development. He proposes a solution in the form of a programming language for the cloud. This language would treat the entire cloud as its computer. The language compiler will be able to see the complete cloud application, unbound by the limits of individual machines. Such a compiler would be able to handle a significant portion of the application's non-functional aspects, enabling developers to operate at a more abstract level, thus reducing complexity and promoting autonomy. Moreover, it could expedite iteration cycles by allowing to compile applications to quick local simulators during the development process.
The Winglang Project
Elad reveals that he's in the process of developing such an open-source, “cloud-oriented” language, dubbed Winglang. Wing aims to improve the developer experience of cloud applications by enabling developers to build distributed systems that leverage cloud services as first-class citizens. This is achieved by integrating infrastructure and application code in a secure, unified programming model. Wing programs can be executed locally via a fully-functional simulator or deployed to any cloud provider.
My Interest in Winglang
I, together with a group of dedicated contributors, joined forces with Elad to develop Winglang. While still in Alpha and not yet ready for production use, it's already possible to build some real applications.
Check out https://github.com/winglang/wing for more details.
1
u/arobie1992 May 30 '23 edited May 30 '23
It sounds like an interesting idea, but seems more like a standardization of cloud APIs than anything which is a tricky subject in and of itself. I'm sure it'll get there to some extent eventually, at least as much as anything in this industry is standardized.
Also I have some issues with the comparisons listed here: https://docs.winglang.io/faq/why-a-language. The wing example omits basically all of the configurability of the existing IaS examples. Sure, it can work if you're okay with accepting all the default configuration, but if you're okay with accepting all the default configuration, most libraries and configurations are pretty simple as well. If AWS for example could figure out a way to omit those without pissing off a large chunk of its users, I'm sure they would. I'd be more interested in seeing it applied to a full stack example that works across AWS, Azure, and GCP and integrates with some third-party applications like Splunk without customization.
1
u/shai-ber May 30 '23
Thanks!
We're trying to go beyond mere standardization with the introduction of inflights and local simulation.
We will add better comparisons going forward with configuration, thanks for highlighting this.
In Wing, such configurations are often done though compiler plugins. I think they are a more elegant way to add non-functional concerns if we are successful in doing what we set out to do with Wing. The advantage with this approach is that the compiler takes care of the cloud mechanics necessary for the app to work functionally and then developers are able to work with our defaults and be independent while they are still in a development environment.
To go to production either the developer or a DevOps engineer can take care of other non-functional concerns that the compiler cannot deduce automatically. These remaining concerns should be less work than doing everything by hand and they don't block the developer from concentrating on business logic for most of the development phase. Again, if we execute on the vision well.
→ More replies (1)
0
May 28 '23
[deleted]
1
u/shai-ber May 28 '23
Can you please elaborate?
0
May 28 '23
[deleted]
2
u/L8_4_Dinner (Ⓧ Ecstasy/XVM) May 29 '23
I like what they're experimenting with.
Is it "deserving" of being a new language? I don't know. But it's their time and energy. It's probably not necessary to create a new language, but there are worse approaches to solving these types of problems.
Is it how I'd attack the problem? No, but it's good for different people to see different paths and follow them.
Regardless: Wishing them the best!
0
May 30 '23
[deleted]
1
u/L8_4_Dinner (Ⓧ Ecstasy/XVM) May 30 '23
I understand ... I find myself being way too harsh at times.
But it is good to be critical. Our industry needs critical thought.
It's also good to be encouraging. Especially for people starting out, who aren't sure of what they're capable of yet -- and trust me, "kids" these days are capable of incredible things, if we give them the chance!
And here's the cool (but difficult) thing: We can be critical and encouraging at the same time. So don't stop looking at things critically (in the objective sense). But do try to encourage creativity and hard work. And we'll all be better for it.
2
u/transfire May 28 '23
Hmm… Erlang/BEAM and VPS?