pftbest@sh.itjust.workstoProgrammer Humor@programming.dev•Probably the wrong meme format
103·
7 months agoHave you seen what it outputs? The same way we can compile C to brainfuck, it doesn’t mean it’s good or is useful.
Have you seen what it outputs? The same way we can compile C to brainfuck, it doesn’t mean it’s good or is useful.
You can’t compile C to java bytecode, they are fundamentally incompatible. But you can compile C to wasm, which is what you want for a good universal bytecode. Java is shit.
Some people have weird fetishes too, I won’t judge.
I can’t quite understand what is your point? Are you arguing that both JVM and WASM are bad? With this I agree, they both have terrible performance and in an ideal world we wouldn’t use any of them.
Are you arguing that JVM bytecode is better than WASM? That’s objectively not true. One example is a function pointer in C. To compile it to JVM bytecode you would need to convert it to the virtual call using some very roundabout way. But in WASM you have native support for function pointers, which gives much better flexibility when compiling other languages.