Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"Irrationality is the square root of all evil" -- Douglas Hofstadter


devel / comp.arch / Paper about ISO C

SubjectAuthor
* Paper about ISO Cclamky
+- Re: Paper about ISO CBGB
+* Re: Paper about ISO CDavid Brown
|+* Re: Paper about ISO CBGB
||+* Re: Paper about ISO CMitchAlsup
|||+* Re: Paper about ISO CMitchAlsup
||||`* Re: Paper about ISO CBranimir Maksimovic
|||| `* Re: Paper about ISO CGeorge Neuner
||||  +- Re: Paper about ISO CBranimir Maksimovic
||||  `* Re: Paper about ISO CEricP
||||   `* Re: Paper about ISO CIvan Godard
||||    `* Re: Paper about ISO CEricP
||||     `* Re: Paper about ISO CMitchAlsup
||||      +* Re: Paper about ISO CBGB
||||      |`* Re: Paper about ISO CStephen Fuld
||||      | +* Re: Paper about ISO CIvan Godard
||||      | |+* Re: addressing and protection, was Paper about ISO CJohn Levine
||||      | ||+* Re: addressing and protection, was Paper about ISO CMitchAlsup
||||      | |||+- Re: addressing and protection, was Paper about ISO CJohn Levine
||||      | |||+* Re: addressing and protection, was Paper about ISO CIvan Godard
||||      | ||||`- Re: addressing and protection, was Paper about ISO CQuadibloc
||||      | |||`- Re: addressing and protection, was Paper about ISO CBill Findlay
||||      | ||`* Re: addressing and protection, was Paper about ISO CQuadibloc
||||      | || +- Re: addressing and protection, was Paper about ISO CStephen Fuld
||||      | || `- Re: addressing and protection, was Paper about ISO CBranimir Maksimovic
||||      | |`* Re: addressing and protection, was Paper about ISO CEricP
||||      | | +* Re: addressing and protection, was Paper about ISO CStefan Monnier
||||      | | |`- Re: addressing and protection, was Paper about ISO CEricP
||||      | | `* Re: addressing and protection, was Paper about ISO CIvan Godard
||||      | |  +* Re: addressing and protection, was Paper about ISO CBGB
||||      | |  |+* Re: addressing and protection, was Paper about ISO CMitchAlsup
||||      | |  ||`* Re: addressing and protection, was Paper about ISO CBGB
||||      | |  || `* Re: addressing and protection, was Paper about ISO CJohn Dallman
||||      | |  ||  +* Re: addressing and protection, was Paper about ISO CMitchAlsup
||||      | |  ||  |+- Re: addressing and protection, was Paper about ISO CBGB
||||      | |  ||  |+* Re: addressing and protection, was Paper about ISO CThomas Koenig
||||      | |  ||  ||`* Re: addressing and protection, was Paper about ISO CBGB
||||      | |  ||  || `* Re: addressing and protection, was Paper about ISO CAnton Ertl
||||      | |  ||  ||  `- Re: addressing and protection, was Paper about ISO CBGB
||||      | |  ||  |`* Re: addressing and protection, was Paper about ISO CQuadibloc
||||      | |  ||  | +- Re: addressing and protection, was Paper about ISO CQuadibloc
||||      | |  ||  | `- Re: addressing and protection, was Paper about ISO CBGB
||||      | |  ||  `- Re: addressing and protection, was Paper about ISO CBGB
||||      | |  |`* Re: addressing and protection, was Paper about ISO CJohn Dallman
||||      | |  | +* Re: addressing and protection, was Paper about ISO CThomas Koenig
||||      | |  | |`* Re: addressing and protection, was Paper about ISO CMitchAlsup
||||      | |  | | `* Re: addressing and protection, was Paper about ISO CThomas Koenig
||||      | |  | |  +* Re: addressing and protection, was Paper about ISO CMitchAlsup
||||      | |  | |  |+* Re: addressing and protection, was Paper about ISO CStefan Monnier
||||      | |  | |  ||+- Re: addressing and protection, was Paper about ISO CChris M. Thomasson
||||      | |  | |  ||+* Re: addressing and protection, was Paper about ISO CMitchAlsup
||||      | |  | |  |||`- Re: addressing and protection, was Paper about ISO CThomas Koenig
||||      | |  | |  ||+* Re: addressing and protection, was Paper about ISO CThomas Koenig
||||      | |  | |  |||`* Re: addressing and protection, was Paper about ISO CEricP
||||      | |  | |  ||| `- Re: addressing and protection, was Paper about ISO CMitchAlsup
||||      | |  | |  ||`- Re: addressing and protection, was Paper about ISO CJohn Dallman
||||      | |  | |  |`- Re: addressing and protection, was Paper about ISO CThomas Koenig
||||      | |  | |  `* Re: addressing and protection, was Paper about ISO CIvan Godard
||||      | |  | |   +- Re: addressing and protection, was Paper about ISO CBGB
||||      | |  | |   `* Re: addressing and protection, was Paper about ISO CStephen Fuld
||||      | |  | |    +* Address space consumption (was: addressing and protection, was Paper about ISO CStefan Monnier
||||      | |  | |    |`- Re: Address space consumption (was: addressing and protection, wasMitchAlsup
||||      | |  | |    +* Re: addressing and protection, was Paper about ISO CMitchAlsup
||||      | |  | |    |`- Re: addressing and protection, was Paper about ISO CThomas Koenig
||||      | |  | |    `* Re: addressing and protection, was Paper about ISO CGeorge Neuner
||||      | |  | |     `* Re: addressing and protection, was Paper about ISO CStephen Fuld
||||      | |  | |      +* Re: addressing and protection, was Paper about ISO CMichael S
||||      | |  | |      |`* Re: addressing and protection, was Paper about ISO CTerje Mathisen
||||      | |  | |      | `- Re: addressing and protection, was Paper about ISO CMichael S
||||      | |  | |      `* Re: addressing and protection, was Paper about ISO CStefan Monnier
||||      | |  | |       +* Re: addressing and protection, was Paper about ISO CBGB
||||      | |  | |       |`* Re: addressing and protection, was Paper about ISO CJohn Levine
||||      | |  | |       | +* Re: addressing and protection, was Paper about ISO CBGB
||||      | |  | |       | |`* Re: addressing and protection, was Paper about ISO CStephen Fuld
||||      | |  | |       | | `* Re: addressing and protection, was Paper about ISO CBGB
||||      | |  | |       | |  `* Re: addressing and protection, was Paper about ISO CJohn Levine
||||      | |  | |       | |   +- Re: addressing and protection, was Paper about ISO CBGB
||||      | |  | |       | |   +- Re: addressing and protection, was Paper about ISO Cclamky
||||      | |  | |       | |   `* Re: addressing and protection, was Paper about ISO CGeorge Neuner
||||      | |  | |       | |    +* Re: addressing and protection, was Paper about ISO CBGB
||||      | |  | |       | |    |`* Re: addressing and protection, was Paper about ISO CGeorge Neuner
||||      | |  | |       | |    | +* Re: addressing and protection, was Paper about ISO CBGB
||||      | |  | |       | |    | |+* Re: addressing and protection, was Paper about ISO CIvan Godard
||||      | |  | |       | |    | ||+* Re: educational computation, was addressing and protection, was Paper about ISO John Levine
||||      | |  | |       | |    | |||`* Re: educational computation, was addressing and protection, was PaperIvan Godard
||||      | |  | |       | |    | ||| `- Re: educational computation, was addressing and protection, was PaperTerje Mathisen
||||      | |  | |       | |    | ||`* Re: addressing and protection, was Paper about ISO CBGB
||||      | |  | |       | |    | || `* Re: addressing and protection, was Paper about ISO CMitchAlsup
||||      | |  | |       | |    | ||  +- Re: addressing and protection, was Paper about ISO CBGB
||||      | |  | |       | |    | ||  `- Re: addressing and protection, was Paper about ISO CDavid Brown
||||      | |  | |       | |    | |+- Re: addressing and protection, was Paper about ISO CBGB
||||      | |  | |       | |    | |`* Re: addressing and protection, was Paper about ISO CMitchAlsup
||||      | |  | |       | |    | | +* Re: addressing and protection, was Paper about ISO CBGB
||||      | |  | |       | |    | | |+- Re: addressing and protection, was Paper about ISO CIvan Godard
||||      | |  | |       | |    | | |`* Re: addressing and protection, was Paper about ISO CMitchAlsup
||||      | |  | |       | |    | | | +* Re: addressing and protection, was Paper about ISO CIvan Godard
||||      | |  | |       | |    | | | |+* Re: addressing and protection, was Paper about ISO CMitchAlsup
||||      | |  | |       | |    | | | ||`- Re: addressing and protection, was Paper about ISO CJimBrakefield
||||      | |  | |       | |    | | | |`* Re: addressing and protection, was Paper about ISO CTerje Mathisen
||||      | |  | |       | |    | | | | `* Re: addressing and protection, was Paper about ISO CTim Rentsch
||||      | |  | |       | |    | | | |  `- Re: addressing and protection, was Paper about ISO CTerje Mathisen
||||      | |  | |       | |    | | | +* Re: addressing and protection, was Paper about ISO CBGB
||||      | |  | |       | |    | | | `- Re: addressing and protection, was Paper about ISO CTerje Mathisen
||||      | |  | |       | |    | | `- Re: addressing and protection, was Paper about ISO CAnne & Lynn Wheeler
||||      | |  | |       | |    | `- Re: addressing and protection, was Paper about ISO CMitchAlsup
||||      | |  | |       | |    `* Re: what is cheap these days, addressing and protection, was Paper about ISO CJohn Levine
||||      | |  | |       | +* Re: addressing and protection, was Paper about ISO CStephen Fuld
||||      | |  | |       | +* Re: addressing and protection, was Paper about ISO CMichael S
||||      | |  | |       | `* Re: addressing and protection, was Paper about ISO CMichael S
||||      | |  | |       +* RAM size (was: addressing and protection, was Paper about ISO C)Anton Ertl
||||      | |  | |       `- Re: addressing and protection, was Paper about ISO CTerje Mathisen
||||      | |  | +* Re: addressing and protection, was Paper about ISO CMitchAlsup
||||      | |  | `* Re: addressing and protection, was Paper about ISO CJohn Levine
||||      | |  +* Re: addressing and protection, was Paper about ISO CMitchAlsup
||||      | |  `* Re: addressing and protection, was Paper about ISO CJohn Levine
||||      | `* Re: Paper about ISO CBGB
||||      `- Re: Paper about ISO CEricP
|||+* Re: Paper about ISO CBranimir Maksimovic
|||+* Re: Paper about ISO CThomas Koenig
|||+* Re: Paper about ISO Cantispam
|||`- Re: Paper about ISO CQuadibloc
||+* Re: Paper about ISO CThomas Koenig
||`* Re: Paper about ISO CDavid Brown
|+* Re: Paper about ISO CThomas Koenig
|`* Re: Paper about ISO CVictor Yodaiken
`* Re: Paper about ISO CKent Dickey

Pages:123456789101112131415161718192021222324252627282930313233
Re: Specifying timing constraints was Re: Paper about ISO C

<864k9bkb27.fsf@linuxsc.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=21408&group=comp.arch#21408

  copy link   Newsgroups: comp.arch
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: tr.17...@z991.linuxsc.com (Tim Rentsch)
Newsgroups: comp.arch
Subject: Re: Specifying timing constraints was Re: Paper about ISO C
Date: Wed, 20 Oct 2021 07:47:28 -0700
Organization: A noiseless patient Spider
Lines: 50
Message-ID: <864k9bkb27.fsf@linuxsc.com>
References: <87fstdumxd.fsf@hotmail.com> <sjni60$97d$1@dont-email.me> <afb9352d-8ba7-4521-b741-280e0206e255n@googlegroups.com> <3a350cfe-971c-4042-9171-9ec2516cdf2bn@googlegroups.com> <sk6s4a$9cm$1@dont-email.me> <1ed391dc-0d1d-4069-96d8-e83acbe01ba5n@googlegroups.com> <sk9ej9$fj9$1@dont-email.me> <jwvtuhj4dlq.fsf-monnier+comp.arch@gnu.org> <skc7a9$698$1@dont-email.me> <skc905$85c$1@dont-email.me> <skh20o$ji2$1@dont-email.me> <4fc4f707-2d42-492a-bd41-f791141dbfb2n@googlegroups.com> <skhjk3$9p4$1@dont-email.me> <f9db2e75-2ec2-4572-b211-a8b2d6b3e0e6n@googlegroups.com> <skjkqv$nd3$1@dont-email.me> <0ba079c3-d672-47b3-b86d-cfc74520ca5dn@googlegroups.com> <86a6j6l8ci.fsf@linuxsc.com> <LClbJ.602$xjIc.241@fx01.iad> <skl12c$i1n$1@dont-email.me> <qgDbJ.3$in7.0@fx22.iad> <skn1iv$ap3$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: reader02.eternal-september.org; posting-host="5f6d40b733d5bd7b28fa47c79809ec65";
logging-data="13004"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/kTYrR0rfn7LuuNa0wjmxJEe/vRdrLIMY="
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:3WI6LbLXaGi3AjZ15aOBJgjh3EQ=
sha1:BhDG/QHkAf0Cg0QbVwagwOmKnHY=
 by: Tim Rentsch - Wed, 20 Oct 2021 14:47 UTC

Stephen Fuld <sfuld@alumni.cmu.edu.invalid> writes:

> On 10/19/2021 9:20 AM, EricP wrote:
>
>> Ivan Godard wrote:
>>
>>> On 10/18/2021 2:23 PM, EricP wrote:
>>>
>>>> The only mechanism I can think of that can handle that kind of
>>>> flexibility smoothly would be based on multiple language data types,
>>>> and an ISA with separate instructions for each operation on each type.
>>>
>>> As for example:
>>> enumWithTraits(intNumEnums, overflowCode,
>>> excepting,
>>> modulo,
>>> saturating,
>>> widening
>>> );
>>> available in every kind of operation that can overflow?
>>
>> I don't know what you mean.
>>
>> I mean that only the programmer knows their intent and since
>> that intent changes and they need a way to express it.
>> A one-size-fits-all approach isn't flexible enough.
>>
>> The compiler already handles overloading operators for different
>> integral and float data types and sizes. This expands on that mechanism.
>
> I think the disconnect is the following. Ivan showed what
> capabilities are/will be in the Mill hardware ISA. You talked about
> what the programmer intends. The disconnect is that the current C
> language doesn't provide a mechanism to "connect" the two, at least in
> many cases. [..]

This reminds me of something Butler Lampson said when asked
about ways of defining language extensions. He said, "We
already have that. They're called procedures. They work
great."

> I should note that at least a good part of these are specifiable in,
> for example Ada. The very extensive type system in Ada is, IMO one of
> its biggest strengths.

Can you say what sorts of things Ada's type system lets you
accomplish, and what sorts of thing you would like it to do
that it doesn't? (I have just finished reading through the
part of the Ada reference manual that deals with types and
declarations.)

