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

native runtime support for compilation #158

Open
terrablue opened this issue Aug 10, 2024 · 9 comments
Open

native runtime support for compilation #158

terrablue opened this issue Aug 10, 2024 · 9 comments

Comments

@terrablue
Copy link
Contributor

terrablue commented Aug 10, 2024

A meta-issue to track runtime support for compiling Primate projects to native applications, also see https://primatejs.com/modules/runtime-support.

Target Node Deno Bun
Desktop (linux-x64)
Desktop (linux-arm64) (rcompat/rcompat#37)
Desktop (darwin-x64) ✗ (oven-sh/bun#11959)
Desktop (darwin-arm64) ✗ (oven-sh/bun#11959)
Desktop (windows-x64)
Mobile (android)
Mobile (ios)
@terrablue
Copy link
Contributor Author

@gedw99 fyi

@terrablue
Copy link
Contributor Author

Upstream Deno blockers

We need both to reach feature-parity with Bun, and make compilation of Primate apps on Deno possible

@terrablue terrablue changed the title native runtime support native runtime support for compilation Aug 12, 2024
@gedw99
Copy link

gedw99 commented Aug 13, 2024

@gedw99 fyi

Hey @terrablue

thanks fro saying hi.

Sorry that I did not have time to work on the golang Webview integration. Got pulled into other areas.

@terrablue
Copy link
Contributor Author

@gedw99 No pressure. I myself am evaluating other webview solutions to see how we can get mobile support in. Just look at it when you have time, leisure and inspiration.

@gedw99
Copy link

gedw99 commented Aug 13, 2024

Oh bummer :)

I have been using the golang one on 10 different projects for mobile and it’s been a god send

@terrablue
Copy link
Contributor Author

Oh don't get me wrong. I'd love to use the golang one if it's better than what we have, I just haven't had the time to look at it myself.

I've also considered writing my own wrapper library in Zig, but I also haven't had the time to do that, either. :)

@gedw99
Copy link

gedw99 commented Aug 13, 2024

What do you use now ? So I can compare.

@terrablue
Copy link
Contributor Author

https://github.com/rcompat/rcompat/tree/master/packages/webview wraps around the webview C library (at https://github.com/webview/webview), which has no mobile support.

I wrote up (partially) about it in this deep dive over here, if you're interested (and have some time -- it's long), https://superarch.org/theanswerisc/primate-native-conditional-exports-debarrelling.html

@gedw99
Copy link

gedw99 commented Aug 13, 2024

Yeah I used to use that and yes it has no mobile support .

Also it does not have the other really important stuff like deep links . You will want that as soon as yo get to first base on mobile.

I will try to find time and get it working .. i

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

2 participants