Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

32bit or 62bit node? If 64bit did you specify it can use more ram than the 1.7GB that's the default setting?

You can up the limit by starting node with --max-old-space-size=<size in MB>



Fibonacci isn't a kind of problem that should be bounded on RAM though. Something is fundamentally broken with the way this is implemented.


Sure it is. Stack space isn't free


It is with TCO.


How exactly is the particular implementation in question tail-call optimized? Honest question, not trying to be snarky. I'm well aware that fib can be done to use TCO, but this doesn't appear to do so




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: