[go-nuts] Re: Python ⇒ Go Cheatsheet

2017-11-26 Thread Miki Tebeka
Thanks! I do show sort.Strings there (first one). On Saturday, November 25, 2017 at 1:31:31 PM UTC+2, Stefan Nilsson wrote: > > Very nice! > > Just one comment: you may want to use sort.Strings instead in the sorting > example. > > On Saturday, November 25, 2017 at 9:39:56 AM UTC+1, Miki Tebeka w

[go-nuts] Re: profiling webserver with pprof and router middleware

2017-11-26 Thread Karan Chaudhary
>From the top of my head, shouldn't the benchmark be done when traffic is being sent to the server and not before it is sent? On Sunday, 26 November 2017 00:11:40 UTC+5:30, basti skalendudler wrote: > > Hey guiys, I posted a StackOF question two days ago, but so far nobody was > able to help me

Re: [go-nuts] Does uintptr count as a refence?

2017-11-26 Thread jake6502
Thanks. That is clear: *A uintptr is an integer, not a reference. Converting a Pointer to a uintptr creates an integer value with no pointer semantics. Even if a uintptr holds the address of some object, the garbage collector will not update that uintptr's value if the object moves, nor will t

Re: [go-nuts] Does uintptr count as a refence?

2017-11-26 Thread 'Axel Wagner' via golang-nuts
You can find the specific rules in the godoc of the unsafe package . On Sun, Nov 26, 2017 at 8:12 PM, Jan Mercl <0xj...@gmail.com> wrote: > On Sun, Nov 26, 2017 at 6:20 PM wrote: > > > The core question is does a uintptr derived from a pointer to an object > cou

Re: [go-nuts] Does uintptr count as a refence?

2017-11-26 Thread Jan Mercl
On Sun, Nov 26, 2017 at 6:20 PM wrote: > The core question is does a uintptr derived from a pointer to an object count as a reference as far as GC is concerned? Within a single expression yes, otherwise no. -- -j -- You received this message because you are subscribed to the Google Groups

[go-nuts] Does uintptr count as a refence?

2017-11-26 Thread jake6502
The core question is does a *uintptr *derived from a pointer to an object count as a reference as far as GC is concerned? For example (https://play.golang.org/p/tA6Fsl1cAI): package main import "unsafe" import "fmt" type LibArray uintptr func LibFunc(p LibArray) { fmt.Println(*(*uint16)(un

RE: [go-nuts] question about GO and realtime GC interest by the user community

2017-11-26 Thread John Souvestre
Hi David. https://en.wikipedia.org/wiki/Real-time_computing#Firm Unfortunately I haven't seen much interest either. John John Souvestre - New Orleans LA From: golang-nuts@googlegroups.com [mailto:golang-nuts@googlegroups.com] On Behalf Of David Beberman Sent: 2017 November 22,