Search found 19 matches

by ddribin
Mon Jul 28, 2008 10:45 pm
Forum: JSXObjC
Topic: Performance enhancement by avoiding conversion
Replies: 5
Views: 5027

Hello,

Do you plan on applying that patch? The current code in Subversion is broken in regards to this.

-Dave
by ddribin
Wed Jun 04, 2008 6:01 pm
Forum: JSXObjC
Topic: Performance enhancement by avoiding conversion
Replies: 5
Views: 5027

I upgraded to r9 to try this out. I found a couple of bugs. Here's a patch: http://dl.getdropbox.com/u/27036/tmp/JSKit-raw-r9.patch The numberOfArguments check was incorrect (should be 6 args, not 5) and it was retaining target when it shouldn't be. Other than that, it works great! Thanks! Not sure ...
by ddribin
Fri May 30, 2008 7:45 pm
Forum: JSXObjC
Topic: Performance enhancement by avoiding conversion
Replies: 5
Views: 5027

Performance enhancement by avoiding conversion

Okay, I think this is the last performance enhancement I've got. :) Here's the patch, made against svn r7 for another 12% speedup in certain circumstances: http://www.dribin.org/dave/tmp/jskit-r7-convertReturnValue.patch It does two things. First, instead of converting the JSValueRef * arguments in ...
by ddribin
Fri May 30, 2008 7:17 pm
Forum: JSXObjC
Topic: Public svn for JSKit, updates
Replies: 4
Views: 4354

I just checked out svn r7, and it works great! Thanks!

-Dave
by ddribin
Wed May 28, 2008 7:41 pm
Forum: JSXObjC
Topic: Public svn for JSKit, updates
Replies: 4
Views: 4354

Thanks for restructuring the code! I noticed that JSKitBridgeInvocation is still in the JSKitBridgeObject header/source file. Ideally, I'd like to just copy all the code in JSKore into my project. As it stands, I need to copy everything in JSKore + JSKitBridgeObject.{h,m}. Two possible solutions. Pu...
by ddribin
Wed May 28, 2008 7:13 pm
Forum: JSXObjC
Topic: Public svn for JSKit, updates
Replies: 4
Views: 4354

Fantastic! I'm checking it out, now. Did you release 0.2b1, or will you release 0.2b1 based on this code? Didn't see a 0.2b1 tag in svn.

-Dave
by ddribin
Fri May 23, 2008 1:22 am
Forum: JSXObjC
Topic: Project organization
Replies: 3
Views: 3932

Bringing this back to the whole "linking directly" I've yet to decide on what is the best way to handle "extensions". Taking a simple example of Quartz, I can generate bridging code to be able to call all the CG routines (subject to compile OS dependancies noted above), but the result is fairly lar...
by ddribin
Fri May 23, 2008 1:11 am
Forum: JSXObjC
Topic: JSKitInterpreter performance enhancements
Replies: 3
Views: 3728

Here's an updated version of this patch: http://www.dribin.org/dave/tmp/interpreter-2008052301.patch.gz Apply to a clean JSKit 0.1b1. It includes a new class in JSKore called JSKitObjCFunction. It's virtually the same as JSKitBridgeInvocation except it does not retain target. This could easily repla...
by ddribin
Fri May 23, 2008 1:06 am
Forum: JSXObjC
Topic: Using KVC for NSObject properties
Replies: 5
Views: 5978

Here's an updated version of this patch: http://www.dribin.org/dave/tmp/wrapper-2008052301.patch.gz Apply to a clean JSKit 0.1b1. It includes faster NSNumber conversion (by avoiding -className) and provides KVC on arrays. The previous patch KVC worked on everything *but* arrays. Arrays would only re...
by ddribin
Mon May 19, 2008 5:05 pm
Forum: JSXObjC
Topic: Project organization
Replies: 3
Views: 3932

Project organization

In the documentation, you recommend against including the source directly in your project. I disagree with this, as I often prefer including the source in my own project. I prefer not to have many private frameworks (for various reasons). Also, for applications where frameworks are not possible (com...
by ddribin
Mon May 19, 2008 4:55 pm
Forum: JSXObjC
Topic: JSKitInterpreter performance enhancements
Replies: 3
Views: 3728

JSKitInterpreter performance enhancements

Hello, Here's a patch for some performance enhancements when calling global functions. It cuts down the overhead of globalFunctionCallback() by ~25%-30%. It also includes my previous patch regarding memory leaks: http://www.dribin.org/dave/tmp/interpreter-2008051901.patch.gz The basic idea is to rep...
by ddribin
Mon May 19, 2008 12:16 am
Forum: JSXObjC
Topic: Using KVC for NSObject properties
Replies: 5
Views: 5978

The flip problem is that any JavaScript code that does "value === true" still needs to work properly as well. I believe this works as expected, so long as "value" is an NSNumber that was created with numberWithBool:YES. At least it seems to work in my quick testing. BOOLs wrapped as NSNumbers are p...
by ddribin
Thu May 15, 2008 8:18 am
Forum: JSXObjC
Topic: Using KVC for NSObject properties
Replies: 5
Views: 5978

I'm not too sure about the NSNumber boolean conversion, since it relies on internal implementation details that aren't documented. Speaking hypothetically, I'd like to be able to use JSKit on the iPhone, and relying on implementation details of one implementation may not translate well to other imp...
by ddribin
Wed May 14, 2008 1:20 am
Forum: JSXObjC
Topic: Using KVC for NSObject properties
Replies: 5
Views: 5978

Using KVC for NSObject properties

Here's a patch that updates the NSObject and NSDictionary wrappers to use KVC to resolve properties. It also fixes NSNumber conversion when it holds a boolean: http://www.dribin.org/dave/tmp/wrapper-2008051401.patch.gz This allows you to pass Objective-C objects to JavaScript and use JavaScript prop...
by ddribin
Wed May 14, 2008 1:12 am
Forum: JSXObjC
Topic: Leaks creating many JSKitInterpreter
Replies: 4
Views: 4622

Here's a patch that fixes the leaks:

http://www.dribin.org/dave/tmp/interpre ... 1.patch.gz

It also removes the need for any global variables.

-Dave