Re: [go-nuts] Generic arguments in recursive functions

2022-04-10 Thread Aidan Hahn
us. Ignoring the weird corner case, I am just wondering why f, unchanged, cannot be passed into a recursion of the function that it is an argument to. Thanks, Ava On Saturday, April 9, 2022 at 9:13:31 PM UTC-7 Ian Lance Taylor wrote: > On Sat, Apr 9, 2022 at 8:28 PM Aidan Hahn wrote: > >

[go-nuts] Generic arguments in recursive functions

2022-04-09 Thread Aidan Hahn
Hello Go users! I am playing with the generics that were added in go 1.18 and noticed an odd discrepancy that I have not been able to find an authoritative answer to. Consider the following data type, as well as the function defined for it: type Node[T any] struct { Inner T Next *Node

[go-nuts] Re: How to Optimize A Golang Application Which Has More Than 100 Million Objects at Peak?

2021-07-17 Thread R. Aidan Campbell
First time posting on this list, but I've gone through a very similar exercise the last few months and might have some good insight for you. Learning how to interpret profiles is extremely useful here. For example, capturing a cpu profile, heap profile, and trace will all provide different fac

Re: [go-nuts] Import a submodule from its parent package?

2020-12-28 Thread Aidan
e the help you have given me. It's been a learning experience tackling this issue. Thanks, Aidan On Monday, December 28, 2020 9:37:35 AM PST you wrote: > On Mon, Dec 28, 2020 at 12:15 AM Aidan Hahn wrote: > > What I am trying to do is use signal.Notify to intercept SIGTTOU while >

[go-nuts] Import a submodule from its parent package?

2020-12-27 Thread Aidan Hahn
overlooked something obvious here, but I do not see a solution to importing code from a subpackage into the parent package. Thanks, Aidan -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving

[go-nuts] Making syscalls in the syscall package

2020-11-17 Thread Aidan Hahn
to a call to signal(signum, handler)? Do I add the usual arguments to signal to RawSyscall and then ignore the rest? Thanks, Aidan -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emai