Re: [go-nuts] Basic Web Authentication Question

2017-01-03 Thread Seb Binet
Henry, On Tue, Jan 3, 2017 at 4:12 AM, Henry wrote: > Hi, > > I have a question regarding a form-based authentication mechanism. Given > the following situation: > > 1. User lands on the login page and attempts to sign in. > 2. The server authenticates user and sets

Re: [go-nuts] Re: Installing two go releases side-by-side

2016-12-16 Thread Seb Binet
see: https://go-review.googlesource.com/c/34385/ -s On Fri, Dec 16, 2016 at 1:05 PM, Seb Binet <seb.bi...@gmail.com> wrote: > > > On Fri, Dec 16, 2016 at 1:02 PM, Caleb Doxsey <ca...@doxsey.net> wrote: > >> The easy solution here is gimme <https://github.com/

Re: [go-nuts] Re: Installing two go releases side-by-side

2016-12-16 Thread Seb Binet
On Fri, Dec 16, 2016 at 1:02 PM, Caleb Doxsey wrote: > The easy solution here is gimme . > > > $ eval "$(gimme 1.8beta2)" > > > Downloads and installs go and sets all the environment variables for you. > there's also something happening

Re: [go-nuts] [ANN] browse

2016-12-16 Thread Seb Binet
On Fri, Dec 16, 2016 at 2:07 AM, Jan Mercl <0xj...@gmail.com> wrote: > https://github.com/cznic/browse > > Browse packages in the terminal. The "rough at the edges" release. > it looks really slick (and I like how one can quickly navigate between identifiers and go to their definition) but I am

Re: [go-nuts] Advice for new type of net.Conn

2016-12-14 Thread Seb Binet
On Wed, Dec 14, 2016 at 10:34 PM, wrote: > Hello All, > > I am looking for a little bit of advice for making a new client library > for SocketCAN > sockets in > Linux. > > Low level support for SockaddrCAN was just

Re: [go-nuts] About golang net/http code trick, i want to imitate code trick but i can not.

2016-12-03 Thread Seb Binet
Or just: var demo HandlerFunc ? -s sent from my droid On Dec 3, 2016 8:27 PM, "Tamás Gulácsi" wrote: > demo := HandlerFunc(func(x,y int) {}) > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from

Re: [go-nuts] Re: need library suggestions on writing a record program

2016-11-29 Thread Seb Binet
FYI, you may also want to have a look at tcell: https://github.com/gdamore/tcell it was very easy to spin up a few tools with it. -s On Tue, Nov 29, 2016 at 9:42 PM, Egon wrote: > On Tuesday, 29 November 2016 20:37:55 UTC+2, bia...@gmail.com wrote: >> >> If you already

Re: [go-nuts] Using the new plugin API to create a Go REPL

2016-11-25 Thread Seb Binet
On Fri, Nov 25, 2016 at 9:41 AM, Jason Stillwell wrote: > https://github.com/dragonfax/go_repl_plugin_example > > Its just a toy, but I thought it was an interesting idea. > > You compile a plugin with the code the user typed, and then load that into > the process and

Re: [go-nuts] Thinking OO virtual function in Go

2016-11-22 Thread Seb Binet
On Tue, Nov 22, 2016 at 10:16 PM, Tong Sun wrote: > Hi, > > How to architect the OO's virtual function in Go? > > Please take a look at this (not working) Go program > https://play.golang.org/p/qrBX6ScABp > > Please think of the "func Output()" as a very complicated

Re: [go-nuts] plugin - How to open and lookup for interface implementation

2016-11-07 Thread Seb Binet
On Mon, Nov 7, 2016 at 12:44 PM, Seb Binet <seb.bi...@gmail.com> wrote: > > > On Sun, Nov 6, 2016 at 8:21 PM, Mateusz Dymiński <dymin...@gmail.com> > wrote: > >> I haven't played with the plugin feature yet, but some things stand out >>> to me abo

Re: [go-nuts] plugin - How to open and lookup for interface implementation

2016-11-07 Thread Seb Binet
On Sun, Nov 6, 2016 at 8:21 PM, Mateusz Dymiński wrote: > I haven't played with the plugin feature yet, but some things stand out to >> me about your code and I wonder if it is correct or not. >> Is there a difference in using go build vs go run, in the same way as you >> can

[go-nuts] Re: [golang-dev] Re: Issue with gonum/plot and golang playground

2016-10-31 Thread Seb Binet
(bcc: golang-dev cc: golang-nuts) On Sat, Oct 29, 2016 at 10:31 PM, wrote: > Hey, I wrote a tiny helper module to show images like imshow in python and > matlab. https://github.com/nnvn/imdisp > FYI, I have also this gonum/plot backend to

Re: [go-nuts] Re: Float32 math and slice arithmetics using SIMD

2016-10-27 Thread Seb Binet
Something like that? https://github.com/golang/image/blob/master/vector/gen.go -s sent from my droid On Oct 27, 2016 12:24 AM, "'simon place' via golang-nuts" < golang-nuts@googlegroups.com> wrote: > i was playing with SIMD last year, > > the approach i took was to try to minimise the M/C,

Re: [go-nuts] A simple question - Can C++ and goLang coexist in the same ecosystem?

2016-10-24 Thread Seb Binet
On Mon, Oct 24, 2016 at 2:50 AM, Carlos Ferreira wrote: > It's improper because it is not the correct way of doing things. Calling > external commands usually require calling the terminal and all of the > overhead that it requires. > Using binds is a more efficient and

Re: [go-nuts] calling go functions from c

