-
Notifications
You must be signed in to change notification settings - Fork 43
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
[WIP] - Extra features for the Node.js FFI support (such as closures) #39
[WIP] - Extra features for the Node.js FFI support (such as closures) #39
Conversation
No hurries or anything, @hamchapman, but just to get somebody to somewhat review what is done here with the |
44cb08e
to
b48cb9d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice 🙌 Awesome work getting this to play nicely 👍
@hamchapman I have manually squash-merged this into #32, which is the "develop" / release branch currently used by ditto. I will keep this WIP branch for some other musings 😄 |
08cbb3e
to
5c13b6f
Compare
6e5416d
to
5c52c43
Compare
5c13b6f
to
94cfb47
Compare
5c52c43
to
bb4a0c6
Compare
@hamchapman could you skim over the last round of updates and improvements? Thanks 🙂 |
)> | ||
> | ||
= None.into() | ||
; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nevermind the "clarity" of this file, I have just used it to write potentially weird patterns that happen to cover / challenge most edge cases of the FFI.
In this instance, within this call_with_42
callback, I am testing the three main situations where a JsFunction
may be called:
- same-thread, original FFI-call,
- background thread,
- same-thread, follow-up FFI call (hence this thread_local)
94cfb47
to
7e5f2dc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Awesome work 👏
Branch to experiment with changes; can only be merged to #32 once that is deemed not to break the
ditto
codebase.