Activity (RSS)

Monday, November 09 2009
31 add support for scopes was updated
  • qvx 3000
    qvx 3000 commented at 11:14 PM

    More recent versions.

  • qvx 3000
    qvx 3000 commented at 5:17 PM

    I see! You are using custom "global class" implementation to track global objects. It is an error to create another global when entering a new scope. To fix thi...

  • Paul J. Davis
    Paul J. Davis commented at 4:58 PM

    Oh found it, it's an email thread I had with some guy. If you email me at paul.joseph.davis@gmail.com I'll forward you the conversation and what my thinking was...

  • Paul J. Davis
    Paul J. Davis commented at 4:55 PM

    Oh, I think the reason is that you're creating a blank scope where as I was doing a leaky thing.

    What happens if you do something like:

    @t.cx()
    def test_scope(...
  • qvx 3000
    qvx 3000 commented at 4:33 PM

    And this is the implementation:

    PyObject*
    Context_enter_scope(Context* self, PyObject* args, PyObject* kwargs)
    {
        PyObject* ret = NULL;
        JSObject* root =...
4 earlier changes…
  • qvx 3000
    qvx 3000 commented at 4:26 PM

    I'v done as I proposed above and the simple tests are working correctly. What did you have in mind when you said that it is not 100% percent correct?

    tests:

    @t...
  • Paul J. Davis
    Paul J. Davis commented at 1:21 PM

    I tried this at one point but I can't find the code for it. The bottom line though is that even though it looks like this should work, it's not quite 100% corre...

  • qvx 3000
    qvx 3000 commented at 10:00 AM

    I see that you are using Context->root as this scope object. How about adding enter_scope/leave_scope which manipulate the root scope object.

    Enter would create...

  • qvx 3000
    qvx 3000 created the ticket at 9:19 AM

    I need to use "scope chain" while evaluating scripts. I have to be able to make a "scope chain" and use it as it is explained in ECMAScript 10.1.4. I see that t...

Tuesday, November 03 2009
30 Build Problem on Unbuntu was updated
  • AnC
    AnC commented at 2:37 AM

    That worked now, thanks a lot!

    Sorry about the horrible log-pasting above; there's no preview or editing functionality, so I couldn't anticipate or fix it.

Monday, November 02 2009
30 Build Problem on Unbuntu was updated
  • Paul J. Davis
    Paul J. Davis commented at 4:30 PM

    AnC,

    Looks like that tarball got screwy with HFS extended attributes. I've uploaded a new version of the tarball that should be fixed. Try that pip install agai...

  • AnC
    AnC commented at 10:33 AM

    My apologies - I did not realize the log was that long. (No way to edit that post now, it seems?)
    Here's the important bits:

    $ sudo apt-get install build-essen...
  • AnC
    AnC commented at 10:25 AM

    I have a similar problem on Ubuntu 9.10 - full log below:

    $ sudo apt-get install build-essential pkg-config python-dev
    $ sudo pip install python-spidermonkey
    D...
Wednesday, September 23 2009
30 Build Problem on Unbuntu was updated
  • Paul J. Davis
    • Tag set to build, pkg-config, setup.py
    • State changed from open to resolved
    by Paul J. Davis at 10:15 PM

    nepenthe,

    Not a problem. I was meaning to getting around to try and detect some common errors in setup.py to help people with that but just haven't gotten to it...

  • nepenthe
    nepenthe commented at 10:07 PM

    Thank you Paul

    Installing pkg-config could solve my problem.

    Thank you very much~~~~~!!

  • Paul J. Davis
    • State changed from new to open
    by Paul J. Davis at 10:50 AM

    nepenth,

    Did you make sure to get nspr-dev and pkg-config installed on your box?

    $ sudo apt-get install libnspr-dev pkg-config
    

    Let me know if that works for y...

  • nepenthe
    nepenthe created the ticket at 4:10 AM

    hi,
    I met same problem as:
    http://davisp.lighthouseapp.com/projects/26898/tickets/20-install-a...

    but my system is Unbuntu, and when I make, the Error msg is a...

Friday, September 11 2009
23 support for file I/O (JS_EvaluateScript) was updated
  • Paul J. Davis
    Paul J. Davis commented at 3:19 PM

    AnC,

    Yeah, I was putting off the upgrade to 1.8 because I wanted to go directly to 1.8.1. In fact I don't even know if the native JSON methods are in 1.8. Eithe...

  • AnC
    • Assigned user set to Paul J. Davis
    by AnC at 2:37 PM

    My apologies for the late response - I didn't have much time to attend to this lately.

    I'm now using JSON to exchange objects, as that seemed to be the least co...

Tuesday, August 18 2009
28 Locale setting? was updated
  • Paul J. Davis
    • Tag set to conversion, unicode
    • State changed from new to resolved
    by Paul J. Davis at 6:30 PM

    Frank,

    Good news. Thanks for reporting back.

    Paul

  • Frank Bennett
    Frank Bennett commented at 6:21 PM

    Paul,

    Sorry for the long delay in responding. This morning I finally took the time to distill the problem down to a simple test script, and installed your versi...

24 debug output for unknown segfault was updated
  • Paul J. Davis
    Paul J. Davis commented at 2:59 AM

    marc,

    Sorry I haven't gotten a chance to follow up on this more thoroughly. Been a bit busy with other projects.

    I'm not sure about Johnson and Ruby. I'd have t...

  • marc
    marc commented at 2:28 AM

    Hi Paul,

    i was a bit curious if Ruby in combination with Spidermonkey and MongoDB results in the same locking problem. Using Johnson (http://github.com/jbarnett...

Monday, August 17 2009
29 Undefined symbol: js_GetProperty was updated
  • Paul J. Davis
    Paul J. Davis commented at 6:29 PM

    BuggyBoy,

    Yeah, sorry about that. This is related to [#11] which is dead in the water until I see a Spidermonkey 1.8.1 release. For the time being you'll need t...

  • CakePHPUser
    CakePHPUser created the ticket at 6:19 PM

    When I 'import sypdermonkey' I get an undefined reference to js_GetProperty. I'm using python 2.5.2 with --system-library for python-spidermonkey version 0.0.9.

    ...
Sunday, August 02 2009
More update awesome. http://github.co... was committed by Paul J. Davis at 10:24 PM
Still converting object.cpp http://gi... was committed by Paul J. Davis at 10:13 PM
More rewriting. Changed the implemen... was committed by Paul J. Davis at 8:43 PM
Tuesday, July 28 2009
28 Locale setting? was updated
  • Frank Bennett
    Frank Bennett commented at 11:23 PM

    Thanks! I'll do an install sometime soon and report back on how we fare.

  • Paul J. Davis
    Paul J. Davis commented at 10:55 PM

    I'll have too look but I would guess that if you can get the locale
    set in python it should work as I'm just using the builtin unicode
    conversions.

    My version o...

  • Frank Bennett
    Frank Bennett created the ticket at 7:49 PM

    I'm working on a JS application that does intensive string parsing (for the formatting of bibliography entries). I have a set of 200+ test fixtures that current...

24 debug output for unknown segfault was updated
  • Paul J. Davis
    Paul J. Davis commented at 12:47 PM

    Marc,

    Oh I haven't gotten around the underlying issue yet. But at least
    you've verified that the new code builds and runs for you so there's
    that. Once I get th...

  • marc
    marc commented at 9:02 AM

    hi paul,

    thanks for your effort. i've tested your newly submitted code on mac os x and unfortunately, there was no magic, it still locks...but i'm looking forwa...

Sunday, July 26 2009
24 debug output for unknown segfault was updated
  • Paul J. Davis
    Paul J. Davis commented at 11:08 PM

    For anyone paying attention, I've started working on rewriting python-spidermonkey with C++. The code will be up at [1] as it appears. My initial prodding with ...

27 Broken tarballs on pypi was updated
  • Paul J. Davis
    • State changed from new to resolved
    by Paul J. Davis at 11:05 PM

    Fixed the tarball with recursive-include. All should be well now.

More RAII plzkthx. Moving towards im... was committed by Paul J. Davis at 10:55 PM
C++ fu has atrophied. http://github.c... was committed by Paul J. Davis at 10:55 PM
Finishing the moving. Next up is RAII... was committed by Paul J. Davis at 10:55 PM
Saturday, July 18 2009
Updated Gento package names. Thanks S... was committed by Paul J. Davis at 1:52 PM
Removed cruft in the source directory... was committed by Paul J. Davis at 1:52 PM
Friday, July 17 2009
27 Broken tarballs on pypi was created
  • Paul J. Davis
    Paul J. Davis created the ticket at 11:20 AM

    Got a report from Roberto that the pypi package is broken. Need to check the MANIFEST stuffs.

Thursday, July 16 2009
24 debug output for unknown segfault was updated
  • Paul J. Davis
    Paul J. Davis commented at 3:26 PM

    Interesting development. I just happened to glance past the docs on building C++ extensions again. It caught my eye in that having try/catch/finally in the Spid...

  • marc
    marc commented at 11:43 AM

    hi paul,

    that's great news. thanks for the quick update :)

    cheers marc

  • Paul J. Davis
    Paul J. Davis commented at 11:24 AM

    marc,

    Doh! I totally meant to get on earlier this week and leave an update on this. I started going through the code last weekend to figure out what I think I'l...

  • marc
    marc commented at 6:41 AM

    hi paul,

    are there any news on the deadlock topic? is there anything i can provide you to help you with this issue (yeah i know, stupid question :)? is it possi...

Friday, July 10 2009
23 support for file I/O (JS_EvaluateScript) was updated
  • marc
    • Assigned user cleared.
    by marc at 4:58 PM

    hi anc,

    i had a quite similar problem. i wanted to return a json string that i can return to the user without running a json.dumps(). all i got from spidermonke...

Thursday, July 09 2009
23 support for file I/O (JS_EvaluateScript) was updated
  • Paul J. Davis
    Paul J. Davis commented at 11:21 AM

    AnC,

    A thought just occurred to me, you might look into something like
    copy.deepcopy to see if you can use that to convert the object
    recrusively.

  • AnC
    AnC commented at 4:23 AM

    Right, I shouldn't just assume that a JavaScript object is identical to a Python dictionary - I can see that now.

    In my particular case, I have a complex JS obj...

Wednesday, July 08 2009
24 debug output for unknown segfault was updated
  • Paul J. Davis
    Paul J. Davis commented at 7:38 PM

    Marc,

    Did a quick bit of reading. The first step I'm going to have to do is go through and wrap lots of code in calls to GIL protection clauses. This won't be t...

  • marc
    marc commented at 9:49 AM

    hi paul,
    good to hear that you are not enemies :) it's not really a webframework i'm building, just playing around with cherrypy and python-spidermonkey to get ...