This site is a static rendering of the Trac instance that was used by R7RS-WG1 for its work on R7RS-small (PDF), which was ratified in 2013. For more information, see Home.
Source for ticket #290
cc
changetime
2012-10-05 06:58:47
component
WG1 - Numerics
description
Bradley Lucier writes (lightly edited):
A `square` primitive is useful in calculating with bignums because squaring a bignum is generally cheaper than multiplying two different bignums of the same size. For example, Gambit's runtime checks trivially whether the two arguments in `(* a b)` are `eq?` before calling the appropriate algorithm. Generally, it may be better to be able to express this primitive directly.
[He also points out that given `square` in the small language, we can have `flsquare` in the large language, though I don't think having the latter requires having the former.]
In addition, there are 20,340 Google hits for ["(define (square x)" ss|scm].
id
290
keywords
milestone
owner
cowan
priority
major
reporter
cowan
resolution
fixed
severity
status
closed
summary
Proposed square procedure
time
2011-09-25 06:22:49
type
defect
Changes
Change at time 2012-10-05 06:58:47
author
cowan
field
comment
newvalue
oldvalue
4
raw-time
1349395127546308
ticket
290
time
2012-10-05 06:58:47
Change at time 2012-10-05 06:58:47
author
cowan
field
resolution
newvalue
fixed
oldvalue
raw-time
1349395127546308
ticket
290
time
2012-10-05 06:58:47
Change at time 2012-10-05 06:58:47
author
cowan
field
status
newvalue
closed
oldvalue
writing
raw-time
1349395127546308
ticket
290
time
2012-10-05 06:58:47
Change at time 2012-04-08 15:24:44
author
cowan
field
comment
newvalue
oldvalue
3
raw-time
1333873484445867
ticket
290
time
2012-04-08 15:24:44
Change at time 2012-04-08 15:24:44
author
cowan
field
owner
newvalue
cowan
oldvalue
alexshinn
raw-time
1333873484445867
ticket
290
time
2012-04-08 15:24:44
Change at time 2012-04-08 15:24:44
author
cowan
field
status
newvalue
writing
oldvalue
decided
raw-time
1333873484445867
ticket
290
time
2012-04-08 15:24:44
Change at time 2012-04-05 09:14:19
author
cowan
field
comment
newvalue
The WG voted to adopt this proposal.
oldvalue
2
raw-time
1333592059042804
ticket
290
time
2012-04-05 09:14:19
Change at time 2012-04-05 09:14:19
author
cowan
field
status
newvalue
decided
oldvalue
new
raw-time
1333592059042804
ticket
290
time
2012-04-05 09:14:19
Change at time 2011-10-02 17:47:05
author
cowan
field
comment
newvalue
oldvalue
1
raw-time
1317552425000000
ticket
290
time
2011-10-02 17:47:05
Change at time 2011-10-02 17:47:05
author
cowan
field
description
newvalue
Bradley Lucier writes (lightly edited):
A `square` primitive is useful in calculating with bignums because squaring a bignum is generally cheaper than multiplying two different bignums of the same size. For example, Gambit's runtime checks trivially whether the two arguments in `(* a b)` are `eq?` before calling the appropriate algorithm. Generally, it may be better to be able to express this primitive directly.
[He also points out that given `square` in the small language, we can have `flsquare` in the large language, though I don't think having the latter requires having the former.]
In addition, there are 20,340 Google hits for ["(define (square x)" ss|scm].
oldvalue
Bradley Lucier writes (lightly edited):
A `square` primitive is useful in calculating with bignums because squaring a bignum is generally cheaper than multiplying two different bignums of the same size. For example, Gambit's runtime checks trivially whether the two arguments in `(* a b)` are `eq?` before calling the appropriate algorithm. Generally, it may be better to be able to express this primitive directly.
[He also points out that given `square` in the small language, we can have `flsquare` in the large language, though I don't think having the latter requires having the former.]
raw-time
1317552425000000
ticket
290
time
2011-10-02 17:47:05