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

trampoline #265

Closed
rockymadden opened this Issue Jan 5, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@rockymadden
Collaborator

rockymadden commented Jan 5, 2018

Thoughts on adding trampoline? It used to be in Ramda itself1 but was removed for a number of reasons. With TCO still not implemented2, except for Safari, and Chrome not working on it at all3, we might not see it for quite some time. I'd like to use Y, trampoline, and thunks to do stack safe recursion 4. Bilby.js5 has an interesting implementation in that it also offers cont and done functions to work with trampoline to allow you to return functions and still have the trampolining work.

  1. ramda/ramda#1484
  2. https://kangax.github.io/compat-table/es6/
  3. https://www.chromestatus.com/feature/5516876633341952
  4. https://gist.github.com/mrkaspa/d814619283d6a8ac5916
  5. https://github.com/puffnfresh/bilby.js
@char0n

This comment has been minimized.

Show comment
Hide comment
@char0n

char0n Jan 5, 2018

Owner

Already part of #66

Owner

char0n commented Jan 5, 2018

Already part of #66

@rockymadden

This comment has been minimized.

Show comment
Hide comment
@rockymadden

rockymadden Jan 5, 2018

Collaborator

Nice, thanks.

Collaborator

rockymadden commented Jan 5, 2018

Nice, thanks.

@rockymadden rockymadden closed this Jan 5, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment