CODE [sic]

Contributing to the web technology conversation

Skip to content
  • Home
  • About
  • Updating libxmljs on node.js: or, how to suck less at Google v8

    06-17-2010 5:20 AM

    I just released the latest version of libxmljs for node.js http://github.com/polotek/libxmljs/tree/0.4.0. This is a major release that doesn't have many visible changes but lots of stuff happened under the hood. I figured it'd be good to describe some of my struggles with Google v8

    Debugging Segmentation Faults

    Previous versions of libxmljs were rife with segfaults that would pop up without warning. There are lots of reasons for this, but the most common had to do with not following best practices with the v8 API. V8 has this notion of Handles that are used to hold references to javascript objects in C/C++ space. Among other things, this design decision gives v8 a nice way to keep track of js references and clean them up at the appropriate time. A contrived example (assume v8 namespace).

    Keep Reading Updating libxmljs on node.js: or, how to suck less at Google v8 ยป

    comments (11)

I like open software

Calendar About Nothing tracks my public contributions on GitHub.

  • Categories

    description
    List of Categories for Posts
    • axiom stack (2)
    • blog updates (2)
    • browsers (1)
    • content management (2)
    • databases (1)
    • e4x (1)
    • exception handling (1)
    • extjs (1)
    • facebook (2)
    • firefox (2)
    • firefox add-ons (2)
    • google chrome (1)
    • greasemonkey (2)
    • imho (3)
    • java (1)
    • javascript (4)
    • libxmljs (1)
    • markdown (1)
    • narwhal (1)
    • node.js (2)
    • OODB (1)
    • opinions (1)
    • RDBMS (1)
    • safari (1)
    • semantic markup (1)
    • serverjs (1)
    • stupid dev questions (2)
    • uneducated opinions (1)
    • wysiwyg (1)
  • Recent Entries

    title
    Recent Posts
    description
    Most Recent Posts by Date Published
    • A quick rant on web development and elegant solutions
    • The Node.js Community Could Use Some TLC
    • A quick project to create an ebook from html
    • Updating libxmljs on node.js: or, how to suck less at Google v8
    • Creating a Blog I'll Actually Use

Powered by Axiom® Stack