On Tue, Jun 25, 2013 at 3:01 PM, Dan Carney <[email protected]> wrote:

> I feel your pain.  Converting chrome was a large amount of tedious work.
>

With a large team. My v8-based projects have an active team of one with
some 5 years of accumulated code based (centered!) on the
InvocationCallback interface. :/


Ultimately, though, the v8 team does not want to support two APIs for any
> sustained amount of time.  I've put up a header only library on github that
> embedders can use if they do not want to rewrite all their callbacks:
> https://github.com/drcarney66/v8-backport.  You will, however, have to
> install wrap<your_old_function_name> at callback registration time
>
instead of your_old_function_name.  This far from a perfect solution, but
> should help in a lot of cases, and it's certainly less work that manually
> converting a zillion functions.  Note that performance sensitive functions
> should be converted.
>

i will certainly be taking a look at that. Maybe i can use it as a pattern
for porting even if i can't use it directly. My code is primarily
library-level templates which convert arbitrary client-side functions to
InvocationCallbacks (http://code.google.com/p/v8-juice/wiki/V8Convert_XTo),
so these changes really hit me where it hurts.


> Additionally, as things like Arguments, InvocationCallback, and
> AccessorInfo are removed from v8.h, I'll just create a compatible version
> in the header which should keep things compiling for anyone choosing to use
> that library.
>

i honestly don't think i can continue my own v8 projects without a path
like this one.

One further note: instead of removing Local, Handle is going to be removed
> instead, which should cause embedders a lot less pain.
>

i've never understood the difference, anyway - i just used whatever v8
called for at the time. Globally replacing these is easy compared to
changing a function's signature.

Thanks for the feedback, and Happy Hacking...

-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/
http://gplus.to/sgbeal

-- 
-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to