Re: [go-nuts] Compiling Go plugins with playground/NACL/GAE-like isolation

2017-05-19 Thread Aldrin Leal
so its not possible. It seems you'd need to pick to have between either: a. a fast ipc mechanism (shmem, shared/dynamic libraries) b. sandbox isolation c. performance d. Deep Kernel Hacking http://stackoverflow.com/questions/27417561/linux-is-it-possible-to-sandbox-shared-library-code -- --

[go-nuts] [ANN] aah framework v0.5 - First public release

2017-05-19 Thread Jeevanandam M.
Hello Everyone - I'm very glad to announce the first public release of aah web framework for Go. v0.5 comes with an initial set of features. Gradually I will be adding more features and enhancements following the roadmap. Please try it out and let me know what you think, your feedback is very

Re: [go-nuts] Compiler: tools to develop new target for Golang?

2017-05-19 Thread alexanderaowen
My apologies, I have worded the question poorly. Basically, I want to compile Go source to a bytecode format, which will be interpreted at some later step. The design is similar to Java's compilation process. Thus far, I know I can produce an AST from go/parser, type check it using

Re: [go-nuts] Realizing SSD random read IOPS

2017-05-19 Thread Ian Lance Taylor
On Fri, May 19, 2017 at 3:26 AM, Manish Rai Jain wrote: > >> It's not obvious to me that io_submit would be a win for normal > programs, but if anybody wants to try it out and see that would be > great. > > Yeah, my hunch is that the cost of threads context switching is

[go-nuts] Re: go fmt adds newline in var declaration when comment is last line before closing bracket

2017-05-19 Thread xiiophen
forgot - https://play.golang.org/p/VWQGAXs7WM -- 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...@googlegroups.com. For more options, visit

[go-nuts] go fmt adds newline in var declaration when comment is last line before closing bracket

2017-05-19 Thread xiiophen
This : package main var ( a int b string //test c float32 //test ) func main() { } becomes : package main var ( a int b string //test c float32 //test ) func main() { } Is the extra newline between the c float and the second commented //test

Re: [go-nuts] Go 1..8.1 powerpc 32 bit compilation?

2017-05-19 Thread Ian Lance Taylor
On Fri, May 19, 2017 at 10:14 AM, wrote: > > I am newbie to golang. > Although it seems we can compile a go program to run on many different > configurations of OS and Architectures, > There is no support for power pc 32 bit linux. > > I wanted to know if there is any

[go-nuts] Go 1..8.1 powerpc 32 bit compilation?

2017-05-19 Thread shravan . ambati30
Hello Everyone, I am newbie to golang. Although it seems we can compile a go program to run on many different configurations of OS and Architectures, There is no support for power pc 32 bit linux. I wanted to know if there is any way I can get a go program to run on power pc 32-bit?

[go-nuts] [android] Trust certificates added by the user ?

2017-05-19 Thread renaud . lehoux
On android, only certificates present in /system/etc/security/cacerts are considered as trusted by Go (see https://github.com/golang/go/blob/master/src/crypto/x509/root_unix.go#L18). This only includes certificates added by Google, and not those added by the user (typically by using this

[go-nuts] Re: Runtime code generation?

2017-05-19 Thread 'Eric Johnson' via golang-nuts
Indeed. This is the same answer I was going to give. Run-time code generation implies a whole bunch of different scenarios with a whole bunch of use-cases. There are resource sharing concerns, security concerns, and performance concerns that need to be nailed down. Otherwise it is difficult to

[go-nuts] Re: [database/sql] Why do DB.QueryContext and Stmt.QueryContext have different retry logic?

2017-05-19 Thread Daniel Theophanes
I think this is a bug. Please file an issue. The go1.9 freeze is already in place, but this may qualify as a bugfix that will fly under that if done quickly. Thanks, -Daniel On Friday, May 19, 2017 at 7:52:42 AM UTC-7, Krzysztof Drys wrote: > > We are getting problems with driver.ErrBadConn,

Re: [go-nuts] Why golang garbage-collector not implement Generational and Compact gc?

2017-05-19 Thread Konstantin Shaposhnikov
The following article showing that a compacting gc can make the application run faster in some cases might be of interest as well: https://shipilev.net/jvm-anatomy-park/11-moving-gc-locality/ -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To

[go-nuts] [database/sql] Why do DB.QueryContext and Stmt.QueryContext have different retry logic?

2017-05-19 Thread krzysztofdrys
We are getting problems with driver.ErrBadConn, but only if we use the prepared statements. It seems to me that this is because DB.QueryContext retries with a fresh connection and Stmt.QueryContext does not. I want to verify whether this is a bug or an expected behaviour, When DB.QueryContext

Re: [go-nuts] can i get goroutine`s id or have some local storage of a goroutine?

2017-05-19 Thread navindrakumar29
Hi, I just read this content as I was looking for same thing, I tried as you suggested but was unable to do so, as I am using function calls from different packages. My request flow is some what like this: > package global > > type Context struct { > logger log.Logger > } >

[go-nuts] golang googledrive api becomes slow after sometime

2017-05-19 Thread vijay kumar Ks
I am using following code to download googledrive documents to list files: *listArgs := listAllFilesArgs{ query: "", fields: []googleapi.Field{"nextPageToken", "files(id,name,mimeType,size,md5Checksum,parents,trashed,modifiedTime,starred)"}, } files, err := self.listAllFiles(listArgs)*

Re: [go-nuts] issues about struct align

2017-05-19 Thread Wojciech S. Czarnecki
Dnia 2017-05-19, o godz. 04:28:53 xjdrew napisaƂ(a): > uint64 should aligin in 8 bytes, why it aligns in 4 bytes in > go1.8.1.linux-386? uint64 member IS 8 bytes wide. It is aligned to the machine word boundary which is 4B (32/8) for 32bit architecture and 8B for 64b one

Re: [go-nuts] issues about struct align

2017-05-19 Thread Jan Mercl
On Fri, May 19, 2017 at 1:29 PM xjdrew wrote: > uint64 should aligin in 8 bytes, why it aligns in 4 bytes in go1.8.1.linux-386? https://en.wikipedia.org/wiki/Data_structure_alignment#Typical_alignment_of_C_structs_on_x86 > Could anyone tell me how I can get the same result

[go-nuts] issues about struct align

2017-05-19 Thread xjdrew
Hello everyone, Code as below, playground url(https://play.golang.org/p/XSx--6uF0E): package main import "fmt" import "unsafe" type A struct { a uint8 b uint64 } func main() { a := {} fmt.Println(unsafe.Sizeof(a)) fmt.Println(unsafe.Sizeof(*a)) } When I run the code in go playground,

Re: [go-nuts] Realizing SSD random read IOPS

2017-05-19 Thread Manish Rai Jain
Sorry for the delay in replying. Got busy with a presentation at Go meetup. > I agree with Dave that looking at the execution tracer is likely to help. I tried to run it, but nothing renders on my chrome (running on Arch Linux). Typical about:tracing works, but this doesn't. And there isn't much