Better HN
topnewbestaskshowjobs
Log inSign up

sbaxter

6 karma · joined Nov 29, 2016 (9y ago) · 2 submissions

https://baxtersa.github.io
Submissions

comment 8y ago · link · parent

Thanks for pointing that out! (I'm one of the developers)

I've logged an issue.

comment 8y ago · link · parent

Cool stuff! I work with @jpolitz and @enum on the Stopify project as well.

Early on we also implemented a similar generator approach to what you described (as well as CPS). We found that it mostly worked, but had a few drawbacks. Specifically, generators change the type of instrumented functions, which makes it difficult to implement constructors and prototype inheritance, and they also break tail calls in environments that support them. More importantly for practical concerns, we found it to be much slower (at least 2x-3x) than the solution we came up with.

Again, happy to share more information with you!