Re: addressing and protection, was Paper about ISO C

<skpdo5$93r$1@gal.iecc.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=21409&group=comp.arch#21409

  copy link   Newsgroups: comp.arch
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!news.iecc.com!.POSTED.news.iecc.com!not-for-mail
From: joh...@taugh.com (John Levine)
Newsgroups: comp.arch
Subject: Re: addressing and protection, was Paper about ISO C
Date: Wed, 20 Oct 2021 15:48:21 -0000 (UTC)
Organization: Taughannock Networks
Message-ID: <skpdo5$93r$1@gal.iecc.com>
References: <sjv4u6$37u$1@dont-email.me> <sko85o$1lm$1@dont-email.me> <skoebt$ven$1@dont-email.me> <skomk6$hb9$1@dont-email.me>
Injection-Date: Wed, 20 Oct 2021 15:48:21 -0000 (UTC)
Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970";
logging-data="9339"; mail-complaints-to="abuse@iecc.com"
In-Reply-To: <sjv4u6$37u$1@dont-email.me> <sko85o$1lm$1@dont-email.me> <skoebt$ven$1@dont-email.me> <skomk6$hb9$1@dont-email.me>
Cleverness: some
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: johnl@iecc.com (John Levine)
 by: John Levine - Wed, 20 Oct 2021 15:48 UTC

According to BGB <cr88192@gmail.com>:
>> Apparently the millions of people who have bought Macbooks disagreed
>> with you.
>
>I suspect they are mostly "rich people", like the same ones who buy big
>houses and fancy cars.

No, they're people who do stuff that Macs do well. In my case, I have a
Mac because it is a full Unix system underneath, with well supported versions
of browsers and mail programs and all the other stuff you need. I have
used linux on laptops which works mostly, and the browsers and stuff work,
usually. Other people have Macs because they are doing graphic design or
video editing where the Mac apps are way better than the alternative.

Also, Macs last a long time. A five year old Mac works fine, and is fully
supported by current software.

>New pre-built PCs tend to be overpriced and kinda weak regarding their
>hardware stats (at least from places like BestBuy).

These days desktop PCs are a shrinking niche. Everyone gets a laptop
and you can't build one from parts. When I'm home my laptop is plugged
into a real keyboard and mouse, a big screen, and a wired LAN. If I
ever take a trip again, I can unplug it and have the same computer with
me I have at home.

R's,
John
--
Regards,
John Levine, johnl@taugh.com, Primary Perpetrator of "The Internet for Dummies",
Please consider the environment before reading this e-mail. https://jl.ly

Re: addressing and protection, was Paper about ISO C

<skpei0$e26$1@gal.iecc.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=21410&group=comp.arch#21410

  copy link   Newsgroups: comp.arch
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!news.iecc.com!.POSTED.news.iecc.com!not-for-mail
From: joh...@taugh.com (John Levine)
Newsgroups: comp.arch
Subject: Re: addressing and protection, was Paper about ISO C
Date: Wed, 20 Oct 2021 16:02:08 -0000 (UTC)
Organization: Taughannock Networks
Message-ID: <skpei0$e26$1@gal.iecc.com>
References: <sjv4u6$37u$1@dont-email.me> <sknk0g$l79$1@dont-email.me> <sknt3d$koe$1@gal.iecc.com> <5146b519-f10d-4301-9e27-d78500fdc0e1n@googlegroups.com>
Injection-Date: Wed, 20 Oct 2021 16:02:08 -0000 (UTC)
Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970";
logging-data="14406"; mail-complaints-to="abuse@iecc.com"
In-Reply-To: <sjv4u6$37u$1@dont-email.me> <sknk0g$l79$1@dont-email.me> <sknt3d$koe$1@gal.iecc.com> <5146b519-f10d-4301-9e27-d78500fdc0e1n@googlegroups.com>
Cleverness: some
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: johnl@iecc.com (John Levine)
 by: John Levine - Wed, 20 Oct 2021 16:02 UTC

According to Michael S <already5chosen@yahoo.com>:
>On Wednesday, October 20, 2021 at 4:58:07 AM UTC+3, John Levine wrote:
>> At the high end I see that IBM z Series has this recent history
>>
>> model year max memory
>> zEC12 2013 3TB (42 bits)
>> z13 2015 10TB (44 bits)
>> z14 2017 32TB (45 bits)
>> z15 2019 40TB (46 bits)
>
>Which z15 model has more than 16TB of memory installed?

The redbook says Max190 can have 5 processor drawers with
a total of 40TB. I have no idea what size machines people
actually buy.

--
Regards,
John Levine, johnl@taugh.com, Primary Perpetrator of "The Internet for Dummies",
Please consider the environment before reading this e-mail. https://jl.ly

Re: Specifying timing constraints was Re: Paper about ISO C

<5bXbJ.1936$TB3.66@fx29.iad>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=21411&group=comp.arch#21411

  copy link   Newsgroups: comp.arch
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!news-out.netnews.com!news.alt.net!fdc2.netnews.com!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx29.iad.POSTED!not-for-mail
From: ThatWoul...@thevillage.com (EricP)
User-Agent: Thunderbird 2.0.0.24 (Windows/20100228)
MIME-Version: 1.0
Newsgroups: comp.arch
Subject: Re: Specifying timing constraints was Re: Paper about ISO C
References: <87fstdumxd.fsf@hotmail.com> <sjni60$97d$1@dont-email.me> <afb9352d-8ba7-4521-b741-280e0206e255n@googlegroups.com> <3a350cfe-971c-4042-9171-9ec2516cdf2bn@googlegroups.com> <sk6s4a$9cm$1@dont-email.me> <1ed391dc-0d1d-4069-96d8-e83acbe01ba5n@googlegroups.com> <sk9ej9$fj9$1@dont-email.me> <jwvtuhj4dlq.fsf-monnier+comp.arch@gnu.org> <skc7a9$698$1@dont-email.me> <skc905$85c$1@dont-email.me> <skh20o$ji2$1@dont-email.me> <4fc4f707-2d42-492a-bd41-f791141dbfb2n@googlegroups.com> <skhjk3$9p4$1@dont-email.me> <f9db2e75-2ec2-4572-b211-a8b2d6b3e0e6n@googlegroups.com> <skjkqv$nd3$1@dont-email.me> <0ba079c3-d672-47b3-b86d-cfc74520ca5dn@googlegroups.com> <86a6j6l8ci.fsf@linuxsc.com> <LClbJ.602$xjIc.241@fx01.iad> <sklt24$dak$1@dont-email.me> <skn4hf$q87$2@newsreader4.netcologne.de> <skn5o9$8qj$1@dont-email.me>
In-Reply-To: <skn5o9$8qj$1@dont-email.me>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 40
Message-ID: <5bXbJ.1936$TB3.66@fx29.iad>
X-Complaints-To: abuse@UsenetServer.com
NNTP-Posting-Date: Wed, 20 Oct 2021 16:09:37 UTC
Date: Wed, 20 Oct 2021 12:09:05 -0400
X-Received-Bytes: 3203
 by: EricP - Wed, 20 Oct 2021 16:09 UTC

Ivan Godard wrote:
> On 10/19/2021 11:58 AM, Thomas Koenig wrote:
>> David Brown <david.brown@hesbynett.no> schrieb:
>>
>>> There are more problems than that. Consider "y = x + 3 - 2;". (Imagine
>>> it is the result of a set of macros, or inline functions and constant
>>> propagation, rather than a hand-written expression.) Can a compiler
>>> change that to "y = x + 1;" with overflow checking there? Does it need
>>> to do two operations, checking twice?
>>
>> In Fortran, it could according to the language definition, as
>> long as parenthethes are kept. The language even allows to change
>> (x - x) into zero for floats, never mind NaNs.
>>
>> Few compilers dare to implement that.
>>
>> It would be illegal for y = (x + 3) - 2.
>>
>
> That rule has always bothered me for a language with operator
> precedence. OP forces parens to resolve precedence: Fortran (b+c)*a is
> not the same as b+c*a, although it is in APL where there is no
> precedence. Don't you find that precedence parens masquerading as
> optimization-control parens sometimes engender bad code?

It provides an easy mechanism for programmer to pass intent to a compiler.
Historically mostly useful for floating point,
but could be used for overflow and saturating integers too.

It wouldn't work well as a default behavior in C because
macros use so many parens.

Do you have an alternative idea of how to succinctly instruct
that this expression precedence must be interpreted as given?
One could add a reserved word to a language like "exact (expression)"
but that would get tedious if you were writing hundreds of thousands
or millions of lines of weather or black hole simulations.

Re: Specifying timing constraints was Re: Paper about ISO C

<skpg30$1nr$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=21412&group=comp.arch#21412

  copy link   Newsgroups: comp.arch
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: sfu...@alumni.cmu.edu.invalid (Stephen Fuld)
Newsgroups: comp.arch
Subject: Re: Specifying timing constraints was Re: Paper about ISO C
Date: Wed, 20 Oct 2021 09:28:14 -0700
Organization: A noiseless patient Spider
Lines: 93
Message-ID: <skpg30$1nr$1@dont-email.me>
References: <87fstdumxd.fsf@hotmail.com> <sjni60$97d$1@dont-email.me>
<afb9352d-8ba7-4521-b741-280e0206e255n@googlegroups.com>
<3a350cfe-971c-4042-9171-9ec2516cdf2bn@googlegroups.com>
<sk6s4a$9cm$1@dont-email.me>
<1ed391dc-0d1d-4069-96d8-e83acbe01ba5n@googlegroups.com>
<sk9ej9$fj9$1@dont-email.me> <jwvtuhj4dlq.fsf-monnier+comp.arch@gnu.org>
<skc7a9$698$1@dont-email.me> <skc905$85c$1@dont-email.me>
<skh20o$ji2$1@dont-email.me>
<4fc4f707-2d42-492a-bd41-f791141dbfb2n@googlegroups.com>
<skhjk3$9p4$1@dont-email.me>
<f9db2e75-2ec2-4572-b211-a8b2d6b3e0e6n@googlegroups.com>
<skjkqv$nd3$1@dont-email.me>
<0ba079c3-d672-47b3-b86d-cfc74520ca5dn@googlegroups.com>
<86a6j6l8ci.fsf@linuxsc.com> <LClbJ.602$xjIc.241@fx01.iad>
<skl12c$i1n$1@dont-email.me> <qgDbJ.3$in7.0@fx22.iad>
<skn1iv$ap3$1@dont-email.me> <864k9bkb27.fsf@linuxsc.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 20 Oct 2021 16:28:16 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="2afbdefd54fcf59920b1c6a44291849d";
logging-data="1787"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18D41PWiMcBU8mO33hNmobms4atyu0S/Tg="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.2.0
Cancel-Lock: sha1:lgWKFlPntU+Hkq859YhgdLzPGEs=
In-Reply-To: <864k9bkb27.fsf@linuxsc.com>
Content-Language: en-US
 by: Stephen Fuld - Wed, 20 Oct 2021 16:28 UTC

