Skip to content

Conversation

@mamod
Copy link
Owner

@mamod mamod commented Nov 7, 2015

This new release is toward stabilizing and introduce new API

The new API mainly to_perl_object will provide a new way to call javascript objects from perl, where we will be able to get javascript objects and use them from perl the exact way they are used in javascript land.

Another issue to address is circular references, the current behavior is that we store perl subs in global hash to avoid being garbage collected while still needed by javascript, this will make it a memory hog once we try to push hundreds of perl functions, this version will introduce a fix for this problem by using duktape internal object finalizers, this solution will make things a little bit slower but much better with memory usage, there are some other ideas to fix this issue but at this stage object finalizes seems a good solution.

mamod added 3 commits November 6, 2015 00:50
- introducing new api
- code clean
- to_perl_object
Conflicts:
	lib/JavaScript/Duktape.pm
@mamod mamod modified the milestones: to_perl_object, free circular references Nov 7, 2015
mamod added 2 commits November 7, 2015 05:50
This is a simple benchmark for checking during v1.0.0 development
release, we need things to be as fast ass possible
@mamod mamod closed this Nov 12, 2015
@mamod
Copy link
Owner Author

mamod commented Nov 12, 2015

reopened with #4

@mamod mamod deleted the v1.0.0_2 branch March 27, 2016 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants