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.

TruffleC: A C implementation on top of JVM (2014)

82 pointsby sigsev_251almost 3 years ago

7 comments

captaincavemanalmost 3 years ago
JVM was originally designed for set top boxes (STB) I believe, the problem there being a variety of architectures, thus a Virtual Machine solved the problem of write code to the virtual machine and not the physical machine and applications could run on various STB&#x27;s.<p>OpenTV provided such a &#x27;middleware&#x27; where the main language was C on such a VM, and was (possibly still is) widely used.
评论 #32436542 未加载
评论 #32446162 未加载
tpoindexalmost 3 years ago
NestedVM was another early attempt (2004) to run C, C++, Fortran, etc. on the JVM, but at substantial performance degradation. This was a clever hack that ran a Java coded MIPS emulator and loaded a compiled binary into a large array. Performance was 20-40% of native speed, but still fast enough for some applications, such as SQLite as a JDBC driver.<p>Website, source repo, and paper seem to still be available, try archive.org for dead links:<p><a href="http:&#x2F;&#x2F;nestedvm.ibex.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;nestedvm.ibex.org&#x2F;</a>
drdebugalmost 3 years ago
Is there an implementation that can be used for experimenting or verifying performance claims? I could not find anything. edit: Found a reference there in case it helps others <a href="https:&#x2F;&#x2F;www.graalvm.org&#x2F;22.0&#x2F;community&#x2F;publications&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.graalvm.org&#x2F;22.0&#x2F;community&#x2F;publications&#x2F;</a>
评论 #32436571 未加载
th0ma5almost 3 years ago
Only 7% slower seems amazing. To me at least.
评论 #32435801 未加载
评论 #32436539 未加载
JavaOnlyGuyalmost 3 years ago
How are pointers implemented in a language that doesn&#x27;t support them?
评论 #32436416 未加载
评论 #32436161 未加载
评论 #32436394 未加载
评论 #32436104 未加载
评论 #32437161 未加载
notoranditalmost 3 years ago
It&#x27;s good only if you can end up in compiling JVM with it.
realitysballsalmost 3 years ago
Way over my head here , but can someone perhaps explain the value and&#x2F;or use-case of running c within a jvm?
评论 #32435687 未加载
评论 #32436629 未加载
评论 #32435673 未加载
评论 #32435698 未加载
评论 #32438365 未加载
评论 #32435668 未加载
评论 #32435699 未加载