-
Notifications
You must be signed in to change notification settings - Fork 17
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
Add properties to access V8 values #1
base: master
Are you sure you want to change the base?
Conversation
The PR is ok for me but just a question before merging. As you probably already realized the V8 code included in the tree is quite old and your commit patches it. Are the feature you are including already in some more recent version of the V8 code? Just asking because I would love to align the PyV8 code base with more recent versions of V8 and this could probably be a good occasion for starting such effort. |
I am using the V8 version that was, until recently, available from some SVN URL on https://code.google.com/archive/p/v8/source This is still an old version and I have been trying to update to a more recent one. The 3.24.35 version contains all the attributes referenced in this PR. |
Yesterday I've managed to compile PyV8 against the current V8 branch. Currently I'm retracing my steps and I'll try to post the details today. Unfortunately, I just discovered that somehow PyV8 was still building against old v8-binaries, stuck in the PyV8 directory... This was noticed when compiling it on a clean system. These are the steps taken and noted so far though. https://developers.google.com/v8/build I'm running Debian testing with a pretty clean, base install. V8 instructions: Install depot-tools:
After verifying V8 was build by runing
Updated the path to standalone.gypi using sed. Fixed paths in src/V8Internal.h, by searching for the files in the v8 folder.
|
Thanks for your efforts! I confirm the setup script was modified in order to build the V8 code embedded in the tree. I did it because such release was no more available to download. By the way the trick of setting the env variable V8_HOME allows you to change it but seems like you are already aware of it. Can you share the repo you are working on? I would like to do some tests and even contribute if possible. Thanks again! |
For you convenience I have updated and pushed my repo here: https://github.com/qistoph/pyv8/tree/updateV8 |
Can you confirm gcc 5 is strictly required? Testing the compilation both on Gentoo and Devuan platforms but both failed (gcc-4.9 in both cases). |
Actually, I can't. This was a difference in the vm that it did compile on According to the v8 compile instructions it needs at least something like Op 3 aug. 2016 01:07 schreef "buffer" [email protected]:
|
I am experiencing exactly the same issue on all platforms (V8 compiles if compiled alone but not if compiled from PyV8). I suppose it is due to some of the compile options used by PyV8 setup. I will investigate and let you know. |
Any updates in the mean time? |
No updates in the mean time. Unfortunately this is an extra busy period for me and I was not able to perform any further test. I would like to be able to compile PyV8 vs. the latest version of V8 and hope to be able start working on it by the end of August. Please if you have some updates about that feel free to share. Thanks for your patience. |
Noting here for everyone's convenience... Yesterday I took a look at the code and performed a few tests on the same machine (so same environment). I noticed a few interesting things:
Items 1 and 3 prove that the environment is not the reason behind the failure. I took a look at the differences wrt items 1 and 3 and realized that the only different things are the includes (because part of different versions of V8). This is an excerpt from PyV8 setup.py 149 include_dirs = [ I just tried commenting out line 152 and the issues about incomplete types disappeared. I had no time to deeply investigate but it seems like line 151 and 152 can't live together because they end up redefining some symbols. |
https://github.com/qistoph/pyv8/tree/updateV8 Just tried to build this tree at Ubuntu 16.04 with GCC 5.4.0 with no luck So as described above, I can build V8 directly, but not from PyV8 Maybe some one already have solution to fix this issue? |
Good news to share. I have talked with the author of PyV8 and he is currently porting it to the new V8 API. This means that once the effort will be completed (and maybe it will require some weeks of work) there will be no need for this fork anymore. I will take care of helping him with testing in the next weeks. Thanks for your patience. |
Hi! I'm currently interested in PyV8. |
Unfortunately still no news. The porting effort is taking much more time than expected so no relevant updates... |
Hi, first, thanks for your amazing effort. 👍 ...so it's your tree the preferred choice over the @qistoph one for installing PyV8? Which one has the more recent V8 revision? Regards |
Just came here to say thank you for your effort! Don't really have any issues now, but yet it would be nice to have more recent version of V8 just in case! |
IMHO we should focus our efforts on this branch https://github.com/flier/pyv8/tree/v5_api which attempts to port PyV8 to the latest V8 API version and try to help @flier in finalizing his efforts. |
Would be awesome to hear status from flier himself, because there wasn't much updates lately. |
Thanks to use and contribute to PyV8 project. I have evaluated the new V8 API, it has a lot of API and mechanism changes since latest PyV8 version, we need to discard some PyV8 API and features for migration, that may cause compatibility issues. So, my suggestion is to fix bug and add minor features base on the old version, because it is more stable and good enough for most scenes. If you need my contribution, please let's me known. On the other hand, I will continue put efforts to the Thanks :) |
@flier I totally agree. I think the best thing we can do is to converge our efforts to your repo and avoid wasting time in maintaining our own trees. During the last months I committed some patches and embedded V8 r19632 in the tree (because V8 SVN repo is not available anymore). Please take a look at these changes at https://github.com/buffer/pyv8/commits/master If you agree I would be glad to send a PR. |
I think the first priority for me is to finish the migration to V5 API, it has been a long, drawn-out affair. The good news is I have refactor PyV8 to use new GN building system with dynamic library, but there are still a few of crash because PyV8 base on so many V8 internal mechanism. After that, we could back to discuss how to maintain the old branch, I'm ok to merge PR or use your branch :) |
@flier great to hear that. Please let me know if I can help and I will be glad to do it! |
These commits add some properties to AST classes to allow access to those values from python.