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.

Sulong – A high-performance LLVM bitcode interpreter built on the GraalVM

62 pointsby gfredtechover 7 years ago

7 comments

jchwover 7 years ago
A few potential use cases:<p>- Compile once, run anywhere for low-level languages like C++. With limitations, of course.<p>- More debugging capabilities. Maybe it could be used for dynamic analysis. Theoretically it should be possible to change code at runtime.<p>- Something like Valgrind? Valgrind is really complex and doesn&#x27;t run on Windows at all. It seems like you could make a portable substitute with this.<p>- Maybe GraalVM can be used to provide additional memory safety guarantees, not sure.<p>Kind of hard for me to say because I don&#x27;t actually know exactly what GraalVM provides, so it&#x27;s kind of a guess. But it does seem like there are some genuine use cases beyond the neatness of it.
评论 #16354805 未加载
评论 #16355415 未加载
otover 7 years ago
&gt; Compiling without optimizations is not recommended with Sulong. In particular, cross-language interoperability with Java or another Truffle language will not work when the bitcode is compiled without optimizations.<p>This is <i>very</i> weird. How can (lack of) optimizations possibly interfere with things like calling conventions? Whatever they&#x27;re doing, it smells of fragile.
ksecover 7 years ago
On a related note, Sulong is what makes Nokogiri and OpenSSL possible on TruffleRuby. This only happened two weeks ago, may be it is the reason why Sulong is posted again to HN.<p>I am trying hard not to get overly excited, let see some real world benchmarks once Truffle is ready to run Real World Rails.
1risover 7 years ago
How much faster&#x2F;slower is it than aot code? I&#x27;m disapointed to see no benchmarks.
评论 #16354698 未加载
anarazelover 7 years ago
Hm. Cool work, but I&#x27;m not sure I really see a practical use case? Ideas welcome.
评论 #16354727 未加载
gigatexalover 7 years ago
Polyglotting and being able to run it on any platform is pretty cool
earenndilover 7 years ago
I wonder if it would be possible to run other languages such as rust, d, or ante, that use llvm, on this? Specifically interested in how languages with gc like d or nim will fare.
评论 #16355028 未加载