Stream: Mirror: Isabelle Development Mailing List

Topic: NEWS: low-level string operations in Isabelle/ML


view this post on Zulip Email Gateway (Nov 12 2026 at 21:13):

From: Makarius <makarius@sketis.net>

* ML *

This refers to Isabelle/ad6679bf69a4.

Further note that String.explode_str avoids the stack-based implementation of
structure SML90, which could cause problems with very large input. This was
discovered by Martin Desharnais-Schäfer.

As a reminder, see also the "implementation" manual (a4b37e45d75b):

paragraph ‹Historical note.›
text ‹
In the original SML90 standard the primitive ML type \<^ML_type>‹char› did not
exist, and \<^ML_text>‹explode: string -> string list› produced a list of
singleton strings like \<^ML>‹String.explode_str: string -> string list› in
Isabelle/ML today. When SML97 came out, Isabelle did not adopt its somewhat
anachronistic 8-bit or 16-bit characters, but the idea of exploding a string
into a list of small strings was extended to ``symbols'' as explained above.
Thus Isabelle sources can refer to an infinite store of user-defined
symbols, without having to worry about the multitude of Unicode encodings
that have emerged over the years.
›

Makarius


Last updated: Dec 02 2026 at 13:38 UTC