[go-nuts] [Assembler] How can I call SIMD immediate by FP?

2017-06-13 Thread Zhuo Meng
The SHUFPD opcode needs X1, X2, ib three arguments, but I want to make a Go function like shufpd(x1, x2 interface{}, imm8u uint8) and I hope the asm file like SHUFPD X1, X2, imm+48(FP) but it doesn't work, any suggestion? -- You received this message because you are subscribed to the Googl

Re: [go-nuts] Create methods for structs at runtime

2017-06-13 Thread Lutz Horn
Hi, Given an interface, how can I create a struct instance with the methods of the interface at runtime? What is your usecase for this? What problem are you trying to solve? Lutz -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe

Re: [go-nuts] Create methods for structs at runtime

2017-06-13 Thread Ian Lance Taylor
On Tue, Jun 13, 2017 at 9:27 PM, Dat Huynh wrote: > > I have a question about Go. > > Given an interface, how can I create a struct instance with the methods of > the interface at runtime? > > After reading the document of Go on the web page > https://golang.org/pkg/reflect/#StructOf > I see the b

[go-nuts] Create methods for structs at runtime

2017-06-13 Thread Dat Huynh
Hi all, I have a question about Go. Given an interface, how can I create a struct instance with the methods of the interface at runtime? After reading the document of Go on the web page https://golang.org/pkg/reflect/#StructOf I see the below statement. "StructOf currently does not generate wr

Re: [go-nuts] Problem with building Go1.4.3 in OpenBSD/386

2017-06-13 Thread Henry
Thanks for the reply, Ian. I'll take a look at it. There is a Go1.8 binary package in OpenBSD's port collection. So, obviously someone has made it work somehow. On Wednesday, June 14, 2017 at 2:35:54 AM UTC+8, Ian Lance Taylor wrote: > > On Tue, Jun 13, 2017 at 8:42 AM, Henry > wrote: > > >

Re: [go-nuts] reflect.Type.Field() order

2017-06-13 Thread akalin
On Tuesday, June 13, 2017 at 2:33:00 PM UTC-5, Ian Lance Taylor wrote: > > > It's the order in which the fields appear in the struct declaration. > It's not going to change. If you find a case where it is *not* the > order in the declaration, please file a bug. Thanks. > > Ian > Thanks for t

Re: [go-nuts] reflect.Type.Field() order

2017-06-13 Thread Ian Lance Taylor
On Tue, Jun 13, 2017 at 8:24 AM, wrote: > > https://golang.org/pkg/reflect/#Value.Field says "Field returns the i'th > field of the struct v.". Are there any guarantees as to what the ordering of > the i'th field is? If not, does anyone know what the current behavior is, > and whether it may chan

Re: [go-nuts] Fast string sorting

2017-06-13 Thread Stefan Nilsson
That's an interesting challenge! What the algorithm really does is to first find a permutation that will sort the string slice, and then apply this permutation to the slice. Perhaps it would be possible to return this permutation in some cheap usable format. On Tuesday, June 13, 2017 at 7:56:54

Re: [go-nuts] Problem with building Go1.4.3 in OpenBSD/386

2017-06-13 Thread Ian Lance Taylor
On Tue, Jun 13, 2017 at 8:42 AM, Henry wrote: > > I have problems with building Go toolchain (Go1.4.3) on my older OpenBSD/386 > machine. Any idea how to make this works? > >> >> # Building packages and commands for openbsd/386. >> runtime >> ./make.bash: line 174: 99548 Illegal instruction (c

Re: [go-nuts] Fast string sorting

2017-06-13 Thread 'Thomas Bushnell, BSG' via golang-nuts
That's really nice! Consider a case where I am sorting a slice of structs, but the underlying sort is based on a string within the structs. Or, with some other radixable datatype besides strings. Can we figure out an interface (similar to sort.Interface) which would permit a solution for either o

[go-nuts] Re: mixed C / Go debugging

2017-06-13 Thread Alain Mellan
Haha, I agree, Printf is my debugging tool of choice, but some in my team like debuggers ... On Monday, June 12, 2017 at 5:40:30 PM UTC-7, brainman wrote: > > > ... I also tried to load the go extension for gdb with "source > C:/utils/go/src/runtime/runtime-gdb.py", but it doesn't do much good,

[go-nuts] reflect.Type.Field() order

2017-06-13 Thread akalin
https://golang.org/pkg/reflect/#Value.Field says "Field returns the i'th field of the struct v.". Are there any guarantees as to what the ordering of the i'th field is? If not, does anyone know what the current behavior is, and whether it may change in the future? Is there a way to get the fiel

Re: [go-nuts] Gomobile

