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
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 := &A{}
fmt.Println(unsafe.Sizeof(a))
fmt.Println(unsafe.Sizeof(*a))
}
When I run the code in go playground
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 with go playground?
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 (64/8).
> Could anyone
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)*
t
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
> }
>
pa
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
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 u
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, bu
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
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 method
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?
Thank
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 way I can get a go program t
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
intentional
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 h
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 going to be
> a hindrance t
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
go/types,
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
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
--
-- Aldr
19 matches
Mail list logo