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.

Ask HN: Run unsafe code in serverless environments

2 pointsby delducaover 1 year ago
I need to run an executable, or rather, C++ code in the cloud, and my options are Cloud Run &amp; AWS Lambda because they are serverless and I only pay for what I use.<p>I thought about compiling this C++ code using Emscripten to WebAssembly. I even did a PoC using isolated-vm, however, I had difficulties in obtaining the stdout (a requirement), as the emsdk does some abstractions.<p>Then I tried cgroups with namespaces inside Docker, but apparently, I cannot create a cgroup within Docker since it is already running inside a cgroup.<p>What options do I have left?

1 comment

syrusakbaryover 1 year ago
Wasmer &amp; Wasmer Edge might be a good option for you!<p><a href="https:&#x2F;&#x2F;wasmer.io&#x2F;products&#x2F;edge">https:&#x2F;&#x2F;wasmer.io&#x2F;products&#x2F;edge</a>