Noacore is a Prolog profile that explores various relaxations

Liste des GroupesRevenir à l prolog 
Sujet : Noacore is a Prolog profile that explores various relaxations
De : janburse (at) *nospam* fastmail.fm (Mild Shock)
Groupes : comp.lang.prolog
Date : 21. Mar 2025, 19:16:19
Autres entêtes
Message-ID : <vrkadh$7arh$1@solani.org>
User-Agent : Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0 SeaMonkey/2.53.20
Interestingly a flag strict_iso could solve a few
vexing problems. For example the ISO core standard
did only mention floor/1 with signature F → I.
So in GNU Prolog I can do:
/* GNU Prolog 1.5.0 */
?- current_prolog_flag(strict_iso, X).
X = on
yes
?- X is floor(1).
uncaught exception: error(type_error(float,1),(is)/2)
?- set_prolog_flag(strict_iso, off).
yes
?- X is floor(1).
X = 1
yes
A few Prolog systems don’t share the above behavior,
like SWI-Prolog for example doesn’t throw the type error.
Also SWI-Prolog has nowhere a flag strict_iso.
Currently I have changed my Prolog system to tell me:
/* Dogelog Player 1.3.1 */
?- current_prolog_flag(strict_iso, X).
X = off.

Date Sujet#  Auteur
21 Mar 25 * Noacore is a Prolog profile that explores various relaxations12Mild Shock
21 Mar 25 +* What about allowing numbers 1e19, etc.. (Re: Novacore is a Prolog profile that explores various relaxations)5Mild Shock
21 Mar 25 i+- Re: What about allowing numbers 1e19, etc.. (Re: Novacore is a Prolog profile that explores various relaxations)1Mild Shock
25 May 25 i`* prolog_file_name/2 was a big mistake [Novacore]3Mild Shock
25 May 25 i `* The recent extension/1 addition in Dogelog Player (Was: prolog_file_name/2 was a big mistake [Novacore])2Mild Shock
25 May 25 i  `- Corr.: Typo (Was: The recent extension/1 addition in Dogelog Player)1Mild Shock
2 Jul08:33 `* How difficult is a Knowledbase notion? (Was: Novacore is a Prolog profile that explores various relaxations)6Mild Shock
2 Jul08:35  `* C++ programming or a PhD in Macro defs (Was: How difficult is a Knowledbase notion?)5Mild Shock
2 Jul08:49   `* Workers never had the blessing of Paul Tarau [Prolog missed Web 2.0] (Was: C++ programming or a PhD in Macro defs)4Mild Shock
2 Jul09:07    `* General Magic didn't predict the Future (Was: Workers never had the blessing of Paul Tarau [Prolog missed Web 2.0])3Mild Shock
2 Jul14:54     `* Antique Programming Style versus Modern Programming Style [SWI-Prolog] (Was: Workers never had the blessing of Paul Tarau [Prolog missed Web 2.0])2Mild Shock
2 Jul15:06      `- Grand mothers kitchen is nevertheless the best, who knows? (Was: Antique Programming Style versus Modern Programming Style [SWI-Prolog])1Mild Shock

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal