r/javascript • • Oct 11 '17

JavaScript's Promise is Memory Unsafe

https://alexn.org/blog/2017/10/11/javascript-promise-memory-unsafe.html
70 Upvotes

77 comments sorted by

View all comments

0

u/[deleted] Oct 11 '17

[deleted]

-21

u/alexelcu Oct 11 '17 edited Oct 11 '17

Because my previous post was downvoted to hell, for readers of this toxic opinion, here's some references:

  1. this person calling me a scumbag

  2. Node recognizing this as a spec problem, so it cannot be fixed, along with people experiencing problems in production, see Memory leaks in loops with Promise

  3. Promises/A+ spec issue, the issue still being open, since 2014: chain of never resolved promises create memory leaks

I have also updated the article with these links. Thanks to /u/Ginden and /u/1-800-BICYCLE.

0

u/[deleted] Oct 11 '17

[deleted]

3

u/alexelcu Oct 11 '17

Well, it's been opened since 2014. I guess I should go ahead and open a duplicate.

But that might be another scumbag thing to do. Hmm, I'm confused, my moral compass is malfunctioning.

0

u/[deleted] Oct 11 '17

[deleted]

1

u/alexelcu Oct 11 '17

I've built no less than 3 libraries implementing the promise pattern, along with Haskell's IO, a closely related cousin: Monix, cats-effect and now funfix.org (and have in plan to contribute ports to kategory too).

If I was right, it was not by accident, this particular topic being an interest of mine for several years actually.

Thanks for enlightening me about the virtues of this community. I've been educated.

0

u/[deleted] Oct 11 '17

[deleted]

1

u/alexelcu Oct 11 '17

Oh, was that a question you want an answer for?

Yes, it's been my dream to kill JavaScript's Promise, fragmenting the strong community we have here, lurking in the shadows and waiting for the perfect opportunity. But no, it's not JavaScript's Promise in particular that occupied my time, I just happened to notice it when my process crashed in the middle of the night.

Also, I don't owe you, or the core promise devs or anybody else anything, unless I'm getting paid, so when hearing this reproach, I can't believe it.

Seriously, how low can you get?