2016-09-30 Thread Seb Binet
On Fri, Sep 30, 2016 at 7:42 AM, wrote: > Thanks for reading my question. I'm trying to map c to Go "C." > > C int -> go C.int > C unsigned char -> ? > C char -> ? > C unsigned short -> ? > C double -> ? > C __int64 -> ? > C *char -> C.string > this won't work from

Re: [go-nuts] go/types - creating a Type from whole cloth?

2016-09-28 Thread Seb Binet
On Wed, Sep 28, 2016 at 2:57 PM, wrote: > You need to actually get the type of a *bytes.Buffer with reflect.TypeOf > and compare types. > > https://play.golang.org/p/iqv16ibt9w > OP is using go/types, not reflect. using something like so might work:

Re: [go-nuts] Re: Ideas for a Go interpeter, feedback requested

2016-09-08 Thread Seb Binet
On Thu, Sep 8, 2016 at 1:29 PM, HWJ wrote: > I have semi-concrete plans for such a port after I am done with >> sparc64 and arm64 SSA. >> > That's really interesting! FYI, these semi-concrete plans were exposed here:

Re: [go-nuts] Re: Ideas for a Go interpeter, feedback requested

2016-08-24 Thread Seb Binet
Aram, On Mon, Aug 22, 2016 at 11:29 PM, Aram Hăvărneanu <ara...@mgk.ro> wrote: > On Mon, Aug 22, 2016 at 1:48 PM, Seb Binet <seb.bi...@gmail.com> wrote: > > do you think it would be feasable to have a GOARCH=vm backend which would > > just be the portable "Ken

Re: [go-nuts] Re: Ideas for a Go interpeter, feedback requested

2016-08-22 Thread Seb Binet
On Aug 22, 2016 11:29 PM, "Aram Hăvărneanu" <ara...@mgk.ro> wrote: > > On Mon, Aug 22, 2016 at 1:48 PM, Seb Binet <seb.bi...@gmail.com> wrote: > > do you think it would be feasable to have a GOARCH=vm backend which would > > just be the portable &quo

Re: [go-nuts] Re: Ideas for a Go interpeter, feedback requested

2016-08-22 Thread Seb Binet
On Mon, Aug 15, 2016 at 11:40 PM, Rob Pike wrote: > Sounds a lot like the Newsqueak implementation. https://swtch. > com/~rsc/thread/newsquimpl.pdf > quite. although, Lars' idea to target D or Julia would make the interpreter non go-get-able. actually, I've just watched your

Re: [go-nuts] cmd/go: make c/objective-c in cgo support golang package better.

2016-08-19 Thread Seb Binet
hi, On Thu, Aug 18, 2016 at 8:21 AM, bronze man wrote: > I think golang package is a great stuff for encapsulation.It may be better > if I can use that in cgo. > * c/objective-c function can include any .h file in the GOPATH with "the > full path way" like golang import. >

Re: [go-nuts] How to initialize two dimension array

2016-08-18 Thread Seb Binet
On Thu, Aug 18, 2016 at 9:32 AM, wrote: > func Pic(dx, dy int) [][]uint8 { > pic := make([][]uint8, dy) > for i := 0; i < dy; i++ { > pic[i] = make([]uint8, dx) > for j := 0; j < dx; j++ { > pic[i][j] = uint8(float64(i)*math.Log(float64(j))) > } > } > return pic > } > >

Re: [go-nuts] Shiny

2016-08-17 Thread Seb Binet
On Wed, Aug 17, 2016 at 2:38 PM, Joe Blue wrote: > Thanks. I looked there before. > > It's a shame that only the shiny author is the only one on this from > Google to improve it. > > There are bits and pieces es floating around and even a roadmap in github > to build

Re: [go-nuts] Re: Ideas for a Go interpeter, feedback requested

2016-08-11 Thread Seb Binet
Jason, On Sun, Aug 7, 2016 at 3:42 AM, Jason E. Aten wrote: > I don't know if there is still interest in this project, > there is (but I personally had to put it a bit on the back burner.) but I continue to be interested. Recently I note that Apple's Swift might >

Re: [go-nuts] net/http and static binaries

2016-08-08 Thread Seb Binet
On Mon, Aug 8, 2016 at 5:12 PM, Ian Lance Taylor wrote: > On Sun, Aug 7, 2016 at 7:08 PM, Amit Saha wrote: > > > > From an old thread [1], I learned that CGO_ENABLED=0 will create static > > binaries for programs using the net/http package. I still see

Re: [go-nuts] Who wants to use Go to process your camera's raw files?

2016-07-28 Thread Seb Binet
On Thu, Jul 28, 2016 at 5:44 AM, Jonathan Pittman < jonathan.mark.pitt...@gmail.com> wrote: > Sam, I do not think that I can use LibRAW (or LibTIFF) on appengine. And > I aim to write and run some apps on appengine that will let me do some > things with my RAW images (not just the thumbnail or

Re: [go-nuts] pure-Go MATLAB file I/O package ?

2016-07-07 Thread Seb Binet
Maxim, thanks for taking the time to answer me. On Thu, Jul 7, 2016 at 12:52 PM, Maxim Khitrov wrote: > Maybe you already know this, but that PDF seems to cover the format > that was used by MATLAB Version 5 (R8). Versions since R2006b use an > HDF5-based format: > >

Re: [go-nuts] Any keyboard players here?

2016-06-22 Thread Seb Binet
On Wed, Jun 22, 2016 at 6:37 PM, wrote: > Hello, > > I created a (kind of) organ or piano, to be played with a MIDI keyboard. > It has a GUI running in the terminal, thanks to the excellent termbox-go > library. It's only for Linux, but porting should not be too difficult. >