On 10/20/2021 7:47 AM, Tim Rentsch wrote:
> Stephen Fuld <sfuld@alumni.cmu.edu.invalid> writes:
>
>> On 10/19/2021 9:20 AM, EricP wrote:
>>
>>> Ivan Godard wrote:
>>>
>>>> On 10/18/2021 2:23 PM, EricP wrote:
>>>>
>>>>> The only mechanism I can think of that can handle that kind of
>>>>> flexibility smoothly would be based on multiple language data types,
>>>>> and an ISA with separate instructions for each operation on each type.
>>>>
>>>> As for example:
>>>> enumWithTraits(intNumEnums, overflowCode,
>>>> excepting,
>>>> modulo,
>>>> saturating,
>>>> widening
>>>> );
>>>> available in every kind of operation that can overflow?
>>>
>>> I don't know what you mean.
>>>
>>> I mean that only the programmer knows their intent and since
>>> that intent changes and they need a way to express it.
>>> A one-size-fits-all approach isn't flexible enough.
>>>
>>> The compiler already handles overloading operators for different
>>> integral and float data types and sizes. This expands on that mechanism.
>>
>> I think the disconnect is the following. Ivan showed what
>> capabilities are/will be in the Mill hardware ISA. You talked about
>> what the programmer intends. The disconnect is that the current C
>> language doesn't provide a mechanism to "connect" the two, at least in
>> many cases. [..]
>
> This reminds me of something Butler Lampson said when asked
> about ways of defining language extensions. He said, "We
> already have that. They're called procedures. They work
> great."
>
>> I should note that at least a good part of these are specifiable in,
>> for example Ada. The very extensive type system in Ada is, IMO one of
>> its biggest strengths.
>
> Can you say what sorts of things Ada's type system lets you
> accomplish, and what sorts of thing you would like it to do
> that it doesn't? (I have just finished reading through the
> part of the Ada reference manual that deals with types and
> declarations.)

Look at

https://learn.adacore.com/courses/Ada_For_The_CPP_Java_Developer/chapters/05_Type_System.html

for some examples.

For me, things like ranges are really nice. They allow you to specify
say the number of elements in an array and the conditions for a loop
over that array with the same, hopefully meaningful syntax, that very
much eases maintenance changes. For example, say you have a store with
currently 10 types of products. You can define a variable "ProductType"
as having a range of 1-10. An array of product type names would be
dimensioned not with a number, but with a meaningful name. When you
want to loop over the array of product types, instead of saying 1-10,
you just give the same variable name. Then if you add an eleventh
product type later, you only have to change one place instead of say
trying to find all the occurrences of "10", checking if they are
relevant, then changing some of them to "11".

They also address the issues of things like the overflow that we have
been discussing as a "subset" of a more general case. i.e. an unsigned
8 bit variable is just one with a range of 0-255.

I also like the ability to specify some variables as modular, which
addresses some of the overflow semantics.

And, it can catch some programming errors at compile time that,
languages with lesser type systems leave unspecified and error prone.

And I really like that it doesn't use pointers for array accesses, which
prevents a many buffer overflow type problems.

But once again, I am not an Ada programmer, and others would be much
better than me at answering your questions.

--
- Stephen Fuld
(e-mail address disguised to prevent spam)

Re: one big computer, was addressing and protection, was Paper about ISO C

<skpgr4$k7m$1@gal.iecc.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=21413&group=comp.arch#21413

  copy link   Newsgroups: comp.arch
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!news.iecc.com!.POSTED.news.iecc.com!not-for-mail
From: joh...@taugh.com (John Levine)
Newsgroups: comp.arch
Subject: Re: one big computer, was addressing and protection, was Paper about ISO C
Date: Wed, 20 Oct 2021 16:41:08 -0000 (UTC)
Organization: Taughannock Networks
Message-ID: <skpgr4$k7m$1@gal.iecc.com>
References: <sjv4u6$37u$1@dont-email.me> <sknk0g$l79$1@dont-email.me> <sknt3d$koe$1@gal.iecc.com> <skodsu$sm0$1@dont-email.me>
Injection-Date: Wed, 20 Oct 2021 16:41:08 -0000 (UTC)
Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970";
logging-data="20726"; mail-complaints-to="abuse@iecc.com"
In-Reply-To: <sjv4u6$37u$1@dont-email.me> <sknk0g$l79$1@dont-email.me> <sknt3d$koe$1@gal.iecc.com> <skodsu$sm0$1@dont-email.me>
Cleverness: some
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: johnl@iecc.com (John Levine)
 by: John Levine - Wed, 20 Oct 2021 16:41 UTC

According to Stephen Fuld <sfuld@alumni.cmu.edu.invalid>:
>> At the high end I see that IBM z Series has this recent history
>>
>> model year max memory
>> zEC12 2013 3TB (42 bits)
>> z13 2015 10TB (44 bits)
>> z14 2017 32TB (45 bits)
>> z15 2019 40TB (46 bits)
>>
>> So it looks to me more like one bit every two years, so mainframes will
>> hit 64 bits in the 2050s and normal computers 20 years later.
>
>Interesting. That raises the question of whether these systems are
>running a single program that needs that much RAM (seems unlikely to
>me), or there is some other advantage of having a single large system
>over multiple smaller ones (George Neuner's solution - just buy another
>one).

The killer app is databases, and specifically database updates. If you
are a bank and a customer sends in a $100K transfer, the money either is
in the account or it isn't. The database can have a thousand transactions
active at once, but if they're all on one big computer, they can do the
locking in RAM with instructions like compare-and-swap rather than with
network transactions that are orders of magnitude slower.

There aren't a whole lot of databases big enough for this to be an issue
but for the ones that are, a few million dollars to get reliable high
performance consistent transactions is a bargain.

--
Regards,
John Levine, johnl@taugh.com, Primary Perpetrator of "The Internet for Dummies",
Please consider the environment before reading this e-mail. https://jl.ly

Re: addressing and protection, was Paper about ISO C

<fb714e88-baef-45e7-843e-64ae48ca56a4n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=21414&group=comp.arch#21414

  copy link   Newsgroups: comp.arch
X-Received: by 2002:ad4:5e8f:: with SMTP id jl15mr65585qvb.51.1634748255690;
Wed, 20 Oct 2021 09:44:15 -0700 (PDT)
X-Received: by 2002:a9d:12b2:: with SMTP id g47mr244633otg.227.1634748255423;
Wed, 20 Oct 2021 09:44:15 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.arch
Date: Wed, 20 Oct 2021 09:44:15 -0700 (PDT)
In-Reply-To: <skpei0$e26$1@gal.iecc.com>
Injection-Info: google-groups.googlegroups.com; posting-host=199.203.251.52; posting-account=ow8VOgoAAAAfiGNvoH__Y4ADRwQF1hZW
NNTP-Posting-Host: 199.203.251.52
References: <sjv4u6$37u$1@dont-email.me> <sknk0g$l79$1@dont-email.me>
<sknt3d$koe$1@gal.iecc.com> <5146b519-f10d-4301-9e27-d78500fdc0e1n@googlegroups.com>
<skpei0$e26$1@gal.iecc.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <fb714e88-baef-45e7-843e-64ae48ca56a4n@googlegroups.com>
Subject: Re: addressing and protection, was Paper about ISO C
From: already5...@yahoo.com (Michael S)
Injection-Date: Wed, 20 Oct 2021 16:44:15 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 22
 by: Michael S - Wed, 20 Oct 2021 16:44 UTC

On Wednesday, October 20, 2021 at 7:02:11 PM UTC+3, John Levine wrote:
> According to Michael S <already...@yahoo.com>:
> >On Wednesday, October 20, 2021 at 4:58:07 AM UTC+3, John Levine wrote:
> >> At the high end I see that IBM z Series has this recent history
> >>
> >> model year max memory
> >> zEC12 2013 3TB (42 bits)
> >> z13 2015 10TB (44 bits)
> >> z14 2017 32TB (45 bits)
> >> z15 2019 40TB (46 bits)
> >
> >Which z15 model has more than 16TB of memory installed?
> The redbook says Max190 can have 5 processor drawers with
> a total of 40TB. I have no idea what size machines people
> actually buy.
> --
> Regards,
> John Levine, jo...@taugh.com, Primary Perpetrator of "The Internet for Dummies",
> Please consider the environment before reading this e-mail. https://jl.ly

Thank you.
I relied on google that somehow failed to find this configuration.
Now I see that each z15 drawer is equipped with 4 SMP links so 5-drawer single-system configuration is possible.

Re: Specifying timing constraints was Re: Paper about ISO C

<2021Oct20.184028@mips.complang.tuwien.ac.at>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=21415&group=comp.arch#21415

  copy link   Newsgroups: comp.arch
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: ant...@mips.complang.tuwien.ac.at (Anton Ertl)
Newsgroups: comp.arch
Subject: Re: Specifying timing constraints was Re: Paper about ISO C
Date: Wed, 20 Oct 2021 16:40:28 GMT
Organization: Institut fuer Computersprachen, Technische Universitaet Wien
Lines: 12
Message-ID: <2021Oct20.184028@mips.complang.tuwien.ac.at>
References: <87fstdumxd.fsf@hotmail.com> <skhjk3$9p4$1@dont-email.me> <f9db2e75-2ec2-4572-b211-a8b2d6b3e0e6n@googlegroups.com> <skjkqv$nd3$1@dont-email.me> <0ba079c3-d672-47b3-b86d-cfc74520ca5dn@googlegroups.com> <skjshe$2up$1@dont-email.me> <8af10f0d-80ae-4cf2-b2e1-048a72bef192n@googlegroups.com> <skk6h7$ovp$1@dont-email.me> <4fc7ef31-0248-4cff-a63f-cb8d00169f72n@googlegroups.com> <sklrl4$5g1$1@dont-email.me> <a3253014-c721-4c51-943b-8272480c38edn@googlegroups.com> <skp4c4$d1k$1@dont-email.me>
Injection-Info: reader02.eternal-september.org; posting-host="1dab82ece26fd7bfccda9dc95b4dae2b";
logging-data="23628"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX190SZlnvfytE0GvAgUSs6cc"
Cancel-Lock: sha1:qqmoSKnOUez8V9r4cG3fUdz3YBg=
X-newsreader: xrn 10.00-beta-3
 by: Anton Ertl - Wed, 20 Oct 2021 16:40 UTC

David Brown <david.brown@hesbynett.no> writes:
[wrapping]
>It is a ring, not a field (division is not an inverse of multiplication,
>which is required for a field).

By contrast, standard C signed integers are not even a magma (neither
for addition nor for multiplication). They are not closed.

- anton
--
'Anyone trying for "industrial quality" ISA should avoid undefined behavior.'
Mitch Alsup, <c17fcd89-f024-40e7-a594-88a85ac10d20o@googlegroups.com>

Re: RAM size

<FRXbJ.37$k35.29@fx33.iad>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=21416&group=comp.arch#21416

  copy link   Newsgroups: comp.arch
