From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Gerd_M=C3=B6llmann?= Newsgroups: gmane.emacs.devel Subject: Re: MPS: dangling markers Date: Sat, 29 Jun 2024 20:04:07 +0200 Message-ID: References: <87v81u85hv.fsf@localhost> <87frsx81m2.fsf@localhost> <87cyo180y2.fsf@localhost> <874j9d7zqe.fsf@localhost> <87sewvg6lw.fsf@localhost> <86ed8fiug3.fsf@gnu.org> <86cynzis2n.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30212"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: yantar92@posteo.net, monnier@iro.umontreal.ca, emacs-devel@gnu.org, eller.helmut@gmail.com To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jun 29 20:04:35 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sNcR9-0007hY-Kl for ged-emacs-devel@m.gmane-mx.org; Sat, 29 Jun 2024 20:04:35 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sNcQo-0002aS-5D; Sat, 29 Jun 2024 14:04:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sNcQm-0002aI-S6 for emacs-devel@gnu.org; Sat, 29 Jun 2024 14:04:12 -0400 Original-Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sNcQl-0003UU-7C; Sat, 29 Jun 2024 14:04:12 -0400 Original-Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-42567ddf099so12393675e9.3; Sat, 29 Jun 2024 11:04:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719684249; x=1720289049; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=g7anrxgjHm1n0ZKGAq/x6CaPAYbyESog/2KkC1vDQC0=; b=lqoPHAvJcNG0wf5AH4/xkd83t5B+qQi7Bi+Qt7dX14uUZyrvnHLCsjYL556jqb3P2f pmJRVZJPBzWvSg12jW9VUKjhIfZEFEMvMnC9fS+bJfw8k9eKPyVyjY1sv7Byr/Lsh/SB PnuizwapkJUK6kIQfkSYxi/DmvjP8e33EY3uZX6baSSlLxC/Rm9A2NETZuabdbT/tDub eQOPI1HE5CJ3vuIFkra2A35P8anLodtKbviV/obKNSuGCO9b1FvC5HSXfIVgAnlD2bqn COHPR28nRYYZynPNogy9ZnzTeOSDsSaOm/S85ClFceFWAqjKhCYz//EG4AKuEy7oPEDj 0CHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719684249; x=1720289049; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=g7anrxgjHm1n0ZKGAq/x6CaPAYbyESog/2KkC1vDQC0=; b=BNYbC46phFzlgdmtuclqOM8/uda8FGEvAzd/zQMx0spxUmVe/XPdEBGAFwuAeTO3oA PqMmcu8HtgDKzS2jgc6fUoTVqc1cmFSKhCxj6xbA1SwwPKlBiXoxXY4tHujMMvaAZwEB huS+Pesl4boAILzA/U58czcbVdg6jdmznsVevwchwauLsSj96XYg9yYi+1Tit1rHhYpq Bko1/d3Rtklz55qEtln2iwUcAuItgy7a7n27hjVWnmOJKqNU+yZJ7N6V8rj5beCPQyf/ zBkIWbGqZHL3gExDtQ9uqxED4kb9iKOrKWa+xMj/0W88ML4Awfeuy+C5PLFJRspCg7kl R14g== X-Forwarded-Encrypted: i=1; AJvYcCVaXsWawAKCpSGpaxO2zjcE7Bf9shqItpnjIVR/kAlEHaYhgU0Mm5Ed8MwWTLsnoc5IoqUgk+pcVa/RSc8H0aTJ4ju3 X-Gm-Message-State: AOJu0Yy//s0SnLu/bGGf6ZLfMfRhsDgFTs54c2UlAhNfUfJINt6ch2N5 MdwaQ5e5AMfF3cBeK29jWfPPC3DqY6AsLEIXBHjC/OJIuYVQS9UtKN0rTA== X-Google-Smtp-Source: AGHT+IHb/njMrXML1tb+baIIoQ1HTb0fWZTVYjGQYn2HOgxspCkiOdBbuyHoTn7KVfO+lyqdsVSRZg== X-Received: by 2002:a05:600c:35c6:b0:425:641c:5f46 with SMTP id 5b1f17b1804b1-4257a02cde0mr8305855e9.30.1719684248552; Sat, 29 Jun 2024 11:04:08 -0700 (PDT) Original-Received: from pro2.fritz.box (pd9e36598.dip0.t-ipconnect.de. [217.227.101.152]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4256b0621fesm84757345e9.24.2024.06.29.11.04.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Jun 2024 11:04:08 -0700 (PDT) In-Reply-To: <86cynzis2n.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 29 Jun 2024 20:20:32 +0300") Received-SPF: pass client-ip=2a00:1450:4864:20::32a; envelope-from=gerd.moellmann@gmail.com; helo=mail-wm1-x32a.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, FREEMAIL_REPLY=1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:320874 Archived-At: Eli Zaretskii writes: >> From: Gerd M=C3=B6llmann >> Cc: yantar92@posteo.net, monnier@iro.umontreal.ca, emacs-devel@gnu.org, >> eller.helmut@gmail.com >> Date: Sat, 29 Jun 2024 19:09:03 +0200 >>=20 >> > I think we can use a completely different data structure for >> > character-to-byte conversions. There's no need to use markers for >> > that, and there's no need to create extra markers. We could instead >> > maintain an itree of positions with their character and byte values, >> > as a field of 'struct buffer' that is not exposed to Lisp. >> > >> > WDYT? >>=20 >> I must admit that my overview of that whole area is pretty limited. >> I only remember that markers were always kind of a problem :-). >>=20 >> Would such a data structure be similar to recording deletions/insertions >> of buffer text? > > No, just pairs of character position and the corresponding byte > position. > >> Anyway, it's a lot of work, of course. > > But the itree structure and the supporting code already exist, so why > would that be a lot of work? For sure more work than concocting a DO_MARKERS :-).