[go-nuts] [ANN] Olric v0.3.0 is out. Distributed cache and in-memory key/value data store. It can be used both as an embedded Go library and as a language-independent service.

2020-11-26 Thread Burak Sezer
*What is Olric?* Distributed cache and in-memory key/value data store. It can be used both as an embedded Go library and as a language-independent service. With Olric, you can instantly create a fast, scalable, shared pool of RAM across a cluster of computers. *Features:* - Designed to sha

Re: [go-nuts] How to detect HTTP client stop polling at the server side

2020-11-26 Thread Afriyie Abraham Kwabena
Hi, I just produce the warning for clarity. sorry for the huge message == WARNING: DATA RACE Write at 0x00c0002d6480 by goroutine 48: runtime.mapdelete_faststr() /usr/local/go/src/runtime/map_faststr.go:297 +0x0 nfnrfapi/services/manag.UpdateNFInstance() /home/x

Re: [go-nuts] How to detect HTTP client stop polling at the server side

2020-11-26 Thread Afriyie Abraham Kwabena
Hi, Yes from the warning it prints the handler function below and after google searching what i did was to mutex.Lock and Unlock the handler function and no warning again. However, my google search people mention of using channels instead of mutex. What I would like to ask is, using mutex OK an

Re: [go-nuts] How to detect HTTP client stop polling at the server side

2020-11-26 Thread Shulhan
> On 27 Nov 2020, at 07.06, Afriyie Abraham Kwabena > wrote: > > Hi, > > Am experiencing data race warning with my pollingworker function below even > though when i build with the -race flag i do not get any error. Any help? > Usually when you got data race warning it will print the line

Re: [go-nuts] How to detect HTTP client stop polling at the server side

2020-11-26 Thread Afriyie Abraham Kwabena
Hi, Am experiancing data race warning with my pollingworker function below even though when i build with the -race flag i do not get any error. Any help? func PollingWorker() { tiker := time.NewTicker(60 * time.Second) for _ = range tiker.C { mu.Lock() for keyid := range

Re: [go-nuts] Do we document the history of .gosymtab and .gopclntab, and the differences with .symtab and .debug_line, .debug_frame?

2020-11-26 Thread Kn
Ian, I understand now. Thanks you! :) On Friday, November 27, 2020 at 5:10:18 AM UTC+8 Ian Lance Taylor wrote: > On Thu, Nov 26, 2020 at 11:50 AM Kn wrote: > > > > Hi, I am writing a golang debugger and some documents to show others the > knowledge about how to develop a golang debugger. > > >

[go-nuts] [ANN] A Go Conference for Systems Programming.

2020-11-26 Thread Xuanyi Chew
Hey all Just wanted to share that Dgraph is running the Go Systems Conference on December 3rd 9am PST. This conference is specifically themed at systems programming. The conference will have war stories and experiences covering everything from local systems programming (think memory managem

Re: [go-nuts] Do we document the history of .gosymtab and .gopclntab, and the differences with .symtab and .debug_line, .debug_frame?

2020-11-26 Thread Ian Lance Taylor
On Thu, Nov 26, 2020 at 11:50 AM Kn wrote: > > Hi, I am writing a golang debugger and some documents to show others the > knowledge about how to develop a golang debugger. > > I notice go debug/elf, debug/gosym is enough for the occasions like lookup > symbol, pcToLn, lnToPC, maybe even for back

[go-nuts] Do we document the history of .gosymtab and .gopclntab, and the differences with .symtab and .debug_line, .debug_frame?

2020-11-26 Thread Kn
Hi, I am writing a golang debugger and some documents to show others the knowledge about how to develop a golang debugger. I notice go debug/elf, debug/gosym is enough for the occasions like lookup symbol, pcToLn, lnToPC, maybe even for backtrace? I want to know why go generate .gosymtab (now i

[go-nuts] Using analysistest "want" with other comments

2020-11-26 Thread Miki Tebeka
Hi, I wrote a tool for validating regular expressions using golang.org/x/tools/go/analysis and want to test it using golang.org/x/tools/go/analysis/analysistest. The problem is that the tool is using comments to indicates line to check, which doesn't work well with the "// want" comments used

Re: [go-nuts] mount remote storage without FUSE

2020-11-26 Thread Chris Lu
This Rust fuse-rs project is equivalent to the Go basizl/fuse project that I am using. Chris On Thu, Nov 26, 2020 at 9:05 AM Bakul Shah wrote: > This may help: https://github.com/zargony/fuse-rs > > The kernel driver is provided by the FUSE project, the userspace > implementation needs to be pr

Re: [go-nuts] mount remote storage without FUSE

2020-11-26 Thread Bakul Shah
This may help: https://github.com/zargony/fuse-rs The kernel driver is provided by the FUSE project, the userspace implementation needs to be provided by the developer. fuse-rs provides a replacement for the libfuse userspace library between these two. This way, a developer can fully take advan