Path: i2pn2.org!i2pn.org!paganini.bofh.team!news.dns-netz.com!news.freedyn.net!newsreader4.netcologne.de!news.netcologne.de!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx33.iad.POSTED!not-for-mail
From: ThatWoul...@thevillage.com (EricP)
User-Agent: Thunderbird 2.0.0.24 (Windows/20100228)
MIME-Version: 1.0
Newsgroups: comp.arch
Subject: Re: RAM size
References: <sjv4u6$37u$1@dont-email.me> <memo.20211010193358.12252P@jgd.cix.co.uk> <sjvc1g$pf4$1@newsreader4.netcologne.de> <9115d247-860e-4a56-a60d-76453e183fden@googlegroups.com> <sjvls1$11i$1@newsreader4.netcologne.de> <sjvqgu$4nf$1@dont-email.me> <sjvt49$hum$1@dont-email.me> <thr8mg5gmsl4ldb7tc6n9gq4rcpr4pre3f@4ax.com> <skn7fp$l32$1@dont-email.me> <jwv8ryor9ie.fsf-monnier+comp.arch@gnu.org> <2021Oct20.095659@mips.complang.tuwien.ac.at> <jwvmtn3q2rf.fsf-monnier+comp.arch@gnu.org>
In-Reply-To: <jwvmtn3q2rf.fsf-monnier+comp.arch@gnu.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 47
Message-ID: <FRXbJ.37$k35.29@fx33.iad>
X-Complaints-To: abuse@UsenetServer.com
NNTP-Posting-Date: Wed, 20 Oct 2021 16:55:01 UTC
Date: Wed, 20 Oct 2021 12:54:52 -0400
X-Received-Bytes: 3466
 by: EricP - Wed, 20 Oct 2021 16:54 UTC

Stefan Monnier wrote:
>> The other thing about 64bits is that you usually want a bit more
>> address space than physical RAM, for various reasons (note that, e.g.,
>> the first implementations of AMD64 supported 48 bits of virtual
>> addresses and 40 bits of physical addresses), so if we ever get close
>> to needing 64 bits for physical RAM, we probably will switch to
>> 128-bit machines a little earlier.
>
> Indeed, it might bring the need to switch a bit closer.
>
> This said, there's another factor at play:
>
> In the past, when a limit was reached it seemed obvious that while
> it only affected the top-end of the range, the middle end would be
> affected soon as well. So it was worthwhile to invest into a whole
> new ISA with significantly larger pointers.
>
> But already for the switch from 32bit to 64bit, this hasn't been nearly
> as true as expected: [ignoring supercomputers] the switch to 64bit
> started back around 1990, but 30 years later the vast majority of
> computer users still wouldn't notice a difference if their OS was using
> the old 32bit ISA rather than the new 64bit ISA in their processor.
>
> So maybe when the bigger machines start bumping into the 64bit limit,
> the decision to move to 128bit pointers will not be nearly as simple
> as it was for 64bit pointers, because the mass market might be
> uninterested/unwilling to move to 128bit pointers, drastically affecting
> the possible economies of scale.

What is this 128-bit address space going to be used for?
I believe that HP's "The Machine" was talking about 128-bit
addresses but they were also talking about something like a
single address space holding all data for an organization
in persistent memristor storage (which was, so we were told,
going to be faster than cache and cheaper than disk).

Going the other direction, my ISA includes two sizes of absolute address,
64 bit, and sign extended 32 bit allows direct addressing the bottom
2 GB where most user code static data reside,
and (unsigned) top 2 GB where OS and its static data reside.

The compacting linker by default tries to locate code in lower/upper 2 GB
and then compacts any absolute addresses, which should almost always work.

I figure 2 GB for each of user and OS code code should cover most situations.

Re: Specifying timing constraints was Re: Paper about ISO C

<skpi51$ekf$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=21417&group=comp.arch#21417

  copy link   Newsgroups: comp.arch
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: iva...@millcomputing.com (Ivan Godard)
Newsgroups: comp.arch
Subject: Re: Specifying timing constraints was Re: Paper about ISO C
Date: Wed, 20 Oct 2021 10:03:29 -0700
Organization: A noiseless patient Spider
Lines: 42
Message-ID: <skpi51$ekf$1@dont-email.me>
References: <87fstdumxd.fsf@hotmail.com> <sjni60$97d$1@dont-email.me>
<afb9352d-8ba7-4521-b741-280e0206e255n@googlegroups.com>
<3a350cfe-971c-4042-9171-9ec2516cdf2bn@googlegroups.com>
<sk6s4a$9cm$1@dont-email.me>
<1ed391dc-0d1d-4069-96d8-e83acbe01ba5n@googlegroups.com>
<sk9ej9$fj9$1@dont-email.me> <jwvtuhj4dlq.fsf-monnier+comp.arch@gnu.org>
<skc7a9$698$1@dont-email.me> <skc905$85c$1@dont-email.me>
<skh20o$ji2$1@dont-email.me>
<4fc4f707-2d42-492a-bd41-f791141dbfb2n@googlegroups.com>
<skhjk3$9p4$1@dont-email.me>
<f9db2e75-2ec2-4572-b211-a8b2d6b3e0e6n@googlegroups.com>
<skjkqv$nd3$1@dont-email.me>
<0ba079c3-d672-47b3-b86d-cfc74520ca5dn@googlegroups.com>
<86a6j6l8ci.fsf@linuxsc.com> <LClbJ.602$xjIc.241@fx01.iad>
<sklt24$dak$1@dont-email.me> <skn4hf$q87$2@newsreader4.netcologne.de>
<skn5o9$8qj$1@dont-email.me> <5bXbJ.1936$TB3.66@fx29.iad>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 20 Oct 2021 17:03:29 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="3a991050c2fb22042837daafa6c5fb70";
logging-data="14991"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/fUVE0KxUDgS4LWE3xVhZY"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.2.0
Cancel-Lock: sha1:jbD8V22RGcoanLCRpj2zUEm2J0s=
In-Reply-To: <5bXbJ.1936$TB3.66@fx29.iad>
Content-Language: en-US
 by: Ivan Godard - Wed, 20 Oct 2021 17:03 UTC

On 10/20/2021 9:09 AM, EricP wrote:
> Ivan Godard wrote:
>> On 10/19/2021 11:58 AM, Thomas Koenig wrote:
>>> David Brown <david.brown@hesbynett.no> schrieb:
>>>
>>>> There are more problems than that.  Consider "y = x + 3 - 2;".
>>>> (Imagine
>>>> it is the result of a set of macros, or inline functions and constant
>>>> propagation, rather than a hand-written expression.)  Can a compiler
>>>> change that to "y = x + 1;" with overflow checking there?  Does it need
>>>> to do two operations, checking twice?
>>>
>>> In Fortran, it could according to the language definition, as
>>> long as parenthethes are kept.  The language even allows to change
>>> (x - x) into zero for floats, never mind NaNs.
>>>
>>> Few compilers dare to implement that.
>>>
>>> It would be illegal for y = (x + 3) - 2.
>>>
>>
>> That rule has always bothered me for a language with operator
>> precedence. OP forces parens to resolve precedence: Fortran (b+c)*a is
>> not the same as b+c*a, although it is in APL where there is no
>> precedence. Don't you find that precedence parens masquerading as
>> optimization-control parens sometimes engender bad code?
>
> It provides an easy mechanism for programmer to pass intent to a compiler.
> Historically mostly useful for floating point,
> but could be used for overflow and saturating integers too.
>
> It wouldn't work well as a default behavior in C because
> macros use so many parens.
>
> Do you have an alternative idea of how to succinctly instruct
> that this expression precedence must be interpreted as given?
> One could add a reserved word to a language like "exact (expression)"
> but that would get tedious if you were writing hundreds of thousands
> or millions of lines of weather or black hole simulations.

An alternative is to dump precedence (what's the precedence of a left
circular shift?) and add "sic{...}".

Re: Specifying timing constraints was Re: Paper about ISO C

<m_XbJ.111$e_6.11@fx36.iad>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=21418&group=comp.arch#21418

  copy link   Newsgroups: comp.arch
Path: i2pn2.org!i2pn.org!paganini.bofh.team!news.dns-netz.com!news.freedyn.net!newsreader4.netcologne.de!news.netcologne.de!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx36.iad.POSTED!not-for-mail
From: ThatWoul...@thevillage.com (EricP)
User-Agent: Thunderbird 2.0.0.24 (Windows/20100228)
MIME-Version: 1.0
Newsgroups: comp.arch
Subject: Re: Specifying timing constraints was Re: Paper about ISO C
References: <87fstdumxd.fsf@hotmail.com> <sjni60$97d$1@dont-email.me> <afb9352d-8ba7-4521-b741-280e0206e255n@googlegroups.com> <3a350cfe-971c-4042-9171-9ec2516cdf2bn@googlegroups.com> <sk6s4a$9cm$1@dont-email.me> <1ed391dc-0d1d-4069-96d8-e83acbe01ba5n@googlegroups.com> <sk9ej9$fj9$1@dont-email.me> <jwvtuhj4dlq.fsf-monnier+comp.arch@gnu.org> <skc7a9$698$1@dont-email.me> <skc905$85c$1@dont-email.me> <skh20o$ji2$1@dont-email.me> <4fc4f707-2d42-492a-bd41-f791141dbfb2n@googlegroups.com> <skhjk3$9p4$1@dont-email.me> <f9db2e75-2ec2-4572-b211-a8b2d6b3e0e6n@googlegroups.com> <skjkqv$nd3$1@dont-email.me> <0ba079c3-d672-47b3-b86d-cfc74520ca5dn@googlegroups.com> <86a6j6l8ci.fsf@linuxsc.com> <LClbJ.602$xjIc.241@fx01.iad> <skl12c$i1n$1@dont-email.me> <qgDbJ.3$in7.0@fx22.iad> <skn1iv$ap3$1@dont-email.me> <skn3ib$ouk$1@dont-email.me>
In-Reply-To: <skn3ib$ouk$1@dont-email.me>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 53
Message-ID: <m_XbJ.111$e_6.11@fx36.iad>
X-Complaints-To: abuse@UsenetServer.com
NNTP-Posting-Date: Wed, 20 Oct 2021 17:04:18 UTC
Date: Wed, 20 Oct 2021 13:03:48 -0400
X-Received-Bytes: 3878
 by: EricP - Wed, 20 Oct 2021 17:03 UTC

Ivan Godard wrote:
> On 10/19/2021 11:08 AM, Stephen Fuld wrote:
>> On 10/19/2021 9:20 AM, EricP wrote:
>>> Ivan Godard wrote:
>>>> On 10/18/2021 2:23 PM, EricP wrote:
>>>>>
>>>>> The only mechanism I can think of that can handle that kind of
>>>>> flexibility smoothly would be based on multiple language data types,
>>>>> and an ISA with separate instructions for each operation on each type.
>>>>
>>>> As for example:
>>>> enumWithTraits(intNumEnums, overflowCode,
>>>> excepting,
>>>> modulo,
>>>> saturating,
>>>> widening
>>>> );
>>>> available in every kind of operation that can overflow?
>>>>
>>>
>>> I don't know what you mean.
>>>
>>> I mean that only the programmer knows their intent and since
>>> that intent changes and they need a way to express it.
>>> A one-size-fits-all approach isn't flexible enough.
>>>
>>> The compiler already handles overloading operators for different
>>> integral and float data types and sizes. This expands on that mechanism.
>>
>> I think the disconnect is the following. Ivan showed what
>> capabilities are/will be in the Mill hardware ISA. You talked about
>> what the programmer intends. The disconnect is that the current C
>> language doesn't provide a mechanism to "connect" the two, at least in
>> many cases. Several proposals have been made here (pragmas, compile
>> options, etc.), but none are apparently part of the standard.
>>
>> I should note that at least a good part of these are specifiable in,
>> for example Ada. The very extensive type system in Ada is, IMO one of
>> its biggest strengths.
>
> Well put. Besides Ada, also consider C++ in which you can define classes
> saturatingShort, saturatingInt, etc and overload the operators to
> produce an intrinsic which in turn invokes a native instruction (Mill)
> or sequence (whatever). Writing the library is annoying, but using it is
> convenient and natural.

One reason one might want data types defined in a language is the
handling of compile-time constant expressions where the operators
or rules for optimization change based on data type.
e.g. float vs int reordering rules, or single might be different
from double, or maybe float round mode would be given by its data type.

Re: RAM size

<2021Oct20.185513@mips.complang.tuwien.ac.at>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=21419&group=comp.arch#21419

  copy link   Newsgroups: comp.arch
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: ant...@mips.complang.tuwien.ac.at (Anton Ertl)
Newsgroups: comp.arch
Subject: Re: RAM size
Date: Wed, 20 Oct 2021 16:55:13 GMT
Organization: Institut fuer Computersprachen, Technische Universitaet Wien
Lines: 37
Message-ID: <2021Oct20.185513@mips.complang.tuwien.ac.at>
References: <sjv4u6$37u$1@dont-email.me> <memo.20211010193358.12252P@jgd.cix.co.uk> <sjvc1g$pf4$1@newsreader4.netcologne.de> <9115d247-860e-4a56-a60d-76453e183fden@googlegroups.com> <sjvls1$11i$1@newsreader4.netcologne.de> <sjvqgu$4nf$1@dont-email.me> <sjvt49$hum$1@dont-email.me> <thr8mg5gmsl4ldb7tc6n9gq4rcpr4pre3f@4ax.com> <skn7fp$l32$1@dont-email.me> <jwv8ryor9ie.fsf-monnier+comp.arch@gnu.org> <2021Oct20.095659@mips.complang.tuwien.ac.at> <jwvmtn3q2rf.fsf-monnier+comp.arch@gnu.org>
Injection-Info: reader02.eternal-september.org; posting-host="1dab82ece26fd7bfccda9dc95b4dae2b";
logging-data="30414"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18scje4Gl/P925ekUgdmH5n"
Cancel-Lock: sha1:2VjeG/pp4Dj/o7Nf9sQ9/tgnX60=
X-newsreader: xrn 10.00-beta-3
 by: Anton Ertl - Wed, 20 Oct 2021 16:55 UTC

Stefan Monnier <monnier@iro.umontreal.ca> writes:
>But already for the switch from 32bit to 64bit, this hasn't been nearly
>as true as expected: [ignoring supercomputers] the switch to 64bit
>started back around 1990, but 30 years later the vast majority of
>computer users still wouldn't notice a difference if their OS was using
>the old 32bit ISA rather than the new 64bit ISA in their processor.

I am pretty sure they would notice because many programs are using the
64-bit ISA. But even assuming 32-bit versions of the programs exist,
I expect that may people use at least one program that uses more
address space and/or memory than available in 32-bit OSs. E.g., we
recently replaced a 32GB RAM machine from 2009 with a 128GB machine,
because emacs regularly ran out of memory for me on the 32GB machine.

I also remember a time when I ran into the 32-bit limits of Emacs (at
significantly less then 4GB); that was a long time ago, so I noticed
the difference then.

But Emacs is not the only use case. A collegue of mine upgraded his
laptop some years ago to one with more RAM (I don't remember if the
new or old one had 16GB), because his old laptop was no longer big
enough for his mailbox.

Another use case is the game Runes of Magic. The client you get from
Gameforge still uses IA-32. It instantly uses a little over 1GB of
RAM, but that can grow depending on what you do in the game, and the
game crashes somewhat frequently because it runs out of memory and
cannot deal with that. There is another version of the game, called
Arcadia, from a different publisher who has produced a 64-bit client.
From what I hear, crashes are much rarer on Arcadia. The fact that
Gameforge sticks with the 32-bit client is a frequently criticised
point.

- anton
--
'Anyone trying for "industrial quality" ISA should avoid undefined behavior.'
Mitch Alsup, <c17fcd89-f024-40e7-a594-88a85ac10d20o@googlegroups.com>

Re: addressing and protection, was Paper about ISO C

<skpjv0$ug0$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=21420&group=comp.arch#21420

  copy link   Newsgroups: comp.arch
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: cr88...@gmail.com (BGB)
Newsgroups: comp.arch
Subject: Re: addressing and protection, was Paper about ISO C
Date: Wed, 20 Oct 2021 12:34:21 -0500
Organization: A noiseless patient Spider
Lines: 61
Message-ID: <skpjv0$ug0$1@dont-email.me>
References: <sjv4u6$37u$1@dont-email.me> <sko85o$1lm$1@dont-email.me>
<skoebt$ven$1@dont-email.me> <skomk6$hb9$1@dont-email.me>
<skpdo5$93r$1@gal.iecc.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 20 Oct 2021 17:34:24 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="574797de63b6a15650cdabb643753db2";
logging-data="31232"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+k9/xt2ak8pkQzg9aw4rrH"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.2.0
Cancel-Lock: sha1:CAMh/LXYXFGifba+VtAYrxrZ+JA=
In-Reply-To: <skpdo5$93r$1@gal.iecc.com>
Content-Language: en-US
 by: BGB - Wed, 20 Oct 2021 17:34 UTC

On 10/20/2021 10:48 AM, John Levine wrote:
> According to BGB <cr88192@gmail.com>:
>>> Apparently the millions of people who have bought Macbooks disagreed
>>> with you.
>>
>> I suspect they are mostly "rich people", like the same ones who buy big
>> houses and fancy cars.
>
> No, they're people who do stuff that Macs do well. In my case, I have a
> Mac because it is a full Unix system underneath, with well supported versions
> of browsers and mail programs and all the other stuff you need. I have
> used linux on laptops which works mostly, and the browsers and stuff work,
> usually. Other people have Macs because they are doing graphic design or
> video editing where the Mac apps are way better than the alternative.
>
> Also, Macs last a long time. A five year old Mac works fine, and is fully
> supported by current software.
>

Depending on ones' income level and expenses, a person could easily end
up needing to save up money for multiple years to be able to afford a
Mac, it just may not be worth it.

If one can get a normal desktop PC assembled for (merely) a few months
wages, it might be more viable for them to go this route.

Not sure what impact the whole "raising the minimum wage" thing would
have, either people could afford to buy a PC faster, or companies end up
doing mass layoffs because it is not cost-effective for the companies to
pay $15 or so. Not sure what happens then, I guess the tent city gets a
few more residents.

Though, one big drawback of tent cities is lack of reliable access to
power, water, or internet access (nor any real sort of "escape path"; in
pretty much all sense, a person "falls out of the system" at this point).

....

Meanwhile, yeah, Linux works well at least, I tend to run Linux on many
of my secondary PCs.

>> New pre-built PCs tend to be overpriced and kinda weak regarding their
>> hardware stats (at least from places like BestBuy).
>
> These days desktop PCs are a shrinking niche. Everyone gets a laptop
> and you can't build one from parts. When I'm home my laptop is plugged
> into a real keyboard and mouse, a big screen, and a wired LAN. If I
> ever take a trip again, I can unplug it and have the same computer with
> me I have at home.
>

The laptop I have is from 2009 (and an older one from 2003).

Had considered getting a newer one, but too expensive for not enough
improvement in terms of baseline stats to make it seem all that worthwhile.

It also seems like laptops were cheaper in the 2000s.

Re: addressing and protection, was Paper about ISO C

<skpkch$1na$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=21421&group=comp.arch#21421

  copy link   Newsgroups: comp.arch
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: cr88...@gmail.com (BGB)
Newsgroups: comp.arch
Subject: Re: addressing and protection, was Paper about ISO C
Date: Wed, 20 Oct 2021 12:41:35 -0500
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <skpkch$1na$1@dont-email.me>
References: <sjv4u6$37u$1@dont-email.me> <skn7fp$l32$1@dont-email.me>
<jwv8ryor9ie.fsf-monnier+comp.arch@gnu.org> <sknk0g$l79$1@dont-email.me>
<sknt3d$koe$1@gal.iecc.com>
<efbc4871-5ccb-49ec-8bc6-52b6deec4de0n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 20 Oct 2021 17:41:37 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="574797de63b6a15650cdabb643753db2";
logging-data="1770"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+1EF/qYQ3jNg2PvElatJq3"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.2.0
Cancel-Lock: sha1:mQT+DeiJat77Bxo44CA4/cP3nIg=
In-Reply-To: <efbc4871-5ccb-49ec-8bc6-52b6deec4de0n@googlegroups.com>
Content-Language: en-US
 by: BGB - Wed, 20 Oct 2021 17:41 UTC

On 10/20/2021 6:54 AM, Michael S wrote:
> On Wednesday, October 20, 2021 at 4:58:07 AM UTC+3, John Levine wrote:
>> According to BGB <cr8...@gmail.com>:
>>> I am pretty sure much of the laptop space has been stuck at 4GB/8GB for
>>> a fairly long time (at least, last I looked at laptops).
>> I'm typing this on a 16GB Macbook that I bought two years ago. Apple just announced
>> some new M1 based laptops that can go up to 32 or 64GB, although they are very expensive
>> and the 64GB is aimed at people doing video editing.
>
> Amazon shows plenty of modern 32 GB laptops in 800 to 1000 USD range.
> And few older models that can be bought under 650 USD e.g. Dell Latitude 5580.
> But for later I am not so sure that they are able to deliver.
>

OK, if so, the situation is better than the last time I looked
(admittedly, a few years ago), where it was mostly 4GB and 8GB models in
this price range.

Re: Specifying timing constraints was Re: Paper about ISO C

<skpkgu$2lg$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=21422&group=comp.arch#21422

  copy link   Newsgroups: comp.arch
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: david.br...@hesbynett.no (David Brown)
Newsgroups: comp.arch
Subject: Re: Specifying timing constraints was Re: Paper about ISO C
Date: Wed, 20 Oct 2021 19:43:58 +0200
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <skpkgu$2lg$1@dont-email.me>
References: <87fstdumxd.fsf@hotmail.com> <skhjk3$9p4$1@dont-email.me>
<f9db2e75-2ec2-4572-b211-a8b2d6b3e0e6n@googlegroups.com>
<skjkqv$nd3$1@dont-email.me>
<0ba079c3-d672-47b3-b86d-cfc74520ca5dn@googlegroups.com>
<skjshe$2up$1@dont-email.me>
<8af10f0d-80ae-4cf2-b2e1-048a72bef192n@googlegroups.com>
<skk6h7$ovp$1@dont-email.me>
<4fc7ef31-0248-4cff-a63f-cb8d00169f72n@googlegroups.com>
<sklrl4$5g1$1@dont-email.me>
<a3253014-c721-4c51-943b-8272480c38edn@googlegroups.com>
<skp4c4$d1k$1@dont-email.me> <2021Oct20.184028@mips.complang.tuwien.ac.at>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 20 Oct 2021 17:43:58 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="4f6e7f30fda00c690a215bbb3b637966";
logging-data="2736"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX183wl+myk8bpClOTloqF1tPyn/6lGzZG3E="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.11.0
Cancel-Lock: sha1:75RF1m4+QqaGz8fEyfPX7KFvL2w=
In-Reply-To: <2021Oct20.184028@mips.complang.tuwien.ac.at>
Content-Language: en-GB
 by: David Brown - Wed, 20 Oct 2021 17:43 UTC

On 20/10/2021 18:40, Anton Ertl wrote:
> David Brown <david.brown@hesbynett.no> writes:
> [wrapping]
>> It is a ring, not a field (division is not an inverse of multiplication,
>> which is required for a field).
>
> By contrast, standard C signed integers are not even a magma (neither
> for addition nor for multiplication). They are not closed.
>

Correct.

I'm not quite sure what the correct mathematical term would be. A
partial ring, perhaps? They certainly form a partial group.

It's a long time since I studied algebraic structures, but I don't think
the field of mathematical algebra had much to say about partial
functions or partial operations. Perhaps it is something mathematicians
should cover more - it's certainly critical to all kinds of things in
the programming world.

Re: addressing and protection, was Paper about ISO C

<87fssvlh26.fsf@hotmail.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=21423&group=comp.arch#21423

  copy link   Newsgroups: comp.arch
Path: i2pn2.org!i2pn.org!aioe.org!xcrumNapWYKcczN4Ruh1Kw.user.46.165.242.75.POSTED!not-for-mail
From: cla...@hotmail.com
Newsgroups: comp.arch
Subject: Re: addressing and protection, was Paper about ISO C
Date: Wed, 20 Oct 2021 20:52:33 +0300
Organization: Aioe.org NNTP Server
Message-ID: <87fssvlh26.fsf@hotmail.com>
References: <sjv4u6$37u$1@dont-email.me> <sko85o$1lm$1@dont-email.me>
<skoebt$ven$1@dont-email.me> <skomk6$hb9$1@dont-email.me>
<skpdo5$93r$1@gal.iecc.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="33414"; posting-host="xcrumNapWYKcczN4Ruh1Kw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
Cancel-Lock: sha1:YzEtlporX0d4q87jzt8nMmYj2ns=
X-Notice: Filtered by postfilter v. 0.9.2
 by: cla...@hotmail.com - Wed, 20 Oct 2021 17:52 UTC

