[go-nuts] Go 1.14.4 and Go 1.13.12 are released

2020-06-01 Thread Dmitri Shuralyov
Hello gophers,

We have just released Go versions 1.14.4 and 1.13.12, minor point releases.

These releases include fixes to the go doc command, the runtime, and
the encoding/json, go/types, math/big, and os packages.

View the release notes for more information:
https://golang.org/doc/devel/release.html#go1.14.minor

You can download binary and source distributions from the Go web site:
https://golang.org/dl/

To compile from source using a Git clone, update to the release with
"git checkout go1.14.4" and build as usual.

Thanks to everyone who contributed to the release.

Cheers,
Dmitri and Andy for the Go team

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CA%2BON-PG7Mp3oSXFPc_Bigf%3DD3JcF0jmJ_EqRkcGFR%2BSzpnUYWw%40mail.gmail.com.


Re: [go-nuts] Re: Incorrect arithmetic answers

2020-06-01 Thread Michael Jones
fixed, in light of the prior crucial comment...
https://play.golang.org/p/d-AwGEwj_YB

On Mon, Jun 1, 2020 at 12:20 PM  wrote:

> Floating point calculations are imprecise.
>
> https://0.30004.com/
>
> https://www.phys.uconn.edu/~rozman/Courses/P2200_15F/downloads/floating-point-guide-2015-10-15.pdf
>
> s
>
> On Monday, June 1, 2020 at 11:56:55 AM UTC-7, Saksham Saxena wrote:
>>
>> Hello,
>>
>> I was trying to implement Substring Search using a rolling hash function
>> (fairly simple implementation): https://play.golang.org/p/_fjgxPC06So
>>
>> This works correctly and as expected. However, if you change the const
>> `baseNumber` to 128, the program is unable to do the intermediate
>> arithmetic incorrectly (see the difference after running it).
>>
>> How could this be ? I've stared at it long enough and it doesn't seem
>> like it's overflowing (or is it really ? I thought float64 had great range
>> ?)
>>
>> Any ideas/comments are appreciated.
>>
>> Thanks!
>> Saksham
>>
> --
> You received this message because you are subscribed to the Google Groups
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to golang-nuts+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/golang-nuts/d071b2be-9fc1-45e4-9da8-baecb9968ea7%40googlegroups.com
> 
> .
>


-- 

*Michael T. jonesmichael.jo...@gmail.com *

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CALoEmQxs8vmTE89qb-pHGgO9w3kVxPB3qOQdcYRstDB0Tdw%3DNw%40mail.gmail.com.


[go-nuts] Re: Incorrect arithmetic answers

2020-06-01 Thread cratermoon
Floating point calculations are imprecise.

https://0.30004.com/
https://www.phys.uconn.edu/~rozman/Courses/P2200_15F/downloads/floating-point-guide-2015-10-15.pdf

s

On Monday, June 1, 2020 at 11:56:55 AM UTC-7, Saksham Saxena wrote:
>
> Hello,
>
> I was trying to implement Substring Search using a rolling hash function 
> (fairly simple implementation): https://play.golang.org/p/_fjgxPC06So
>
> This works correctly and as expected. However, if you change the const 
> `baseNumber` to 128, the program is unable to do the intermediate 
> arithmetic incorrectly (see the difference after running it). 
>
> How could this be ? I've stared at it long enough and it doesn't seem like 
> it's overflowing (or is it really ? I thought float64 had great range ?)
>
> Any ideas/comments are appreciated. 
>
> Thanks!
> Saksham
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/d071b2be-9fc1-45e4-9da8-baecb9968ea7%40googlegroups.com.


[go-nuts] Incorrect arithmetic answers

2020-06-01 Thread Saksham Saxena
Hello,

I was trying to implement Substring Search using a rolling hash function 
(fairly simple implementation): https://play.golang.org/p/_fjgxPC06So

This works correctly and as expected. However, if you change the const 
`baseNumber` to 128, the program is unable to do the intermediate 
arithmetic incorrectly (see the difference after running it). 

How could this be ? I've stared at it long enough and it doesn't seem like 
it's overflowing (or is it really ? I thought float64 had great range ?)

Any ideas/comments are appreciated. 

Thanks!
Saksham

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/9945c8d5-acb8-42f5-8d10-43ffecf1644d%40googlegroups.com.