Re: [go-nuts] Persistent memory support for Go

2019-04-03 Thread Robert Engels
And no need to be sorry. You didn’t do anything wrong at all. > On Apr 3, 2019, at 6:32 PM, 'Mohit Verma' via golang-nuts > wrote: > > Hi Robert, > > Sorry for the confusion. Our changes are to make byte-addressable persistent > memory support available to Go community. You can find more

Re: [go-nuts] Persistent memory support for Go

2019-04-03 Thread 'Mohit Verma' via golang-nuts
Hi Robert, Sorry for the confusion. Our changes are to make byte-addressable persistent memory support available to Go community. You can find more information about this technology here: 1. http://pmem.io/ 2.

Re: [go-nuts] Persistent memory support for Go

2019-04-03 Thread Robert Engels
Thanks for the info! > On Apr 3, 2019, at 6:32 PM, Mohit Verma wrote: > > Hi Robert, > > Sorry for the confusion. Our changes are to make byte-addressable persistent > memory support available to Go community. You can find more information about > this technology here: > 1. http://pmem.io/

Re: [go-nuts] go in cloud server

2019-04-03 Thread David Riley
On Apr 3, 2019, at 11:34 AM, Shyaka Rene wrote: > > > Hello. > I'm new to go, i'm looking for a programming language to replace java. I have > simple questions > • is it a good idea to deploy go in cloud server if go is compiled to > machine binaries, what can happen if the cloud

Re: [go-nuts] Persistent memory support for Go

2019-04-03 Thread Robert Engels
Also, I’ve used pmem for a very long time (I have a bg in retail point of sale systems where it is very common) and we always had a driver/library on top of the physical device to multiplex across consumers, and we used it from Java, and never needed specialized JVM to use it efficiently.

Re: [go-nuts] Persistent memory support for Go

2019-04-03 Thread Robert Engels
Never mind on the “what is pmem” as I found the VMware docs. I am curious though why you need specialized runtime support rather than mmap on a block device? I am assuming that the api is slightly easier to use from a standard Go perspective but given the variable performance characteristics

Re: [go-nuts] Persistent memory support for Go

2019-04-03 Thread Robert Engels
I think the project needs to be distributed as a patch to the Go codebase - too much to review/maintain for security controls. Also, I’m curious about the Api. In reviewing the example, it looks no different than any ORM - just flatter -and these don’t need a customized runtime. What would

Re: [go-nuts] how golang creates binary

2019-04-03 Thread Ian Lance Taylor
On Wed, Apr 3, 2019 at 12:27 PM wrote: > > Hi, > Any one explain the background process of go build or how go build creates > shared objects and include into go binary. > Here sharing my experience with c shared files. > Earlier I worked with there we creating some shared objects of my projects

[go-nuts] Persistent memory support for Go

2019-04-03 Thread 'Jerrin Shaji George' via golang-nuts
Hi, I am part of a small team at VMware working on projects related to persistent memory (others in CC). We have recently been working on adding persistent memory support to the Go programming language, and I wanted to spread the word about couple of these projects. 1) Go-pmem-transaction The

[go-nuts] Using Closures to Generate Code On the Fly

2019-04-03 Thread Louki Sumirniy
I have been doing a lot of work involving essentially declarative (nominally) complex data types involving several layers of encapsulation. I had seen here and there examples of this 'Fluent' method-based pipeline chaining, with methods passing through receivers to invoke multiple distinct

Re: [go-nuts] Why does "go mod" ignore tags in this case?

2019-04-03 Thread Tom Payne
Thanks Roger. To close this topic, you were right: I'd missed that there is a special release process for v2 of a module and above, and also go's mod cache was out-of-sync as I'd been moving tags around. "go mod verify" is your friend. On Thu, 21 Feb 2019 at 09:05, roger peppe wrote: > I

[go-nuts] how golang creates binary

2019-04-03 Thread durgasomeswararao532
Hi, Any one explain the background process of go build or how go build creates shared objects and include into go binary. Here sharing my experience with c shared files. Earlier I worked with there we creating some shared objects of my projects and collected manually and using. Here is the

Re: [go-nuts] source for scheduler and gc?

2019-04-03 Thread Robert Engels
Sorry, that made no sense, since the original message was not sent to the group. Here is the link:see https://github.com/golang/go/issues/11100-Original Message- From: Robert Engels Sent: Apr 3, 2019 12:36 PM To: "Jason E. Aten" Cc: golang-nuts Subject: Re: [go-nuts] source for

Re: [go-nuts] How to link different static libararies on different platforms?

2019-04-03 Thread T L
On Wednesday, April 3, 2019 at 1:00:24 PM UTC-4, Ian Lance Taylor wrote: > > On Wed, Apr 3, 2019 at 8:30 AM T L > > wrote: > > > > Assume I have a .go soruce file like: > > > > /* > > #cgo LDFLAGS: -L${SRCDIR}/lib/static/linux/amd64 -lmylib > > ... // more flags > > */ > > import "C" >

Re: [go-nuts] source for scheduler and gc?

2019-04-03 Thread Robert Engels
The issue I linked to goes pretty in-depth on the reasons. > On Apr 3, 2019, at 12:30 PM, Jason E. Aten wrote: > > Thanks Ian. > >> On Wednesday, April 3, 2019 at 6:57:32 PM UTC+2, Ian Lance Taylor wrote: >> On Wed, Apr 3, 2019 at 8:34 AM Jason E. Aten wrote: >> > >> > Where does the

Re: [go-nuts] source for scheduler and gc?

2019-04-03 Thread Jason E. Aten
Thanks Ian. On Wednesday, April 3, 2019 at 6:57:32 PM UTC+2, Ian Lance Taylor wrote: > > On Wed, Apr 3, 2019 at 8:34 AM Jason E. Aten > wrote: > > > > Where does the source for the runtime scheduler and garbage collector > live these days? > > The central locations are runtime/proc.go and

[go-nuts] go in cloud server

2019-04-03 Thread Tamás Gulácsi
Beside sqlite3, https://godoc.org/modernc.org/ql is a pure go embedded rdbms. Tere are several key-value stores though: syndtr/go-leveldb, coreos/bbolt. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop

[go-nuts] Re: go in cloud server

2019-04-03 Thread Manlio Perillo
On Wednesday, April 3, 2019 at 6:44:36 PM UTC+2, Shyaka Rene wrote: > > > Hello. > I'm new to go, i'm looking for a programming language to replace java. I > have simple questions > >1. is it a good idea to deploy go in cloud server if go is compiled to >machine binaries, what can happen

Re: [go-nuts] go in cloud server

2019-04-03 Thread Marko Ristin-Kaufmann
Hi Shyaka, > >1. is it a good idea to deploy go in cloud server if go is compiled to >machine binaries, what can happen if the cloud provider changes the >physical server to different processor architecture. > > I don't think this could ever be a problem. You normally choose the

Re: [go-nuts] How to link different static libararies on different platforms?

2019-04-03 Thread Ian Lance Taylor
On Wed, Apr 3, 2019 at 8:30 AM T L wrote: > > Assume I have a .go soruce file like: > > /* > #cgo LDFLAGS: -L${SRCDIR}/lib/static/linux/amd64 -lmylib > ... // more flags > */ > import "C" > > ... // many cross-platform Go code lines > > > Now, It compiles ok on Linux AMD64 platform. > > There are

Re: [go-nuts] source for scheduler and gc?

2019-04-03 Thread Ian Lance Taylor
On Wed, Apr 3, 2019 at 8:34 AM Jason E. Aten wrote: > > Where does the source for the runtime scheduler and garbage collector live > these days? The central locations are runtime/proc.go and runtime/mgc.go. > Wherefore, I need to locate all runtime background threads and add in a means > to

[go-nuts] go in cloud server

2019-04-03 Thread Shyaka Rene
Hello. I'm new to go, i'm looking for a programming language to replace java. I have simple questions 1. is it a good idea to deploy go in cloud server if go is compiled to machine binaries, what can happen if the cloud provider changes the physical server to different processor

[go-nuts] Re: [ANN] Gio: portable immediate mode GUI programs in Go for iOS/tvOS, Android, macOS, Linux, Windows

2019-04-03 Thread Daniel Theophanes
I'm running Deepin, debian based. Looking into the forums, the devs aren't interested in Wayland at the moment. [1] Though they are switching over the WM over to QT and kwin, so maybe in the future that will be an option. I was only trying to run weston to try out gio. Thanks for the feedback,

Re: [go-nuts] source for scheduler and gc?

2019-04-03 Thread Michel Levieux
I don't know what you're trying to achieve but I think: a. that it's not possible to have a program keep a consistent state while enabling such behaviour b. that there's a better way to do what you want to do Maybe explaining (even vaguely) what your purpose is could help? Le mer. 3 avr. 2019 à

Re: [go-nuts] How to apply middleware

2019-04-03 Thread Burak Serdar
On Wed, Apr 3, 2019 at 8:35 AM wrote: > type Route struct { > Namestring > Method string > Pattern string > HandlerFunc http.HandlerFunc > } > > type Routes []Route > > func NewRouter() *mux.Router { > router := mux.NewRouter().StrictSlash(true) > for _,

[go-nuts] source for scheduler and gc?

2019-04-03 Thread Jason E. Aten
Where does the source for the runtime scheduler and garbage collector live these days? Wherefore, I need to locate all runtime background threads and add in a means to shut them down upon request. -- You received this message because you are subscribed to the Google Groups "golang-nuts"

[go-nuts] How to link different static libararies on different platforms?

2019-04-03 Thread T L
Assume I have a .go soruce file like: /* #cgo LDFLAGS: -L${SRCDIR}/lib/static/linux/amd64 -lmylib ... // more flags */ import "C" ... // many cross-platform Go code lines Now, It compiles ok on Linux AMD64 platform. There are several library files under different subfolders of

[go-nuts] Re: [ANN] Gio: portable immediate mode GUI programs in Go for iOS/tvOS, Android, macOS, Linux, Windows

2019-04-03 Thread mail
On Monday, April 1, 2019 at 7:18:49 AM UTC+2, Daniel Theophanes wrote: > > I don't typically run wayland anywhere, but I was interested in this > project and installed wayland and weston from my package manager. However, > it seems my package manager's version of weston (v4.0.0) is too old(?)

[go-nuts] How to apply middleware

2019-04-03 Thread afriyie . abraham
Hi, I have this main function in a main.go file inside the main directory func main() { log.Printf("Server started") router := sw.NewRouter() manager := manage.NewDefaultManager() manager.SetAuthorizeCodeTokenCfg(manage.DefaultAuthorizeCodeTokenCfg)

Re: [go-nuts] A value copy will occur when executing for range xxx?

2019-04-03 Thread Ian Lance Taylor
On Wed, Apr 3, 2019 at 6:32 AM wrote: > > thanks! v must be a value copy,Is this determined by the compiler? It's determined by the language definition. Ian > 在 2019年4月3日星期三 UTC+8下午7:57:26,Marvin Renich写道: >> >> * mount...@gmail.com [190403 05:10]: >> > package main >> > >> > func main() {

Re: [go-nuts] Build problems with modules in Docker

2019-04-03 Thread David Riley
A few things. Responses inline. > On Apr 3, 2019, at 7:05 AM, Marcus Franke wrote: > > Hello, > > I have a small project here at work, that does not compile using modules > inside the golang docker image. > > The software resides inside a rather monorepo like repository inside the >

Re: [go-nuts] A value copy will occur when executing for range xxx?

2019-04-03 Thread mountainfpf
thanks! v must be a value copy,Is this determined by the compiler? 在 2019年4月3日星期三 UTC+8下午7:57:26,Marvin Renich写道: > > * mount...@gmail.com > > [190403 05:10]: > > package main > > > > func main() { > > b := []int{1} > > > > bb := make([]*int, 0, 1) > > for k, v := range b { > > The

Re: [go-nuts] Re: SPIFFE certificate verification (SVID) failure

2019-04-03 Thread Dheeraj Gedam
Hi Bradley, Thanks for the response. I could get things going with go-spiffe library [ https://github.com/spiffe/go-spiffe]. This library is essentially providing a custom verification method (tls.Config.VerifyPeerCertificate) which takes care of matching SVID. This one suited my need. Regards,

[go-nuts] Re: Build problems with modules in Docker

2019-04-03 Thread Tamás Gulácsi
RUN cd cmd/asm RUN go build -o asm Is not what you wanted. Try RUN cd cmd/asm && go build -o asm (or "RUN go build -o cmd/asm/asm ./cmd/asm") 2019. április 3., szerda 13:05:44 UTC+2 időpontban Marcus Franke a következőt írta: > > Hello, > > I have a small project here at

Re: [go-nuts] modules usage help

2019-04-03 Thread T L
On Tuesday, April 2, 2019 at 5:31:51 AM UTC-4, T L wrote: > > This is glide.lock file at > github.com/projectcalico/libcalico...@v3.7.0-0.dev+incompatible > > , > > > and this is the go.mod file after running go

Re: [go-nuts] A value copy will occur when executing for range xxx?

2019-04-03 Thread Marvin Renich
* mountain...@gmail.com [190403 05:10]: > package main > > func main() { > b := []int{1} > > bb := make([]*int, 0, 1) > for k, v := range b { The above range clause will assign to k the index of the current element, and it will assign to v a copy (as if v = b[k]) of the element at that index.

[go-nuts] Build problems with modules in Docker

2019-04-03 Thread Marcus Franke
Hello, I have a small project here at work, that does not compile using modules inside the golang docker image. The software resides inside a rather monorepo like repository inside the organizations private repository at github. So far, a great place for the modules, as I can develop the

[go-nuts] Re: How to rewrite code and apply middleware gorilla mux routes

2019-04-03 Thread afriyie . abraham
On Wednesday, April 3, 2019 at 11:28:55 AM UTC+3, afriyie...@gmail.com wrote: > > Hi > > I have this working main function code and would like to rewrite it such > that the middleware "validateToken" would be applied > to all my gorilla mux routes. > Please attached is the file containg the

[go-nuts] Re: How to rewrite code and apply middleware gorilla mux routes

2019-04-03 Thread afriyie . abraham
On Wednesday, April 3, 2019 at 11:28:55 AM UTC+3, afriyie...@gmail.com wrote: > > Hi > > I have this working main function code and would like to rewrite it such > that the middleware "validateToken" would be applied > to all my gorilla mux routes. > Please attached is the file containg the

[go-nuts] A value copy will occur when executing for range xxx?

2019-04-03 Thread mountainfpf
package main func main() { b := []int{1} bb := make([]*int, 0, 1) for k, v := range b { _ = //8 line _ = [k] //9 line // bb = append(bb, ) bb = append(bb, [k]) } // for _, v := range bb { // fmt.Println(*v) // } } 1、When i use `go too compile -N -l -S main.go |grep "main.go:8" ` print asm

[go-nuts] How to rewrite code and apply middleware gorilla mux routes

2019-04-03 Thread afriyie . abraham
Hi I have this working main function code and would like to rewrite it such that the middleware "validateToken" would be applied to all my gorilla mux routes. Please attached is the file containg the working code. What i would like to do is to use the handler function