John Levine <johnl@taugh.com> writes:

> According to BGB <cr88192@gmail.com>:
>>> Apparently the millions of people who have bought Macbooks disagreed
>>> with you.
>>
>>I suspect they are mostly "rich people", like the same ones who buy big
>>houses and fancy cars.
>
> No, they're people who do stuff that Macs do well. In my case, I have a
> Mac because it is a full Unix system underneath, with well supported versions
> of browsers and mail programs and all the other stuff you need. I have
> used linux on laptops which works mostly, and the browsers and stuff work,
> usually. Other people have Macs because they are doing graphic design or
> video editing where the Mac apps are way better than the alternative.
>
> Also, Macs last a long time. A five year old Mac works fine, and is
> fully supported by current software.

Apple's hardware does last a long time [1], Apple's software (support)
is not nearly as impressive in longevity department

>
>>New pre-built PCs tend to be overpriced and kinda weak regarding their
>>hardware stats (at least from places like BestBuy).
>
> These days desktop PCs are a shrinking niche. Everyone gets a laptop
> and you can't build one from parts. When I'm home my laptop is plugged
> into a real keyboard and mouse, a big screen, and a wired LAN. If I
> ever take a trip again, I can unplug it and have the same computer with
> me I have at home.
>
> R's,
> John

[1] https://boblycat.org/~malc/scratch/minis.png

The box at the bottom is a 7447A PPC mac mini given to me as a
birthday present by colleagues in 2008, it still works, under Linux
that is (DVD drive died ages ago and i had to replace hard disk, but
otherwise it's in a tip-top working condition)

[2] Second generation iPhone that i have given as birthday present to my
mother still works too

[3] I managed to sell 2014 i5 mac mini along with mac book air (same
year) and with the that money acquire M1 mini earlier this year

[4] While it would require superhuman effort to pry PPC mini from my
cold dead hands i would have gladly parted with the Core Duo one,
alas no suitors...

[5] iPad №4 (a gift to my grandmother) was associated with some Apple
thing (find my device?) she does not remember her password so now it
serves as a pretty kitchen timer and is unsellable

Takeaways:
* i like the hardware (Apple produces itself)
* "of the shelf" parts that it doesn't are a mixed bag
* Apple's SW supports HW in the vicinity to the latest and greatest only
* macOS GUI is not for me
* Apple make nice gifts that people don't mind receiving

Re: RAM size

<skplka$al8$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=21424&group=comp.arch#21424

  copy link   Newsgroups: comp.arch
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: cr88...@gmail.com (BGB)
Newsgroups: comp.arch
Subject: Re: RAM size
Date: Wed, 20 Oct 2021 13:02:48 -0500
Organization: A noiseless patient Spider
Lines: 48
Message-ID: <skplka$al8$1@dont-email.me>
References: <sjv4u6$37u$1@dont-email.me>
<memo.20211010193358.12252P@jgd.cix.co.uk>
<sjvc1g$pf4$1@newsreader4.netcologne.de>
<9115d247-860e-4a56-a60d-76453e183fden@googlegroups.com>
<sjvls1$11i$1@newsreader4.netcologne.de> <sjvqgu$4nf$1@dont-email.me>
<sjvt49$hum$1@dont-email.me> <thr8mg5gmsl4ldb7tc6n9gq4rcpr4pre3f@4ax.com>
<skn7fp$l32$1@dont-email.me> <jwv8ryor9ie.fsf-monnier+comp.arch@gnu.org>
<2021Oct20.095659@mips.complang.tuwien.ac.at>
<jwvmtn3q2rf.fsf-monnier+comp.arch@gnu.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 20 Oct 2021 18:02:50 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="574797de63b6a15650cdabb643753db2";
logging-data="10920"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/+uOQRDkVGuI73Uk1TFPqw"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.2.0
Cancel-Lock: sha1:KsMry2cRYHQBJFwd0b5Rj+J6rXU=
In-Reply-To: <jwvmtn3q2rf.fsf-monnier+comp.arch@gnu.org>
Content-Language: en-US
 by: BGB - Wed, 20 Oct 2021 18:02 UTC

On 10/20/2021 8:09 AM, Stefan Monnier wrote:
>> The other thing about 64bits is that you usually want a bit more
>> address space than physical RAM, for various reasons (note that, e.g.,
>> the first implementations of AMD64 supported 48 bits of virtual
>> addresses and 40 bits of physical addresses), so if we ever get close
>> to needing 64 bits for physical RAM, we probably will switch to
>> 128-bit machines a little earlier.
>
> Indeed, it might bring the need to switch a bit closer.
>
> This said, there's another factor at play:
>
> In the past, when a limit was reached it seemed obvious that while
> it only affected the top-end of the range, the middle end would be
> affected soon as well. So it was worthwhile to invest into a whole
> new ISA with significantly larger pointers.
>
> But already for the switch from 32bit to 64bit, this hasn't been nearly
> as true as expected: [ignoring supercomputers] the switch to 64bit
> started back around 1990, but 30 years later the vast majority of
> computer users still wouldn't notice a difference if their OS was using
> the old 32bit ISA rather than the new 64bit ISA in their processor.
>
> So maybe when the bigger machines start bumping into the 64bit limit,
> the decision to move to 128bit pointers will not be nearly as simple
> as it was for 64bit pointers, because the mass market might be
> uninterested/unwilling to move to 128bit pointers, drastically affecting
> the possible economies of scale.
>

This is partly why I am going to a 48-bit baseline addressing scheme,
with 96-bit (extended) addressing.

I don't expect 48-bits is likely to be hit by all that much. Meanwhile,
96-bits should be large enough to be extended far into the future.

One drawback would be that, in effect, there would be two different
pointer sizes (like in MS-DOS or Win16).

But, it is likely that a system with 64/128 bit storage sizes for
pointers, will be more useful than one with purely 128 bit pointers.

As for the tradeoff between 48-bit pointers and full 64-bit pointers,
this ship has already partly sailed in my case (couldn't switch over to
full 64-bits without breaking binary compatibility with existing code).

....

Re: Specifying timing constraints was Re: Paper about ISO C

<itb4fsFgc55U1@mid.individual.net>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=21425&group=comp.arch#21425

  copy link   Newsgroups: comp.arch
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: niklas.h...@tidorum.invalid (Niklas Holsti)
Newsgroups: comp.arch
Subject: Re: Specifying timing constraints was Re: Paper about ISO C
Date: Wed, 20 Oct 2021 21:12:11 +0300
Organization: Tidorum Ltd
Lines: 69
Message-ID: <itb4fsFgc55U1@mid.individual.net>
References: <87fstdumxd.fsf@hotmail.com> <sjni60$97d$1@dont-email.me>
<afb9352d-8ba7-4521-b741-280e0206e255n@googlegroups.com>
<3a350cfe-971c-4042-9171-9ec2516cdf2bn@googlegroups.com>
<sk6s4a$9cm$1@dont-email.me>
<1ed391dc-0d1d-4069-96d8-e83acbe01ba5n@googlegroups.com>
<sk9ej9$fj9$1@dont-email.me> <jwvtuhj4dlq.fsf-monnier+comp.arch@gnu.org>
<skc7a9$698$1@dont-email.me> <skc905$85c$1@dont-email.me>
<skh20o$ji2$1@dont-email.me>
<4fc4f707-2d42-492a-bd41-f791141dbfb2n@googlegroups.com>
<skhjk3$9p4$1@dont-email.me>
<f9db2e75-2ec2-4572-b211-a8b2d6b3e0e6n@googlegroups.com>
<skjkqv$nd3$1@dont-email.me>
<0ba079c3-d672-47b3-b86d-cfc74520ca5dn@googlegroups.com>
<86a6j6l8ci.fsf@linuxsc.com> <LClbJ.602$xjIc.241@fx01.iad>
<skl12c$i1n$1@dont-email.me> <qgDbJ.3$in7.0@fx22.iad>
<skn1iv$ap3$1@dont-email.me> <skn3ib$ouk$1@dont-email.me>
<m_XbJ.111$e_6.11@fx36.iad>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net NPS5MYAhF+Rp/jd5mveJRw9qKkYsAtJWw6iKYQOaartmP3YCv8
Cancel-Lock: sha1:ZxzJiw0aKdcHV4u2S+GW61zWFTk=
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:78.0)
Gecko/20100101 Thunderbird/78.13.0
In-Reply-To: <m_XbJ.111$e_6.11@fx36.iad>
Content-Language: en-US
 by: Niklas Holsti - Wed, 20 Oct 2021 18:12 UTC

On 2021-10-20 20:03, EricP wrote:
> Ivan Godard wrote:
>> On 10/19/2021 11:08 AM, Stephen Fuld wrote:
>>> On 10/19/2021 9:20 AM, EricP wrote:
>>>> Ivan Godard wrote:
>>>>> On 10/18/2021 2:23 PM, EricP wrote:
>>>>>>
>>>>>> The only mechanism I can think of that can handle that kind of
>>>>>> flexibility smoothly would be based on multiple language data types,
>>>>>> and an ISA with separate instructions for each operation on each
>>>>>> type.
>>>>>
>>>>> As for example:
>>>>>    enumWithTraits(intNumEnums, overflowCode,
>>>>>                     excepting,
>>>>>                     modulo,
>>>>>                     saturating,
>>>>>                     widening
>>>>>                     );
>>>>> available in every kind of operation that can overflow?
>>>>>

[snip]

>>> Ivan showed what
>>> capabilities are/will be in the Mill hardware ISA.  You talked about
>>> what the programmer intends.  The disconnect is that the current C
>>> language doesn't provide a mechanism to "connect" the two, at least
>>> in many cases.  Several proposals have been made here (pragmas,
>>> compile options, etc.), but none are apparently part of the standard.
>>>
>>> I should note that at least a good part of these are specifiable in,
>>> for example Ada.  The very extensive type system in Ada is, IMO one
>>> of its biggest strengths.
>>
>> Well put. Besides Ada, also consider C++ in which you can define
>> classes saturatingShort, saturatingInt, etc and overload the operators
>> to produce an intrinsic which in turn invokes a native instruction
>> (Mill) or sequence (whatever). Writing the library is annoying, but
>> using it is convenient and natural.
>
> One reason one might want data types defined in a language is the
> handling of compile-time constant expressions where the operators
> or rules for optimization change based on data type.
> e.g. float vs int reordering rules, or single might be different
> from double, or maybe float round mode would be given by its data type.

In Ada, untyped compile-time constants are considered to be of
"universal" integer or real types. Compile-time computation with such
numbers uses unbounded range and precision (bignums, in effect). A
literal constant used in a typed expression adopts the type of the
expression -- in effect, literal numbers are overloaded to be of any
desired numerical type, depending on the context.

For example:

One_Third : constant := 1.0 / 3.0;
-- A real number that is exactly 1/3, to any desired number of
-- decimals (in effect, a rational number).

Ten_Thirds : constant := 10.0 * One_Third;
-- Computed exactly at compile-time (as the rational 10/3).

F : Float := Ten_Thirds;
-- F is initialized to the closest floating-point approximation
-- of the rational number 10/3.

Re: address space, RAM size

<skpsg8$1bl6$1@gal.iecc.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=21428&group=comp.arch#21428

  copy link   Newsgroups: comp.arch
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!news.iecc.com!.POSTED.news.iecc.com!not-for-mail
From: joh...@taugh.com (John Levine)
Newsgroups: comp.arch
Subject: Re: address space, RAM size
Date: Wed, 20 Oct 2021 20:00:08 -0000 (UTC)
Organization: Taughannock Networks
Message-ID: <skpsg8$1bl6$1@gal.iecc.com>
References: <sjv4u6$37u$1@dont-email.me> <2021Oct20.095659@mips.complang.tuwien.ac.at> <jwvmtn3q2rf.fsf-monnier+comp.arch@gnu.org> <FRXbJ.37$k35.29@fx33.iad>
Injection-Date: Wed, 20 Oct 2021 20:00:08 -0000 (UTC)
Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970";
logging-data="44710"; mail-complaints-to="abuse@iecc.com"
In-Reply-To: <sjv4u6$37u$1@dont-email.me> <2021Oct20.095659@mips.complang.tuwien.ac.at> <jwvmtn3q2rf.fsf-monnier+comp.arch@gnu.org> <FRXbJ.37$k35.29@fx33.iad>
Cleverness: some
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: johnl@iecc.com (John Levine)
 by: John Levine - Wed, 20 Oct 2021 20:00 UTC

