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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Chicory: A JVM native WebAssembly runtime

201 点作者 0x54MUR413 个月前

15 条评论

jmillikin3 个月前
Chicory seems like it&#x27;ll be pretty useful. Java doesn&#x27;t have easy access to the platform-specific security mechanisms (seccomp, etc) that are used by native tools to sandbox their plugins, so it&#x27;s nice to have WebAssembly&#x27;s well-designed security model in a pure-JVM library.<p>I&#x27;ve used it to experiment with using WebAssembly to extend the Bazel build system (which is written in Java). Currently there are several Bazel rulesets that need platform-specific helper binaries for things like parsing lock files or Cargo configs, and that&#x27;s exactly the kind of logic that could happily move into a WebAssembly blob.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;jmillikin&#x2F;upstream__bazel&#x2F;commits&#x2F;repo-rule-execute-wasm&#x2F;">https:&#x2F;&#x2F;github.com&#x2F;jmillikin&#x2F;upstream__bazel&#x2F;commits&#x2F;repo-ru...</a><p><a href="https:&#x2F;&#x2F;github.com&#x2F;bazelbuild&#x2F;bazel&#x2F;discussions&#x2F;23487">https:&#x2F;&#x2F;github.com&#x2F;bazelbuild&#x2F;bazel&#x2F;discussions&#x2F;23487</a>
评论 #43178087 未加载
评论 #43175420 未加载
评论 #43175698 未加载
评论 #43184385 未加载
andreaTP3 个月前
A few cool things based on Chicory:<p>OPA: <a href="https:&#x2F;&#x2F;github.com&#x2F;StyraInc&#x2F;opa-java-wasm">https:&#x2F;&#x2F;github.com&#x2F;StyraInc&#x2F;opa-java-wasm</a><p>Integration with Debezium has been launched today too: <a href="https:&#x2F;&#x2F;debezium.io&#x2F;blog&#x2F;2025&#x2F;02&#x2F;24&#x2F;go-smt&#x2F;" rel="nofollow">https:&#x2F;&#x2F;debezium.io&#x2F;blog&#x2F;2025&#x2F;02&#x2F;24&#x2F;go-smt&#x2F;</a><p>And SQLite will come next: <a href="https:&#x2F;&#x2F;github.com&#x2F;roastedroot&#x2F;sqlite4j">https:&#x2F;&#x2F;github.com&#x2F;roastedroot&#x2F;sqlite4j</a>
评论 #43176306 未加载
评论 #43176050 未加载
评论 #43176284 未加载
vips7L3 个月前
How does it compare to graal wasm? <a href="https:&#x2F;&#x2F;github.com&#x2F;oracle&#x2F;graal&#x2F;blob&#x2F;master&#x2F;wasm&#x2F;README.md&#x2F;">https:&#x2F;&#x2F;github.com&#x2F;oracle&#x2F;graal&#x2F;blob&#x2F;master&#x2F;wasm&#x2F;README.md&#x2F;</a>
评论 #43175342 未加载
评论 #43175349 未加载
remexre3 个月前
It&#x27;d be interesting to see a benchmark for what the total overhead is for Rust-&gt;WASM-&gt;Chicory AoT-&gt;native-image versus native Rust; I&#x27;ve been pleasantly surprised by the JVM in the past, so I&#x27;d hope it&#x27;d be a relatively small hit.
评论 #43175475 未加载
评论 #43175756 未加载
dang3 个月前
Related. Others?<p><i>Chicory 1.0.0-M1: First Milestone Release</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=42086590">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=42086590</a> - Nov 2024 (3 comments)<p><i>A Zero-Dependency WebAssembly Runtime for the JVM</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=38759030">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=38759030</a> - Dec 2023 (1 comment)
skyyler3 个月前
I&#x27;d like to take a moment to appreciate how cute the name is.<p>Love stuff like that.
评论 #43179351 未加载
评论 #43178561 未加载
评论 #43178406 未加载
DrNosferatu3 个月前
For some reason, I think that instead a Java runtime written in WebAssembly would be more useful.
评论 #43175091 未加载
评论 #43175375 未加载
评论 #43175050 未加载
评论 #43178462 未加载
评论 #43178611 未加载
评论 #43184371 未加载
dpratt3 个月前
This looks very cool - I&#x27;m going to read into the implementation, there&#x27;s something about producing JVM bytecode from WASM instructions and then having the JVM JIT compile it into native instructions that amuses me.
评论 #43175414 未加载
评论 #43182898 未加载
nilslice3 个月前
Chicory is how we&#x27;re able to run newly popular MCP servers on Android!<p><a href="https:&#x2F;&#x2F;docs.mcp.run&#x2F;blog&#x2F;2024&#x2F;12&#x2F;27&#x2F;running-tools-on-android&#x2F;" rel="nofollow">https:&#x2F;&#x2F;docs.mcp.run&#x2F;blog&#x2F;2024&#x2F;12&#x2F;27&#x2F;running-tools-on-androi...</a>
usrusr3 个月前
How far is this from the hypothetical (I think, for now) scenario of including a WASM build as a fallback &quot;platform&quot; in jars that include some native code for a number of platforms? A number of platforms that will never be complete, not when you include the future?
评论 #43178203 未加载
Imustaskforhelp3 个月前
Is it only me who is interested in creating minecraft plugins in go code which can compile to wasm and now run in chicory natively in the jvm itself , sure there is some overhead but oh I don&#x27;t mind that , I think that somebody would want to hook the minecraft api to be callable from wasm and then some more shenanigans on the wasm side as well and then on the golang side as well but oh boy , It can be fun. I really wanted to create a python minecraft plugin when I was really young &#x2F; just starting out programming , I really was close to learning kotlin just for minecraft. Minecraft holds dear to me.
评论 #43183951 未加载
评论 #43185488 未加载
gdsdfe3 个月前
I want to do the opposite I want to run jvm languages on wasm
评论 #43178310 未加载
asimpletune3 个月前
Would Scala be able to run on this?
评论 #43176977 未加载
ertucetin3 个月前
Can we use any JVM language, like Clojure?
评论 #43176103 未加载
评论 #43180331 未加载
评论 #43176355 未加载
fabiofzero3 个月前
I feel like a WASM-native JVM runtime would make more sense these days
评论 #43174863 未加载
评论 #43175423 未加载