[go-nuts] Creating Google functions at runtime

2019-10-23 Thread burak sarac
Hello All, Currently I am studying go-lang and working on a project that I wanted to allow user run application locally as well as remotely then collect results using user gcloud temp token or service credentials that user specifically created for this app. By remotely I mean that running appl

[go-nuts] JSON encoder does not use custom TextMarshaler for map keys when the map key type is a custom string type

2019-10-23 Thread Barakat Barakat
I'm using macOS Mojave, go 1.12.4 Example: https://play.golang.org/p/uluBecqL6QF I would expect the key and value in the example to be the same. If you implement TextMarshaler on a custom string type, the encoder does not use the marshaler when encoding map keys of that type. I ran into this tr

[go-nuts] Re: Struggling with go mod, micro-repos and private forks

2019-10-23 Thread 'Bryan Mills' via golang-nuts
Thanks for the feedback. The good news is that we're aware of (and planning to address) most of these pain points; the bad news is that we haven't been able to get to most of them yet. Detailed responses inline. On Tuesday, October 22, 2019 at 6:42:05 AM UTC-4, Shaun Crampton wrote: > > Hi All

[go-nuts] Re: GO Mod (modules) for dummies. Please help.

2019-10-23 Thread Stuart Davies
Hi thepudds Thanks for the reply. Somtimes I think I have it and somtimes I most definitly do not. I have been developing code for some time now, mostly in Java. I have used Mavan and Gradle and both give me issues with 'dependency hell'. I prefer Maven over Gradle any day because you can see

[go-nuts] Re: Roadblock for user-implemented JIT compiler

2019-10-23 Thread Max
Thanks for the idea Rick, there is one detail I do not understand: JIT code does not have a stack map **at all**, not even an empty one, thus (if I remember correctly) calling any Go function from it may trigger a GC cycle, which will find on the Go stack the "unknown" return address to the JIT

[go-nuts] Re: Roadblock for user-implemented JIT compiler

2019-10-23 Thread Rick Hudson
One approach is to maintain a shadow stack holding the pointers in a place the GC already knows about, like an array allocated in the heap. This can be done in Go, the language. Dereferences would use a level of indirection. Perhaps one would pass an index into the array instead of the pointer

[go-nuts] Roadblock for user-implemented JIT compiler

2019-10-23 Thread Max
Hello gophers, My recent attempt at creating a JIT compiler in Go to speed up my interpreter https://github.com/cosmos72/gomacro hit an early roadblock. In its current status, it can compile integer arithmetic and struct/array/slice/pointer access for amd64 and arm64, but it cannot allocate me