Re: [m-users.] A question about in-place updating...

Volker Wysk <[email protected]>
Newsgroups gmane.comp.lang.mercury.general
Message-ID <[email protected]>
Am Dienstag, dem 29.08.2023 um 12:58 +1000 schrieb Julien Fischer:
> On Mon, 28 Aug 2023, Volker Wysk wrote:
> 
> > Am Montag, dem 28.08.2023 um 13:02 +0100 schrieb Sean Charles
> > (emacstheviking):
> > > 
> > > It's an interesting question for me to ponder at the moment! Given all
> > > that Mercury does, I am guessing that there are no ways to 'pin' a block
> > > of memory such that it can then be reused over and over, I have played
> > > around with bitmap but that's not really built for generic structures etc.
> > > I guess if it came to the crunch I could always re-code those things that
> > > need maximal performance in C but that kind of negates the reason I
> > > decided to write this game in Mercury.
> > 
> > What you describe seems to be a case for unique modes. See section 6 in the
> > Language Reference Manual.
> 
> In princple, yes. In practice, the limitations listed in section 6.3
> mean they're not really useful for that purpose.

In section 6.3: "The only destructive update in the current implementation
occurs in library modules, e.g. for I/O and arrays. We do however plan to
implement structure reuse and compile-time garbage collection in the
future."

Briefly, how are chances that this will happen in foreseeable future?

Cheers,
Volker

_______________________________________________
users mailing list
[email protected]
https://lists.mercurylang.org/listinfo/users
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEE6QXGh82Ov3+2nrxp+K4ydFOsHoUFAmTtwBIACgkQ+K4ydFOs
HoVAJxAApcaSnBMbj5EAXLvKFUsZjCnO04abWRsLlP9CmEu2c7NLUiz5Fd8FhfZM
T3ye9IYMlCywV25fVS1JR5Q+RGAvJ+f++a9LcVXV34NiqWqsYY5e6MN/Yp5v0ovY
zwwp7YA4TkdFJld0N2ZeTNPy9QzZ2kiBhC2VlCPpKGc8FsD/tzJqFrrL5zlsmvUa
Ui1TfpCOwSNVNfSRGoP8SQWxEzZmjJ5/t9oi4EmoSze7IOjyZ4/WVvQb9d4d6SHn
33ejnKoiYmWdDocEa//cOXtP1N2kvLnF0OAUQpwZG1WLvMXvku7ncG4hpj6DCZX3
PIB/FoexHOGERbulvANtEa3NE3FGHvq2QVjXZptvWmD89IIpXyrp00rNvFwx9c3Q
ULr2V8z5K3esnc2SD0dxKGh/TpPTsCRxwFuQcD4q80+yBFKvtkiAjLSWXdwrMZD5
QIARBvXD/pDRshEu6vl/UuA2dP1xfyv9nBTWYTZ9FuklRTGopRNW5zQQSKmAA9Gb
0rlhTB3SdvJRIqAjDoXB1tuMnFeWuLZVvV4palGXGqWl9LSMLp+WDx3tn2nD9/bv
sOl0pkyK+wx/ZQKFaq2h9tjawyRxTU8QDz96JD/M+kYgqCBbrrPSHIQVCwWrW9gB
Km4mpEm/sodfHkYypQWsCEKuXCbS+SpMBB+VraPqlL5ViBr5npE=
=5wXX
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.