Re: [go-nuts] Re: GO lang not able to decrypt the xor-base64 text

2019-01-21 Thread Michael Jones
i%len(key)]) >> } >> >> return output} >> >> Can someone help me to resolve it. >> > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop recei

Re: [go-nuts] Transferring host's go-mod-download cache into docker container

2019-01-14 Thread Michael Poindexter
Just as a data point, at my work we're using the `go mod vendor` / `go build -mod=vendor` route for exactly the reasons you mention, and it works quite well. On Mon, Jan 14, 2019 at 8:49 AM wrote: > On Saturday, January 12, 2019 at 5:57:19 PM UTC-8, Sam Whited wrote: >> >> On Fri, Jan 11, 2019,

Re: [go-nuts] Re: What are the reasonable reasons to use pointers?

2019-01-07 Thread Michael Jones
I am honored to have shared a bug with Rob Pike. On Mon, Jan 7, 2019 at 3:36 PM Rob Pike wrote: > I think every Fortran programmer has a version of that story. Mine > involved the number 3. > > -rob > > > On Mon, Jan 7, 2019 at 8:01 AM Michael Jones > wrote: > >

Re: [go-nuts] Re: What are the reasonable reasons to use pointers?

2019-01-06 Thread Michael Jones
;> email to golang-nuts+unsubscr...@googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. >> > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop r

Re: [go-nuts] Adding &&= and ||= operators for working with bools

2019-01-05 Thread Michael Jones
g, and C got along fine without it. Your regularity argument >> carries some weight but it still seems worth it. >> >> If you disagree, file a proposal explaining the argument. >> >> -rob >> >> >> On Sun, Jan 6, 2019 at 3:28 PM Michael Jones >> wr

Re: [go-nuts] Adding &&= and ||= operators for working with bools

2019-01-05 Thread Michael Jones
not Rob but rather Ian... (6/22/2012) https://mail.google.com/mail/u/0/#label/go%2Fgolang-nuts/FMfcgxwBTsjnkHgqhvQfLqrXsJdHZRxC On Sat, Jan 5, 2019 at 7:52 PM Michael Jones wrote: > I brought it up early on, wanting AND (&) and OR (|) as well as AND-ASSIGN > (&=)

Re: [go-nuts] Adding &&= and ||= operators for working with bools

2019-01-05 Thread Michael Jones
> Caleb > > -- > 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,

Re: [go-nuts] Re: C++ 11 to Golang convertor

2019-01-05 Thread Michael Jones
gt; Google Groups "golang-nuts" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/golang-nuts/aPHLrfwQh3A/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> golang-nuts+unsubscr...@goo

Re: [go-nuts] Re: Are defered function calls executed?

2019-01-04 Thread Michael Jones
f the Go team: *Intellectuals solve problems, geniuses prevent them. * —Albert Einstein Michael On Fri, Jan 4, 2019 at 1:56 AM wrote: > > > if err not equal nil ,defer not push stack yet,so it wont execute. > As below it will execute > > func main() { > >

Re: [go-nuts] Re: if/switch statements as expressions

2019-01-03 Thread Michael Jones
t; >> of the whole block, thus highlighting the value. > >> > >> What if the spec defines that if all if-else blocks / all switch case > >> clauses contain only single expression, they would be expressions > rather > >> than statements. How would

Re: [go-nuts] What are the reasonable reasons to use pointers?

2019-01-01 Thread Michael Jones
. >> > > You've never met a FORTRAN 66 programmer. :-) > > -- > 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] What are the reasonable reasons to use pointers?

2019-01-01 Thread Michael Jones
For more options, visit https://groups.google.com/d/optout. > > > -- > 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+unsubsc

Re: [go-nuts] Trouble with exiting a for loop that contains bufio.NewScanner.Scan()

2018-12-30 Thread Michael Jones
send >> an email to golang-nuts...@googlegroups.com. >> > > For more options, visit https://groups.google.com/d/optout. >> > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this grou

Re: [go-nuts] regexp: is there a way to match single byte ?

2018-12-30 Thread Michael Jones
I woke up at 2am here bugged about my former reply. Here's version 2... https://play.golang.org/p/lky_W20CKnM ...should have sent this the first time. Sorry! On Sat, Dec 29, 2018 at 9:09 PM Kurtis Rader wrote: > On Sat, Dec 29, 2018 at 8:47 PM Michael Jones > wrote: > >> Nev

Re: [go-nuts] regexp: is there a way to match single byte ?

2018-12-29 Thread Michael Jones
oops! typo: https://play.golang.org/p/VYo9GTz63Hc On Sat, Dec 29, 2018 at 8:47 PM Michael Jones wrote: > Never use a cannon as a fly swatter. > A regular expression is heavy artillery. > A for-loop will do just fine: smaller, simpler, faster, land ess > dependencies: > > https

Re: [go-nuts] regexp: is there a way to match single byte ?

2018-12-29 Thread Michael Jones
ou 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/o

Re: [go-nuts] if/switch statements as expressions

2018-12-21 Thread Michael Jones
s.utexas.edu/users/EWD/transcriptions/EWD02xx/EWD230.html > > (no comment!) > > Jamie > > On Friday, December 21, 2018 at 7:57:07 AM UTC, Tom Mitchell wrote: >> >> >> On Thu, Dec 20, 2018 at 2:48 PM Michael Jones >> wrote: >> >>> interesting! i

Re: [go-nuts] if/switch statements as expressions

2018-12-20 Thread Michael Jones
interesting! i wish algol 68 had had its chance. On Thu, Dec 20, 2018 at 2:40 PM Bakul Shah wrote: > On Thu, 20 Dec 2018 13:13:04 -0800 Michael Jones > wrote: > > > > There is an inelegant but highly effective "hack" in GCC/G++ in thuas > area. > > Since

Re: [go-nuts] if/switch statements as expressions

2018-12-20 Thread Michael Jones
s 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. >

Re: [go-nuts] Channels: selecting the last element

2018-12-18 Thread Michael Jones
Println(r) >>>> } >>>> } >>>> } >>>> >>>> many thanks >>>> Chris >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "gola

Re: [go-nuts] Pure functions and Go2

2018-12-14 Thread Michael Jones
as it was for Diogenes to find an honest man. On Fri, Dec 14, 2018 at 1:28 PM Bakul Shah wrote: > > > > On Dec 14, 2018, at 1:17 PM, Michael Jones > wrote: > > > > I don't actually prefer marking a func as pure. best if it is a > discovered attribute during compilation. > > Yo

Re: [go-nuts] Pure functions and Go2

2018-12-14 Thread Michael Jones
I don't actually prefer marking a func as pure. best if it is a discovered attribute during compilation. Not sure what you mean about complexity. The compiler would not be obligated. On Fri, Dec 14, 2018 at 1:12 PM Bakul Shah wrote: > On Dec 14, 2018, at 12:50 PM, Michael Jones >

[go-nuts] Pure functions and Go2

2018-12-14 Thread Michael Jones
es brings up deeper issues and is harder. -- *Michael T. jonesmichael.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+un

Re: [go-nuts] Homoiconic metaprogramming in Go

2018-12-14 Thread Michael Jones
gt; "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. jonesmichael.jo...@gmail.com * -- You r

Re: [go-nuts] Plan9 reborn as a guest OS atop of Golang runtime

2018-12-14 Thread Michael Jones
uts@googlegroups.com> wrote: > Michael, > > Thanks for mentioning Biscuit. I saw the paper a while back and have been > toying with the idea of combining it it with the GoKrazy userland ( > https://gokrazy.org/) to produce a small, pure-Go OS of some kind. > > > Best

Re: [go-nuts] Plan9 reborn as a guest OS atop of Golang runtime

2018-12-10 Thread Michael Jones
oops. left out a key link: https://github.com/mit-pdos/biscuit On Mon, Dec 10, 2018 at 1:23 PM Michael Jones wrote: > Read about Biscuit: > https://pdos.csail.mit.edu/papers/biscuit.pdf > > https://www.usenix.org/sites/default/files/conference/protected-files/osdi18_slide

Re: [go-nuts] Plan9 reborn as a guest OS atop of Golang runtime

2018-12-10 Thread Michael Jones
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. jonesmichael.jo...@gmail.com * -- You received this message because you are subscribed to the Google Gr

Re: [go-nuts] Strange behaviour of left shift

2018-12-05 Thread Michael Jones
google.com/d/optout. >>> >>> >>> >> -- >> 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 go

Re: [go-nuts] [ANN] fixed point math library

2018-12-01 Thread Michael Jones
ed stuttering is gone. This is a subtle motivation to look for designs/refactorings that are heavy on methods on package types. (well...I think it is. there may not be consensus on that) Michael On Sat, Dec 1, 2018 at 6:52 AM Robert Engels wrote: > I disagree with a few of those, b

Re: [go-nuts] [ANN] fixed point math library

2018-12-01 Thread Michael Jones
ryone always started with that. You deserve it as does your code. Thank you! Michael On Sat, Dec 1, 2018 at 6:17 AM Michael Jones wrote: > I can see why you're feeling that. My sense is that what causes flare-ups > is when people (universally rather than just here) get the feeling that th

Re: [go-nuts] [ANN] fixed point math library

2018-12-01 Thread Michael Jones
bed 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 T. jonesmichael.

Re: [go-nuts] [ANN] fixed point math library

2018-12-01 Thread Michael Jones
roup 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. jonesmichael.jo...@gmail.com * -- You received this message because you are subscribed to the Google Grou

Re: [go-nuts] Is there a way to clear a map similar to slice = slice[:0]?

2018-11-28 Thread Michael Jones
uot; 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. >> > -- > You received this message beca

Re: [go-nuts] gosnip: run small snippets of Go code from the command line

2018-11-27 Thread Michael Ellis
This is convenient and useful. Thanks! On Tuesday, November 27, 2018 at 8:52:26 AM UTC-5, Ben Hoyt wrote: > > Good idea -- done! The goimports way is a bit more advanced and featureful > too. > > I love how all these little tools are basically just wrappers around a > library package which does

Re: [go-nuts] switch fallthrough as continue

2018-11-27 Thread Michael Jones
s.google.com/d/optout. > > -- > 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] Trivial(?) Go v2 proposal: Named goroutines and/or named nested funcs

2018-11-25 Thread Michael Jones
also show up > in graphvis in the same manner) via comments might be best. A > post-processing tool to catch these comments and fix up the graphviz .dot > output is already showing promise in achieving what I am after. > > -Russ > > On Sun, 25 Nov 2018 at 20:13, Michael Jo

Re: [go-nuts] Trivial(?) Go v2 proposal: Named goroutines and/or named nested funcs

2018-11-25 Thread Michael Jones
> > >> > > > >> > > > On Fri, 23 Nov 2018 at 22:36, wrote: >> > > > >> > > > > >> > > > > >> > > > > Debugging. For example, if I have a deadlocked request I might >> > > > > wa

Re: [go-nuts] Trivial(?) Go v2 proposal: Named goroutines and/or named nested funcs

2018-11-25 Thread Michael Jones
nd find where exactly it's stuck. > > > > > > > > > > Right now this is complicated, you have to examine stacks of > > > > > all > > > > > goroutines to find the correct one. > > > > > > > > > > On Friday, Novembe

Re: [go-nuts] Re: GoAWK: an AWK interpreter written in Go

2018-11-22 Thread Michael Jones
o 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. jonesmichael.j

Re: [go-nuts] Trivial(?) Go v2 proposal: Named goroutines and/or named nested funcs

2018-11-22 Thread Michael Jones
ng meaningful other than "func$1" for a > goroutine launched within "func". > > -Russ > > -- > 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] Inconsistency in the casting int to byte

2018-11-18 Thread Michael Jones
> > -- > > -j > > -- > 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. >

Re: [go-nuts] [RFC] Dynamically instrumentation Go binaries

2018-11-15 Thread Michael Jones
; email to golang-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receivi

[go-nuts] [ANN] Dynatrace introduces custom services for Go applications

2018-11-14 Thread michael . obi48
Dynatrace is proud to announce custom services for Go applications. Associate services with arbitrary functions in any Go application — as always, without source code modifications. https://www.dynatrace.com/news/blog/introducing-custom-services-for-go-applications/ -- You received this

SV: [go-nuts] New Modules and git clones

2018-11-14 Thread Michael Banzon
I have used the ”v0.0.0” as the version number – it seem to work. /M Fra: Russel Winder Sendt: 14. november 2018 12:44 Til: GoLang_Nuts Emne: [go-nuts] New Modules and git clones I am giving the module system in Go 1.11.2 a whirl

Re: [go-nuts] Surprising number of threads

2018-11-01 Thread Michael MacInnis
would just like to know if there is some way to predict the number of threads a Go program will create. 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, send

[go-nuts] Surprising number of threads

2018-11-01 Thread Michael MacInnis
0, tv_nsec: 1}, nil) } } If I run this program with GOMAXPROCS=1, I see 4 threads (as reported by top). I was expecting that number to be closer to 2. I'm compiling with go 1.11.1 on linux/amd64. Michael. -- You received this message because you are subscribed to the Google Groups &q

Re: [go-nuts] Re: Go 2 Proposal Comments

2018-10-28 Thread Michael Jones
l to golang-nuts+unsubscr...@googlegroups.com. > > For more options, visit https://groups.google.com/d/optout. > > -- > 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] Q16.16 fixed point numbers in go

2018-10-25 Thread Michael Jones
Guilty. ;-) It's also more complicated because of the desire for saturating arithmetic. On Thu, Oct 25, 2018 at 9:57 AM Scott Cotton wrote: > > > On Wednesday, 24 October 2018 18:52:27 UTC+2, Michael Jones wrote: >> >> https://en.wikipedia.org/wiki/Q_(number_format) says

Re: [go-nuts] Go 2 Proposal Comments

2018-10-24 Thread Michael Jones
hanges. If they have to happen (regrettably) then maybe it is good to make them in such a way that bon confusion between new and old was possible, or at least to the degree that is practical. On Wed, Oct 24, 2018 at 2:04 PM Ian Lance Taylor wrote: > On Wed, Oct 24, 2018 at 10:05 AM, Michael Jones

Re: [go-nuts] Go 2 Proposal Comments

2018-10-24 Thread Michael Jones
-would rewrite fool assurances be enough to feel compatible in the way sought by the OP? Michael On Wed, Oct 24, 2018 at 9:40 AM robert engels wrote: > Also, I wouldn’t discount the ‘binary runs with the latest JVM’ doesn’t > apply to Go. > > As I pointed out in an earlier email, I th

Re: [go-nuts] Q16.16 fixed point numbers in go

2018-10-24 Thread Michael Jones
ceived 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/opto

Re: [go-nuts] While implement ssh client using golang, record keyboard input

2018-10-22 Thread Michael Jones
e [[A on the screen. > > I've searched the internet a lot, and tried to read some pty/tty articles, > but not get a clue. Anyone knows how to record command history to it, while > make the key handle properly at the moment? (like the real SSH client we > use) > > -- > You re

Re: [go-nuts] Go language should become an ANSI and ISO standard.

2018-10-10 Thread Michael Jones
gnificant competing implementations. > > At this stage of the lifetime of the programming language, I think > that the disadvantages outweigh the benefits. > > Ian > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" gro

Re: [go-nuts] Traverse directory without infinite loops while following symlinks

2018-10-09 Thread Michael Jones
ving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- *Michael T. jonesmichael.jo...@gmail.com * -- You received this message because you are subscribed to the Google Groups "golang-nu

Re: [go-nuts] Traverse directory without infinite loops while following symlinks

2018-10-08 Thread Michael Jones
hannels >> (such as >> > in Occam) the flavor is very different. >> >> FWIW Occam does have channels; they're just not first class values. >> >> Perhaps you're thinking of Erlang, which I think was inspired more >> directly by the paper? >> > -

Re: [go-nuts] Traverse directory without infinite loops while following symlinks

2018-10-07 Thread Michael Jones
these comments help. > > > > ...Marvin > > > I'm a newbie at Go. These comments help me a lot. I appreciate all the > time these comments took. > > But it will take a little longer for me to grok Michael Jones' parallel > code. > > Thanks. > &g

Re: [go-nuts] Traverse directory without infinite loops while following symlinks

2018-10-07 Thread Michael Jones
%) in 1.1883 seconds celeste:since mtj$ ...changes in my last minute, each invisible to me. On Sun, Oct 7, 2018 at 9:10 AM Michael Jones wrote: > impressively patient response! > > choosing a serial vs concurrent approach matters too in terms of > performance. > > celeste:tour4

Re: [go-nuts] Traverse directory without infinite loops while following symlinks

2018-10-07 Thread Michael Jones
this: > > for _, d := range dirList { > var str = strconv.FormatInt(d.subtotal, 10) > str = AddCommas(str) > var _, err = fmt.Fprintf(w, "%s size is %s", d.name, str) > if err != nil { > // print a message to os.Stderr

Re: [go-nuts] pytogo 1.2 has shipped

2018-10-07 Thread Michael Jones
on before it is translated, substantially reducing the among of > hand-fixing required in the generated Go code. > > While this is still not a perfect, fire-and-forget translator - and never > will be - the ratio of output quality over LOC is, I feel, nothing short of > astonish

Re: [go-nuts] Build breaks for me since yesterday

2018-10-05 Thread Michael Jones
Thanks, I'll check it out. On Fri, Oct 5, 2018 at 10:00 AM Ian Lance Taylor wrote: > On Fri, Oct 5, 2018 at 9:57 AM, Michael Jones > wrote: > > > > Works for the last five or six years but now... > > > > --- FAIL: TestLldbPython (0.23s) > > runtime

[go-nuts] Build breaks for me since yesterday

2018-10-05 Thread Michael Jones
locally (MacBook)? -- *Michael T. jonesmichael.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

[go-nuts] Re: Announcing pytogo. a crude but surprisingly effective Python to Go translator

2018-10-03 Thread Michael Ellis
the process of porting other pieces of the app by providing a good first draft. On Wednesday, October 3, 2018 at 2:57:49 PM UTC-4, Ingo Oeser wrote: > > Hi Michael, > > while I understand that you are having fun with the pytogo translator, > please note that a base36 encoder is already

[go-nuts] Re: Rule-swarm attacks can outdo deep reasoning

2018-10-03 Thread Michael Ellis
Nice writeup. Thanks. Based on today's xkcd , I think Randall Munroe must have read it, too ;-) On Tuesday, October 2, 2018 at 9:21:08 AM UTC-4, Eric Raymond wrote: > > Is promised in the thread on pytogo, I have blogged on the general topic > of rule-swarm attacks in

Re: [go-nuts] What's the difference between local variables and fields when it comes to ignoring errors?

2018-10-02 Thread Michael Jones
mails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- *Michael T. jonesmichael.jo...@gmail.com * -- You received this message because you are subscribed to the Google Groups "golang-nuts"

[go-nuts] Re: Announcing pytogo. a crude but surprisingly effective Python to Go translator

2018-10-01 Thread Michael Ellis
Thanks, Eric. v1.1 runs to completion on my utils.py test case. I'm finding that a good work flow involves commenting out all the functions in the output and fixing them up one at a time. Here's what pytogo did for me on my base36encode function and what I had to do manually: *python:* def

[go-nuts] Re: Announcing pytogo. a crude but surprisingly effective Python to Go translator

2018-09-30 Thread Michael Ellis
Thanks for sharing this (and I'm honored to make your virtual acquaintance, Eric). I'd love to make use of pytogo my own project. I've got a little over 20K lines that still need translation. So I cloned it and gave it a quick try. It seems to be choking on doc strings of the form. """

Re: [go-nuts] Re: Updating a struct from goroutines

2018-09-27 Thread Michael Ellis
; > func run() { > for { > select { > case msg := <-updateChan: > // push msg to the PUB socket > case <-done: > // you have to send signal to this from main() > return > } > } > } > > Isn't this what you are trying to do ? > > > > On

Re: [go-nuts] Updating a struct from goroutines

2018-09-25 Thread Michael Ellis
Thanks, Justin. The struct in the real app is a flat collection of int, string, float64 and bool. I appreciate the reminder, On Tuesday, September 25, 2018 at 4:13:25 PM UTC-4, Justin Israel wrote: > > > > On Wed, Sep 26, 2018, 6:38 AM > wrote: > >> Hi, new gopher here. >> I considered asking

[go-nuts] Updating a struct from goroutines

2018-09-25 Thread michael . f . ellis
Hi, new gopher here. I considered asking this on SO, but they (rightly, IMO) discourage "Is this a good way to do it?" questions. Hope that's ok here. By way of background, I'm porting a largish industrial control application from Python to Go. The Python version uses multiple processes

Re: [go-nuts] Re: Generic alternatives: new basic types?

2018-09-23 Thread Michael Jones
} > >>> > >>> What I am suggesting is merely that `==` desugars to a use of this > >>> interface. > >>> > >>> An important litmus test for any operator we consider for overloading > is > >>> whether we can come up with

Re: [go-nuts] Re: Generic alternatives: new basic types?

2018-09-22 Thread Michael Jones
Boolean? What is a > string that is not an array? Etc. A whole new chapter opens, for better or > for worse. > > Lucio. > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and

Re: [go-nuts] Re: Generic alternatives: new basic types?

2018-09-21 Thread Michael Jones
understanding somewhat. > > -- > 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 m

Re: [go-nuts] Re: I am not in favor of generics.

2018-09-20 Thread Michael Jones
with *responsa sunt, novi in via*. Not a personal attack. Trying to inform these statements and encourage review and consideration. Michael On Thu, Sep 20, 2018 at 5:04 AM David Collier-Brown wrote: > Right now, this looks like the third draft of an academic project. It > suffers badly by

Re: [go-nuts] why does go reverse the order of name and type? "i int" vs "int i"

2018-09-20 Thread Michael Jones
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. > -- *Michael T.

Re: [go-nuts] Re: I am not in favor of generics.

2018-09-18 Thread Michael Jones
)` > > > > -- > > Wojciech S. Czarnecki > > << ^oo^ >> OHIR-RIPE > > > > -- > > You received this message because you are subscribed to the Google > Groups "golang-nuts" group. > > To unsubscribe from this group and stop receiving e

Re: [go-nuts] Re: I am not in favor of generics.

2018-09-18 Thread Michael Jones
right the first time they use them, just as they do now with Go maps. Michael On Tue, Sep 18, 2018 at 11:53 AM wrote: > Eric, > > This is the sort of situation where a tool could help. > > If the tool detects that you've written a generic type/function but only > then ins

[go-nuts] A test for generics

2018-09-17 Thread Michael Jones
nd reduces the instances of magical compiler support in favor of a new orthogonal feature, perhaps making Go 2 conceptually smaller, which seems a good goal. -- *Michael T. jonesmichael.jo...@gmail.com * -- You received this message because you are subscribed to the Google Groups "gol

Re: [go-nuts] Why is go starting multiple child process?

2018-09-16 Thread Michael Banzon
On Ubuntu you should be able to make it fancy and use htop with colouring of threads ;-) / Michael Den 17. sep. 2018 kl. 06.56 skrev Patrick Smith mailto:pat42sm...@gmail.com>>: I don't know about Ubuntu 16.04. On my Arch Linux system, 'pstree -V' shows "pstree (PSmisc) 23.1"

Re: [go-nuts] Re: Perf : Multithreaded goroutines files I/O

2018-09-16 Thread Michael Jones
gt;>> Thanks for reading :-) >>> >> -- > 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] Generics - Min challenge

2018-09-12 Thread Michael Jones
unlike what can be done in Go today. > > 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-nuts+unsubscr...@googlegroups.com. &g

Re: [go-nuts] Why GO do not have implemetion of algorithm ECIES

2018-09-11 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 htt

Re: [go-nuts] Re: Link: Getting specific about generics

2018-09-10 Thread Michael Jones
d 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. jonesmichael.jo...@gmail.com * -- You received this message because you are subscribed to the Google Groups &qu

Re: [go-nuts] Operator Overloading Implies Generics?

2018-09-09 Thread Michael Jones
can enter MakeCircle(...) but on save, that will become MakeCircleThreePoints(...). Easy for developer, clear for all future readers. No change to the language. Think of it as "continuous govet rewrites" On Sun, Sep 9, 2018 at 9:54 PM Lucio wrote: > > > On Sunday, 9 September

Re: [go-nuts] Operator Overloading Implies Generics?

2018-09-09 Thread Michael Jones
visit https://groups.google.com/d/optout. > > -- > 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. &g

Re: [go-nuts] Re: Opening brace can't be placed on a separate line killing the language for me

2018-09-08 Thread Michael Jones
odsh97, More than a million Go programmers agree with you that format and readability is everything. We have a standard tool, go fmt, to ensure it. All Go code conforms. You'll like the uniformity. Michael On Sat, Sep 8, 2018 at 7:50 AM alanfo wrote: > I've never been able to understand

Re: [go-nuts] Why can't we use unicode? [Go2 Generics]

2018-09-07 Thread Michael Jones
their keyboards. Rookies on their (win) >>> machines >>> have circa 1000 glyphs in basic system fonts. (On any linux distro have >>> over >>> 3000). >>> >>> Why on earth keep on ascii? >>> >>> IPA: ʅ ʧ ʭ (0x285, 0x2a7, 0x2ad)

Re: [go-nuts] Re: Go’s runtime vs virtual machine

2018-09-05 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. jonesmichael.jo...@gmail.com * -- You received this me

Re: [go-nuts] Re: Go’s runtime vs virtual machine

2018-09-04 Thread Michael Jones
gt;> >>>>> Does anyone can recommend a good place to learn more about this? I’d >>>>> like to better understand how Go’s garbage collector, goroutine scheduling >>>>> and stack management are handled by the runtime and how it is different >>>>&

Re: [go-nuts] Re: What am I missing here? FYI, I'm completely new to golang xD

2018-09-04 Thread Michael Jones
"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. jonesmichael.jo...@gmail.com * -- You received thi

Re: [go-nuts] Re: Are Go floats smarter?

2018-09-02 Thread Michael Jones
a correcting logic behind the scenes? >> > -- > 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...@googleg

Re: [go-nuts] Are Go floats smarter?

2018-09-02 Thread Michael Jones
oint arithmetic. > https://github.com/python/cpython/blob/master/Lib/_pydecimal.py#L509 > > > Manlio > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emai

Re: [go-nuts] Re: Are Go floats smarter?

2018-08-31 Thread Michael Jones
eiving emails from it, send an >> email to golang-nuts+unsubscr...@googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. >> > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group.

Re: [go-nuts] Character Replacement/Algorithm for Replacement

2018-08-30 Thread Michael Jones
Always true. But hard to believe that a map could be faster. The array will be on the stack. On Thu, Aug 30, 2018 at 9:31 AM Marvin Renich wrote: > * Michael Jones [180830 11:44]: > > The task to "translate a string through a table" is common. It is a > single > &

Re: [go-nuts] Character Replacement/Algorithm for Replacement

2018-08-30 Thread Michael Jones
with -1 meaning "don't replace". This is really just a > special-case optimized map. If 0 is not a valid replacement byte, use > [256]byte with 0 meaning "don't replace". > > ...Marvin > > -- > You received this message because you are subscribed to the Google

Re: [go-nuts] Re: function's argument default value

2018-08-24 Thread Michael Jones
on overloading in general, and it doesn't have >>> >> default parameter values either. >>> >> >>> >> Ian >>> > >>> > -- >>> > You received this message because you are subscribed to the Google >>> Groups

Re: [go-nuts] Re: Ternary ... again

2018-08-15 Thread Michael Jones
this view, especially if it is true that each of these readers-of-code comes to understand it faster and more correctly. This is the real pain that needs to be managed. It makes tricky, dense, APL-ish cleverness seem awful and verbose but simple code rather nice. Thoughts to consider, Michael On

Re: [go-nuts] Re: Is there a way to clear a map similar to slice = slice[:0]?

2018-08-12 Thread Michael Jones
to >> clear the actual values would be great. >> > -- *Michael T. jonesmichael.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, s

Re: [go-nuts] Code completion w/o GOPATH

2018-08-10 Thread Michael Banzon
> I wonder how in a world of go modules without a GOPATH, > code completion within editors is supposed to be implemented? Wouldn't it work like it does now - looking in your imported packages? There might be a "problem" with auto-importing and/or browsing packages available for import. For me

[go-nuts] Re: Best practices for testing?

2018-08-03 Thread Michael Gross
rn concrete > types, as described in > https://github.com/golang/go/wiki/CodeReviewComments#interfaces > <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fgolang%2Fgo%2Fwiki%2FCodeReviewComments%23interfaces=D=1=AFQjCNGc4nPX9iBqAd6W2BPzcz80Tu-mLQ>. > > As long as it impleme

Re: [go-nuts] Re: Having difficulty converting []byte to float

2018-05-18 Thread Michael Jones
x160 >> */ >> >> >> //ATTEMPT3 >> /* >> sob := []byte{50, 10} >> bits := binary.LittleEndian.Uint64(sob) >> fmt.Printf("\n\n%T %v\n\n", bits, bits) >> >> >> flty := math

<    1   2   3   4   5   6   7   8   9   >