2017-06-13 Thread Michael Banzon
Sorry, it is šŸ˜€ tir. 13. jun. 2017 kl. 17.17 skrev Clayton Ray : > Yes it is or yes it's not? > > > On Tuesday, June 13, 2017 at 11:10:43 AM UTC-4, mbanzon wrote: > >> Yes. >> >> On Tue, Jun 13, 2017 at 4:51 PM Clayton Ray wrote: >> > Is https://github.com/golang/mobile";>Golang/mobile not >>> act

[go-nuts] Problem with building Go1.4.3 in OpenBSD/386

2017-06-13 Thread Henry
Hi, I have problems with building Go toolchain (Go1.4.3) on my older OpenBSD/386 machine. Any idea how to make this works? Thanks. Henry Here is the build output: # ./make.bash > # Building C bootstrap tool. > cmd/dist > > # Building compilers and G

Re: [go-nuts] goimports flag parity with gofmt

2017-06-13 Thread 'Sergiy Byelozyorov' via golang-nuts
Ah. Good point. Added autocmd BufWritePre *.go :GoFmt autocmd BufWritePre *.go :GoImports to my .vimrc. Thanks. On Tue, Jun 13, 2017 at 3:38 PM Fatih Arslan wrote: > No you can do it. We have two commands, called :GoImports and :GoFmt. You > can set the new setting and then call first :GoImpor

Re: [go-nuts] Gomobile

2017-06-13 Thread Clayton Ray
Yes it is or yes it's not? On Tuesday, June 13, 2017 at 11:10:43 AM UTC-4, mbanzon wrote: > > Yes. > > On Tue, Jun 13, 2017 at 4:51 PM Clayton Ray > wrote: > >> Is https://github.com/golang/mobile";>Golang/mobile not >> actively being developed anymore? I see the last commit was 20 days ago, >

Re: [go-nuts] Gomobile

2017-06-13 Thread Michael Banzon
Yes. On Tue, Jun 13, 2017 at 4:51 PM Clayton Ray wrote: > Is https://github.com/golang/mobile";>Golang/mobile not > actively being developed anymore? I see the last commit was 20 days ago, > but before that, months. > > -- > You received this message because you are subscribed to the Google Grou

[go-nuts] Gomobile

2017-06-13 Thread Clayton Ray
Is https://github.com/golang/mobile";>Golang/mobile not actively being developed anymore? I see the last commit was 20 days ago, but before that, months. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop re

[go-nuts] liteide x32 released

2017-06-13 Thread visualfc
Hi, all. LiteIDE x32 released! This versionĀ reimplemented multifolder model,Ā support folder custom GOPATH, session switch, new themes and color scheme, fix source navigation and code reflect etc. more info view changes. ### Links * LiteIDE New Home Ā  * LiteIDE Source code

Re: [go-nuts] goimports flag parity with gofmt

2017-06-13 Thread Fatih Arslan
No you can do it. We have two commands, called :GoImports and :GoFmt. You can set the new setting and then call first :GoImports and then :GoFmt. With a little vim script you could create a single command that executes them in order. On Tue, Jun 13, 2017 at 4:07 PM Sergiy Byelozyorov wrote: > Ye

[go-nuts] Golang process manager tools

2017-06-13 Thread David Zhang
Hi guys. i want to introduce a process manager tool for Golang. that's pmgo . If you want to know details, you can click the link. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this gro

[go-nuts] Re: interesting potential go event talk

2017-06-13 Thread Damian Gryski
Just went to add this to https://github.com/golang/go/wiki/ResearchPapers , but it's already there :) Damian On Sunday, June 11, 2017 at 5:44:33 PM UTC+2, Michael Jones wrote: > > Atom: Horizontally Scaling Strong Anonymity > > "To evaluate Atom, *we implemented an Atom prototype* > *in Go*, and

[go-nuts] Fast string sorting

2017-06-13 Thread Stefan Nilsson
It's well known that radix sort can be faster than comparison-based methods for string sorting. With that in mind, I wrote this optimized version of MSD radix sort: https://github.com/yourbasic/radix It's equivalent to sort.Strings in the standard library and on my machine it's twice as fa

Re: [go-nuts] goimports flag parity with gofmt

2017-06-13 Thread 'Sergiy Byelozyorov' via golang-nuts
Yes, but what I need is to run "goimports" and then "gofmt -s". If goimports supported -s, then I would be able to do what I need, but not with current vim-go implementation. On Tue, Jun 13, 2017 at 3:00 PM Fatih Arslan wrote: > I think there is a misunderstanding here. People somehow don't read

Re: [go-nuts] goimports flag parity with gofmt

2017-06-13 Thread Fatih Arslan
I think there is a misunderstanding here. People somehow don't read the manuals or the changelog when I release a new version. We have the following setting for (which was released recently with v1.13): let g:go_fmt_options = { \ 'gofmt': '-s', \ 'goimports': '-local mycompany.com',