Why it is that C++ can be compiled to JavaScript bytecode that is WebAssembly (using Emscripten), but it cannot be compiled to Java bytecode?

This page summarizes the projects mentioned and recommended in the original post on /r/cpp_questions

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • lljvm

    Low Level Java Virtual Machine

  • For example, you can find projects like lljvm that seems to work on C code, via an older version of llvm and its intermediate representation of code. I suspect that C++ is possible to a similar degree that C is possible.

  • AECforWebAssembly

    A port of ArithmeticExpressionCompiler from x86 to WebAssembly, so that the programs written in the language can run in a browser. The compiler has been rewritten from JavaScript into C++.

  • I am asking as somebody who knows a lot about WebAssembly (having made a compiler targetting it), but I know next to nothing about Java Bytecode. However, I assume they are rather similar. So, why can C++ be compiled to one but not the other?

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • renjin

    JVM-based interpreter for the R language for the statistical analysis.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts