[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: math expressions (was: Re: Tail call elimination)
From: |
Pete Dietl |
Subject: |
Re: math expressions (was: Re: Tail call elimination) |
Date: |
Thu, 28 May 2020 14:50:16 -0500 |
Any suggestions or comments?
On Wed, May 27, 2020 at 1:47 PM Pete Dietl <petedietl@gmail.com> wrote:
>
> A few questions.
>
> Technically, the C standard allows for machines which don't use 2's
> complement.
> So should we consider our LONG_MIN to be -2^63 + 1?
>
> Also, signed arithmetic overflow is undefined behavior, so should we also
> indicate that we have undefined behavior or should we use some
> function that reliably detects and
> wraps signed arithmetic?
>
> Bit shifting to the right with signed integers is undefined behavior
> too. Usually this is an arithmetic shift,
> but it's not guaranteed. Should we try to guarantee this with some
> function or should we leave this as undefined behavior?
>
> Before I make my proposal, what do you think of supporting the
> following operators:
> +, -, /, *, not, and, or, comp, <<, >>
>
> Should the logical operators have english names or should they be C
> symbols like !, &, |, ~ ?
- Re: math expressions (was: Re: Tail call elimination), (continued)
- Re: math expressions (was: Re: Tail call elimination), Tim Murphy, 2020/05/25
- Re: math expressions (was: Re: Tail call elimination), Paul Smith, 2020/05/25
- Re: math expressions (was: Re: Tail call elimination), Pete Dietl, 2020/05/25
- Re: math expressions (was: Re: Tail call elimination), Paul Smith, 2020/05/25
- Re: math expressions (was: Re: Tail call elimination), Pete Dietl, 2020/05/25
- Re: math expressions (was: Re: Tail call elimination), Paul Smith, 2020/05/25
- Re: math expressions (was: Re: Tail call elimination), Pete Dietl, 2020/05/25
- Re: math expressions (was: Re: Tail call elimination), Pete Dietl, 2020/05/25
- Re: math expressions (was: Re: Tail call elimination), Paul Smith, 2020/05/26
- Re: math expressions (was: Re: Tail call elimination), Pete Dietl, 2020/05/27
- Re: math expressions (was: Re: Tail call elimination),
Pete Dietl <=
- Re: math expressions (was: Re: Tail call elimination), Jouke Witteveen, 2020/05/28
- Re: math expressions (was: Re: Tail call elimination), Paul Smith, 2020/05/28
- Re: math expressions (was: Re: Tail call elimination), Pete Dietl, 2020/05/28
- Re: math expressions (was: Re: Tail call elimination), Tim Murphy, 2020/05/28
- Re: math expressions (was: Re: Tail call elimination), Edward Welbourne, 2020/05/29
- Re: math expressions (was: Re: Tail call elimination), Paul Smith, 2020/05/28
- Re: math expressions (was: Re: Tail call elimination), Paul Smith, 2020/05/28
- Re: Tail call elimination, Paul Smith, 2020/05/18