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

Embedding Trireme in Android #141

Open
darmie opened this issue Jan 14, 2016 · 2 comments
Open

Embedding Trireme in Android #141

darmie opened this issue Jan 14, 2016 · 2 comments

Comments

@darmie
Copy link

darmie commented Jan 14, 2016

Hello, I am working on a library that would implement NodeJS for Android and iOS application development. I am already using https://github.com/TooTallNate/NodObjC for iOS, Trireme seems like a competent candidate, but I would like to know if Trireme supports android and what are the consequences (performace wise) of using it in Android runtime.

@gbrail
Copy link
Contributor

gbrail commented Jan 15, 2016

I've never tried it. I know that just getting Rhino to work on Android is a decent amount of work, but a user in the Rhino community was able to make that work (you can see this in a recent Rhino issue)

mozilla/rhino#211

In theory there's no reason why Trireme would not run on Android if Rhino worked on Android, but it would take some work and testing.

And as for performance -- we know that for CPU-intensive code Rhino is much slower than V8, and for more typical "web server" types of workloads Trireme is more like 1/3 to 1/2 the performance of standard Node. But it all depends. I would imagine that a large Node app running on Trireme Android would be pretty slow, but other apps might be just fine. It'd be great to see someone get it working though!

@darmie
Copy link
Author

darmie commented Jan 15, 2016

Alright. Thanks Greg.

On Fri, 15 Jan 2016 20:33 Greg Brail [email protected] wrote:

I've never tried it. I know that just getting Rhino to work on Android is
a decent amount of work, but a user in the Rhino community was able to make
that work (you can see this in a recent Rhino issue)

mozilla/rhino#211 mozilla/rhino#211

In theory there's no reason why Trireme would not run on Android if Rhino
worked on Android, but it would take some work and testing.

And as for performance -- we know that for CPU-intensive code Rhino is
much slower than V8, and for more typical "web server" types of workloads
Trireme is more like 1/3 to 1/2 the performance of standard Node. But it
all depends. I would imagine that a large Node app running on Trireme
Android would be pretty slow, but other apps might be just fine. It'd be
great to see someone get it working though!


Reply to this email directly or view it on GitHub
#141 (comment).

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