nodeconf / US-CFP

Call for participation for NodeConf 2015
15 stars 0 forks source link

Native to JS Best Practices #21

Closed trevnorris closed 9 years ago

trevnorris commented 9 years ago

Recently it's become very cheap to call into C++ from JS. Though pending that the API is done correctly. I would like to see a talk that covers this stuff. e.g. The fact that every C++ from JS call is implicitly wrapped in a HandleScope, so they're almost never necessary. Or get into the performance cheats between storing flags in external memory that are easily shared between JS and C++. Also how working with object properties in C++ should be pushed back to JS land.

There will probably be a section on https://github.com/rvagg/nan, but I'd like the emphasis to be on how users should feel more confident to get the performance results they're looking for, and not be afraid of writing native modules.

Possibly add a brief primer on how to write applications from scratch that easily allow these types of improvements in the future. W/o needing to work around past cruft.

springmeyer commented 9 years ago

Fantastic proposal @trevnorris.

helvitismaddi commented 9 years ago

+1

gunnik commented 9 years ago

:+1:

mikeal commented 9 years ago

As you may have seen we had to cancel the speaking event at the Fox Theatre.

You're welcome to join us at Walker Creek Ranch for NodeConf Adventure which is an un-conference with attendee driven worksshops and discussion sessions. If you'd like to adapt this topic or any other idea to that format and you're planning on attending just log an issue in the Adventure repo.