TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: SSVM – Speed up your Node.js apps with Rust and WebAssembly

5 点作者 juntao将近 5 年前
Raw performance (the lack of) is always a contentious point for JavaScript, especially in our post-Moore era of computing. Node.js gets around this issue through extensive of use of native libraries and modules written in C, including the V8 JS engine itself.<p>But as application developers, how do YOU create high performance functions? Write in C and run as a NAPI module? Write in Rust and run as a V8 wasm? Well, there is another (better and faster) way now!<p>The SSVM is a fully featured WebAssembly VM that is optimized for server-side applications.<p>https:&#x2F;&#x2F;www.secondstate.io&#x2F;ssvm&#x2F;<p>You can write functions in Rust, compile to WebAssembly and run in SSVM, and access it as if they are JS functions in Node.js. Easy as pie. Give it a try (https:&#x2F;&#x2F;www.secondstate.io&#x2F;articles&#x2F;getting-started-with-rust-function&#x2F;)!<p>By rewriting computationally intensive functions from JavaScript to Rust, developers could achieve 10x to 100x times performance (https:&#x2F;&#x2F;www.secondstate.io&#x2F;articles&#x2F;performance-rust-wasm&#x2F;) gain in terms of startup and&#x2F;or execution speed.<p>BTW, Why not just use v8? For starters, SSVM runs much faster than V8 (https:&#x2F;&#x2F;www.secondstate.io&#x2F;articles&#x2F;ssvm-performance&#x2F;) and it also supports more server-friendly extensions than just WASI.<p>Any issued and feedback are welcome. Checkout the GitHub link: https:&#x2F;&#x2F;github.com&#x2F;second-state&#x2F;SSVM

暂无评论

暂无评论