News for hackers. Stuff that matters.
Re:Wing: A cloud-oriented programming language by OJFord on Monday December 19, 2022 @12:41PM (#34054961)
> If I give you a function that I want you to deploy to a lambda. Can you do this with a pure JS library? No.

I'm not sure if you're making some distinction I'm not following, but yes? One of them is called 'AWS SDK for JavaScript'?

Re:Wing: A cloud-oriented programming language by nirga on Monday December 19, 2022 @01:24PM (#34055613)
Not exactly, cause you need to manage state or something (you don’t want to reprovision every time you run the code probably). So you’ll need to do some sort of “compilation”
Re:Wing: A cloud-oriented programming language by OJFord on Monday December 19, 2022 @04:22PM (#34057897)
How does compilation remove the need to manage state? I'm not at all precious about JS, let's do it with the AWS SDK for C++ library instead?
Re:Wing: A cloud-oriented programming language by Garlef on Tuesday December 20, 2022 @07:00PM (#34074751)
Sry. I should have been more explicit:

Let's say you are writing JS and you have

`const handler = ...`

You can not do something like

`const lambda = deployLambda(handler)`

on the next line.

Instead you need a deployment package. And to build this, you need to leave JS and involve some CI code and some IaC tool.

But wing enables you to just do that. (seemingly, I've not tried it yet)