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.

Lucet: Native WebAssembly Compiler and Runtime

387 pointsby kickdaddyabout 6 years ago

11 comments

steveklabnikabout 6 years ago
The wasm runtime wars are heating up! Exciting times :)<p>Really pumped to see this open sourced. And the performance properties look awesome.<p>One interesting thing we’re seeing in this space is sort of two parallel paths emerge: do you want to support JavaScript, or not? An example of the former is CloudFlare and their Workers platform. Hopefully they’ll follow Fastly’s lead and open source their runtime too, but it’s built on top of V8 because they want to support JavaScript. You also gain the additional advantage of all the engineering that Google puts into V8.<p>The other option is stuff like Lucent, wasmer, and wasmtime. By dropping the JavaScript requirement, you can build something that really screams, as seen here. You can partially regain <i>some</i> support via AssemblyScript, the TypeScript subset that compiles to JS. But we haven’t seen JavaScript compile directly to wasm yet because if you want that, well, V8 exists. And you do have to build it all yourself.<p>JavaScript is one of most popular programming programming languages that exists. Time will tell which approach is better, but it’s really fun to watch all of this cool technology explode onto the scene right now.<p>(Disclaimer: I have connections to all of these projects in various ways. Everyone involved in all of them is doing great work.)
评论 #19515978 未加载
phickeyabout 6 years ago
Author here- happy to take questions.
评论 #19519911 未加载
评论 #19520728 未加载
评论 #19514915 未加载
评论 #19515273 未加载
peter998about 6 years ago
Interesting! I wonder this compares with other WebAssembly runtimes (Wasmer?)
评论 #19515806 未加载
StavrosKabout 6 years ago
Now that I see this, a question comes to mind: Why do we have yet another VM? Why didn&#x27;t browsers just implement LLVM? Is it the sandbox?<p>Don&#x27;t get me wrong, I&#x27;m excited to see wasm spread, but the question does cross my mind.
评论 #19517680 未加载
评论 #19517548 未加载
评论 #19536490 未加载
评论 #19518727 未加载
评论 #19519022 未加载
azakaiabout 6 years ago
&gt; With Lucet, Fastly’s edge cloud can execute tens of thousands of WebAssembly programs simultaneously, <i>in the same process</i>, without compromising security. [emphasis mine]<p>How does it handle Spectre, etc.?
评论 #19515021 未加载
alexellisukabout 6 years ago
Excited to see this come about and how it could be used with the OpenFaaS watchdog on Kubernetes. <a href="https:&#x2F;&#x2F;docs.openfaas.com&#x2F;architecture&#x2F;watchdog&#x2F;" rel="nofollow">https:&#x2F;&#x2F;docs.openfaas.com&#x2F;architecture&#x2F;watchdog&#x2F;</a> - is the 5 nano seconds the time to fork at the OS level or a kind of in-process hot performance?<p>I got an error with the example however.. is everyone else seeing the same thing?<p>Unpacking wasi-sdk (3.0) ... Setting up wasi-sdk (3.0) ... Removing intermediate container d552f4538e26 ---&gt; 713ff6032205 Step 8&#x2F;8 : ENV WASI_SDK=&#x2F;opt&#x2F;wasi-sdk ---&gt; Running in 4189f307a30e Removing intermediate container 4189f307a30e ---&gt; a142a5620a28 Successfully built a142a5620a28 Successfully tagged lucet-dev:latest Lucet hasn&#x27;t been installed yet... installing... Creating a RELEASE build cargo build --all --release --bins --lib error: failed to read `&#x2F;lucet&#x2F;pwasm-validation&#x2F;Cargo.toml`<p>Caused by: No such file or directory (os error 2) Makefile:11: recipe for target &#x27;build&#x27; failed make: <i></i>* [build] Error 101
评论 #19516134 未加载
评论 #19516048 未加载
vorticoabout 6 years ago
Native WebAssembly sure is an exciting topic. But I can&#x27;t think of a single concrete use case that someone could use---besides having another standard for secure bytecode to choose from. Help?
评论 #19517180 未加载
评论 #19517169 未加载
评论 #19522418 未加载
cck68about 6 years ago
Can you comment on how big an effort it would be to support arm platforms?
cagenutabout 6 years ago
how does it look like this will work from a stack and a request&#x2F;response flow perspective?<p>meaning, am I calling it as a function from within my vcl config? or am i mapping my service-id straight to a binary?
评论 #19515326 未加载
gazeabout 6 years ago
Why use this as opposed to Google NaCl or PNaCl?
评论 #19515366 未加载
评论 #19515370 未加载
评论 #19515492 未加载
评论 #19515378 未加载
sansnommeabout 6 years ago
How does Lucet&#x27;s WebAssembly performance compare to LuaJIT (one of the fastest JITs in existence) right now including VM warm-up time? Also, what&#x27;s the GUI story like outside of browsers?
评论 #19515119 未加载
评论 #19515594 未加载