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

javascript runner #1

Open
ghost opened this issue May 14, 2019 · 3 comments
Open

javascript runner #1

ghost opened this issue May 14, 2019 · 3 comments

Comments

@ghost
Copy link

ghost commented May 14, 2019

It looks like miniprogram uses liquid core: https://github.com/j0j00/flutter_liquidcore

There is a better way IMHO
You can run the JS inside a JS VM that is 100% compiled to c using
https://github.com/dop251/goja
You can cross compile this to run on any Mobiles, Desktop or small ARM device.
Then just call it the same way you call miniProgram now by using Flutter Method channels.

@zhaomenghuan
Copy link
Owner

@gedw99 Thank you for your suggestion, wait until I have time to experiment, and continue to communicate.

@joeblew99
Copy link

@zhaomenghuan
Copy link
Owner

zhaomenghuan commented Nov 1, 2019

Now we can implement this feature based on dart's ffi feature,https://github.com/xinfeng-tech/flutter_jsc

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

No branches or pull requests

2 participants