TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

New for AWS Lambda: Use Any Programming Language and Share Common Components

480 pointsby abd12over 6 years ago

23 comments

talawahtechover 6 years ago
<p><pre><code> We are making these open source runtimes available soon: C++[1] Rust[2] We are also working with our partners to provide more open source runtimes: Erlang (Alert Logic) Elixir (Alert Logic) Cobol (Blu Age) N|Solid (NodeSource) PHP (Stackery) </code></pre> There is also native Ruby support as well[3]<p>1. <a href="https:&#x2F;&#x2F;aws.amazon.com&#x2F;blogs&#x2F;compute&#x2F;introducing-the-c-lambda-runtime&#x2F;" rel="nofollow">https:&#x2F;&#x2F;aws.amazon.com&#x2F;blogs&#x2F;compute&#x2F;introducing-the-c-lambd...</a><p>2. <a href="https:&#x2F;&#x2F;aws.amazon.com&#x2F;blogs&#x2F;opensource&#x2F;rust-runtime-for-aws-lambda&#x2F;" rel="nofollow">https:&#x2F;&#x2F;aws.amazon.com&#x2F;blogs&#x2F;opensource&#x2F;rust-runtime-for-aws...</a><p>3. <a href="https:&#x2F;&#x2F;aws.amazon.com&#x2F;blogs&#x2F;compute&#x2F;announcing-ruby-support-for-aws-lambda&#x2F;" rel="nofollow">https:&#x2F;&#x2F;aws.amazon.com&#x2F;blogs&#x2F;compute&#x2F;announcing-ruby-support...</a>
评论 #18565328 未加载
评论 #18562843 未加载
评论 #18563211 未加载
评论 #18562338 未加载
评论 #18563999 未加载
talawahtechover 6 years ago
Several related lambda announcements to around structure&#x2F;reuse as well:<p>1. Lambda Layers - Reusable components that can be shared across lambda functions (covered in the linked article)<p>2. AWS (Serverless) Toolkits for PyCharm, IntelliJ &amp; VS Code - <a href="https:&#x2F;&#x2F;aws.amazon.com&#x2F;blogs&#x2F;aws&#x2F;new-aws-toolkits-for-pycharm-intellij-preview-and-visual-studio-code-preview&#x2F;" rel="nofollow">https:&#x2F;&#x2F;aws.amazon.com&#x2F;blogs&#x2F;aws&#x2F;new-aws-toolkits-for-pychar...</a><p>3. Nested Applications Using the AWS Serverless Application Repository - <a href="https:&#x2F;&#x2F;aws.amazon.com&#x2F;about-aws&#x2F;whats-new&#x2F;2018&#x2F;11&#x2F;sam-supports-nested-applications-using-serverless-application-repository&#x2F;" rel="nofollow">https:&#x2F;&#x2F;aws.amazon.com&#x2F;about-aws&#x2F;whats-new&#x2F;2018&#x2F;11&#x2F;sam-suppo...</a>
mncharityover 6 years ago
Has anyone seen discussion of the impact of serverless on programming-language <i>design</i>?<p>It relaxes constraints that have historically restricted the shape of viable languages. With massively-parallel deterministic compilation (like Stanford&#x27;s gg - which just got simpler to implement). Parallel distributed incremental shared type checking, like Facebook&#x27;s Hack. Language-community-wide sharing of compilation artifacts (sort-of like build images, or typescript&#x27;s type definition repos, or Coq&#x27;s proof repo).<p>&quot;That would be a nice language feature, but we don&#x27;t know how to compile it efficiently, so you can&#x27;t have it&quot; has been a crippling refrain for decades. &quot;[D]on&#x27;t know how to either parallelize or centrally cache it&quot; is a much lower bar. At least for open source.<p>This involves not just compiler tech in isolation, but also community organization for fine-grain code sharing. Any suggestions on things to look at?
yebyenover 6 years ago
Way to go, Ruby support!!!! I am irrationally excited about this, if I wanted to do Serverless Ruby up until now, my nearest options were (some community-supported thing with &quot;traveling ruby&quot; on AWS, or...) Kubeless, or Project Riff<p><a href="https:&#x2F;&#x2F;www.serverless-ruby.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.serverless-ruby.org&#x2F;</a><p>We&#x27;ve been waiting! I thought this would never happen. Eating major crow today, as I&#x27;ve assumed for a long time that AWS&#x27;s lack of Ruby support in Lambda was an intentional omission and sign that they are not our friends.<p>I will change my tone starting today!<p>(edit: Or Google Cloud Functions, or probably some other major ones I&#x27;ve missed...)
评论 #18563329 未加载
评论 #18565018 未加载
评论 #18565313 未加载
Tehnixover 6 years ago
I&#x27;m personally very hyped for using Haskell natively on Lambda! In the keynote he mentions the partner sponsored runtimes, and actually said &quot;Scala and Haskell, you&#x27;ll just have to bring your own!&quot; (as in, community effort).
评论 #18563730 未加载
评论 #18562883 未加载
评论 #18564224 未加载
评论 #18563349 未加载
评论 #18563304 未加载
评论 #18563167 未加载
评论 #18564301 未加载
mcintyre1994over 6 years ago
Layers sounds like a great solution to sharing code&#x2F;libraries. If anyone at AWS is here, will there be a way to pull them down for local testing? At the minute it&#x27;s trivial because you&#x27;re forced to pull all your dependencies into a single place you can zip them, and you can test them at that point - but will you still have to do that if you want to test locally with layers?
评论 #18564443 未加载
评论 #18565739 未加载
matchagauchoover 6 years ago
Awesome. Our &quot;Distributed Monolith&quot; problems are now solved.<p>We have so many Lambdas that share common Java JAR libs.<p>Lambda Layers appears to solve our reuse and deployment headaches.
评论 #18563637 未加载
dacmover 6 years ago
We&#x27;ve been packaging pandas in a lambda which is used to perform some calculations, but being a 50 MB zip file makes cold starts of about 6-8 secs. We&#x27;re lucky that the service has little use, thus our way to workaround it is by having a lambda warmer which is run every 5 minutes and invokes N pandas lambdas. I&#x27;d be very interested in knowing if Layers has some feature to avoid this kind of issue.
评论 #18566180 未加载
评论 #18566644 未加载
评论 #18565169 未加载
评论 #18567016 未加载
Toucheover 6 years ago
Note that it&#x27;s long been possible to use any language with Lambda through a shim. In the early days that was using Node.js to call out to your binary. That meant you had an extra bit of startup cost (Node + your binary). Once Go was supported that no longer mattered much since Go binaries start almost instantly.<p>Of course an official method is nice here.
评论 #18563331 未加载
gt5050over 6 years ago
I was really hoping they would increase the deployment package size. Currently it is at 250Mb unzipped including all layers.
评论 #18562853 未加载
评论 #18562510 未加载
评论 #18562526 未加载
评论 #18562513 未加载
Myrmornisover 6 years ago
What does a test suite look like for an application structured using lambda functions?
zkirillover 6 years ago
Noob question but is it possible&#x2F;advisable to somehow (re)use prepared statements in Lambda?<p>&quot;Prepared statements only last for the duration of the current database session. When the session ends, the prepared statement is forgotten, so it must be recreated before being used again. This also means that a single prepared statement cannot be used by multiple simultaneous database clients...&quot;[1]<p>1. <a href="https:&#x2F;&#x2F;www.postgresql.org&#x2F;docs&#x2F;current&#x2F;sql-prepare.html" rel="nofollow">https:&#x2F;&#x2F;www.postgresql.org&#x2F;docs&#x2F;current&#x2F;sql-prepare.html</a>
评论 #18565223 未加载
评论 #18564892 未加载
Shorelover 6 years ago
Now, if I can also link the MySQL C++ connector libraries, I could run some of my code &quot;natively&quot; in Lambda.<p>I have used C++ in Lambda before, it is quite cumbersome and it still has the performance hit of using Node.JS.
评论 #18563900 未加载
评论 #18566848 未加载
tekno45over 6 years ago
So will this allow me to run powershell 5.0?<p>I have O365 scripts i need to run, but i only see support for PS6+
评论 #18566561 未加载
评论 #18568187 未加载
评论 #18564034 未加载
ngngngngover 6 years ago
Forgive the noob question, but why is it necessary to have a custom runtime when using a binary from a compiled language? It seems to me that golang support should just mean binary support, and then c++ and rust would be able to comply already, no?
评论 #18564343 未加载
评论 #18562982 未加载
评论 #18565035 未加载
评论 #18563809 未加载
wattyover 6 years ago
We had to abandon Lambda due to cold starts. Any news if that&#x27;s resolved?
评论 #18562514 未加载
评论 #18563021 未加载
评论 #18562285 未加载
评论 #18564071 未加载
评论 #18562806 未加载
maxharrisover 6 years ago
<a href="https:&#x2F;&#x2F;nodesource.com&#x2F;products&#x2F;nsolid-aws-lambda" rel="nofollow">https:&#x2F;&#x2F;nodesource.com&#x2F;products&#x2F;nsolid-aws-lambda</a>
matte_blackover 6 years ago
Anyone come up with solutions for Lambda functions to effectively use database connection pools without the use of a dedicated server?
评论 #18564002 未加载
评论 #18565068 未加载
评论 #18563918 未加载
ziontover 6 years ago
any improvements on cold start? this is a deal breaker for me. also doesn&#x27;t seem cheaper than running a $5&#x2F;month DO
评论 #18568197 未加载
评论 #18565194 未加载
mtnGoatover 6 years ago
I am still waiting for proper PHP support and the ability for Lambdas to use VPC to connect to RDS servers, leaving my DBs wide open is kind of annoying... they say its possible but I&#x27;ve had 4 engineers try and no one can get it to work.<p>These issues that Azure has already solved, make me wonder how much longer i will stay with AWS.
评论 #18574385 未加载
评论 #18571925 未加载
funrulyover 6 years ago
Nice! Though we&#x27;ve been playing with this for Azure Functions over the last few months.
评论 #18562169 未加载
评论 #18569734 未加载
wnevetsover 6 years ago
Layers sound really nice.
mychaelover 6 years ago
Missed opportunity to just support one runtime to rule them all: Docker containers.
评论 #18562670 未加载
评论 #18562868 未加载
评论 #18562311 未加载
评论 #18562258 未加载
评论 #18562880 未加载
评论 #18562219 未加载
评论 #18565394 未加载
评论 #18562275 未加载