unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#27698: Guile takes over system +rant
@ 2017-07-15  0:39 Ster Chess
  2017-07-15 18:52 ` Mark H Weaver
  0 siblings, 1 reply; 2+ messages in thread
From: Ster Chess @ 2017-07-15  0:39 UTC (permalink / raw)
  To: 27698

[-- Attachment #1: Type: text/plain, Size: 1259 bytes --]

I'm sorry if this has already been suggested as a bug, but I couldn't find
it in the bug tracker.
If I create a simple recursive factorial function, and choose huge values
for it, Guile will happily do my bidding and take all the system resources
and my whole system becomes unusable. This should never happen. Python and
other scripting languages usually limit how much of the system's resources
they take up, and Python limit the depth of recursion (obviously not
appropriate for Scheme). I planned to use GNU Guile for a small project,
but I will most likely shift to another extension language because I cannot
deal with this issue.
Furthermore, can I make a polite recommendation that you shift over to a
GitLab repository (git.gnu.io, like GNU fm and GNU social?), or something
with a decent interface? The bug tracker is so old-fashioned, and
submitting issues by email?! This might sound rude but I'm honestly trying
to help.
Worse still, you advertise support for ECMAScript on your website, but as
far as I can tell, that's not really the case, since "The implementor was
completely irresponsible". Am I mistaken?
Finally, is Lua support under active implementation?
Sorry to rant at you, would appreciate a reply,
Some random guy off the internet.

[-- Attachment #2: Type: text/html, Size: 1407 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#27698: Guile takes over system +rant
  2017-07-15  0:39 bug#27698: Guile takes over system +rant Ster Chess
@ 2017-07-15 18:52 ` Mark H Weaver
  0 siblings, 0 replies; 2+ messages in thread
From: Mark H Weaver @ 2017-07-15 18:52 UTC (permalink / raw)
  To: Ster Chess; +Cc: 27698

Ster Chess <sterchess@gmail.com> writes:

> I'm sorry if this has already been suggested as a bug, but I couldn't
> find it in the bug tracker.  If I create a simple recursive factorial
> function, and choose huge values for it, Guile will happily do my
> bidding and take all the system resources and my whole system becomes
> unusable. This should never happen.

If you want to limit the stack size within Guile, see
'call-with-stack-overflow-handler', described here:

  https://www.gnu.org/software/guile/manual/html_node/Stack-Overflow.html

      Mark





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-07-15 18:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-15  0:39 bug#27698: Guile takes over system +rant Ster Chess
2017-07-15 18:52 ` Mark H Weaver

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).