Re: [go-nuts] Re: Using modules with go test ./...

2018-09-23 Thread Scott Cotton
Hi @thepudds, Good to hear and glad to have followed up so as to have introduced in the conversation how to address the concern in that post. Thanks for the great summary of how to give effective feedback about about modules and the general context. Best, Scott On Saturday, 22 September 201

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

2018-09-23 Thread Louki Sumirniy
The thing that people are concerned about is creating a construct that enables you to write legal but confusing and unclear code. Let's say we steal triple equals ===, and then use it to mean some kind of special assignment operation. Or we make = become an addition operator infix for a string-

[go-nuts] Re: Serve HTML/CSS/JS as a desktop app?

2018-09-23 Thread Louki Sumirniy
There is a lotta stuff that can be done with html and css now without javascript, but for this kind of application I think that the display side (the webkit/blink engine) has to have a websocket to the server backend to allow pushing updates to the DOM, at least refreshes. But this is not a hug

[go-nuts] Re: Serve HTML/CSS/JS as a desktop app?

2018-09-23 Thread Louki Sumirniy
https://github.com/avelino/awesome-go#gui This is probably the most definitive On Sunday, 23 September 2018 05:46:30 UTC+2, ati...@mail.ccsf.edu wrote: > > Hello, > > Is there a good active library that can serve HTML, CSS, and JS in a > desktop app without CGO? Something like electron for Go. I

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

2018-09-23 Thread Robert Engels
I’m sorry. I did not mean to offend anyone. It came out wrong and I apologize. Sent from my iPhone > On Sep 23, 2018, at 5:01 AM, Louki Sumirniy > wrote: > > The thing that people are concerned about is creating a construct that > enables you to write legal but confusing and unclear code. Le

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

2018-09-23 Thread Lucio De Re
I take exception to that statement, your notion of "understood languages much better" doesn't parse in light of the fact that you are here, debating the merits of Java in the primary Go forum instead of writing wonderful code using the language you respect so much. That's either hypocritical or m

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

2018-09-23 Thread Robert Engels
I take offense to that. I apologized for my statement that was worded more harshly than intended. But if you think that Go is beyond criticism just because of ??? Anything??? Go is a GREAT tool for many classes of applications, but it is certainly not appropriate for all use cases. Maybe with op

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

2018-09-23 Thread Lucio De Re
On 9/23/18, Robert Engels wrote: > I take offense to that. I apologized for my statement that was worded more > harshly than intended. But if you think that Go is beyond criticism just > because of ??? Anything??? Go is a GREAT tool for many classes of > applications, but it is certainly not appro

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

2018-09-23 Thread Robert Engels
I wasn’t suggesting that Go should resemble Java. I was just trying to point out that many of the current issues under debate for Go2 have been resolved quite well in other languages, and looking to them for direction should not be out of bounds just because they are not Go. That’s a little shor

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

2018-09-23 Thread Ian Denhardt
Quoting Robert Engels (2018-09-23 13:38:04) > I wasn’t suggesting that Go should resemble Java. I was just trying to point > out that many of the current issues under debate for Go2 have been resolved > quite well in other languages, and looking to them for direction should not > be out of bound

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

2018-09-23 Thread Michael Jones
You did not offend me. This is a place for earnest ideas and all are welcome. Your comment is not yet persuasive, but it might become so. Still thinking. I first heard from James Gosling about Java when Java was Oak. He seemed proud to say, "C++ has objects. Well, I'll show them, I'll make *everyt

[go-nuts] cannot take the address of method()

2018-09-23 Thread Tamás Király
Hi, can anyone explain why the following does not work? i want to have the return value's address not the method itself. package main func main() { //first addressofstring := &method() } func method() string { return "value" } https://play.golang.org/p/UbJ7SK0m9w6 regards Tamás Király -- Yo

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

2018-09-23 Thread Nhiên Phan
Hi everybody. I'm a beginner at Golang. Anyone who has the talent to Golang please let me please On Mon, Sep 24, 2018 at 1:05 AM Ian Denhardt wrote: > Quoting Robert Engels (2018-09-23 13:38:04) > > I wasn’t suggesting that Go should resemble Java. I was just trying to > point out that many of t

[go-nuts] Help tracking down module dependencies

2018-09-23 Thread Justin Israel
I'm converting one of my internal projects from glide to a module, after having done two other conversions. But I am hitting a problem that I can't yet solve. $ GO111MODULE=on go mod tidy -v Fetching https://gotest.tools?go-get=1 https fetch failed: Get https://gotest.tools?go-get=1: Forbidden go

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

2018-09-23 Thread robert engels
I’m often confounded when people discuss Java (at least in comparison to Go) as being “heavy”. If you read early interviews with Gosling it is clear that his design was more about what to leave out, not what to include (macros, pre-processor, unsigned arithmetic, etc.) He is a brilliant language

Re: [go-nuts] cannot take the address of method()

2018-09-23 Thread Jesse McNelis
On Mon, Sep 24, 2018 at 5:33 AM, Tamás Király wrote: > Hi, > > can anyone explain why the following does not work? > i want to have the return value's address not the method itself. > > package main > > func main() { > //first > addressofstring := &method() > } > > func method() string { > return

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

2018-09-23 Thread Louki Sumirniy
Choosing a virtual machine target was the wrong decision. All machines have a machine in them, why add a virtual one? C already could be compiled on every platform, all we got out of it was processing latency and a whole extra layer of performance wrinkles that the CPU maker probably already fi

[go-nuts] Re: Help tracking down module dependencies

2018-09-23 Thread thepudds1460
Hi Justin, I'm not sure where that gotest.tools is coming from in your particular build, and not sure of the root cause of the issue with your http proxy. However, one thing you could try is a 'replace' directive to try to get gotest.tools directly from github. I don't know if that will help yo

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

2018-09-23 Thread Ian Denhardt
Quoting robert engels (2018-09-23 22:50:54) >I'm often confounded when people discuss Java (at least in comparison >to Go) as being "heavy". If you read early interviews with Gosling it >is clear that his design was more about what to leave out, not what to >include (macros, pre-pr

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

2018-09-23 Thread Robert Engels
Just an aside, Java had generic type inference since 8, and has local variable type inference in Java 9. Personally, I hate type inference. I find myself continually needing to refer to the docs to know what something is, when type inference is not used this doesn’t happen as the code is self

Re: [go-nuts] Golang, how dare you handle my checks! (Critique of error proposal)

2018-09-23 Thread Liam Breck
Hi Sameer, Glad to hear someone's reading my posts re Go 2 error handling! Debate on generics simmers in multiple threads, but discussion of error handling, which impacts many more gophers and lines of code, has been almost non-existent. Reading the feedback wiki, one might surmise that the draft

Re: [go-nuts] Re: Help tracking down module dependencies

2018-09-23 Thread Justin Israel
On Mon, Sep 24, 2018 at 4:31 PM wrote: > Hi Justin, > > I'm not sure where that gotest.tools is coming from in your particular > build, and not sure of the root cause of the issue with your http proxy. > > However, one thing you could try is a 'replace' directive to try to get > gotest.tools dire

[go-nuts] Re: When using 'go mod vendor' why are there lots of files missing?

2018-09-23 Thread Justin Israel
On Tuesday, September 18, 2018 at 8:58:01 AM UTC+12, Frits van Bommel wrote: > > According to the help text that's the intended behavior: > > usage: go mod vendor [-v] >> >> Vendor resets the main module's vendor directory to include all packages >> needed to build and test all the main module's