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

Does dart interactive work in the browser? #80

Closed
jlewi opened this issue Mar 27, 2023 · 6 comments
Closed

Does dart interactive work in the browser? #80

jlewi opened this issue Mar 27, 2023 · 6 comments
Labels
wontfix This will not be worked on

Comments

@jlewi
Copy link

jlewi commented Mar 27, 2023

Does dart interactive work in the browser? My naive understanding is that dart_interactive relies on the Dart VM. IUC on the web Dart compiles to JS and doesn't rely on the Dart VM docs.
Is there any path to creating a dart REPL on the web?

@welcome
Copy link

welcome bot commented Mar 27, 2023

Hi! Thanks for opening your first issue here! 😄

@fzyzcjy
Copy link
Owner

fzyzcjy commented Mar 27, 2023

Yes I think so.

As for web, I guess it may be hard. For example, even flutter does not support hot reload on web flutter/flutter#53041 . Maybe we can wait for that issue, and if that is supported maybe we have enough infra to implement it?

@jlewi
Copy link
Author

jlewi commented Mar 28, 2023

@fzyzcjy Could you explain how you think this might work on the web? I think for this discussion we can ignore flutter.
IUC dart on mobile/desktop relies on JIT and a VM which allows for a REPL. However, on web I believe dart is compiled to JS and then executed. Is there someway to run the dart VM on web?

@fzyzcjy
Copy link
Owner

fzyzcjy commented Mar 28, 2023

@jlewi I have not heard of any. I am not sure, maybe we need to wait for new Dart features if possible?

@fzyzcjy
Copy link
Owner

fzyzcjy commented Mar 28, 2023

The reason why I say wait for flutter is that, if flutter does that successfully, then it may mean that Dart supports vm on web, or dart provides a new infra, etc, then we can utilize it.

@stale
Copy link

stale bot commented May 31, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label May 31, 2023
@stale stale bot closed this as completed Jun 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants