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

iOS support #6607

Closed
redradist opened this issue Jul 2, 2020 · 17 comments
Closed

iOS support #6607

redradist opened this issue Jul 2, 2020 · 17 comments

Comments

@redradist
Copy link

It would be nice if Deno will support iOS embedding

@lucacasonato
Copy link
Member

As far as I am aware Apple does not allow any apps with JavaScript engines other than JavaScriptCore in the App Store if they do JIT - which V8 does. So this could probably be technically done, but you would likely not be able to distribute an app built with Deno through the Apple App Store. That would make this somewhat pointless.

@redradist
Copy link
Author

As far as I am aware Apple does not allow any apps with JavaScript engines other than JavaScriptCore in the App Store if they do JIT - which V8 does. So this could probably be technically done, but you would likely not be able to distribute an app built with Deno through the Apple App Store. That would make this somewhat pointless.

I forgot about it ... (

@yorkie
Copy link
Contributor

yorkie commented Jul 2, 2020

I remember that the v8 has jitless mode now.

@hork71
Copy link
Contributor

hork71 commented Jul 2, 2020

@qwerasd205
Copy link
Contributor

qwerasd205 commented Jul 2, 2020

Actually, the App Store Review Guidelines only specify the following

2.5.6 Apps that browse the web must use the appropriate WebKit framework and WebKit Javascript.

So as long as it's not a web browser it shouldn't matter if it's running a JavaScript engine other than WebKit.

@kitsonk
Copy link
Contributor

kitsonk commented Jul 2, 2020

There are embeddable versions of Node.js for both Android and iOS. That being said, they are probably best handled by a wider community project than Deno itself (just like they are for Node.js).

@redradist
Copy link
Author

There are embeddable versions of Node.js for both Android and iOS. That being said, they are probably best handled by a wider community project than Deno itself (just like they are for Node.js).

I think deno also very good for embedding in app due to rust which makes easier to port application to other platforms

@frank-dspeed
Copy link

All this infos are correct about the jitless mode and it works also on IOS and Android i also want to add that the new v8 lite project will be merged soon into the --jitless mode flag https://v8.dev/blog/v8-lite so it will not only allow to pre alloc memory it will also save up to 35% memory traded for some performance so it will run even better on devices with small memory footprint.

@frank-dspeed
Copy link

frank-dspeed commented Jul 4, 2020

You can already run Deno in V8 jitless mode: deno run --v8-flags="--jitless". It is just painfully slow. V8 lite mode is also supported via --v8-flags="--lite-mode". I am not sure everything works, but it is enough for initial testing.

Originally posted by @lucacasonato in #6621 (comment)

@redradist So it is time now for testing the New IOS Support that we already got :) Simply compile deno on IOS and use the jitless mode to run

@bartlomieju
Copy link
Member

Closing as resolved.

@frank-dspeed
Copy link

@bartlomieju it should get documented in the IOS section of deno as current state

@lucacasonato
Copy link
Member

Deno does not provide iOS builds

@frank-dspeed
Copy link

@lucacasonato at present but they are now possible we should keep focus on that there are some ios users around its a big platform and it is target able

@kitsonk
Copy link
Contributor

kitsonk commented Jul 14, 2020

This issue is sufficient memoization of the status.

@metacoding
Copy link

This is rather a year old, but Apple is replacing JavaScriptCore with NativeScript that brings V8 into iOS and iPadOS. Does this change have any positive result for deno support?
https://www.infoq.com/news/2020/01/nativescripts-adopts-V8-ios/

@kitsonk
Copy link
Contributor

kitsonk commented Feb 8, 2021

Apple is not replacing JavaScriptCore with NativeScript. The article you linked to is how NativeScript migrated to V8 JIT-less instead of JavaScriptCore, which allows them (NativeScript, nothing to do with Apple) to have feature parity with Android when using NativeScript on iOS. JIT-less V8 on iOS has been possible for a while now as mentioned in this thread. It changes nothing for Deno.

@zdavatz
Copy link

zdavatz commented Jun 6, 2023

Any update on this for creating a native iOS App from a Deno application using github actions?

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

10 participants