[M3devel] this is the old thread re: longrealtype, realtype

mika at async.caltech.edu mika at async.caltech.edu
Tue May 15 10:19:10 CEST 2018


------- Forwarded Message

Return-Path: jayk123 at hotmail.com
Delivery-Date: Tue Jul 20 05:28:41 2010
Return-Path: <jayk123 at hotmail.com>
X-Original-To: mika at async.caltech.edu
Delivered-To: mika at async.caltech.edu
Received: by async.async.caltech.edu (Postfix, from userid 1010)
	id 0DE081A2091; Tue, 20 Jul 2010 05:28:41 -0700 (PDT)
X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on
	async.async.caltech.edu
X-Spam-Level: 
X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00 autolearn=ham
	version=3.2.4
Received: from col0-omc3-s14.col0.hotmail.com (col0-omc3-s14.col0.hotmail.com [65.55.34.152])
	by async.async.caltech.edu (Postfix) with ESMTP id CE6851A2080
	for <mika at async.caltech.edu>; Tue, 20 Jul 2010 05:28:38 -0700 (PDT)
Received: from COL101-W12 ([65.55.34.137]) by col0-omc3-s14.col0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675);
	 Tue, 20 Jul 2010 05:28:37 -0700
Message-ID: <COL101-W12BCD10F189EB1C4C6F0C4E6A00 at phx.gbl>
X-Originating-IP: [71.112.27.90]
From: Jay K <jay.krell at cornell.edu>
Sender: <jayk123 at hotmail.com>
To: m3devel <m3devel at elegosoft.com>
CC: Mika Nystrom <mika at async.caltech.edu>
Subject: RE: LongrealType missed, was: Re: [M3devel] "FreeBSD4" false
 advertising
Date: Tue, 20 Jul 2010 12:28:36 +0000
Importance: Normal
In-Reply-To: <COL101-W315E6A3A5B086C45D301F2E6BA0 at phx.gbl>
References:
 <20100714094120.93B001A2098 at async.async.caltech.edu>,<20100714114648.nhnwruh008840wso at mail.elegosoft.com>,<20100714100138.631581A2098 at async.async.caltech.edu>,<20100714100525.BEE931A2096 at async.async.caltech.edu>,<COL101-W407D0331F220BD6D7EBB0BE6BA0 at phx.gbl>,<20100714104312.155351A2098 at async.async.caltech.edu>,<20100714125516.1mzfehgnkgcs800w at mail.elegosoft.com>,<COL101-W315E6A3A5B086C45D301F2E6BA0 at phx.gbl>
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginalArrivalTime: 20 Jul 2010 12:28:37.0063 (UTC) FILETIME=[13B3E570:01CB2807]


Mika=2C did this work for you?

=A0- Jay

