[go-nuts] To make AI with Golang

2018-08-17 Thread John
Hi I am trying to make an game of Connect Five using Golang, I have already made an player versus player mode so I am making the player versus computer mode. At first I attempted to use if functions that detect when they need to block the player but it can't win without placing blocks

[go-nuts] [Code Review] Web App Boilerplate using the stdlib.

2018-08-08 Thread John Unland
Howdy folks, made this project to see if you can really use the stdlib to write a web app server without using a framework and also give me a base for future web apps that I feel like building with a set of generic docs. It almost to the state where I can take it and actually start using it

Re: [go-nuts] Go Install

2018-08-06 Thread John More
You are right, using the -i option did the deed. Thanks John On Tue, Aug 7, 2018 at 1:26 AM, Ian Lance Taylor wrote: > On Mon, Aug 6, 2018 at 7:09 PM, John More wrote: > > following the tutorial at https://golang.org/doc/code.html the go > install I > > am confused by the f

[go-nuts] Go Install

2018-08-06 Thread John More
under the pkg directory. Am I missing some compiler flags or an environment variable? Appreciate the help John -- 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, sen

[go-nuts] Re: I am confused.

2018-05-27 Thread John
ng things up. > > On Sunday, 27 May 2018 11:37:48 UTC+8, John wrote: >> >> Well I guess I would just use the Go playground so it is easier. >> >> >> On Saturday, May 26, 2018 at 8:27:59 PM UTC-7, John wrote: >>> >>> I tried to find the termin

[go-nuts] Re: I am confused.

2018-05-26 Thread John
Well I guess I would just use the Go playground so it is easier. On Saturday, May 26, 2018 at 8:27:59 PM UTC-7, John wrote: > > I tried to find the terminal button but did not find it. And also I don't > know but does the welcome screen say welcome using or something. Because I >

[go-nuts] Re: I am confused.

2018-05-26 Thread John
t. You can, > too. Persistence! There are lots of free, .pdf books online that teach > you Go programming. > > (notice my liberal use of the word 'Go') > > > On Wednesday, May 23, 2018 at 11:04:38 PM UTC-6, John wrote: >> >> Yes I did, what do you mean by top pa

[go-nuts] Future of Frozen Packages

2018-05-25 Thread John Unland
So I'm going thru some of the Github issues, I'm wondering what will become of these packages that are frozen in the stdlib: - log/syslog (Implements logging facilities for *nix operating systems) - net/smtp (Implements RFC 5321) - net/rpc (Implements remote procedure calls for Go-Only

[go-nuts] Re: I am confused.

2018-05-23 Thread John
ot;go > build yourfilename.go". > > Did you get Go installed? > > On Tuesday, May 22, 2018 at 10:41:07 PM UTC-6, John wrote: >> >> Is the visual code studio an compiler or a what, I tried it myself but I >> isn't able to program. >> >> >> -- You

[go-nuts] Re: I am confused.

2018-05-22 Thread John
Is the visual code studio an compiler or a what, I tried it myself but I isn't able to program. -- 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-nuts] I am confused.

2018-05-20 Thread John
Hello I am just a random person in this small planet of the creation that happens to think that artificial intelligence will take over the world of jobs in the future. With that point of I started to learn Java Script on Khan Academy but didn't quite make that much progress. So I think that

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

2018-05-18 Thread john . macrae . fox
at 11:06:46 AM UTC-4, John Fox wrote: > > Drilling down farther for the heck of it > > os/exec/exec.go > func (c *Cmd) Output() ([]byte, error) { if c.Stdout != nil { > > return nil, errors.New("exec: Stdout already set") > > } > > var stdout b

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

2018-05-18 Thread john . macrae . fox
After talking with a coworker it seems that "grep" returns a \n after its output. That was the bugger keeping my initial efforts from working. On Friday, May 18, 2018 at 11:06:46 AM UTC-4, John Fox wrote: > > Drilling down farther for the heck of it > > os/exec/exec.go

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

2018-05-18 Thread john . macrae . fox
Drilling down farther for the heck of it os/exec/exec.go func (c *Cmd) Output() ([]byte, error) { if c.Stdout != nil { return nil, errors.New("exec: Stdout already set") } var stdout bytes.Buffer c.Stdout = captureErr := c.Stderr == nil if captureErr { c.Stderr = {N: 32 << 10} }

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

2018-05-18 Thread john . macrae . fox
Thank you both for the quick responses. I looked in to https://github.com/lovoo/ipmi_exporter yesterday and saw the TrimSpace used as well, but I am still not sure what is adding the '\n' to the commands's Output(). Tamas, I will have to look into thebuff IO, even if I am not using this for

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

2018-05-17 Thread john . macrae . fox
Hello all. I am creating a custom exporter for FreeNAS https://github.com/Maelos/freenas_exporter and am stuck on the conversion of the string of bytes provided by the commands output to a float. Here is my code, what I have tried, and my results: What I have tried and results (commented so

Re: [go-nuts] Go license and fitness for purpose

2018-05-15 Thread John McKown
would like to go crosstime to the U.S. equivalent in "Probability Broach" by L. Neil Smith. > > MSB > > -- > No man is more pitiful than the one who looks to the shadows for warmth. > > -- We all have skeletons in our closet. Mine are so old, they have ost

Re: [go-nuts] proposal: embed static assets

2018-05-03 Thread John Unland
On Wednesday, May 2, 2018 at 3:12:58 PM UTC-5, Manlio Perillo wrote: > Yes, but many developers may need a "debug" mode or more options available > to where to store the assets. > Why should a "standard" tool or API be restricted to where to store assets? > I can kinda see where your going

Re: [go-nuts] proposal: embed static assets

2018-05-01 Thread John Unland
thing like... *go build -ldflags="-X main.Asset1=./SomeFileA main.Asset2=./SomeFileB"*Think this would take a little more effort to integrate in but it's a interesting concept thou. On Monday, April 30, 2018 at 2:57:12 PM UTC-5, Ian Lance Taylor wrote: > > On Mon, Apr 30, 201

Re: [go-nuts] proposal: embed static assets

2018-04-30 Thread John Unland
UTC-5, Ian Lance Taylor wrote: > > On Mon, Apr 30, 2018 at 7:03 AM, John Unland <unlan...@gmail.com > > wrote: > > > > Hey everyone I've been mulling over this for a couple of days, thought I > > would get some feed back on the possibility of shooting a proposal

[go-nuts] proposal: embed static assets

2018-04-30 Thread John Unland
Hey everyone I've been mulling over this for a couple of days, thought I would get some feed back on the possibility of shooting a proposal to have embedding static assets into the stdlib. From the looks of it this wouldn't break Go 1 compatibility thou I'm wondering if it would be better to

Re: [go-nuts] net/http: get does not work

2018-04-20 Thread John Shahid
Is any of the following set `HTTPS_PROXY', `HTTP_PROXY' ? The DefaultTransport pays attention to those env vars to decide whether to use a proxy or not. If that's not the case, what is the error that you're getting ? cheers, -js yyq2...@gmail.com writes: > http.Get doesn't work with default

[go-nuts] Re: Need help to figure out how to convert user.Current() to string.

2018-03-05 Thread john . mizell
;root" || testuser == "someuser" { fmt.Println("You are currently logged in as:" + testuser +":") }else { fmt.Println("You need to be root or someuser to run this program") os.Exit(1) } On Monday, Mar

[go-nuts] Need help to figure out how to convert user.Current() to string.

2018-03-05 Thread john . mizell
Here is the the program package main import ( "fmt" "log" "os/user" ) func main() { username, err := user.Current() if err != nil { log.Fatal(err) } if username != "root" || username != "someuser" { fmt.Println("You are

[go-nuts] Re: Proposal: return if any not nil

2018-02-18 Thread John Roth
On Sunday, February 18, 2018 at 12:47:09 AM UTC-7, Krzysztof Kowalczyk wrote: > > Even simpler: > > r, err := try os.Open("blah.text") > > Similar to Swift and what Rust used to have. > > "try foo()" means: if "foo()" returns an error, return the error to the > caller. > If function returns

[go-nuts] Re: gomobile bind -target=ios ld: framework not found OpenGL

2018-01-30 Thread John Teasdale
> > On Saturday, January 27, 2018 at 3:12:23 PM UTC+1, John Teasdale wrote: >> >> I'm having a problem building an ios framework that depends on a OpenGL >> library. >> >> if this is the file: >> >> package gfx >> >> >> import ( &g

[go-nuts] best package for serial port io access in golang?

2018-01-28 Thread John Moore
hanging forever waiting to receive data that will never arrive? John -- 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] [ANN] Microservices/function as a service platform writte in Go

2017-12-27 Thread johnny-john
Hi guys! I just thought about dropping this here: https://github.com/1backend/1backend It is a microservices/faas/serverless platform that (hopes to) enable you to write applications in multiple languages as easy as doing it in one language/monolithic application. Take care -- You received

Re: [go-nuts] Re: Go Compiler How Work?!

2017-12-13 Thread John McKown
uage to be compiled. Like using the English language to explain the English language. I don't want to discourage you, but it seems to me that you need to get some basic compiler concepts down. For me, it was (and still is) a struggle. -- I have a theory that it's impossible to prove anyt

Re: [go-nuts] Best way to explicit say sominthing which covers the Go programming languge is not related with Go or Go community

2017-12-12 Thread John McKown
ding in any jurisdiction. If you want, you might do a search on "legal disclaimer" to get more ideas. > > Best, > > Norbert > > -- I have a theory that it's impossible to prove anything, but I can't prove it. Maranatha! <>< John McKown -- You r

RE: [go-nuts] question about GO and realtime GC interest by the user community

2017-11-26 Thread John Souvestre
Hi David. https://en.wikipedia.org/wiki/Real-time_computing#Firm Unfortunately I haven't seen much interest either. John John Souvestre - New Orleans LA From: golang-nuts@googlegroups.com [mailto:golang-nuts@googlegroups.com] On Behalf Of David Beberman Sent: 2017 November 22

RE: [go-nuts] question about GO and realtime GC interest by the user community

2017-11-09 Thread John Souvestre
firm real-time would be a good first step? John John Souvestre - New Orleans LA From: golang-nuts@googlegroups.com [mailto:golang-nuts@googlegroups.com] On Behalf Of David Beberman Sent: 2017 November 09, Thu 05:59 To: golang-nuts Subject: [go-nuts] question about GO and realtime GC

RE: [go-nuts] Converting uint to string

2017-11-05 Thread John Souvestre
You could also just the integers themselves as keys. John John Souvestre - New Orleans LA From: golang-nuts@googlegroups.com [mailto:golang-nuts@googlegroups.com] On Behalf Of Chun Zhang Sent: 2017 November 05, Sun 15:09 To: golang-nuts Subject: [go-nuts] Converting uint to string

RE: [go-nuts] Re: concurrency programing about go

2017-11-04 Thread John Souvestre
If you were to do that, yes. I guess it come to: How do you define “done” in your program? Waitgroup defines it as when all the goroutines which it counted are closed. John John Souvestre - New Orleans LA From: golang-nuts@googlegroups.com [mailto:golang-nuts@googlegroups.com

RE: [go-nuts] time.AddDate() odd behavior

2017-10-31 Thread John Souvestre
its his situation? The current method and a new method with a slightly different name, ex: AddEOM? John John Souvestre - New Orleans LA From: golang-nuts@googlegroups.com [mailto:golang-nuts@googlegroups.com] On Behalf Of Alex Dvoretskiy Sent: 2017 October 31, Tue 16:20 To: golang-n

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

2017-10-29 Thread John Souvestre
Uniform fairness was my goal, not ordering the selection. A hard real-time program would require the deterministic latency this would provide. I agree that any program requiring an ordered selection probably is broken. Perhaps another method could be used to detect such code. John

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

2017-10-29 Thread John Souvestre
ive as long as the goroutine does, so it has to be at the very top. Dynamic sounds like the better way. How do you think the run-time overhead would compare to the current random method? John John Souvestre - New Orleans LA From: golang-nuts@googlegroups.com [mailto:golang-n

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

2017-10-29 Thread John Souvestre
-robined? An individual select statement across all goroutines? A select statement and goroutine pair? A select statement + function instance pair? An individual select in a goroutine. John John Souvestre - New Orleans LA From: golang-nuts@googlegroups.com [mailto:golang-nuts

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

2017-10-28 Thread John Souvestre
)? John John Souvestre - New Orleans LA -- 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 opti

RE: [go-nuts] will the following code always print two 1?

2017-10-22 Thread John Souvestre
Hi Dave. Oops! I read it as "pad". My bad. John John Souvestre - New Orleans LA From: golang-nuts@googlegroups.com [mailto:golang-nuts@googlegroups.com] On Behalf Of Dave Cheney Sent: 2017 October 22, Sun 22:27 To: golang-nuts Subject: Re: [go-nuts] will the foll

RE: [go-nuts] will the following code always print two 1?

2017-10-22 Thread John Souvestre
words, Go's atomics are full memory barriers/fences which guarantee sequential consistency for any number of goroutines. John John Souvestre - New Orleans LA -Original Message- From: golang-nuts@googlegroups.com [mailto:golang-nuts@googlegroups.com] On Behalf Of Dave Cheney Sent: 2017 O

[go-nuts] Re: Help with viper please.

2017-10-19 Thread John Episcopo
you can see that I'm doing wrong? I'm running the app using the 'go run main.go' command too. My config is as follows: { "EMAIL_IDENTITY": "*", "EMAIL_USERNAME": "*", "EMAIL_PASSWORD": "*", "EMAIL_HOST": "**

[go-nuts] Re: go on Windows 10 from the bash shell (and the cmd shell)

2017-10-17 Thread john
just a heads up regarding Ubuntu Bash Shell on Windows10: if you open the Ubuntu Bash Shell and type the command: "*lsb_release -a" *you might discover it is running Ubuntu 14.04 you might want to run an upgrade to Ubuntu 16.04 which is now available. See the following for installation

[go-nuts] Re: Ternary operator needed in Go

2017-10-16 Thread john howitt
No! no! please no! -- runs screaming from the room On Wednesday, December 23, 2009 at 5:09:24 PM UTC, abiosoft wrote: > > I think there is need for ternary operator for neater codes. > > if a > b { >c = a > else { > c = b > } > > can easily be written as > > c = a > b ? a : b > > I think

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

2017-10-13 Thread john lynch
"I'm sure it'll reveal an error in my thinking" To avoid importing math I had changed my upper limit early on but I 'd misread it. The critical line in error should be changed to: for j := 0; j < int(math.Pow(2.0, float64(len(set)))/2.0); j++ { -- You received this message because you are

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

2017-10-13 Thread john lynch
Thanks Michael, I appreciate the information. Because I'm trying to learn Go, I'm more interested in what should cause it to stop running part way through the process without generating an error. It just seems bizarre to me but I'm sure it'll reveal an error in my thinking. -- You

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

2017-10-13 Thread john lynch
Thanks Ian, You are correct (although the post I submitted yesterday had the clobbering lines incorrect - that was one of my experiments to see if rebuilding the 3D slice differently would overcome the problem). The code below is my original. Yes, the function works by building fresh

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

2017-10-13 Thread john lynch
The top 3 lines of the function I posted yesterday were not correct but I couldn't edit them. Unfortunately, in my experiments with the slice I had changed them and didn't realize before posting. The correct version is: package main import ( "fmt" "time") func get_partitions(set

[go-nuts] Newbie Implementation of Set Partitions Generator

2017-10-13 Thread john lynch
I've been implementing some Python code in Go to learn the language. In Python this will generate a Set Partition. The Go equivalent follows. The Go runs fine for list element sizes 2 and 3 (which means the recursion is running properly). Also 4 but at 5 and above it generates the intial

RE: [go-nuts] Latest Tiobe Ranking

2017-10-09 Thread John Souvestre
You could mention to your colleagues that if they scroll down on the Tiobe page they will find Go listed in their Hall of Fame as the "Programming Language of the Year" for 2009 and 2016. I second Ian's recommendation of Redmonk and IEEE - if you must reference any such lists. John

Re: [go-nuts] Latest Tiobe Ranking

2017-10-09 Thread John Roth
On Monday, October 9, 2017 at 12:13:43 PM UTC-6, snmed wrote: > > Hi Ian > > Thank you for your elaboration. I won't choose a language because of such > index, but I'm trying to convince my colleagues of the benefits of go and > therefore no matter how funny such indexes are, it isn't useful

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

2017-10-05 Thread John Souvestre
Any easy way to make their defers run? John John Souvestre - New Orleans LA -Original Message- From: golang-nuts@googlegroups.com [mailto:golang-nuts@googlegroups.com] On Behalf Of Dave Cheney Sent: 2017 October 05, Thu 23:36 To: golang-nuts Subject: [go-nuts] Are all running

RE: [go-nuts] Memory Safety

2017-10-04 Thread John Souvestre
Thanks for the info. I believe that Windows generally requires that user opt-in (set in the exe) for DEP and ASLR. However, it seems that Go exe's for Windows don't have the DEP opt-in set. Worth opening some issues? John John Souvestre - New Orleans LA -Original Message- From

[go-nuts] Memory Safety

2017-10-04 Thread John Souvestre
Does Go provide Data Execution Prevention (DEP) and Address space layout randomization (ASLR)? If not, any reasons why or any plans to implement? Thanks, John John Souvestre - New Orleans LA -- You received this message because you are subscribed to the Google Groups

[go-nuts] Re: Defer with anon func and func literal

2017-09-28 Thread John Jeffery
If you want an anonymous defer function to have the same effect as a separate function, ensure that they accept the same parameters. To continue your example, this third version produces the same result as your first version, but uses an anonymous defer function.

[go-nuts] Re: Choosing a framework

2017-09-15 Thread john howitt
One of my reasons for moving to Go was to escape from frameworks which in my opinion are a fashion statement not a technology. Slightly mangling the saying about Regular expressions "I have a problem learning Go", "OK use a framework", "Now i have two problems", "You can also use and ORM", "Ah

RE: [go-nuts] Re: Running Go binary on a 56 core VM

2017-09-04 Thread John Souvestre
There are lots of variables, but even with a directly connected SSD drive (SATA bus, in my case) I can pretty well top out the file i/o, just doing sequential file reads, with about 3 – 4 CPUs. So increasing GOMAXPROCS (in this case) doesn’t help. John John Souvestre - New Orleans LA

RE: [go-nuts] golang gc stop the world how to stop cpu busy goroutine?

2017-09-04 Thread John Souvestre
then it can be a problem. An easy solution is to insert a call to runtime.Gosched() every so often. I believe that there is an ongoing discussion about a way for Go to plan ahead and be able to handle even these cases, but it’s something for the future. John John Souvestre - New Orleans LA

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

2017-08-18 Thread John Souvestre
as "passing on a channel the address of a data structure or an object ...". So I don't think that I'm alone in thinking that the focus of the proverb is to use channels to share memory, rather than any other way. And I find this somewhat wrong and certainly confusing. Am I really alo

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

2017-08-18 Thread John Souvestre
P.S. And if you want to reduce it to a one-liner, how about this? Communicating is better than sharing sometimes, and vice versa. John John Souvestre - New Orleans LA From: John Souvestre [mailto:j...@souvestre.com] Sent: 2017 August 18, Fri 14:03 To: 'golang-nuts

RE: [go-nuts] multiply and divide

2017-08-18 Thread John Souvestre
irst might be a better approach. John 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 from

RE: [go-nuts] Is this bad concurrency?

2017-08-18 Thread John Souvestre
You might want to consider using a sync.WaitGroup. It’s for such situations. John John Souvestre - New Orleans LA From: golang-nuts@googlegroups.com [mailto:golang-nuts@googlegroups.com] On Behalf Of bill.war...@talentinc.com Sent: 2017 August 18, Fri 13:01 To: golang-nuts Subject

Re: [go-nuts] Broken Link in Go Assembly Guide

2017-08-07 Thread John McKown
us hit) ​ -- If you look around the poker table & don't see an obvious sucker, it's you. Maranatha! <>< John McKown -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails fro

RE: [go-nuts] Re: Goroutines chan to get data at specific time

2017-08-07 Thread John Souvestre
I’m not sure exactly what you are trying to accomplish, but I suspect that this article would help you. https://blog.golang.org/go-concurrency-patterns-timing-out-and John John Souvestre - New Orleans LA From: golang-nuts@googlegroups.com [mailto:golang-nuts@googlegroups.com

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

2017-07-31 Thread John McKown
es in existence. > > Ian > > ​​ -- Veni, Vidi, VISA: I came, I saw, I did a little shopping. Maranatha! <>< John McKown -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this gr

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

2017-07-27 Thread John Souvestre
Cognitive dissonance J John John Souvestre - New Orleans LA From: golang-nuts@googlegroups.com [mailto:golang-nuts@googlegroups.com] On Behalf Of Michael Jones Sent: 2017 July 27, Thu 15:38 To: Rob Pike Cc: Ecstatic Coder; golang-nuts Subject: Re: [go-nuts] Re: No Allman-Style

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

2017-07-27 Thread John Souvestre
. John John Souvestre - New Orleans LA From: golang-nuts@googlegroups.com [mailto:golang-nuts@googlegroups.com] On Behalf Of ecstatic.co...@gmail.com Sent: 2017 July 27, Thu 03:33 To: golang-nuts Cc: yout...@z505.com Subject: Re: [go-nuts] Re: No Allman-Style, No go! I don't know

RE: [go-nuts] Understanding least significant byte operation

2017-07-23 Thread John Souvestre
Hi Jan. Hmmm… Here’s what I see. 0001 0001 0010 0010 0011 0001 0100 0100 0101 0001 … 1100 0100 1101 0001 1110 0010 0001 That looks like the least significant set bit to me. John

RE: [go-nuts] Understanding least significant byte operation

2017-07-23 Thread John Souvestre
I believe that the result is the least significant bit, not byte. John John Souvestre - New Orleans LA From: golang-nuts@googlegroups.com [mailto:golang-nuts@googlegroups.com] On Behalf Of Pablo Rozas Larraondo Sent: 2017 July 23, Sun 07:51 To: golang-nuts Subject: [go-nuts

RE: [go-nuts] does Go memory model guarantee this program always prints 1?

2017-07-14 Thread John Souvestre
Ian confirm this in https://groups.google.com/forum/#!msg/golang-nuts/7EnEhM3U7B8/nKCZ17yAtZwJ John John Souvestre - New Orleans LA -Original Message- From: golang-nuts@googlegroups.com [mailto:golang-nuts@googlegroups.com] On Behalf Of Marvin Renich Sent: 2017 July 10, Mon 12:09 To: golang-nuts S

[go-nuts] [No Qns] My love towards Golang

2017-06-25 Thread John Kenedy
a newbie in programming, please help to check my website http://www.scrappermin.com and give your feedback. Thank you Regards John Kenedy -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving e

[go-nuts] Re: How to include unused functions into binary

2017-06-21 Thread John Kenedy
es because it was never refer in any part of the code 3. the method.IsValid() returns true, it seem to be able to know it is a correct method, but I am not sure the mechanism Thank you for your help On Wednesday, June 21, 2017 at 8:44:55 PM UTC+8, John Kenedy wrote: > > I read somewhere tha

[go-nuts] go1.8 and json.NewDecoder(resp.Body)

2017-05-23 Thread John Shahid
Hi all, Some background, we (CloudFoundry) noticed some weird behavior after upgrading from go1.7.4 to go1.8.1. An http client that was polling 260 servers started showing more timeouts after the upgrade. After investigating the issue we realized that the following pattern combined with tls

Re: [go-nuts] Re: Semicolons in Go

2017-04-24 Thread john . deighan
Ian, thank you for the thoughtful reply. I realized that my last post might have sounded like I was criticizing your post and that definitely wasn't the intention. My apologies. On Monday, April 24, 2017 at 10:48:25 AM UTC-4, Ian Davis wrote: > > With respect, you are tilting at windmills. You

Re: [go-nuts] Re: Semicolons in Go

2017-04-24 Thread John Deighan
I won't. I'm done with this thread. On Mon, Apr 24, 2017 at 10:52 AM David Peacock wrote: > Please don't feed this troll. > > On Mon, Apr 24, 2017 at 10:42 AM, wrote: > >> One of the things that I learned early in life is to recognize B.S.

Re: [go-nuts] Re: Semicolons in Go

2017-04-24 Thread john . deighan
One of the things that I learned early in life is to recognize B.S. when I see it. My B.S. flag went up first when I read where someone claimed that "artifacts" are bad and detract from the readability of code. A compact and well-defined artifact, like the semicolon, makes code *more* readable

Re: [go-nuts] Re: Semicolons in Go

2017-04-20 Thread John McKown
y original language was FORTRAN which was punched onto 80 column card stock. The above did waste cards, but made program changes very easy. In today's world of "full screen" editors which can reformat and even refactor code upon demand, it is a relic of a bygone era. -- "Irrigatio

[go-nuts] Re: Semicolons in Go

2017-04-20 Thread john . deighan
If I can't format my programs the way I want, and I much prefer putting operators at the beginning of continuation lines for reasons mentioned on this page, and "Perl Best Practices", I simply won't use the language - at least not without implementing a pre-processor. Automatic semicolon

RE: [go-nuts] Writing a non-blocking thread-safe buffer

2017-04-07 Thread John Souvestre
implemented this with channels first. If you need more throughput then I’d think mutexes next, and atomics as a last resort. Perhaps using an array as a circular buffer with read and write accesses synchronized by mutexes would be a good next step. John John Souvestre - New Orleans

Re: [go-nuts] getfileattributesex the system cannot find the file specified

2017-03-21 Thread John McKown
m/#!topic/golang-nuts/8Tz76XQ02qs I'm not a Windows person. ​ -- "Irrigation of the land with seawater desalinated by fusion power is ancient. It's called 'rain'." -- Michael McClary, in alt.fusion Maranatha! <>< John McKown -- You received this message because you are subsc

Re: [go-nuts] Expression evaluation with side effects

2017-03-21 Thread John McKown
blob/ > 4107202e2b8f814f4c63a61b043cfb36a3798de3/gcc/testsuite/gcc. > c-torture/execute/pr58943.c > [1]: https://play.golang.org/p/fGibPFuejQ > > -- > > -j > > -- "Irrigation of the land with seawater desalinated by fusion power is ancient. It's called 'rain'." --

Re: [go-nuts] RSQL, a lighweight clone of Microsoft SQL Server written in Go

2017-03-13 Thread John McKown
on documentation seems to be silent about $ go > {get,build,install}, but it does mention installing some binaries. I > consider it unsafe to use binary programs of non trusted origin. > > -- > > -j > > -- "Irrigation of the land with seawater desalinated by fusi

RE: [go-nuts] Re: How can I implement a TCP server using a model which similar to epoll (or kqueue, IOCP) rather than just using goroutine for each client?

2017-03-06 Thread John Souvestre
use epoll, but not sharing the memory. It sounds like it might be a nice option for the future, however. John John Souvestre - New Orleans LA From: golang-nuts@googlegroups.com [mailto:golang-nuts@googlegroups.com] On Behalf Of Nick Rio Sent: 2017 March 06, Mon 02:26 To: golang-nuts

Re: [go-nuts] Handle gziped request bodies

2017-03-04 Thread John Kemp
AFAIK, there is (still?) no out-of-the-box support for gzip. See, for example, https://github.com/NYTimes/gziphandler - johnk > On Mar 4, 2017, at 5:11 PM, Kevin Conway wrote: > > I'm running a go 1.7 HTTP server. One of my clients is applying gzip to the > POST

RE: [go-nuts] Re: [Newbie] Why this code is so slow?

2017-02-25 Thread John Souvestre
Changing just the mod operation to int32 made the whole program run about 2.5 times faster for me. Wow! I had no idea that there would be that much difference. John John Souvestre - New Orleans LA -Original Message- From: golang-nuts@googlegroups.com [mailto:golang-nuts

RE: [go-nuts] Debugging long GC pauses

2017-02-23 Thread John Souvestre
Or… Call runtime.Gosched(). I seem to recall benchmarking it a while back and found that it was very efficient. John John Souvestre - New Orleans LA From: golang-nuts@googlegroups.com [mailto:golang-nuts@googlegroups.com] On Behalf Of Jesper Louis Andersen Sent: 2017 February 23

RE: [go-nuts] Re: Trying to understand := and named return values

2017-02-22 Thread John Souvestre
) int Power(base, exponent int) int Yes, I think that using named parameters (both calling and return) is good in general. Yes, there are cases (such as Add) where it doesn’t help, but it also doesn’t hurt. John John Souvestre - New Orleans LA From: Thomas Bushnell, BSG

RE: [go-nuts] Re: Trying to understand := and named return values

2017-02-22 Thread John Souvestre
variables are new. I’ve taken to never using := in any multiple variable situation to avoid the problem. This is something that a ver or lint utility can check for now, too. J John John Souvestre - New Orleans LA From: golang-nuts@googlegroups.com [mailto:golang-nuts

RE: [go-nuts] Re: Trying to understand := and named return values

2017-02-21 Thread John Souvestre
Ø Again, named return values are fine and cause no problems, but naked returns should never have been part of the language (at first they seem useful and cool, but in the end, they cause more problems than they solve). I agree. Perhaps in Go 2? J John John Souvestre - New Orleans

RE: [go-nuts] Re: Trying to understand := and named return values

2017-02-21 Thread John Souvestre
to use the function, right? So how can the disparity be justified? Oh, and the longer the function is the more benefit there is to using them. John John Souvestre - New Orleans LA -Original Message- From: golang-nuts@googlegroups.com [mailto:golang-nuts@googlegroups.com] On Behalf

[go-nuts] Cannot decrypt rsa.EncryptOAEP messages with openssl

2017-02-21 Thread John-Paul Bader
padding or I'm doing something else wrong. Either way, any clues would be appreciated. Kind regards, ~ John -- 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] Given a `[]string` key list and a `map[string]interface{}`, can we find the value?

2017-02-12 Thread John Feminella
Agreed on the panic, and yours handles that better. (Although I hope it's obvious that this was just a toy example and not the real thing!) best,~ jf--John Feminella@jxxfhttp://jxf.me On Sun, Feb 12, 2017 3:23 PM, Paul Borman bor...@google.com wrote: Your code can panic. Take a look

Re: [go-nuts] Given a `[]string` key list and a `map[string]interface{}`, can we find the value?

2017-02-12 Thread John Feminella
Thanks. I wound up doing this with a recursive traversal: https://play.golang.org/p/k9iy3sHOZ9 best,~ jf--John Feminella@jxxfhttp://jxf.me On Sun, Feb 12, 2017 3:05 PM, Paul Borman bor...@google.com wrote: Take a look at the reflect package, or if you know that the only internal maps

RE: [go-nuts] 17.3 trace.exe malware flag on win32

2017-02-06 Thread John Souvestre
I don’t see any problem when I scan it with BitDefender. I’m running the Internet Security 2016 version, build 20.0.29.1550. How about you? John John Souvestre - New Orleans LA From: golang-nuts@googlegroups.com [mailto:golang-nuts@googlegroups.com] On Behalf Of xiiop...@gmail.com

RE: [go-nuts] Is Go too strict for nesting function callings?

2017-01-31 Thread John Souvestre
Interesting! Thanks. John John Souvestre - New Orleans LA From: golang-nuts@googlegroups.com [mailto:golang-nuts@googlegroups.com] On Behalf Of Jonas August Sent: 2017 January 30, Mon 04:25 To: golang-nuts Subject: Re: [go-nuts] Is Go too strict for nesting function callings

[go-nuts] GOBIN Question

2017-01-29 Thread John Souvestre
see described in all three of these: https://golang.org/cmd/go/ https://golang.org/doc/install/source https://github.com/golang/go/wiki/InstallTroubleshooting Is this a bug or am I missing something? John John Souvestre - New Orleans LA -- You received this message becaus

RE: [go-nuts] Re: I know finalizers are not promised to be called, but is it too not promised?

2017-01-28 Thread John Souvestre
olang-dev/DMiUkpS1uyQ John John Souvestre - New Orleans LA -- 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.co

RE: [go-nuts] Re: I know finalizers are not promised to be called, but is it too not promised?

2017-01-28 Thread John Souvestre
> If finalizers were indeed totally useless, it would obviously be totally useless to implement support for them. If someone described a few cases where finalizers were useful perhaps it would help understand them. John John Souvestre - New Orleans LA -- You received this mess

RE: [go-nuts] Cross compile GOOS

2017-01-26 Thread John Souvestre
amp; go build The () prevents adding a space to the end of the environment variable. John John Souvestre - New Orleans LA -Original Message- From: golang-nuts@googlegroups.com [mailto:golang-nuts@googlegroups.com] On Behalf Of Jakob Borg Sent: 2017 January 26, Thu 13:13 To: golang-nuts Sub

Re: [go-nuts] Re: Idiomatic way to reference custom error codes

2017-01-25 Thread John Beckett
Thanks Pierre, that looks like a simple and quite clean implementation. Although it's easier to use an iota for the numbering, does that open up any issues with keeping the documentation up to date? I know it's easier to program and extend, but it's also less obvious when codes change. Is there

<    1   2   3   >