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.

Show HN: Ephemeral VMs in 1 Microsecond

84 pointsby fwsgonzo5 months ago

12 comments

jumploops5 months ago
What do VMs mean in this context?<p>I did a pass of the codebase and it seems they’re just forking processes?<p>It’s unclear to me where the safety guarantees come from (compared to using e.g. KVM).<p>Edit: it appears the safety guarantees come from libriscv[0]. As far as I can tell, these sandboxes are essentially RISC-V programs running in an isolated context (“machine”) where all the Linux syscalls are emulated and thus “safe.” Still curious what potential attack vectors may exist?<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;libriscv&#x2F;libriscv&#x2F;tree&#x2F;dfb7c85d01f01cb38fb34b529894a2baaa902d04">https:&#x2F;&#x2F;github.com&#x2F;libriscv&#x2F;libriscv&#x2F;tree&#x2F;dfb7c85d01f01cb38f...</a>
评论 #42493395 未加载
评论 #42492321 未加载
评论 #42495228 未加载
评论 #42491928 未加载
EgoIncarnate5 months ago
The use of the term VM without further qualification in the title is unfortunate. Emulated VM would have been nicer to avoid confusion with hypervisor style virtual machines.<p>Staring emphermial hypervisor VMs quickly is more noteworthy (since they are often slow to start) than an emulator VM where it&#x27;s expected to be fast since it&#x27;s usually not much more than setting up a datastructure and executing a call to an interpreter. I clicked hoping for the former, only to find out the project is the latter.
评论 #42495298 未加载
ilaksh5 months ago
Is this better than Firecracker? I was thinking about using that but it needs nested virtualization and the servers that support that aren&#x27;t as good of a value. Anyone know a good option for nested virtualization that is inexpensive?<p>Hetzner is really cheap but not sure about the cost effectiveness for the dedicated servers. Actually I think what I saw was that I couldn&#x27;t get the one I wanted in a US datacenter.
评论 #42492573 未加载
评论 #42492759 未加载
评论 #42493078 未加载
mdaniel5 months ago
This GitHub org was cited several times in the recent &quot;source available&quot; annoucement for MoonBit, if one wishes to see more &quot;in the wild&quot; usage <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=42450274">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=42450274</a>
rollcat5 months ago
Tangential, but let&#x27;s say I want to build a multiplayer game, where players (untrusted users) are allowed to run arbitrary code in some kind of a VM. I&#x27;ve so far established that:<p>- The VM has to be built in a safe and performant language (like Rust, Go, or - if careful - modern C++), and available as a library to integrate with the rest of the game. However I don&#x27;t trust myself to write safe C&#x2F;C++ (the game is being prototyped in LÖVE&#x2F;Lua).<p>- Each VM instance needs a tight execution&#x2F;instruction budget, to avoid stalling the server&#x27;s main update loop; e.g. a timer&#x2F;virtual &quot;hardware interrupt&quot;, or simply counting cycles, or even something modelled after eBPF. The total number of VM instances running in a single game would also need to be limited somehow (e.g. making a key component scarce and&#x2F;or non-renewable, or dividing the total instruction budget across all VMs, or requiring a player to be present in a nearby world chunk).<p>Use cases are something like redstone in Minecraft: curious and technically-inclined players could build contraptions, like auto-farming crops, pranks&#x2F;traps, defences, fancy gates&#x2F;moats, etc. Not the core of the gameplay, but rather one aspect of it, for the curious to explore, learn, have fun with.<p>There are many off-the-shelf VMs that do RISC-V or similar ISAs, and I&#x27;m considering picking one of those, but wondering if a RISC instruction set isn&#x27;t too low-level for such a thing. On the other hand, it would be nice if the knowledge would be directly transferrable to the real world.<p>Anyone tried to build something similar and can share their experience?
评论 #42493118 未加载
评论 #42493174 未加载
评论 #42493325 未加载
评论 #42493508 未加载
评论 #42493133 未加载
评论 #42493206 未加载
评论 #42493266 未加载
评论 #42493502 未加载
elmigranto5 months ago
&gt; This project […] contains only the necessary parts for realistic benchmarking<p>&gt; The test program is a simple […] return string<p>I understand how this is required to measure the effects of sandboxing in isolation. And the result is impressive.<p>In what ways would you expect performance to be affected when workloads are more realistic as well?
评论 #42496430 未加载
childintime5 months ago
This competes with WASM Serverless, therefore something like Fermyon Spin, which is built on top of it (<a href="https:&#x2F;&#x2F;www.fermyon.com&#x2F;serverless-guide&#x2F;speed-and-execution-time" rel="nofollow">https:&#x2F;&#x2F;www.fermyon.com&#x2F;serverless-guide&#x2F;speed-and-execution...</a>). Wake up a RISC-V emulator on a http request in 1µs, do your thing and exit. Then gone is the RISC-V VM. WASM takes a millisecond or more to spin up, as it is bytecode.<p>Is there any cloud that provides RISC-V VM&#x27;s, coupled with SQLite access for persistence?
thornewolf5 months ago
to check my understanding on what this is offering, I could build something on top of this that offers remote code execution for people without needing to worry about my system being compromised? or other people&#x27;s processes interacting with one another, but the VM will still be able to make web requests itself?
评论 #42492334 未加载
mattclarkdotnet5 months ago
Having scanned the codebase, I think this is about quickly and safely launching and managing risc-v binaries as sandboxed processes? Which is useful, but has nothing to do with virtual machines in the usual sense of there being a hypervisor with hardware support for isolation.
owenthejumper5 months ago
Reminds me a bit of Cloudflare&#x27;s isolates, but the title is super confusing
kjok5 months ago
What are the use cases?
评论 #42490767 未加载
pyaamb5 months ago
Whatever happened to Unikernels?
评论 #42490918 未加载
评论 #42494917 未加载
评论 #42490816 未加载