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

Travis-CI integration #19

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Travis-CI integration #19

wants to merge 5 commits into from

Conversation

alanjds
Copy link

@alanjds alanjds commented Aug 31, 2015

Just automatically do the tests on travis-ci

@nedbat
Copy link
Owner

nedbat commented Sep 2, 2015

@alanjds Could you do me a favor and squash these commits down to one? Also, I'm curious what you're using byterun for. :)

@nedbat
Copy link
Owner

nedbat commented Sep 2, 2015

Also, a thing I learned about tox: the -e parameter is read from a TOXENV environment variable if it exists, so if you set TOXENV instead of TOX_ENV, then you can simply use "tox" instead of "tox -e $TOX_ENV".

@alanjds
Copy link
Author

alanjds commented Sep 2, 2015

Hum... my GIT knowledge seems subpar, as I have no clue on how to squash things.

For tox, I just grabbed some recipe floating around and it worked. I will update with your proposal.

I am investigating several ways to run Python in an Android browser. The Brython implementation is fast, the PyPy.js one is compatible. Brython have no bytecode, PyPy.js does. One line of work is making byterun runs right on Brython, and PyPy.js complile stuff to bytecode before sending the bytecode to the browser, to be ran via byterun->Brython.

Anyway, this seems reasonable?

@nedbat
Copy link
Owner

nedbat commented Sep 3, 2015

Here are good instructions on how to squash the commits: http://davidwalsh.name/squash-commits-git

You have an interesting idea, I did not think that byterun would be used to actually run Python code. I wonder what the performance would be like...

@alanjds
Copy link
Author

alanjds commented Sep 3, 2015

Nice. Thanks.

(...) I did not think that byterun would be used to actually run Python code. I wonder what the performance would be like...

??? Well, I guess this is what it has made for, dont ;) ?

The idea is to feed python into CPython/PyPy locally, store the .pyc, spin byterun on Brython in the browser and feed the stored .pyc to byterun.

If performance sucks, reimplement some parts in javascript, as Brython allows it. Worst than non-JIT PyPy.js it will not be...

@refi64
Copy link

refi64 commented Sep 3, 2015

Uhh...I know PyPy.js takes forever to load, but I'm also sure that the JIT would kick in with something like byterun. Even without the JIT, Brython still is not the fastest kid on the block...

@alanjds
Copy link
Author

alanjds commented Sep 3, 2015

I noticed this too, but with JIT PyPy.js crashes on Android.

@refi64
Copy link

refi64 commented Sep 3, 2015

@alanjds Are you sure? I have a web app that uses PyPy.js, and I use it from Chrome on Android all the time. Maybe it's actually the wrapper JS? Besides, you should probably file that as a bug...

@alanjds
Copy link
Author

alanjds commented Sep 3, 2015

...or Android Browser crashes, to be correct.

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

Successfully merging this pull request may close these issues.

3 participants