Thread overview
Run D on AWS Lambda
Jul 26, 2015
Laeeth Isharc
Jul 26, 2015
Rikki Cattermole
Jul 26, 2015
Laeeth Isharc
Jul 26, 2015
Martin Nowak
Jul 26, 2015
Laeeth Isharc
Jul 26, 2015
Laeeth Isharc
Oct 11, 2015
Laeeth Isharc
July 26, 2015
https://aws.amazon.com/lambda/
https://github.com/Laeeth/awslambda_d
http://blog.0x82.com/2014/11/24/aws-lambda-functions-in-go/
No proper docs yet, but you can figure it out from the go example.
July 26, 2015
On 26/07/2015 3:55 p.m., Laeeth Isharc wrote:
> https://aws.amazon.com/lambda/
> https://github.com/Laeeth/awslambda_d
> http://blog.0x82.com/2014/11/24/aws-lambda-functions-in-go/
> No proper docs yet, but you can figure it out from the go example.

FYI, based upon what I could find, it is using Amazon Linux[0] x64.
So because right now we cannot cross compile really, linux has to be host OS to build these with D, locally atleast.

[0] http://aws.amazon.com/amazon-linux-ami/
July 26, 2015
On Sunday, 26 July 2015 at 03:55:17 UTC, Laeeth Isharc wrote:
> https://aws.amazon.com/lambda/
> https://github.com/Laeeth/awslambda_d
> http://blog.0x82.com/2014/11/24/aws-lambda-functions-in-go/
> No proper docs yet, but you can figure it out from the go example.

Please take the time to write the damn docs and a small article.
If you don't know where to host it, you can write a guest entry on my blog https://code.dawg.eu/.
July 26, 2015
On Sunday, 26 July 2015 at 05:47:04 UTC, Martin Nowak wrote:
> On Sunday, 26 July 2015 at 03:55:17 UTC, Laeeth Isharc wrote:
>> https://aws.amazon.com/lambda/
>> https://github.com/Laeeth/awslambda_d
>> http://blog.0x82.com/2014/11/24/aws-lambda-functions-in-go/
>> No proper docs yet, but you can figure it out from the go example.
>
> Please take the time to write the damn docs and a small article.
> If you don't know where to host it, you can write a guest entry on my blog https://code.dawg.eu/.

Since you took the time to help me, I will do, Martin.  But it may take me a little while due to health things and personal commitments, and I wanted to put something up whilst it was fresh.  'Mathematically trivial', but took me a while of fiddling around to get it to work.


Laeeth.
July 26, 2015
On Sunday, 26 July 2015 at 04:21:44 UTC, Rikki Cattermole wrote:
> On 26/07/2015 3:55 p.m., Laeeth Isharc wrote:
>> https://aws.amazon.com/lambda/
>> https://github.com/Laeeth/awslambda_d
>> http://blog.0x82.com/2014/11/24/aws-lambda-functions-in-go/
>> No proper docs yet, but you can figure it out from the go example.
>
> FYI, based upon what I could find, it is using Amazon Linux[0] x64.
> So because right now we cannot cross compile really, linux has to be host OS to build these with D, locally atleast.
>
> [0] http://aws.amazon.com/amazon-linux-ami/

I guess you are right, and I should make that clear in the writeup.  On the other hand, it's not very difficult to find an inexpensive linux virtual machine (and AWS is one way, although digital ocean seem the best value solid solution) to build it.
July 26, 2015
On Sunday, 26 July 2015 at 05:47:04 UTC, Martin Nowak wrote:
> On Sunday, 26 July 2015 at 03:55:17 UTC, Laeeth Isharc wrote:
>> https://aws.amazon.com/lambda/
>> https://github.com/Laeeth/awslambda_d
>> http://blog.0x82.com/2014/11/24/aws-lambda-functions-in-go/
>> No proper docs yet, but you can figure it out from the go example.
>
> Please take the time to write the damn docs and a small article.
> If you don't know where to host it, you can write a guest entry on my blog https://code.dawg.eu/.

(I also wanted to figure out how to get static linking of phobos working first, as putting libraries in the zip doesn't seem a solid solution.  All this stuff is second nature to anyone who has been programming the past twenty years, but when I learnt C unix machines were expensive and not available to me and I barely used linux till 18 months ago.  So linker and compilation switches and linking models in general are still a bit mysterious to me).
October 11, 2015
On Sunday, 26 July 2015 at 03:55:17 UTC, Laeeth Isharc wrote:
> https://aws.amazon.com/lambda/
> https://github.com/Laeeth/awslambda_d
> http://blog.0x82.com/2014/11/24/aws-lambda-functions-in-go/
> No proper docs yet, but you can figure it out from the go example.

https://aws.amazon.com/about-aws/whats-new/2015/10/aws-lambda-supports-python-versioning-scheduled-jobs-and-5-minute-functions/

Now runs functions taking up to 5 minutes.  Also Python tasks.  (Already can run D - see above)