- ----------------------------------------
> From: jay.krell at cornell.edu
> To: wagner at elegosoft.com=3B m3devel at elegosoft.com
> CC: mika at async.caltech.edu
> Subject: RE: LongrealType missed=2C was: Re: [M3devel] "FreeBSD4" false a=
dvertising
> Date: Wed=2C 14 Jul 2010 11:23:49 +0000
>
>
> Mika=2C Please try updating libm3 and see if that works for you. Thanks.
>
>  - Jay
>
> ----------------------------------------
> > Date: Wed=2C 14 Jul 2010 12:55:16 +0200
> > From: wagner at elegosoft.com
> > To: m3devel at elegosoft.com
> > CC: jay.krell at cornell.edu=3B mika at async.caltech.edu
> > Subject: LongrealType missed=2C was: Re: [M3devel] "FreeBSD4" false adv=
ertising
> >
> > Quoting Mika Nystrom :
> >
> > > Argh is it really necessary to break source compatibility here?
> > >
> > > I also don't like that I as a client have to import IEEE things when =
all
> > > I want is "LONGREAL" (and let Modula-3 do whatever it wants with that=
).
> > >
> > > I would propose at least having an interface LongrealType with
> > >
> > > CONST Hash =3D Longreal.Hash
> > >
> > > etc. so as not to force clients to import all the nitty-gritty about
> > > various floating point representations. And so as not to break source
> > > compatibility! If I change this by removing Type=2C my code will no l=
onger
> > > compile with the old compilers....
> >
> > Hm=2C I'm a little bit out of context here...
> > What was the reason for this change? It seems nobody else has bothered
> > so far.
> >
> > This was the commit in question:
> >
> > 2009-12-23 21:43 hosking
> >
> > * m3-libs/: m3core/src/m3makefile=2C libm3/src/types/ASCII.i3=2C
> > libm3/src/types/ASCII.m3=2C libm3/src/types/Boolean.i3=2C
> > libm3/src/types/Boolean.m3=2C libm3/src/types/COPYRIGHT-CMASS=2C
> > libm3/src/types/Char.i3=2C libm3/src/types/Char.m3=2C
> > libm3/src/types/Int32.i3=2C libm3/src/types/Int32.m3=2C
> > libm3/src/types/Int64.i3=2C libm3/src/types/Int64.m3=2C
> > libm3/src/types/Integer.i3=2C libm3/src/types/Integer.m3=2C
> > libm3/src/types/Longint.i3=2C libm3/src/types/Longint.m3=2C
> > libm3/src/types/LongrealType.i3=2C libm3/src/types/LongrealType.m3=2C
> > libm3/src/types/RealType.i3=2C libm3/src/types/RealType.m3=2C
> > libm3/src/types/Refany.i3=2C libm3/src/types/Refany.m3=2C
> > libm3/src/types/Unicode.i3=2C libm3/src/types/Unicode.m3=2C
> > libm3/src/types/WideChar.i3=2C libm3/src/types/WideChar.m3=2C
> > libm3/src/types/m3makefile=2C m3core/src/float/Common/Extended.m3=2C
> > m3core/src/float/Common/LongReal.m3=2C m3core/src/float/Common/Real.m3=
=2C
> > m3core/src/float/IEEE/Extended.i3=2C m3core/src/float/IEEE/LongReal.i3=
=2C
> > m3core/src/float/IEEE/Real.i3=2C m3core/src/float/VAX/Extended.i3=2C
> > m3core/src/float/VAX/LongReal.i3=2C m3core/src/float/VAX/Real.i3:
> >
> > Move libm3/src/types into m3core.
> > Note that LongrealType and RealType have been folded into m3core/src/fl=
oat.
> > Clients will need adjustment.
> >
> > Any comments?
> >
> > Olaf
> >
> > > Mika
> > >
> > > Jay K writes:
> > >>
> > >> Remove "Type" it appears.
> > >>
> > >>
> > >> http://modula3.elegosoft.com/cm3/ChangeLog-2009
> > >>
> > >> search for "clients will need".
> > >>
> > >> e.g.
> > >>
> > >> +++ cm3/m3-demo/mentor/src/binpack/m3makefile 2009/12/23 22:05:06 1.=
2
> > >> @@ -10=3D2C7 +10=3D2C7 @@
> > >> =3D20
> > >> import ("zeus")
> > >> =3D20
> > >> -list ("Real"=3D2C "RealType")
> > >> +list ("Real"=3D2C "Real")
> > >> =3D20
> > >> zume ("Binpack")
> > >> oblume ("Binpack"=3D2C "myview")
> > >>
> > >> --- cm3/m3-demo/mentor/src/binpack/RealList.i3 2001/01/13 14:18:20 1=
.1
> > >> +++ cm3/m3-demo/mentor/src/binpack/RealList.i3 2009/12/23 22:05:05 1=
.2
> > >> @@ -2=3D2C4 +2=3D2C4 @@
> > >> (* Distributed only by permission. *)
> > >> (* Last modified on Fri Jul 9 16:36:47 PDT 1993 by mhb *)
> > >> =3D20
> > >> -INTERFACE RealList =3D3D List(RealType) END RealList.
> > >> +INTERFACE RealList =3D3D List(Real) END RealList.
> > >>
> > >> --- cm3/m3-demo/mentor/src/binpack/RealList.m3 2001/01/13 14:18:20 1=
.1
> > >> +++ cm3/m3-demo/mentor/src/binpack/RealList.m3 2009/12/23 22:05:06 1=
.2
> > >> @@ -2=3D2C4 +2=3D2C4 @@
> > >> (* All rights reserved. *)
> > >> (* See the file COPYRIGHT for a full description. *)
> > >> =3D20
> > >> -MODULE RealList =3D3D List(RealType) END RealList.
> > >> +MODULE RealList =3D3D List(Real) END RealList.
> > >>
> > >> =3DA0- Jay
> > >>
> > >> ----------------------------------------
> > >>> To: wagner at elegosoft.com
> > >>> CC: jay.krell at cornell.edu=3D3B mika at async.caltech.edu
> > >>> Subject: Re: [M3devel] "FreeBSD4" false advertising
> > >>> Date: Wed=3D2C 14 Jul 2010 03:05:25 -0700
> > >>> From: mika at async.async.caltech.edu
> > >>>
> > >>> I'm not actually sure I understand the intent of the changes in thi=
s area=3D
> > >> .
> > >>>
> > >>> My old m3makefile has:
> > >>>
> > >>> Table("TextLongReal"=3D2C "Text"=3D2C "LongrealType")
> > >>>
> > >>> What am I supposed to use now?
> > >>>
> > >>> Mika
> > >>>
> > >>> Mika Nystrom writes:
> > >>> >Olaf Wagner writes:
> > >>> >>Quoting Mika Nystrom :
> > >>> >>
> > >>> >>> Hi Jay=3D2C Olaf=3D2C
> > >>> >>>
> > >>> >>> I actually built everything! After backing out some of my chang=
es
> > >>> >>> that I had tried to get 5.8.6-REL to build with=3D2C it worked=
=3D2C and m=3D
> > >> entor
> > >>> >>> ran=3D2C even.
> > >>> >>
> > >>> >>Great! So it's still possible to build cm3 on FreeBSD 4=3D2C thou=
gh
> > >>> >>not our release code.
> > >>> >
> > >>> >The differences relative to the current CVS head are very minor.
> > >>> >
> > >>> >1. Added FreeBSD4 to thread.quake as a non-pthread platform
> > >>> >
> > >>> >2. got rid of the -m32 flags in FreeBSD4.conf
> > >>> >
> > >>> >Everything else that needed to change I think Jay has managed to p=
ut in
> > >>> >the CVS head.
> > >>> >
> > >>> >>
> > >>> >>> But... what happened to libm3/src/types? Building my own code I=
 get
