all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Vladimir Sedach <vas@oneofus.la>
To: Wayne <waynedpj@ingiro.xyz>
Cc: Help Guix <help-guix@gnu.org>
Subject: Re: Shepherd and Guille
Date: Wed, 31 Oct 2018 21:19:38 -0700	[thread overview]
Message-ID: <38769.5580175661$1541046093@news.gmane.org> (raw)
In-Reply-To: <20181030203931.Horde.EDavbeYeoefPBQZ9euUxC25@mail.ingiro.xyz>

> which raises some issues with the Shepherd init system (towards the
> end in the section "Robustness and failure modes"), in particular
> with  its use of an interpreted and garbage collected language.  i
> was  wondering if anyone here with knowledge about this would care to
> comment on the validity of these concerns?

I just skimmed it and it looks like the typical ignoramus FUD. The
author cannot even tell the difference between an interpreter and a
VM. Also amusing is this quote: "JITs can do amazing things, at least
in memory usage." I presume the author here is confusing JITs with
tracing or profile-directed run-time optimization (another mistake
common to people who do not understand dynamic language run-times).
Yes, those can indeed do amazing things in memory usage, namely using
up gigantic amounts of it.

There is about 50 years worth of applications in using dynamic
languages for systems programming (starting with BBN LISP/Interlisp).
The biggest problem is bounding garbage collection pauses. There are
various ways to do this (the simplest being to pre allocate memory).

As for handling running out of memory, the author could have answered
his own question by taking a minute to search through the Guile
sources:

gc-malloc.c:139   scm_report_out_of_memory ();

throw.c:639 throw_without_pre_unwind (scm_out_of_memory_key,
out_of_memory_args);

And indeed in NEWS:
Instead of aborting, failures to allocate memory will now raise an
unwind-only `out-of-memory' exception, and cause the corresponding
`catch' expression to run garbage collection in order to free up memory.

So you catch the exception and perform some appropriate action. Here
I am not exactly sure what the appropriate thing for an init system
to do would be - fail at starting a new service?

Vladimir

  reply	other threads:[~2018-11-01  4:23 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-31  0:39 Shepherd and Guille Wayne
2018-11-01  4:19 ` Vladimir Sedach [this message]
     [not found] ` <87o9b9ig4l.fsf@exinda.orion.oneofus.la>
2018-11-04  9:39   ` Pierre Neidhardt
2018-11-08  4:12     ` Wayne
2018-11-08  7:58       ` Pierre Neidhardt
2018-11-09  5:18       ` Vladimir Sedach
     [not found]       ` <5be518c9.1c69fb81.90d67.495dSMTPIN_ADDED_BROKEN@mx.google.com>
2018-11-10  1:46         ` Maxim Cournoyer
2018-11-13  4:22           ` Wayne

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='38769.5580175661$1541046093@news.gmane.org' \
    --to=vas@oneofus.la \
    --cc=help-guix@gnu.org \
    --cc=waynedpj@ingiro.xyz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.