From: moasenwood--- via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: <somecodingsystem> (was: Re: Replacement for string-as-unibyte-function)
Date: Mon, 01 Feb 2021 17:05:35 +0100 [thread overview]
Message-ID: <878s87g4ds.fsf_-_@zoho.eu> (raw)
In-Reply-To: jwv8s87n8fv.fsf-monnier+emacs@gnu.org
Stefan Monnier wrote:
> Emacs receives the data from the process as a sequence of
> *bytes* (after all, that's the only thing available in POSIX
> communication). So in order to pass a sequence of *chars*
> (aka "a multibyte string") to the process filter, Emacs's
> internal C code has to do the equivalent of
>
> (*de*code-coding-string "thedatareceived" '<somecodingsystem>)
>
> where <somecodingsystem> is the coding system that
> `make-network-process` decided to use for that process.
Interesting, are we here talking computer communication in the
protocol sense, which is basically the format of the message
(the syntax of the packet, usually it has field with different
metadata, then payload (the actual message), and BTW the
metadata can refer to both the payload (e.g., its length) but
also to the communication itself), furthermore the protocol
stipulates the way messages should be sent between hosts
(e.g., in what order), and last but not least, when syntax and
procedure is covered, what it all means - the semantics.
This is illustrated with Alice and Bob in the Anglo-American
world and Abelard and Héloïse in the Franco-phone world, with
arrows going back and forth between them. (Apparently they
existed, and exchanged letters in the 12th century [1].) (I
use to joke about "Care of Héloïse" when I clean and organize
all my zillion tools and toolboxes. Get it? Instead of "Care
of Kit" :) [2])
This is what I remember from school anyway. Or is it more like
Unix IPC? In that case, what I remember ... err, we all use
IPC every day.
What I _don't_ have a snappy answer for, not from school and
not from everyday life, is <somecodingsystem>? What is
a coding system?
[1] https://en.wikipedia.org/wiki/H%C3%A9lo%C3%AFse
[2] https://dataswamp.org/~incal/tree-house/care-of-heloise.jpg [photo]
--
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal
prev parent reply other threads:[~2021-02-01 16:05 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-31 23:01 Replacement for string-as-unibyte-function Joe Riel
2021-02-01 3:03 ` Stefan Monnier
2021-02-01 5:55 ` Joe Riel
2021-02-01 14:53 ` Eli Zaretskii
2021-02-01 16:33 ` Joe Riel
2021-02-01 17:05 ` Eli Zaretskii
2021-02-01 23:43 ` Joe Riel
2021-02-02 3:30 ` Eli Zaretskii
2021-02-02 3:51 ` Joe Riel
2021-02-02 14:58 ` Eli Zaretskii
2021-02-01 15:01 ` Stefan Monnier
2021-02-01 16:05 ` moasenwood--- via Users list for the GNU Emacs text editor [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878s87g4ds.fsf_-_@zoho.eu \
--to=help-gnu-emacs@gnu.org \
--cc=moasenwood@zoho.eu \
/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.
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).