saghul / txiki.js

A tiny JavaScript runtime
MIT License
2.5k stars 167 forks source link

[Idea Discussion] Platform support: iOS & Android #282

Open appleguy opened 2 years ago

appleguy commented 2 years ago

txiki.js is an exciting concept, particularly given the integration of wasm3 and the design preference for small / lightweight engines.

This collection of functionality would be fantastically useful in modern mobile applications on iOS and Android. The use of QuickJS (along with wasm3) should enable deployment even on iOS where JIT execution is disallowed.

TheBrokenRail commented 2 years ago

Has the project ever been built successfully for iOS or Android?

I use it in my Android app Let's Code. I haven't updated it in ages, but txiki.js was fairly easy to build for Android considering the Android NDK contains a CMake toolchain file. The hardest part was building curl and OpenSSL (for HTTPS).

However this also benefited from how I used txiki.js (literally just bundling the executable and running it). If someone wanted to actually embed it and integrate it, they'd have to do a bit more work.

saghul commented 2 years ago
  • Has the project ever been built successfully for iOS or Android?

I have personally not attempted it (yet).

  • Is there any interest in the community in this type of use case?

Sure thing, I'd be happy to review PRs / help with the effort.

  • Are there any known problem areas that would have to be overcome to support these platforms?

Most lilely build stuff I reckon. Also I guess a new library target would help applications.

I use it in my Android app Let's Code.

Oh, that's awesome, thanks for sharing! :-)