Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add FAQ on java and .net virtual machines #1061

Closed
wants to merge 3 commits into from

Conversation

distransient
Copy link

Figured I'd have a go at #960.

FAQ.md Outdated
@@ -242,6 +242,16 @@ generate WebAssembly code from C and C++, and will use LLVM IR in their
implementation similarly to how PNaCl and Emscripten do today.


## Why not use the .net or jvm virtual machines and bytecodes?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.NET should be all caps.

JVM virtual machines is redundant (java virtual machine virtual machines). I suggest changing "jvm" to "Java".

FAQ.md Outdated
Simply, web browsers already have their own virtual machines for executing
platform-independent code, and integrating the existing infrastructure of .net
or the jvm into browser environments on top of these existing systems would
incur massive costs for end-users. Also, the design goals in jvm and .net's

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"costs" could be misinterpreted as a monetary expense, which although being a legitimate fear given the history of both Java and .NET, would be unlikely. Regardless, I'd like to see a less ambiguous word or phrase here, but not sure what it would be...

Also, JVM and .NET should be all caps.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LLVM too

@distransient
Copy link
Author

Thanks @RyanLamansky, @chicoxyzzy; updated.

@jfbastien
Copy link
Member

One thing that's worth mentioning is the abstraction layer that WebAssembly operates at versus other VMs. The bytecode doesn't know about higher-level language constructs, and the hope is that these can be layered on top of a WebAssembly VM.

Mentioning that we already have JS VMs isn't super relevant: in all cases we don't reuse JS-isms in our bytecodes, we fast-forward to our static-typed optimizers.

@rossberg
Copy link
Member

Agreed with @jfbastien, existing JS VMs are not particularly relevant. The real reason is that other VMs and IRs do not meet the design goals defined for Wasm. You can find relevant discussion in our paper (Sections 1 and 8 in particular):

https://github.com/WebAssembly/spec/blob/master/papers/pldi2017.pdf

@distransient
Copy link
Author

Thanks for the help, I'll work to adjust the wording a bit.

@jaredthirsk
Copy link

jaredthirsk commented Jun 28, 2017

FWIW somebody at Microsoft got an .NET interpreter running on WebAssembly as an experiment: https://github.com/SteveSanderson/Blazor

@distransient
Copy link
Author

Hey, was just going through my open pull requests, is this outdated? I could make a patch for the current HEAD with any necessary changes if so. Otherwise we could close it.

@distransient
Copy link
Author

Closing due to age and lack of activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants