Hacker News new | past | comments | ask | show | jobs | submit login

It does crash "on principle" though.

That's not an implementation bug!

If you `recur` less often it works just fine.

Like I said, the language as such can't catch such bugs, as I see it.




Uh, that one is an implementation bug. It's presumably compiling the call to recur as a normal C call. It should either be a goto (or loop, w/e) or use the musttail compiler extension.


That’s not a bug, it’s a limitation of your operating environment. Increase the stack size and it would work. What else would you expect to happen?


> That’s not a bug, […]

Yes, I've mentioned this.

> […] it’s a limitation of your operating environment.

No, it isn't.

Memory is finite.

If your language doesn't handle this fact it's inherently unsafe, and a ticking time bomb.

> What else would you expect to happen?

Simply: No random crashes.

Especially as such a crash relies on the environment where the code is run. So it may work just fine "on your machine" but than crash in production…

That's imho a big no-no for anything that wants to be a "safe systems language" (especially as the post is mentioning things like nuclear power plants as target audience).




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: