Re: Did Lifeware Kill Scryer Prolog CLP(Z) ? (Was: A harsh wind is blowing into the face of Prolog now… [FORTRAN / TIOBE Index for May 2024])

Liste des GroupesRevenir à cl prolog 
Sujet : Re: Did Lifeware Kill Scryer Prolog CLP(Z) ? (Was: A harsh wind is blowing into the face of Prolog now… [FORTRAN / TIOBE Index for May 2024])
De : janburse (at) *nospam* fastmail.fm (Mild Shock)
Groupes : comp.lang.prolog
Date : 27. Jul 2024, 11:52:31
Autres entêtes
Message-ID : <v82g0u$dj50$1@solani.org>
References : 1 2 3 4 5
User-Agent : Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0 SeaMonkey/2.53.18.2
Hi,
Java had a grace period where it still supported
sharing through a command line option, but later
it was ditched completely:
Restriction: This system property is supported only on Java™ 8. String sharing cannot be enabled on Java 11 and later.
Start of content that applies only to Java 8 (LTS) Setting this property to true avoids sharing a String object when substring() is used to subset a String beginning from offset zero. Avoiding sharing is compatible with the Oracle HotSpot VM.
https://www.ibm.com/docs/en/sdk-java-technology/8?topic=options-djavalangstringsubstringnocopy
Unfortunately I don't find a document detailing
the decision. Like some JEP or so. Still searching.
With substring sharing it was very easy to provoke
an out of memory error. You could allocate large
strings. Share a UTF-16 character, i.e. substring of
length 1, in the middle of the string, and the string
was not garbage collected anymore. I do not exclude
that under the hood sharing could be used. But it
possibly needs to some compilation technique including
some dedicated analysis that determines that the parent
string stays reachable, so that the child sharing doesn't
make the parent string solely reachable, since
since the parent string is already reachable.
Bye
Mild Shock schrieb:
Hi,
 I do not exclude a turn-around possibility
for Scryer Prolog. But with errors like this,
that are at the core of some ideas behind
 Scryer Prolog, like the glorious char based
double quoted lists, which have special data
structure support:
 ?- [X,Y] = [e,foo], Z is X.
    X = e, Y = foo, Z = 2.718281828459045.
 ?- [X,Y] = [e,f], Z is X.
    error(type_error(evaluable,e),(is)/2).
 But I doubt that any such list/array ideas,
especially when they try to share subarrays
are even a good idea. Trealla Prolog tries
 something similar. But initial Java had for
example a sharing substring() method. But they
abandoned that over the time. So their
 strings are not sharing anymore, and code that
relied on sharing got broken. You can have
sharing through other interfaces, but Strings
 are not anymore sharing. Any idea why?
 Bye

Date Sujet#  Auteur
27 May 24 * A harsh wind is blowing into the face of Prolog now… [FORTRAN / TIOBE Index for May 2024]27Mild Shock
27 May 24 +- Re: A harsh wind is blowing into the face of Prolog now… [FORTRAN / TIOBE Index for May 2024]1Mild Shock
20 Jul 24 +* Scryer Prolog is dead now? (Was: A harsh wind is blowing into the face of Prolog now…)5Mild Shock
21 Jul 24 i`* What about the Holy Grail? (Was: Scryer Prolog is dead now?)4Mild Shock
22 Jul 24 i `* Is Rust the culprit? (Was: What about the Holy Grail?)3Mild Shock
22 Jul 24 i  `* Re: Is Rust the culprit? (Was: What about the Holy Grail?)2Mild Shock
22 Jul 24 i   `- Re: Is Rust the culprit? (Was: What about the Holy Grail?)1Mild Shock
23 Jul 24 +* Can we trust the Scryer Prolog Gurus? (Was: A harsh wind is blowing into the face of Prolog now… )3Mild Shock
23 Jul 24 i`* Re: Can we trust the Scryer Prolog Gurus? (Was: A harsh wind is blowing into the face of Prolog now… )2Mild Shock
23 Jul 24 i `- Re: Can we trust the Scryer Prolog Gurus? (Was: A harsh wind is blowing into the face of Prolog now… )1Mild Shock
23 Jul 24 +* The longest pregnancy in the history of Prolog ~~> DCGs (Was: A harsh wind is blowing into the face of Prolog now…)5Mild Shock
23 Jul 24 i`* Re: The longest pregnancy in the history of Prolog ~~> DCGs (Was: A harsh wind is blowing into the face of Prolog now…)4Mild Shock
23 Jul 24 i `* Re: The longest pregnancy in the history of Prolog ~~> DCGs (Was: A harsh wind is blowing into the face of Prolog now…)3Mild Shock
23 Jul 24 i  `* Re: The longest pregnancy in the history of Prolog ~~> DCGs (Was: A harsh wind is blowing into the face of Prolog now…)2Mild Shock
23 Jul 24 i   `- Re: The longest pregnancy in the history of Prolog ~~> DCGs (Was: A harsh wind is blowing into the face of Prolog now…)1Mild Shock
23 Jul 24 +* Is Scryer Prolog the Air Guitar of Prolog? (Was: A harsh wind is blowing into the face of Prolog now…)3Mild Shock
23 Jul 24 i`* Re: Is Scryer Prolog the Air Guitar of Prolog? (Was: A harsh wind is blowing into the face of Prolog now…)2Mild Shock
24 Jul 24 i `- Re: Is Scryer Prolog the Air Guitar of Prolog? (Was: A harsh wind is blowing into the face of Prolog now…)1Mild Shock
26 Jul 24 `* Did Lifeware Kill Scryer Prolog CLP(Z) ? (Was: A harsh wind is blowing into the face of Prolog now… [FORTRAN / TIOBE Index for May 2024])9Mild Shock
26 Jul 24  `* Re: Did Lifeware Kill Scryer Prolog CLP(Z) ? (Was: A harsh wind is blowing into the face of Prolog now… [FORTRAN / TIOBE Index for May 2024])8Mild Shock
27 Jul 24   `* Re: Did Lifeware Kill Scryer Prolog CLP(Z) ? (Was: A harsh wind is blowing into the face of Prolog now… [FORTRAN / TIOBE Index for May 2024])7Mild Shock
27 Jul 24    `* Re: Did Lifeware Kill Scryer Prolog CLP(Z) ? (Was: A harsh wind is blowing into the face of Prolog now… [FORTRAN / TIOBE Index for May 2024])6Mild Shock
27 Jul 24     `* Re: Did Lifeware Kill Scryer Prolog CLP(Z) ? (Was: A harsh wind is blowing into the face of Prolog now… [FORTRAN / TIOBE Index for May 2024])5Mild Shock
27 Jul 24      `* Re: Did Lifeware Kill Scryer Prolog CLP(Z) ? (Was: A harsh wind is blowing into the face of Prolog now… [FORTRAN / TIOBE Index for May 2024])4Mild Shock
27 Jul 24       `* Re: Did Lifeware Kill Scryer Prolog CLP(Z) ? (Was: A harsh wind is blowing into the face of Prolog now… [FORTRAN / TIOBE Index for May 2024])3Mild Shock
27 Jul 24        `* Re: Did Lifeware Kill Scryer Prolog CLP(Z) ? (Was: A harsh wind is blowing into the face of Prolog now… [FORTRAN / TIOBE Index for May 2024])2Mild Shock
27 Jul 24         `- Re: Did Lifeware Kill Scryer Prolog CLP(Z) ? (Was: A harsh wind is blowing into the face of Prolog now… [FORTRAN / TIOBE Index for May 2024])1Mild Shock

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal