Saturday, May 27, 2023

Cloud-Oriented Programming language: "Wing"

not a good interview (slow and disorganized), but an interesting tool

from creator of AWS CDK, a new 

custom prog. language that compiles to Terraform + TypeScript, something like that... 

 Cloud-Oriented Programming (Part 2) with Elad Ben-Israel - Software Engineering Daily


Wing Programming Language

"Infrastructure and code in one language"


Welcome! | Wing (docs)

bring cloud;

let queue = new cloud.Queue(timeout: 2m);
let bucket = new cloud.Bucket();
let counter = new cloud.Counter(initial: 100);

queue.add_consumer(inflight (body: str): str => {
let next = counter.inc();
let key = "myfile-${next}.txt";
bucket.put(key, body);
});



No comments: