Re: [go-nuts] Sort a huge slice of data around 2GB

2017-11-29 Thread Michael Jones
sofa :-) -- Michael T. Jones michael.jo...@gmail.com -- 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

Re: [go-nuts] chan chan Job per worker vs. single chan Job

2017-11-24 Thread Michael Jones
> snippets you provided don't really make sense on their own to me. > > -- > 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

Re: [go-nuts] Help me MVC golang

2017-11-23 Thread Michael Banzon
tarted programming Go and found that going with the least amount of code was the right way. I recommend you try using the default HTTP routing from the std lib. -- Michael Banzon https://michaelbanzon.com/ > Den 23. nov. 2017 kl. 05.37 skrev Teo : > > -- Blog > --

Re: [go-nuts] what's new with Go in the past year?

2017-11-12 Thread Michael Jones
ups.com. > For more options, visit https://groups.google.com/d/optout. > -- Michael T. Jones michael.jo...@gmail.com -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receivin

Re: [go-nuts] Re: Go predicts the end of the universe

2017-11-11 Thread Michael Banzon
Remember to flush your buffers! -- Michael Banzon https://michaelbanzon.com/ > Den 11. nov. 2017 kl. 09.32 skrev andrey mirtchovski : > > Seems time is on our side. yes it is. -- You received this message because you are subscribed to the Google Groups "golang-nuts" gr

Re: [go-nuts] goto from inner select

2017-11-06 Thread Michael Jones
-- > 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 https://groups.google.

Re: [go-nuts] Re: select is still a little unfair if there are more than 4 cases?

2017-10-29 Thread Michael Jones
> 1.9.2: LFSR+modulus => select is "fair enough" (same as 1.8) > tip: xorshift32+multiplication => select is fair > > Giovanni > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe

[go-nuts] Re: [golang-dev] Subject: Go 1.9.2 and Go 1.8.5 are released

2017-10-29 Thread Michael Hudson-Doyle
I notice that the signing key doesn't appear to be in the strong set, are you planning to get it more signatures? Cheers, mwh > On Oct 25, 2017 7:58 PM, "Michael Hudson-Doyle" < > michael.hud...@canonical.com> wrote: > >> I've updated my snaps with both thes

Re: [go-nuts] An efficient algorithm to write binary data

2017-10-28 Thread Michael Jones
t; For more options, visit https://groups.google.com/d/optout. > -- Michael T. Jones michael.jo...@gmail.com -- 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] Re: select is still a little unfair if there are more than 4 cases?

2017-10-27 Thread Michael Jones
>>>>>>> >>>>>>>>>> result: >>>>>>>>>> >>>>>>>>>> 1 >>>>>>>>>> 0.052991869258 >>>>>>>>>> 0.9015652691532394 >>>>>>&g

[go-nuts] Re: [golang-dev] Subject: Go 1.9.2 and Go 1.8.5 are released

2017-10-25 Thread Michael Hudson-Doyle
I've updated my snaps with both these releases, so users with the snap already installed should get them soon, or snap install --classic --channel 1.9/stable go on an ubuntu or ubuntu-like system if you want to try them out :) Cheers, mwh On 26 October 2017 at 12:51, Chris Broadfoot wrote: > Hi

Re: [go-nuts] Memory leak when calling highly parallel goroutines

2017-10-25 Thread Michael Jones
; 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 https://groups.google.com/d/optout. > -- Michael T. Jones michael.jo...@gmail.com -- You received this message because yo

Re: [go-nuts] Re: perfs of a Go binary VS C++

2017-10-17 Thread Michael Jones
0% 99.15% 0.56s 4.30% internal/poll.(*FD).Pread >>> /usr/lib/go/src/internal/poll/fd_unix.go >>> 0 0% 99.15% 0.11s 0.85% io.(*SectionReader).Read >>> /usr/lib/go/src/io/io.go >>> 0 0% 99.15% 0.11s 0.85% io.Read

Re: [go-nuts] concurrent write-only to map ok?

2017-10-13 Thread Michael Jones
To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Michael T. Jones michael.jo...@gmail.com -- You received this message because you are

Re: [go-nuts] Newbie Implementation of Set Partitions Generator

2017-10-13 Thread Michael Jones
recursive call that clobbers some > elements. > > Ian > > -- > 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-n

Re: [go-nuts] Strange behavior when dealing with certain emojis

2017-10-11 Thread Michael Jones
3" sequence with something else first, then do your actual >> replacement and restore the original after. >> >> >> Ian >> > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubsc

Re: [go-nuts] defer go [was: A few go 2 suggestions]

2017-10-10 Thread Michael Jones
ns" On Tue, Oct 10, 2017 at 4:44 PM, Michael Jones wrote: > First... > > go func() { > f() > go g() > }() > > is tremendously different than: > > go func() { > go g() > f() > }() > > a

Re: [go-nuts] defer go [was: A few go 2 suggestions]

2017-10-10 Thread Michael Jones
> > -- Juliusz > > -- > 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 mo

Re: [go-nuts] Are all running goroutines killed when main ends?

2017-10-07 Thread Michael Jones
ve threads and cause them to run any > cleanups before destroying them. Not having looked at the > runtime I am not sure how painful this is but this has the > benefit of not adding any cost when there is no goroutine > level cleanup. > > As for syntax I am tempted to suggest &quo

Re: [go-nuts] Are all running goroutines killed when main ends?

2017-10-06 Thread Michael Jones
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 https://groups.google.com/d/optout. >

Re: [go-nuts] Memory issues when spawning 1 million go routines that communicate on a channel

2017-10-04 Thread Michael Jones
10:15 AM, Unni Krishnan wrote: > That's an interesting solution, but what I'm trying to figure out is why > the memory usage is this high and understand how go handles this. > > On Tue, Oct 3, 2017 at 9:16 PM Michael Jones > wrote: > >> Or you could do it this

Re: [go-nuts] Re: How to read multi-page TIFF image?

2017-10-03 Thread Michael Jones
ctor: true, }) if err != nil { log.Fatal(err) } I updated https://github.com/golang/go/issues/20613 about the details. On Thu, Sep 28, 2017 at 7:38 AM, Michael Jones wrote: > thanks, i'll make notes there > > On Wed, Sep 27, 2017 at 11:01 PM, Nigel Tao wrote: > >> On

Re: [go-nuts] Memory issues when spawning 1 million go routines that communicate on a channel

2017-10-03 Thread Michael Jones
-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 https://groups.google.com/d/optout. > -- Michael T. Jones michael.jo...@gmail.com -- You received this mes

Re: [go-nuts] Re: How to read multi-page TIFF image?

2017-09-28 Thread Michael Jones
thanks, i'll make notes there On Wed, Sep 27, 2017 at 11:01 PM, Nigel Tao wrote: > On Thu, Sep 28, 2017 at 10:28 AM, Michael Jones > wrote: > > Not quite related, but if changes are going to happen, I want to add (or > see > > someone add) colorspace tags to the

Re: [go-nuts] Re: How to read multi-page TIFF image?

2017-09-27 Thread Michael Jones
gle 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 https://groups.google.com/d/optout. > -- Michael T. Jones michael.jo...@gmail.com

Re: [go-nuts] Re: Simple web crawler question. How to avoid crawling visited links?

2017-09-26 Thread Michael Jones
/blog/2017/06/08/president-trumps-plan-rebuild-americas-infrastructure : https://www.whitehouse.gov/privacy https://www.whitehouse.gov/copyright On Tue, Sep 26, 2017 at 7:29 AM, Michael Jones wrote: > To be sure, examples are a starting place. > > To crawl to a certain depth, you need to

SV: [go-nuts] Unmarshal Json

2017-09-26 Thread Michael Banzon
Can it be parsed to a map[string]json.RawMessage (or a more specific type, if the value is a known type)? -- Michael Banzon https://michaelbanzon.com/ Fra: Rich Sendt: 26. september 2017 20:23 Til: golang-nuts Emne: [go-nuts] Unmarshal Json I have a json I have to parse, and in that json one

Re: [go-nuts] Re: Simple web crawler question. How to avoid crawling visited links?

2017-09-26 Thread Michael Jones
of > the website. The requirements are a bit different. I can't just use the > approach in the example directly or more precisely I don't know how to use > it in my code. > > On Tuesday, September 26, 2017 at 6:18:43 AM UTC+8, Michael Jones wrote: >> >> The book

Re: [go-nuts] Re: Simple web crawler question. How to avoid crawling visited links?

2017-09-25 Thread Michael Jones
net/go-nuts: unsupported protocol scheme "irc" https://golang.org/doc/faq https://groups.google.com/group/golang-announce https://blog.golang.org https://twitter.com/golang : On Mon, Sep 25, 2017 at 7:46 AM, Michael Jones wrote: > i suggest that you first make it work in the sim

Re: [go-nuts] Re: Simple web crawler question. How to avoid crawling visited links?

2017-09-25 Thread Michael Jones
continue >> } >> result, ok := getHrefTag(current) >> if !ok { >> continue >> } >> >> hasProto := strings.HasPrefix(result, "http") >>

Re: [go-nuts] Simple web crawler question. How to avoid crawling visited links?

2017-09-24 Thread Michael Jones
esult > } > } > }} > > func getHrefTag(token html.Token) (result string, ok bool) { > for _, a := range token.Attr { > if a.Key == "href" { > result = a.Val > ok = true > break >

Re: [go-nuts] Doing "C-like" things in Go

2017-09-11 Thread Michael Jones
..@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Michael T. Jones michael.jo...@gmail.com -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving

Re: [go-nuts] Reordering of reads and writes within a goroutine

2017-09-07 Thread Michael Jones
g-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 https://groups.google.com/d/optout. > -- Michael T. Jones michael.jo...@gmail.com -- You rece

Re: [go-nuts] Re: Splitting CamelCaseWords in Go

2017-09-06 Thread Michael Jones
e: > > Almost, https://play.golang.org/p/6Zl_EKqFqT > But thanks a lot! It's significantly shorter/better than my initial > version. > > On Tue, Sep 5, 2017 at 6:18 PM, Michael Jones > wrote: > >> Like this? >> >> https://play.golang.org/p/OIE8jdWVGB >>

Re: [go-nuts] Re: error handling needs syntactical sugar

2017-09-05 Thread Michael Jones
e error(s) >>> } >>> >>> // insert >>> stmt, err := db.Prepare("INSERT INTO userinfo(username, departname, >>> created) values(?,?,?)") >>> res, err := stmt.Exec("astaxie", "研发部门", "2012-12-09") >

Re: [go-nuts] Re: Splitting CamelCaseWords in Go

2017-09-05 Thread Michael Jones
e it, >>>>> I noticed a side effect that makes it works for "myConstantVariable" but >>>>> not for "GNU PYTHON Standard": >>>>> https://github.com/danverbraganza/varcaser/issues/1 >>>>> >>>>> Thanks &g

[go-nuts] Re: Bytconv where art thou

2017-09-01 Thread Michael Jones
Great! Very kind of you On Fri, Sep 1, 2017 at 11:01 AM, peterGo wrote: > Michael and Sebastien, > > Since my bytconv package is currently private, I'm fixing it up for > publication. I hope to make bytconv available in go get'able form within a > week. I'll let

Re: [go-nuts] Why isn't golang input and output is buffered?

2017-08-31 Thread Michael Jones
By the way, if we're willing to do it all...we can take it down a little more: https://play.golang.org/p/DNxQT01vy9 read 100 26.174853ms sort 100 180.17782ms On Thu, Aug 31, 2017 at 11:28 AM, Michael Jones wrote: > Nice! Is "bytconv" shared somewhere? > > On Th

Re: [go-nuts] Why isn't golang input and output is buffered?

2017-08-31 Thread Michael Jones
Nice! Is "bytconv" shared somewhere? On Thu, Aug 31, 2017 at 10:53 AM, peterGo wrote: > Michael, > > n your code, you have : > > const n = 1000 * 1000 > > for i := 0; i < n && scan.Scan(); i++ { > d, _ := strconv.Atoi(scan.Text()) > array

Re: [go-nuts] Why isn't golang input and output is buffered?

2017-08-30 Thread Michael Jones
olang.org/p/tMyipz6sYU > 954.543351ms > 166.710399ms > > So this is about 6 times slower. My guess is this is due to the use of > reflection in fmt.Fscanf. But that is just a guess; I don't really have any > evidence to back it up. > > On Wed, Aug 30, 2017 at 1:33 P

Re: [go-nuts] Why isn't golang input and output is buffered?

2017-08-30 Thread Michael Jones
t; > -- > 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 https:

Re: [go-nuts] math/big

2017-08-28 Thread Michael Jones
oops! that's actually a**1024 ...was rushing and typed the Printf legend too quickly. On Mon, Aug 28, 2017 at 5:14 PM, Michael Jones wrote: > I use it frequently / constantly / 24/7 :-) > > it's purpose is to enable integer, rational, and real arithmetic at chosen > preci

Re: [go-nuts] math/big

2017-08-28 Thread Michael Jones
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 https://groups.google.com/d/optout. > -- Michael T. Jones michael.jo...@gmail.

[go-nuts] expanderr: expands the Go Call Expression under your cursor to check errors

2017-08-23 Thread Michael Stapelberg
Hey, I just published https://github.com/stapelberg/expanderr and thought some of you might find that tool useful. Let me know if you have any feedback, Best regards, Michael -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubs

Re: [go-nuts] Gathering Ideas for Go 2.

2017-08-21 Thread Michael Jones
te. > > -- > 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 https:/

Re: [go-nuts] multiply and divide

2017-08-19 Thread Michael Jones
oogle 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 https://groups.google.com/d/optout. > -- Michael T. Jones michael.jo...@gma

Re: [go-nuts] multiply and divide

2017-08-19 Thread Michael Jones
I would REALLY like to see big types as normal declarations and syntax. The SSA framework seems suitable to automatically manage the temporaries. On Sat, Aug 19, 2017 at 7:14 AM, roger peppe wrote: > Constructive reals in Go, anyone? :-) > > On 18 Aug 2017 17:50, "Michael

Re: [go-nuts] multiply and divide

2017-08-18 Thread Michael Jones
John Souvestre - New Orleans LA > > > > *From:* golang-nuts@googlegroups.com [mailto:golang-nuts@googlegroups.com] > *On Behalf Of *Michael Jones > *Sent:* 2017 August 18, Fri 11:50 > *To:* golang-nuts > *Subject:* [go-nuts] multiply and divide > > > > Here is a minor musing f

[go-nuts] multiply and divide

2017-08-18 Thread Michael Jones
irst, then divide." -- Michael T. Jones michael.jo...@gmail.com -- 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...@googlegro

Re: [go-nuts] Go channels overused and hyped?

2017-08-18 Thread Michael Jones
e 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 https://groups.google.com/d/optout. > -- Michael T. Jones michael.jo...@gmail.com

Re: [go-nuts] Go ordered map

2017-08-15 Thread Michael Jones
m this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Michael T. Jones michael.jo...@gmail.com -- You received this message because you are subscribed to the Google Groups

Re: [go-nuts] Go channels overused and hyped?

2017-08-12 Thread Michael Jones
d 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 https://groups.google.com/d/optout. > -- Mic

Re: [go-nuts] Check for minimum Go version

2017-08-10 Thread Michael Banzon
is having the (up-to-date) toolchain in a container. -- Michael Banzon https://michaelbanzon.com/ > Den 10. aug. 2017 kl. 09.14 skrev Konstantin Khomoutov : > > On Wed, Aug 09, 2017 at 03:11:48PM +0200, Michael Banzon wrote: > >> Is there a way to have a (bash) script check

[go-nuts] Check for minimum Go version

2017-08-09 Thread Michael Banzon
Hi, Is there a way to have a (bash) script check if the version of the Go compiler installed is a specific minimum version? -- Michael Banzon https://michaelbanzon.com/ -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubs

Re: [go-nuts] A humble request/challenge

2017-08-08 Thread Michael Jones
mail to golang-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Michael T. Jones michael.jo...@gmail.com -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group a

Re: [go-nuts] [ANN] Edit - Acme command language

2017-08-08 Thread Michael Jones
golang-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Michael T. Jones michael.jo...@gmail.com -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this g

Re: [go-nuts] Repository of self-contained functions

2017-08-07 Thread Michael Jones
scribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Michael T. Jones michael.jo...@gmail.com -- You received this message because you are subscribed to the Goo

Re: [go-nuts] Re: How to optimize as with -O2 from Gcc? (50x speedup)

2017-08-05 Thread Michael Jones
Great. Hope it helps. I had a typo in power 0 (which is never called. Change the return to 1.0. On Sat, Aug 5, 2017 at 6:50 PM wrote: > Thanks, Michael. > > I've created a tiny project with those files here: > https://github.com/cpmech/go-fast-math-experiments > > The out

Re: [go-nuts] Re: How to optimize as with -O2 from Gcc? (50x speedup)

2017-08-04 Thread Michael Jones
o solution with a jump table and autogenerated functions might work for you. Michael P.S. Early on, I urged the Go designers to provide an exponentiation operator just for this situation...where the compiler could translate a static x**18 into optimal code. IBM did it in 1959 so it seemed that mayb

Re: [go-nuts] Computations with complex numbers may be slow if care is not taken

2017-08-03 Thread Michael Jones
t; 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 https://groups.google.com/d/

Re: [go-nuts] Re: GO Vs D

2017-08-02 Thread Michael Jones
t;right" I mean the simplest tool which gets you the right result. > > Fortunately, that doesn't happen all the time, but sometimes Go doesn't > give gou that simplest tool, and in that case I severely regret I wasn't > trusted enough so that they let me choose tha

Re: [go-nuts] Re: GO Vs D

2017-08-02 Thread Michael Jones
clare and use types, >>>>>> references, functions, methods, slices, arrays, foreach, and all the >>>>>> common >>>>>> stuff between both languages. >>>>>> >>>>>> Honestly, no offense intended. >>>>

Re: [go-nuts] Re: No Allman-Style, No go!

2017-07-29 Thread Michael Jones
ng the core Go >> developers about the gofmt choices for brace placements. The reasons >> are 1) it doesn't matter, gofmt just has to make a choice; 2) the >> choice works well with lexical semicolon insertion. >> >> Ian >> > -- > You received this mes

Re: [go-nuts] Re: No Allman-Style, No go!

2017-07-27 Thread Michael Jones
-nuts" group. >>> To unsubscribe from this topic, visit https://groups.google.com/d/to >>> pic/golang-nuts/rzLzp_Z74ik/unsubscribe. >>> To unsubscribe from this group and all its topics, send an email to >>> golang-nuts+unsubscr...@googlegroups.com. >>> For

Re: [go-nuts] Math on Huge (2GB) numbers in GoLang

2017-07-25 Thread Michael Jones
; thanks! > > -- > 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 https:

Re: [go-nuts] Re: Bitwise operators applications

2017-07-22 Thread Michael Jones
d when I should use/learn them? >> >> Thanks >> Alex >> > -- > 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 golan

Re: [go-nuts] Math on Huge (2GB) numbers in GoLang

2017-07-22 Thread Michael Jones
gt; You are welcome to try it. >> >> > >> >> > Regards, >> >> > Rémy. >> >> >> >> The most annoying issue you might encounter is that if your 2GB >> >> strings are numbers printed in base 10, the math/big will not be

Re: [go-nuts] Re: Going places

2017-07-21 Thread Michael Jones
, July 21, 2017 at 12:03:03 PM UTC-4, Michael Jones wrote: >> >> Maybe not news, and certainly not big news, but I just filed a patent >> that uses Go source code to illustrate logical methods claimed in the >> invention. So if it was not already the case, Go has now been u

[go-nuts] Going places

2017-07-21 Thread Michael Jones
Maybe not news, and certainly not big news, but I just filed a patent that uses Go source code to illustrate logical methods claimed in the invention. So if it was not already the case, Go has now been used in patent filings. -- Michael T. Jones michael.jo...@gmail.com -- You received this

Re: [go-nuts] Anyone using https://github.com/knq/xo?

2017-07-20 Thread Michael Banzon
I see your point. I might checkout going bare database/sql on one of my smaller projects to get a feel for it - now that I’ve been thinking about it it strikes me that I’ve actually never tried database stuff on Go without gorp/gorm etc. -- Michael Banzon https://michaelbanzon.com/ >

Re: [go-nuts] Anyone using https://github.com/knq/xo?

2017-07-19 Thread Michael Banzon
Just out of curiosity - why switch away from gorm?? We've just switched from gorp to gorm - with great success. The main reason I could find for going (pun intended) is to have one less dependency. -- Michael Banzon https://michaelbanzon.com/ Den 20. jul. 2017 kl. 06.04 skrev Nate

Re: [go-nuts] Re: An idea about motivating the community

2017-07-18 Thread Michael Banzon
@mbanzon e.g.) - that could be a nice "passive" way to make community leaderboard (or maybe just a score lookup). -- Michael Banzon https://michaelbanzon.com/ Den 18. jul. 2017 kl. 09.02 skrev ondrej.li...@gmail.com: That's quite a lot of work! I personally hate gamificat

Re: [go-nuts] Re: Can't explain Golang benchmarks

2017-07-17 Thread Michael Jones
0.726s >>>>> $ >>>>> >>>>> Peter >>>>> >>>>> On Sunday, July 16, 2017 at 10:20:21 AM UTC-4, Zohaib Sibte Hassan >>>>> wrote: >>>>>> >>>>>> I have been spending my day over im

[go-nuts] [ANN] Paperboy - an email campaign CLI (like Hugo for email newsletters and announcements)

2017-07-11 Thread Michael
'm looking for user feedback as well as contributors excited about its vision & future. Thanks! -Michael -- 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,

[go-nuts] The log library

2017-07-11 Thread Michael Soulier
Am I the only one who finds the log standard library a tad lacking? I expected to be able to set log verbosity, like logger.Debug, logger.Info, etc, and I expected thread safety. I noticed today that my log output from multiple loggers in different goroutines was interlaced. I wonder if I'm usi

[go-nuts] SSL HTTP proxy support

2017-07-11 Thread Michael Soulier
I am trying to test a proxy that is expecting an SSL handshake immediately, even if the client is going to use an SSL CONNECT method. The problem is that my Golang and Python test code both seem to have the same flaw. They connect to the proxy in the clear, and then issue a CONNECT, but the prox

Re: [go-nuts] Re: gofmt question

2017-06-30 Thread Michael Jones
some way to get it to not remove my extra lines? >> >> Thanks, >> >> Glenn >> > -- > 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, se

[go-nuts] Re: Problems refactoring call to Open()

2017-06-21 Thread Michael Dwyer
Peter, with your responses I was able to figure out the cause of the error. I created a function that calls defer. I did it as a function as I put some trace code in along with the Close(). >From that I concluded you were correct. I went ahead and reworked the rest of the code, which was my inte

[go-nuts] Re: Problems refactoring call to Open()

2017-06-21 Thread Michael Dwyer
Peter, Thank you for helping me out. I'm going to be busy the next couple of days. When I have some free time I will go over your replies. Seems that my analysis was inadequate. I do appreciate the points you made. Gives me an opportunity to try some different code tweaks. When I am able I will

[go-nuts] Re: Problems refactoring call to Open()

2017-06-21 Thread Michael Dwyer
Peter, Thank you for your input regarding my question. In an effort to clear up any confusion or ambiguity regarding the problem I am running into, I will post the code for what is working and the code that is not working. The following block of code works, a valid file is passed to the execut

[go-nuts] Problems refactoring call to Open()

2017-06-21 Thread Michael Dwyer
Hello to all, My first time posting questions here, so please bear with me, I'm willing to learn. I have a simple piece of code, which opens a file, reads the contents and counts the number of lines in the file. What I am attempting to do is to refactor the code. The error occurs when I read t

Re: [go-nuts] Set LD_LIBRARY_PATH while executing go test

2017-06-19 Thread Michael Hudson-Doyle
On 16 June 2017 at 17:46, wrote: > Hello, > > Is there a way to set the LD_LIBRARY_PATH while executing go test command? > > My version is "go version go1.5.1 linux/amd64" > No. Why do you want to? You can set the rpath of the generated executable with something like "go test -ldflags='-r $foo'

Re: [go-nuts] Writing an ethernet frame into the OS

2017-06-17 Thread Michael Jones
16314/linux-tcp-stack-packet-injection On Sat, Jun 17, 2017 at 9:33 AM, wrote: > Hi Michael > > I do suspect my bad English made my request unclear, my apologies for > that. Let me clarify. > > basically I don"t care of the payload of the frame. What I am trying to do > is to

Re: [go-nuts] Writing an ethernet frame into the OS

2017-06-17 Thread Michael Jones
FYI: https://godoc.org/github.com/google/gopacket On Sat, Jun 17, 2017 at 9:00 AM, Michael Jones wrote: > Sorry to say that I don't have a direct answer for you. > > However, I happen to be doing some packet analysis at the moment--focused > first in the analysis part--and have

Re: [go-nuts] Writing an ethernet frame into the OS

2017-06-17 Thread Michael Jones
https://github.com/google/gopacket though there may be more to choose from as a starting point. Maybe this will meet your needs. Maybe someone else can advise both is us! Michael On Sat, Jun 17, 2017 at 8:32 AM, wrote: > Hi All > > anyone knows how to write an ethernet frame into a device

Re: [go-nuts] Go 1.9 Beta 1 is released

2017-06-15 Thread Michael Banzon
> To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Michael Banzon https://michaelbanzon.com/ -- You received this message because you are subs

Re: [go-nuts] Re: [golang-dev] Go 1.9 Beta 1 is released

2017-06-14 Thread Michael Hudson-Doyle
Do you use -skip_tests though? Because I'd be surprised if you don't and don't hit that issue. But maybe I'm missing something. On 15 June 2017 at 13:35, Brad Fitzpatrick wrote: > We use golang.org/x/build/cmd/release > > > On Wed, Jun 14, 2017 at 6:32 PM, Mich

[go-nuts] Re: [golang-dev] Go 1.9 Beta 1 is released

2017-06-14 Thread Michael Hudson-Doyle
I'm curious how you built your binaries with https://github.com/golang/go/issues/20284 still open. Do you not run the tests on the built binaries before packing them up? On 15 June 2017 at 10:15, Chris Broadfoot wrote: > Hello gophers, > > We have just released go1.9beta1, a beta version of Go 1

Re: [go-nuts] Gomobile

2017-06-13 Thread Michael Banzon
Groups "golang-nuts" group. >>> >> To unsubscribe from this group and stop receiving emails from it, send an >>> email to golang-nuts...@googlegroups.com. >> >> >>> For more options, visit https://groups.google.com/d/optout. >>> >>

Re: [go-nuts] Gomobile

2017-06-13 Thread Michael Banzon
e 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 https://groups.google.com/d/optout. > -- Michael Banzon https:

[go-nuts] interesting potential go event talk

2017-06-11 Thread Michael Jones
ot; https://arxiv.org/pdf/1612.07841.pdf -- Michael T. Jones michael.jo...@gmail.com -- 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

Re: [go-nuts] Re: Guidance on exposing functionality

2017-06-06 Thread Michael Jones
o unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Michael T. Jones michael.jo...@gmail.com -- You received this message because you are subscribed t

Re: [go-nuts] CGO & Plugins

2017-06-02 Thread Michael Brown
Do you have any references on the stability of the current plugin system that I can use for reference? I'm building a system now that I contemplate using with some plugins and I'd like to know up front the challenges. On Friday, June 2, 2017 at 7:39:40 PM UTC-5, Ian Lance Taylor wrote: > > On Fr

Re: [go-nuts] Re: How to parallelize text/template long running functions?

2017-06-02 Thread Michael Brown
Your solution is certainly nice. It has the same limitation that mine does. I'll take a look, I like how you don't have to modify the funcmap in yours. -- Michael On Friday, June 2, 2017 at 4:41:14 AM UTC-5, rog wrote: > > On 2 June 2017 at 10:35, roger peppe > > wrote:

[go-nuts] text/template revisit trailing commas for range over map

2017-06-01 Thread Michael Brown
I see previous threads with a solution to eliminating trailing commas for text/template output when ranging over an array. (ie. the {{if $index}},{{end}} trick) I have the exact same problem when ranging over a map and it doesn't appear that the array fix will work. any thoughts? -- Mi

[go-nuts] Re: did anyone tried // template exec ?

2017-05-31 Thread Michael Brown
-templates/ (which I haven't yet examined). -- Michael On Tuesday, May 30, 2017 at 3:09:35 AM UTC-5, mhh...@gmail.com wrote: > > hi, > > wonder, if anyone, > - tried to make an implementation of template that works in // ? > - was it successful ? > - useful for perf ? > &g

Re: [go-nuts] Re: How to parallelize text/template long running functions?

2017-05-31 Thread Michael Brown
Great! If I had checked this thread when you posted this I (probably) could have saved myself 3 hours of work. I got it working with a two-pass scheme using text/template and some channels. Here is what I came up with: package main import ( "text/template" "bytes" "context"

Re: [go-nuts] Windows - syscall.GetProcessTimes() always shows 0 values.

2017-05-31 Thread kevin . michael . lloyd
Steven, your example is really helpful! I didn't know Windows had a lower time interval for internal timers, so that's good to know, thanks for getting me unstuck! Thought I was losing my mind. Is there a reason to pass the PID around instead of using the pseudo handle? I'm new to the core Wind

[go-nuts] Windows - syscall.GetProcessTimes() always shows 0 values.

2017-05-31 Thread kevin . michael . lloyd
I am trying to query the process statistics against the runtime in Windows so I can monitor it's utilisation. First, I get the process handle for the runtime: // GetCurrentProcess will return our process handle with the appropriate information. func GetCurrentProcess() (syscall.Handle, error) {

Re: [go-nuts] Re: How to parallelize text/template long running functions?

2017-05-31 Thread Michael Brown
And after I re-read your answer, I realize that I probably just restated very badly what you wrote, Egon. Thanks! I'll have some time this evening to hack on it. On Wednesday, May 31, 2017 at 2:51:51 PM UTC-5, Michael Brown wrote: > > Ah! I think I have the kernel of a usable idea h

<    2   3   4   5   6   7   8   9   10   >