> > >>> >>> the following errors:
> > >>> >>>
> > >>> >>> new source -> compiling LRInterval.i3
> > >>> >>> "../FreeBSD4/LRInterval.i3 =3D3D3D> ../src/Interval.ig"=3D2C li=
ne 5: unab=3D
> > >> le to =3D3D20
> > >>> >>> find interface (LongrealType)
> > >>> >>> 1 error encountered
> > >>> >>>
> > >>> >>> I can't find LongrealType anywhere=3D2C do I have a broken chec=
kout? We=3D
> > >> ll=3D2C it
> > >>> >>> is in one place=3D2C in "doc". (Same for RealType=3D2C maybe ot=
hers?)
> > >>> >>
> > >>> >>See =3D3D20
> > >>> >>http://modula3.elegosoft.com/cgi-bin/cvsweb.cgi/cm3/m3-libs/libm3=
/src/t=3D
> > >> ypes/=3D3D
> > >>> >>Attic/LongrealType.i3
> > >>> >
> > >>> >Surely this is wrong?? I am looking for an interface that has T =
=3D3D
> > >>> >LONGREAL=3D2C not something that lets me muck around with the repr=
esentati=3D
> > >> on
> > >>> >of IEEE=3D2C VAX=3D2C etc.=3D2C floating-point formats.
> > >>> >
> > >>> >Why is it even in m3core? This seems clearly like libm3 stuff.. I =
notice=3D
> > >> d
> > >>> >Boolean.i3 also moved.
> > >>> >
> > >>> >Also if there is no importable interface called LongrealType that =
is goi=3D
> > >> ng
> > >>> >to cause endless problems with source that is supposed to compile =
under
> > >>> >different versions of Modula-3. Even relatively recent CM3s requir=
ed
> > >>> >you to use LongrealType to instantiate generics.
> > >>> >
> > >>> > Mika
> > >> =3D
> > >
> >
> >
> >
> > --
> > Olaf Wagner -- elego Software Solutions GmbH
> > Gustav-Meyer-Allee 25 / Geb=E4ude 12=2C 13355 Berlin=2C Germany
> > phone: +49 30 23 45 86 96 mobile: +49 177 2345 869 fax: +49 30 23 45 86=
 95
> > http://www.elegosoft.com | Gesch=E4ftsf=FChrer: Olaf Wagner | Sitz: Ber=
lin
> > Handelregister: Amtsgericht Charlottenburg HRB 77719 | USt-IdNr: DE1632=
14194
> >
>
 		 	   		  =

------- End of Forwarded Message



More information about the M3devel mailing list