Re: [go-nuts] CFG for a Go program

2016-12-17 Thread akshanshchahal
Hi, Plz help with this problem whenever you are free. For each instruction in any BasicBlock I want to know the type of instruction, the variables used in that instruction. For example I used this program (https://play.golang.org/p/abvgKpPg8e) to get ssa form for the main function. SSA form :

[go-nuts] Golang for ARM

2016-12-17 Thread Paulo Coutinho
Hi, Im making a free repository to show how to compile Golang for ARM v7 (Android). Link: https://github.com/prsolucoes/golang-for-arm Error: arm-linux-androideabi-gcc: error: unrecognized command line option '-m64' Can anyone help me? The Dockerfile is in repository. Thanks. -- You

[go-nuts] Packaging Test Utilities in a Project

2016-12-17 Thread Henry
Hi, I have reusable test utilities in a project. They are used by various packages in the project for testing purposes, and at the same time I don't want to expose these utilities as public APIs. Since it is impossible to import another test package in Go, I wonder what would be the best way

[go-nuts] Re: Golang and WebAssembly

2016-12-17 Thread Ivan Perevezentsev
Yes, WebAssembly would be really nice replacement for gopherjs, especially for game development. Go already reached realtime garbage collection using native runtime, so theoretically we can make smooth games with 60 FPS. But gopherjs transpiles Go into JavaScript, which adds additional

Re: [go-nuts] Re: How to report about app crash to the monitoring server?

2016-12-17 Thread Maksim Sitnikov
*Tamás, thank you for the solution for runit. It is great. But since it requires additional configuration/programming on ops side I made my choice in favor of panicwrap.* *I definitely will try it if there will be problems with panicwrap.* On Thursday, December 15, 2016 at 4:57:17 PM UTC+4,

[go-nuts] Re: How to report about app crash to the monitoring server?

2016-12-17 Thread Maksim Sitnikov
I ended up with this fork https://github.com/bugsnag/panicwrap . It correctly handles signals from the supervisor. -- 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

Re: [go-nuts] package containing standard CA roots?

2016-12-17 Thread Rick
Alpine is a lightweight option with official Docker images. You can install the CERTS using the Alpine package manager: # apk --no-cache add ca-certificates && update-ca-certificates On Saturday, 17 December 2016 07:32:32 UTC-8, Alex Flint wrote: > > I'm working with busybox, which does not

Re: [go-nuts] package containing standard CA roots?

2016-12-17 Thread Alex Flint
I'm working with busybox, which does not ship with CA roots. On Sat, Dec 17, 2016 at 12:26 AM Konstantin Khomoutov < flatw...@users.sourceforge.net> wrote: > On Thu, 15 Dec 2016 16:35:09 + > Alex Flint wrote: > > > Does anyone know of a golang package that embeds

[go-nuts] Re: howto: compile template against well-known structure ?

2016-12-17 Thread Egon
On Saturday, 17 December 2016 12:26:55 UTC+2, mhh...@gmail.com wrote: > > Hi, > > I am wondering how i could compile html template against well-known > structures > to get better performance of it, but keep maintainability and security at > high levels. > > See this template > >

Re: [go-nuts] Re: Hashing (u)int8

2016-12-17 Thread Ondřej Kokeš
Good points! I'll keep this in mind! Thanks again On Sat, 17 Dec 2016 at 11:32, Damian Gryski wrote: > This ends up being only half a megabyte of memory (65536 x 8 byte > pointers) for the array-based solution. > > > > You can always write your own hash table, or convert

[go-nuts] Re: Hashing (u)int8

2016-12-17 Thread Damian Gryski
This ends up being only half a megabyte of memory (65536 x 8 byte pointers) for the array-based solution. You can always write your own hash table, or convert your uint16 key to a uint32 for lookup purposes. (I've done the same thing with floats to speed up a float64-keyed hash table.)

[go-nuts] howto: compile template against well-known structure ?

2016-12-17 Thread mhhcbon
Hi, I am wondering how i could compile html template against well-known structures to get better performance of it, but keep maintainability and security at high levels. See this template https://github.com/mh-cbon/mdl-go-components/blob/master/mdl/templates/button.tmpl And this

[go-nuts] Re: Hashing (u)int8

2016-12-17 Thread Ondrej
Oh yeah, preallocating 256 elements is fine. It's a bit expensive to allocate 2**16 for the int16 case, so I'll have to do with the slow hashing there - or are there any plans for speeding up that one? Cheers, this is helpful. O. On Saturday, 17 December 2016 06:15:43 UTC+1, Damian Gryski

Re: [go-nuts] package containing standard CA roots?

2016-12-17 Thread Konstantin Khomoutov
On Thu, 15 Dec 2016 16:35:09 + Alex Flint wrote: > Does anyone know of a golang package that embeds (go-bindata or > similar) a reasonable standard set of CA roots? Ideally such a > package would provide a ready-to-use http.Client. > > For context, I'm building minimal