# HG changeset patch # User wenzelm # Date 1656145662 -7200 # Node ID 9639c3867b86e4e393f9659f438e34742c8acb1b # Parent 85a7795675be6f8436edb71b894588d2ea68460a more documentation; diff -r 85a7795675be -r 9639c3867b86 src/Doc/Implementation/ML.thy --- a/src/Doc/Implementation/ML.thy Sat Jun 25 10:05:43 2022 +0200 +++ b/src/Doc/Implementation/ML.thy Sat Jun 25 10:27:42 2022 +0200 @@ -1394,6 +1394,16 @@ ``\<^verbatim>\\\'' natively, \<^emph>\without\ escaping the backslash. This is a consequence of Isabelle treating all source text as strings of symbols, instead of raw characters. + + + \begin{warn} + The regular \<^verbatim>\64_32\ platform of Poly/ML has a size limit of 64\,MB for + \<^ML_type>\string\ values. This is usually sufficient for text + applications, with a little bit of YXML markup. Very large XML trees or + binary blobs are better stored as scalable byte strings, see type + \<^ML_type>\Bytes.T\ and corresponding operations in + \<^file>\~~/src/Pure/General/bytes.ML\. + \end{warn} \ text %mlex \ @@ -1428,7 +1438,8 @@ \<^descr> Type \<^ML_type>\int\ represents regular mathematical integers, which are \<^emph>\unbounded\. Overflow is treated properly, but should never happen in practice.\<^footnote>\The size limit for integer bit patterns in memory is 64\,MB for - 32-bit Poly/ML, and much higher for 64-bit systems.\ + the regular \<^verbatim>\64_32\ platform, and much higher for native \<^verbatim>\64\ + architecture.\ Structure \<^ML_structure>\IntInf\ of SML97 is obsolete and superseded by \<^ML_structure>\Int\. Structure \<^ML_structure>\Integer\ in