[go-nuts] Looking to maximize performance when using ethereum-ethash

2022-09-23 Thread ramki...@hotmail.com
I tried using bench on AWS servers (the most expensive Compute and Memory Optimized ones) on https://github.com/hackmod/ethereum-ethash/blob/master/ethash_test.go#L88 but for each server (from 2 cores all the way to 64 cores) they all give similar numbers 9-12 seconds. cpu: Intel(R) Xeon(R) Pl

[go-nuts] Re: Go Get Issues

2022-09-23 Thread Rich
Sorry the last line was messed up. The error I get is: github.com/stretchr/testify/require: repository.web.mycompany.com/st_nsres@ v0.2.0: unrecognized import path "repository.web.mycompany.com/st_nsres": https fetch: Get "https://repository.web.mycompany.com/st_nsres?go-get=1":

Re: [go-nuts] Using golang variable in bash script Command

2022-09-23 Thread Rich
I do a lot of 'scripting' like things with Go - I found that using github.com/bitfield/script makes it a TON easier to run commands and you can pipe a command into another command, etc. Worth checking it out. On Tuesday, September 20, 2022 at 9:13:03 AM UTC-4 drro...@gmail.com wrote: > I've do

[go-nuts] Go Get Issues

2022-09-23 Thread Rich
I have been having a really hard time with Go Get It just isn't working. We have a private Repositiory, that repository requires us to use SSH. There is no option for using https. So, I've configured my git config "~/.gitconfig' ``` [url "ssh://g...@internal.repository.web.mycompany.com:7999/"

[go-nuts] how to organise code with channels and error handling?

2022-09-23 Thread Jochen Voss
Dear all, I am writing a program which processes data in stages. To structure the code cleanly, I would like implement each stage as an individual function and use channels to pass data between stages. My questions: - How to structure the code? Is my approach described below reasonable? - How

Re: [go-nuts] understanding interface conversions

2022-09-23 Thread Rory Campbell-Lange
On 23/09/22, Ian Davis (m...@iandavis.com) wrote: > On Thu, 22 Sep 2022, at 11:27 PM, Rory Campbell-Lange wrote: > > I just wanted to respond to this part: > > > I suppose my question is (and forgive me if this is a terrifically naive), > > how can one negotiate the go landscape of commonly used

Re: [go-nuts] understanding interface conversions

2022-09-23 Thread Rory Campbell-Lange
On 22/09/22, burak serdar (bser...@computer.org) wrote: > On Thu, Sep 22, 2022 at 4:27 PM Rory Campbell-Lange > wrote: > > > ...I'm interested to learn how people negotiate interface > > interchangeability in their programmes as my query above showed a basic > > misunderstanding of how that opera

Re: [go-nuts] Re: private go documentation server similar to https://pkg.go.dev

2022-09-23 Thread 'Sebastien Binet' via golang-nuts
On Fri Sep 23, 2022 at 07:32 CET, brainman wrote: > Thank you Sebastian, > > That might actually work for me. I will play with it to see if it suits > us. > I still wish I can just use https://pkg.go.dev , but we cannot have > everything. > > I also want to thank you for writing http://github.com/g

Re: [go-nuts] Very curious, why is "3:04 PM" named Kitchen in the time package?

2022-09-23 Thread 'Axel Wagner' via golang-nuts
It's not the time, it's the time format. Formatting in the time package happens according to how the reference time is displayed: Layout = "01/02 03:04:05PM '06 -0700" // The reference time, in numerical order. 1234567. With PM chosen to distinguish between a 3 (meaning 12h clock hour) and 15 (me

Re: [go-nuts] Very curious, why is "3:04 PM" named Kitchen in the time package?

2022-09-23 Thread Tobias Klausmann
Hi! On Fri, 23 Sep 2022, fliter wrote: > Is it because it is time to go to the kitchen to cook? It seems that 3:04 > PM is too early My best guess: it's the most common way kitchen timers that also are clocks display the time. It's not the specific time that is "kitchen"-likem, but rather the f

[go-nuts] Very curious, why is "3:04 PM" named Kitchen in the time package?

2022-09-23 Thread fliter
Is it because it is time to go to the kitchen to cook? It seems that 3:04 PM is too early -- 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...

[go-nuts] Re: Question on 'src/internal/singleflight': The return result of the ForgetUnshared method seems to be inaccurate

2022-09-23 Thread Brian Candler
On Friday, 23 September 2022 at 03:23:29 UTC+1 atomic wrote: > Thank you so much, so happy, you are amazing. > You answered a question that has been bothering me for days Thank you for providing a carefully isolated and reproducible problem. It was a fun challenge! And thanks to Cuong for cre