Pickleboyonline / solid-native

React Native but for Solid.JS
https://pickleboyonline.github.io/solid-native/
MIT License
15 stars 2 forks source link

Investigate using Deno runtime as JS Engine #12

Closed Pickleboyonline closed 4 months ago

Pickleboyonline commented 5 months ago

Deno Runtime allows you to create your own v8 runtime. This would allow easily extending the runtime. Also, we can support iOS by using the jitless feature flag: https://github.com/denoland/deno/issues/6621

For Flexbox layout, use the Taffy flexbox that Dioxis uses, which is basically a pure rust version of yoga.

And finally, use UniFFI by Mozilla to expose everything to native side

Pickleboyonline commented 4 months ago

Closing, I am using the Duktape engine instead because it has extensive documentation and features debugging support. https://duktape.org/

For layout, I made a cgo wrapper for the Yoga layout engine by facebook. And for FFI bindings I am using gomobile