zhaomenghuan / flutter-mini-program

A Flutter's mini-program development framework by parsing HTML、CSS and JS / Dart.
MIT License
175 stars 38 forks source link

javascript runner #1

Open ghost opened 5 years ago

ghost commented 5 years ago

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 commented 5 years ago

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

joeblew99 commented 5 years ago

Have a look here:

https://github.com/worldiety/goup

https://bitbucket.org/arputer/flutter_with_go/src/master/

zhaomenghuan commented 4 years ago

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