flutter-mini-program icon indicating copy to clipboard operation
flutter-mini-program copied to clipboard

javascript runner

Open ghost opened this issue 6 years ago • 3 comments

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.

ghost avatar May 14 '19 13:05 ghost

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

zhaomenghuan avatar May 16 '19 02:05 zhaomenghuan

Have a look here:

https://github.com/worldiety/goup

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

joeblew99 avatar May 18 '19 10:05 joeblew99

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

zhaomenghuan avatar Nov 01 '19 02:11 zhaomenghuan