According to EricP <ThatWouldBeTelling@thevillage.com>:
>What is this 128-bit address space going to be used for?
>I believe that HP's "The Machine" was talking about 128-bit
>addresses but they were also talking about something like a
>single address space holding all data for an organization
>in persistent memristor storage (which was, so we were told,
>going to be faster than cache and cheaper than disk).

IBM series i, formerly AS/400, formerly System/38 has 128 bit
pointers. It does indeed have a single address space for
everything on the machine. Its users love it and they've
sold something like a million of them which is pretty impressive
for a midrange system that is not cheap.

The 128 bit addresses are not implemented in hardware. It has a virtual
instruction set called TIMI which is translated into the local machine
code the first time a program is run.

--
Regards,
John Levine, johnl@taugh.com, Primary Perpetrator of "The Internet for Dummies",
Please consider the environment before reading this e-mail. https://jl.ly

Re: RAM size

<jwvtuhb1k6o.fsf-monnier+comp.arch@gnu.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=21429&group=comp.arch#21429

  copy link   Newsgroups: comp.arch
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: monn...@iro.umontreal.ca (Stefan Monnier)
Newsgroups: comp.arch
Subject: Re: RAM size
Date: Wed, 20 Oct 2021 17:12:11 -0400
Organization: A noiseless patient Spider
Lines: 43
Message-ID: <jwvtuhb1k6o.fsf-monnier+comp.arch@gnu.org>
References: <sjv4u6$37u$1@dont-email.me>
<memo.20211010193358.12252P@jgd.cix.co.uk>
<sjvc1g$pf4$1@newsreader4.netcologne.de>
<9115d247-860e-4a56-a60d-76453e183fden@googlegroups.com>
<sjvls1$11i$1@newsreader4.netcologne.de> <sjvqgu$4nf$1@dont-email.me>
<sjvt49$hum$1@dont-email.me>
<thr8mg5gmsl4ldb7tc6n9gq4rcpr4pre3f@4ax.com>
<skn7fp$l32$1@dont-email.me>
<jwv8ryor9ie.fsf-monnier+comp.arch@gnu.org>
<2021Oct20.095659@mips.complang.tuwien.ac.at>
<jwvmtn3q2rf.fsf-monnier+comp.arch@gnu.org>
<2021Oct20.185513@mips.complang.tuwien.ac.at>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="62f41f37a047d1b37c5c9a792e5482f5";
logging-data="25742"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18KY7A4dmw2juf8Y3LK5gq4"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
Cancel-Lock: sha1:E6jWlVy6TfXuy+pOR8X5DhO82tI=
sha1:mzRZK/Z5lKkgXw4f3jK/o1Yj2lI=
 by: Stefan Monnier - Wed, 20 Oct 2021 21:12 UTC

I think the fact that in 2021 you still have to list such anecdotes to
argue that a 64bit ISA is needed argues in favor of my point ;-)

Stefan

Anton Ertl [2021-10-20 16:55:13] wrote:

> Stefan Monnier <monnier@iro.umontreal.ca> writes:
>>But already for the switch from 32bit to 64bit, this hasn't been nearly
>>as true as expected: [ignoring supercomputers] the switch to 64bit
>>started back around 1990, but 30 years later the vast majority of
>>computer users still wouldn't notice a difference if their OS was using
>>the old 32bit ISA rather than the new 64bit ISA in their processor.
>
> I am pretty sure they would notice because many programs are using the
> 64-bit ISA. But even assuming 32-bit versions of the programs exist,
> I expect that may people use at least one program that uses more
> address space and/or memory than available in 32-bit OSs. E.g., we
> recently replaced a 32GB RAM machine from 2009 with a 128GB machine,
> because emacs regularly ran out of memory for me on the 32GB machine.
>
> I also remember a time when I ran into the 32-bit limits of Emacs (at
> significantly less then 4GB); that was a long time ago, so I noticed
> the difference then.
>
> But Emacs is not the only use case. A collegue of mine upgraded his
> laptop some years ago to one with more RAM (I don't remember if the
> new or old one had 16GB), because his old laptop was no longer big
> enough for his mailbox.
>
> Another use case is the game Runes of Magic. The client you get from
> Gameforge still uses IA-32. It instantly uses a little over 1GB of
> RAM, but that can grow depending on what you do in the game, and the
> game crashes somewhat frequently because it runs out of memory and
> cannot deal with that. There is another version of the game, called
> Arcadia, from a different publisher who has produced a 64-bit client.
> From what I hear, crashes are much rarer on Arcadia. The fact that
> Gameforge sticks with the 32-bit client is a frequently criticised
> point.
>
> - anton

Re: Specifying timing constraints was Re: Paper about ISO C

<skq2ah$vlk$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=21430&group=comp.arch#21430

  copy link   Newsgroups: comp.arch
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: iva...@millcomputing.com (Ivan Godard)
Newsgroups: comp.arch
Subject: Re: Specifying timing constraints was Re: Paper about ISO C
Date: Wed, 20 Oct 2021 14:39:29 -0700
Organization: A noiseless patient Spider
Lines: 72
Message-ID: <skq2ah$vlk$1@dont-email.me>
References: <87fstdumxd.fsf@hotmail.com> <sjni60$97d$1@dont-email.me>
<afb9352d-8ba7-4521-b741-280e0206e255n@googlegroups.com>
<3a350cfe-971c-4042-9171-9ec2516cdf2bn@googlegroups.com>
<sk6s4a$9cm$1@dont-email.me>
<1ed391dc-0d1d-4069-96d8-e83acbe01ba5n@googlegroups.com>
<sk9ej9$fj9$1@dont-email.me> <jwvtuhj4dlq.fsf-monnier+comp.arch@gnu.org>
<skc7a9$698$1@dont-email.me> <skc905$85c$1@dont-email.me>
<skh20o$ji2$1@dont-email.me>
<4fc4f707-2d42-492a-bd41-f791141dbfb2n@googlegroups.com>
<skhjk3$9p4$1@dont-email.me>
<f9db2e75-2ec2-4572-b211-a8b2d6b3e0e6n@googlegroups.com>
<skjkqv$nd3$1@dont-email.me>
<0ba079c3-d672-47b3-b86d-cfc74520ca5dn@googlegroups.com>
<86a6j6l8ci.fsf@linuxsc.com> <LClbJ.602$xjIc.241@fx01.iad>
<skl12c$i1n$1@dont-email.me> <qgDbJ.3$in7.0@fx22.iad>
<skn1iv$ap3$1@dont-email.me> <skn3ib$ouk$1@dont-email.me>
<m_XbJ.111$e_6.11@fx36.iad> <itb4fsFgc55U1@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 20 Oct 2021 21:39:29 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="3a991050c2fb22042837daafa6c5fb70";
logging-data="32436"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ullxUwpIIac87eRB8OrCA"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.2.0
Cancel-Lock: sha1:4WCbj+/qe5omjNafy+TOzJOs+BQ=
In-Reply-To: <itb4fsFgc55U1@mid.individual.net>
Content-Language: en-US
 by: Ivan Godard - Wed, 20 Oct 2021 21:39 UTC

On 10/20/2021 11:12 AM, Niklas Holsti wrote:
> On 2021-10-20 20:03, EricP wrote:
>> Ivan Godard wrote:
>>> On 10/19/2021 11:08 AM, Stephen Fuld wrote:
>>>> On 10/19/2021 9:20 AM, EricP wrote:
>>>>> Ivan Godard wrote:
>>>>>> On 10/18/2021 2:23 PM, EricP wrote:
>>>>>>>
>>>>>>> The only mechanism I can think of that can handle that kind of
>>>>>>> flexibility smoothly would be based on multiple language data types,
>>>>>>> and an ISA with separate instructions for each operation on each
>>>>>>> type.
>>>>>>
>>>>>> As for example:
>>>>>>    enumWithTraits(intNumEnums, overflowCode,
>>>>>>                     excepting,
>>>>>>                     modulo,
>>>>>>                     saturating,
>>>>>>                     widening
>>>>>>                     );
>>>>>> available in every kind of operation that can overflow?
>>>>>>
>
>
>    [snip]
>
>>>> Ivan showed what capabilities are/will be in the Mill hardware ISA.
>>>> You talked about what the programmer intends.  The disconnect is
>>>> that the current C language doesn't provide a mechanism to "connect"
>>>> the two, at least in many cases.  Several proposals have been made
>>>> here (pragmas, compile options, etc.), but none are apparently part
>>>> of the standard.
>>>>
>>>> I should note that at least a good part of these are specifiable in,
>>>> for example Ada.  The very extensive type system in Ada is, IMO one
>>>> of its biggest strengths.
>>>
>>> Well put. Besides Ada, also consider C++ in which you can define
>>> classes saturatingShort, saturatingInt, etc and overload the
>>> operators to produce an intrinsic which in turn invokes a native
>>> instruction (Mill) or sequence (whatever). Writing the library is
>>> annoying, but using it is convenient and natural.
>>
>> One reason one might want data types defined in a language is the
>> handling of compile-time constant expressions where the operators
>> or rules for optimization change based on data type.
>> e.g. float vs int reordering rules, or single might be different
>> from double, or maybe float round mode would be given by its data type.
>
>
> In Ada, untyped compile-time constants are considered to be of
> "universal" integer or real types. Compile-time computation with such
> numbers uses unbounded range and precision (bignums, in effect). A
> literal constant used in a typed expression adopts the type of the
> expression -- in effect, literal numbers are overloaded to be of any
> desired numerical type, depending on the context.
>
> For example:
>
>    One_Third : constant := 1.0 / 3.0;
>    -- A real number that is exactly 1/3, to any desired number of
>    -- decimals (in effect, a rational number).
>
>    Ten_Thirds : constant := 10.0 * One_Third;
>    -- Computed exactly at compile-time (as the rational 10/3).
>
>    F : Float := Ten_Thirds;
>    -- F is initialized to the closest floating-point approximation
>    -- of the rational number 10/3.
>

Never understood the problem with literals and types. The type of 3 is "3".

Re: RAM size

<skq607$q69$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=21431&group=comp.arch#21431

  copy link   Newsgroups: comp.arch
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: cr88...@gmail.com (BGB)
Newsgroups: comp.arch
Subject: Re: RAM size
Date: Wed, 20 Oct 2021 17:42:12 -0500
Organization: A noiseless patient Spider
Lines: 74
Message-ID: <skq607$q69$1@dont-email.me>
References: <sjv4u6$37u$1@dont-email.me>
<memo.20211010193358.12252P@jgd.cix.co.uk>
<sjvc1g$pf4$1@newsreader4.netcologne.de>
<9115d247-860e-4a56-a60d-76453e183fden@googlegroups.com>
<sjvls1$11i$1@newsreader4.netcologne.de> <sjvqgu$4nf$1@dont-email.me>
<sjvt49$hum$1@dont-email.me> <thr8mg5gmsl4ldb7tc6n9gq4rcpr4pre3f@4ax.com>
<skn7fp$l32$1@dont-email.me> <jwv8ryor9ie.fsf-monnier+comp.arch@gnu.org>
<2021Oct20.095659@mips.complang.tuwien.ac.at>
<jwvmtn3q2rf.fsf-monnier+comp.arch@gnu.org>
<2021Oct20.185513@mips.complang.tuwien.ac.at>
<jwvtuhb1k6o.fsf-monnier+comp.arch@gnu.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 20 Oct 2021 22:42:15 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="d75908f06973b5bf52381fce5a869819";
logging-data="26825"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/XIx63Gawryqt/dlUq8XhV"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.2.0
Cancel-Lock: sha1:XBTRiCfs4Cks4xLiaegXm6Z1rV8=
In-Reply-To: <jwvtuhb1k6o.fsf-monnier+comp.arch@gnu.org>
Content-Language: en-US
 by: BGB - Wed, 20 Oct 2021 22:42 UTC

On 10/20/2021 4:12 PM, Stefan Monnier wrote:
> I think the fact that in 2021 you still have to list such anecdotes to
> argue that a 64bit ISA is needed argues in favor of my point ;-)
>

Looking at task manager:
Running programs which exceed 32-bit limits:
Firefox, Minecraft
Programs which fit within 32 bits:
Everything else.

Something like 32-bit VA + 36-bit PA (such as via PAE) would likely have
still been "mostly sufficient" for most current end-user systems.

Granted, by this point PAE (as it was) would be about at the limits of
its usable lifespan.

