[go-nuts] Re: decode unknown CBOR type with set of known types

2020-07-10 Thread David Stainton
Hi, I've been informed of how exactly to use the CBOR tag solution by the author of one of the cbor.io recommended CBOR libraries: https://github.com/fxamacker/cbor/issues/241#issuecomment-656881180 This solution is clearly a bit nicer than the wrapping struct solution but it's specific to th

Re: [go-nuts] building go 1.14.4 on CentOS 7 multiple test failures

2020-07-10 Thread Ian Lance Taylor
On Fri, Jul 10, 2020 at 1:19 PM Alastair Neil wrote: > > I'm not sure how I would check do you have suggestions? Also, is there a way > to just run the failing test rather than redoing the whole build? > Documentation on the build process seems sparse. To run the time package tests as the buil

Re: [go-nuts] building go 1.14.4 on CentOS 7 multiple test failures

2020-07-10 Thread Alastair Neil
I'm not sure how I would check do you have suggestions? Also, is there a way to just run the failing test rather than redoing the whole build? Documentation on the build process seems sparse. On Friday, 10 July 2020 15:54:02 UTC-4, David Riley wrote: > > On Jul 10, 2020, at 3:02 PM, Alastair N

Re: [go-nuts] building go 1.14.4 on CentOS 7 multiple test failures

2020-07-10 Thread David Riley
On Jul 10, 2020, at 3:02 PM, Alastair Neil wrote: > > > It's an old but not an especially slow machine: dual 8 core E5-2670 Xeon > with 64 GB Ram. > I wil try > GO_TEST_TIMEOUT_SCALE=4 I've successfully built on an older and slower (pre-Nehalem) 8-core Xeon with a similar RAM load just last

Re: [go-nuts] building go 1.14.4 on CentOS 7 multiple test failures

2020-07-10 Thread Alastair Neil
It's an old but not an especially slow machine: dual 8 core E5-2670 Xeon with 64 GB Ram. I wil try GO_TEST_TIMEOUT_SCALE=4 On Friday, 10 July 2020 14:24:54 UTC-4, Ian Lance Taylor wrote: > > On Fri, Jul 10, 2020 at 11:17 AM > wrote: > > > > I am attempting to build go v 1.14.4 from the git re

Re: [go-nuts] building go 1.14.4 on CentOS 7 multiple test failures

2020-07-10 Thread Alastair Neil
On Friday, 10 July 2020 14:24:54 UTC-4, Ian Lance Taylor wrote: > > On Fri, Jul 10, 2020 at 11:17 AM > wrote: > > > > I am attempting to build go v 1.14.4 from the git repo. I first built > version 1.4 without issue and the build itself seems fine however many of > the tests fail, see the at

Re: [go-nuts] building go 1.14.4 on CentOS 7 multiple test failures

2020-07-10 Thread Ian Lance Taylor
On Fri, Jul 10, 2020 at 11:17 AM wrote: > > I am attempting to build go v 1.14.4 from the git repo. I first built > version 1.4 without issue and the build itself seems fine however many of the > tests fail, see the attached log. > > The OS is latest CentOS 7, and go-1.4 was built using gcc 8.3

Re: [go-nuts] [generics] Data structures and the garbage collector

2020-07-10 Thread Markus Heukelom
> Many data structures are implemented using pointers. How does this perform >> wrt garbage collecting? For example take any data structure that uses some >> tree of nodes, or even simpler just a singly linked list: there is one >> pointer from the left node to the next. Wouldn't this incur hu

Re: [go-nuts] [generics] Data structures and the garbage collector

2020-07-10 Thread Jesper Louis Andersen
On Thu, Jul 9, 2020 at 6:40 PM Markus Heukelom wrote: > Many data structures are implemented using pointers. How does this perform > wrt garbage collecting? For example take any data structure that uses some > tree of nodes, or even simpler just a singly linked list: there is one > pointer from t

[go-nuts] Re: casting arbitrary int to unsafe.Pointer: go test -race (checkptr) complains

2020-07-10 Thread 'Hraban Luyat' via golang-nuts
This is a great idea for a work-around. Fixed, thanks! On Friday, 10 July 2020 at 00:34:58 UTC+1 keith@gmail.com wrote: > Just write a wrapper on the C side (in the import "C" code) that takes a > uintptr and casts it to void*. > > func wrapper(a uintptr, b, c, d, e ...) { > op_open_callbac