Something like Minecraft would be a little more difficult, but this is
likely more the exception rather the rule.

Meanwhile, back in Win16 days, hardly anything could fit into 16-bits,
so in practice one was *still* using 32-bit (far) pointers for the most
part.

Many decades into the future, it seems likely that (realistically)
needing much larger than 48 or 64 bits will be still be a bit of a
novelty for most "sanely designed" software (assuming that "code bloat"
doesn't run too much out of hand, relative absence of things like "imma
malloc a 1TB array, because I can!", ...).

>
> Stefan
>
>
> Anton Ertl [2021-10-20 16:55:13] wrote:
>
>> Stefan Monnier <monnier@iro.umontreal.ca> writes:
>>> But already for the switch from 32bit to 64bit, this hasn't been nearly
>>> as true as expected: [ignoring supercomputers] the switch to 64bit
>>> started back around 1990, but 30 years later the vast majority of
>>> computer users still wouldn't notice a difference if their OS was using
>>> the old 32bit ISA rather than the new 64bit ISA in their processor.
>>
>> I am pretty sure they would notice because many programs are using the
>> 64-bit ISA. But even assuming 32-bit versions of the programs exist,
>> I expect that may people use at least one program that uses more
>> address space and/or memory than available in 32-bit OSs. E.g., we
>> recently replaced a 32GB RAM machine from 2009 with a 128GB machine,
>> because emacs regularly ran out of memory for me on the 32GB machine.
>>
>> I also remember a time when I ran into the 32-bit limits of Emacs (at
>> significantly less then 4GB); that was a long time ago, so I noticed
>> the difference then.
>>
>> But Emacs is not the only use case. A collegue of mine upgraded his
>> laptop some years ago to one with more RAM (I don't remember if the
>> new or old one had 16GB), because his old laptop was no longer big
>> enough for his mailbox.
>>
>> Another use case is the game Runes of Magic. The client you get from
>> Gameforge still uses IA-32. It instantly uses a little over 1GB of
>> RAM, but that can grow depending on what you do in the game, and the
>> game crashes somewhat frequently because it runs out of memory and
>> cannot deal with that. There is another version of the game, called
>> Arcadia, from a different publisher who has produced a 64-bit client.
>> From what I hear, crashes are much rarer on Arcadia. The fact that
>> Gameforge sticks with the 32-bit client is a frequently criticised
>> point.
>>
>> - anton

Re: Paper about ISO C

<mPKdnb2r0_psKe38nZ2dnUU7-UvNnZ2d@giganews.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=21432&group=comp.arch#21432

  copy link   Newsgroups: comp.arch
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!buffer2.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Wed, 20 Oct 2021 19:31:45 -0500
Newsgroups: comp.arch
Subject: Re: Paper about ISO C
References: <87fstdumxd.fsf@hotmail.com>
Organization: provalid.com
X-Newsreader: trn 4.0-test76 (Apr 2, 2001)
From: keg...@provalid.com (Kent Dickey)
Originator: kegs@provalid.com (Kent Dickey)
Message-ID: <mPKdnb2r0_psKe38nZ2dnUU7-UvNnZ2d@giganews.com>
Date: Wed, 20 Oct 2021 19:31:45 -0500
Lines: 37
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-plxNyPYb40aOQHLTzlPAz2NPIJD6gLihpUmVa8fV8gdJLk5MxE/cdRQbYqpx453m54M5hZAs8+8qgx4!37nvwYZz5d3ZkIOXCebqF+hpkei996Jmnbiu6JuIewbc/RGy19/5QgE/t7syqWoCvhzYJfl6qjXP
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 2937
 by: Kent Dickey - Thu, 21 Oct 2021 00:31 UTC

In article <87fstdumxd.fsf@hotmail.com>, <clamky@hotmail.com> wrote:
>Might strike a cord with Anton and/or Mich
>
>https://www.yodaiken.com/2021/10/06/plos-2021-paper-how-iso-c-became-unusable-for-operating-system-development/

Let me summarize some of the arguments in a different way:

1) The ISO C standard leaves a large area of Undefined Behavior (UB).
A C compiler that ignores UB in code it compiles is a valid
compiler. But a C program containing any UB is always broken
even if it seems to be working today. C compilers have grabbed
the entire space--they reserve the right to release a new
compiler that treats any UB as an optimization and change C code
that was working to non-working, and provide no mechanism to
warn that they are doing so, nor to provide the old behavior.
The problem is new UB optimizations (detecting UB that compilers
don't currently detect) which lead to new optimizations which
will break more programs. It's possible every non-trivial C
program accidentally touches some UB behavior. If everything
is illegal, it's the laws which are wrong.

2) A C Standard should enable the C Standard Library to be written in
fully conforming C (without triggering undefined behavior).
Examples: malloc()/free(), etc. ISO C does not allow
this due to undefined behavior inherent in some of the routines.
This looks like a mistake in ISO C.

3) The ISO C standard is complex enough that very smart people can argue
about basic points for weeks and not reach agreement. It's
hard to agree on what even is UB. The ISO C Standard is 683 pages
and costs $250USD. (Those "in the know" can get it for free).
But any C program which accidentally uses UB behavior (despite
-Wall, -Wextra, -fsanitize=undefined, etc. passing) is buggy and
written by someone incompetent. It should not be necessary to
be a C compiler writer to be able to write valid C code.

Kent

Re: Paper about ISO C

<x53cJ.2311$1n1.708@fx48.iad>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=21433&group=comp.arch#21433

  copy link   Newsgroups: comp.arch
Path: i2pn2.org!i2pn.org!paganini.bofh.team!news.dns-netz.com!news.freedyn.net!newsreader4.netcologne.de!news.netcologne.de!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx48.iad.POSTED!not-for-mail
Newsgroups: comp.arch
From: branimir...@icloud.com (Branimir Maksimovic)
Subject: Re: Paper about ISO C
References: <87fstdumxd.fsf@hotmail.com> <sjni60$97d$1@dont-email.me>
<afb9352d-8ba7-4521-b741-280e0206e255n@googlegroups.com>
<3a350cfe-971c-4042-9171-9ec2516cdf2bn@googlegroups.com>
<sk6s4a$9cm$1@dont-email.me>
<1ed391dc-0d1d-4069-96d8-e83acbe01ba5n@googlegroups.com>
<sk8jd2$v86$1@newsreader4.netcologne.de> <Q9U9J.190243$o45.179981@fx46.iad>
<sk9a04$emn$1@newsreader4.netcologne.de> <vBbaJ.185916$rl3.33700@fx45.iad>
<6c4ce168-1c5e-4192-8a3d-208604e88941n@googlegroups.com>
<OBMaJ.41682$oY4.892@fx20.iad>
<00095581-2750-4e20-be8e-a0ff7d8a8e28n@googlegroups.com>
User-Agent: slrn/1.0.3 (Darwin)
Lines: 33
Message-ID: <x53cJ.2311$1n1.708@fx48.iad>
X-Complaints-To: abuse@usenet-news.net
NNTP-Posting-Date: Thu, 21 Oct 2021 01:09:49 UTC
Organization: usenet-news.net
Date: Thu, 21 Oct 2021 01:09:49 GMT
X-Received-Bytes: 2460
 by: Branimir Maksimovic - Thu, 21 Oct 2021 01:09 UTC

On 2021-10-17, Michael S <already5chosen@yahoo.com> wrote:
> On Sunday, October 17, 2021 at 6:18:11 AM UTC+3, Branimir Maksimovic wrote:
>> On 2021-10-15, Michael S <already...@yahoo.com> wrote:
>> > On Friday, October 15, 2021 at 12:11:58 PM UTC+3, Branimir Maksimovic
>> > wrote:
>> >> On 2021-10-14, Thomas Koenig <tko...@netcologne.de> wrote:
>> >> > Branimir Maksimovic <branimir....@icloud.com> schrieb:
>> >> >
>> >> >> Fortran is pre structured era, spagetti code.
>> >> >
>> >> > Your knowledge seems to be stuck in the 1980s.
>> >> >
>> >> > To see what was available in Fortran 95, around 25 years ago, you could
>> >> > try reading https://en.wikipedia.org/wiki/Fortran_95_language_features
>> >> So what do you recommend? Fortran or ADA? --
>> >
>> > The name of the language is Ada. ADA is a misspelling preferred by Mitch
>> > Alsup. I don't know what are his reasons.
>> >
>> OK, Ada. What do you recommend?
>
>
> Me, personally? Neither. Others, I'd guess, would be able to answer only if
> you specify a sort of software that you are planning to develop.
>
For my purposes, Pike would be ideal, it's just you have to look into
source code to obtain documentation :P
Pike is secret weapon, I believe :P
--

7-77-777
Evil Sinner!
with software, you repeat same experiment, expecting different results...

Re: Hardware assisted error checking (was: Paper about ISO C)

<F83cJ.2312$1n1.1346@fx48.iad>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=21434&group=comp.arch#21434

  copy link   Newsgroups: comp.arch
Path: i2pn2.org!i2pn.org!paganini.bofh.team!news.dns-netz.com!news.freedyn.net!newsreader4.netcologne.de!news.netcologne.de!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx48.iad.POSTED!not-for-mail
Newsgroups: comp.arch
From: branimir...@icloud.com (Branimir Maksimovic)
Subject: Re: Hardware assisted error checking (was: Paper about ISO C)
References: <87fstdumxd.fsf@hotmail.com> <sk6s4a$9cm$1@dont-email.me>
<1ed391dc-0d1d-4069-96d8-e83acbe01ba5n@googlegroups.com>
<sk9ej9$fj9$1@dont-email.me>
<b230d3fe-324f-491e-9e70-5398f1b68b3cn@googlegroups.com>
<sk9n30$nm7$3@newsreader4.netcologne.de> <sk9tq8$ee$1@dont-email.me>
<skc5ni$72b$1@dont-email.me>
<f492f50e-9268-4bf4-a540-6abae1f693ddn@googlegroups.com>
<skcc23$v1v$2@dont-email.me>
<5bec3b9f-bdc8-4549-a9f6-b2d4000e9712n@googlegroups.com>
<skeani$q5n$1@newsreader4.netcologne.de>
<2021Oct16.180742@mips.complang.tuwien.ac.at> <skh9e8$3v1$1@dont-email.me>
User-Agent: slrn/1.0.3 (Darwin)
Lines: 46
Message-ID: <F83cJ.2312$1n1.1346@fx48.iad>
X-Complaints-To: abuse@usenet-news.net
NNTP-Posting-Date: Thu, 21 Oct 2021 01:13:09 UTC
Organization: usenet-news.net
Date: Thu, 21 Oct 2021 01:13:09 GMT
X-Received-Bytes: 2961
 by: Branimir Maksimovic - Thu, 21 Oct 2021 01:13 UTC

On 2021-10-17, David Brown <david.brown@hesbynett.no> wrote:
> On 16/10/2021 18:07, Anton Ertl wrote:
>> Thomas Koenig <tkoenig@netcologne.de> writes:
>
>>> Signed overruns - the very topic we are discussing here. Integer
>>> arithmetic could (optionally) trap on a 64-bit overflow, a 32-bit
>>> overflow, a 16-bit overflow and an 8-bit overflow.
>>
>> Consider:
>>
>> signed char a=127;
>> signed char b=127;
>> signed char c;
>> c=a+b;
>>
>> The addition is defined in C. Maybe the narrowing of the result in
>> the assignment is undefined, C standards lawyers will know.
>>
>
> Just for completeness, I can give you the answer here. If char is
> smaller than int, then the addition of two signed chars is always going
> to be fully defined. If char is the same size as int, then it could
> overflow (of course it could not overflow when adding 127 + 127, as int
> will always be big enough to hold 254).
>
> The conversion from int down to signed char is fully defined if the
> signed char can hold the value, otherwise it is "implementation-defined
> or an implementation-defined signal is raised". That means the
> implementation has to document a specific handling here - but it is
> allowed to have some kind of trap or error handling rather than a
> particular value.
>
> In practice, of course, virtually all compilers will do the conversion
> as modulo reduction (or two's complement wrapping, if you prefer).
> Maybe some will offer trapping as an alternative to aid in debugging.
>
> So - defined by the implementation, not undefined.
>
I wouldn't waste time with thinking if program would work or not.
For such things, non portable code is only choice...

--

7-77-777
Evil Sinner!
with software, you repeat same experiment, expecting different results...

Pages:123456789101112131415161718192021222324252627282930313233
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor