Re: [go-nuts] About the efficency of modifying map elements.

2021-03-17 Thread Robert Engels
Generics will solve this. > On Mar 17, 2021, at 4:23 PM, Matthew Holiday > wrote: > >  > Isn't this really just another form of issue 3117? > > >> On Wed, Mar 17, 2021 at 3:19 PM 'Axel Wagner' via golang-nuts >> wrote: >>> On Wed, Mar 17, 2021 at 10:06 PM tapi...@gmail.com >>> wrote:

Re: [go-nuts] About the efficency of modifying map elements.

2021-03-17 Thread 'Axel Wagner' via golang-nuts
To be clear: My point was that it should be neither. It should be a transparent compiler optimization :) On Wed, Mar 17, 2021 at 10:46 PM tapi...@gmail.com wrote: > > > On Wednesday, March 17, 2021 at 5:19:55 PM UTC-4 axel.wa...@googlemail.com > wrote: > >> On Wed, Mar 17, 2021 at 10:06 PM

Re: [go-nuts] About the efficency of modifying map elements.

2021-03-17 Thread tapi...@gmail.com
On Wednesday, March 17, 2021 at 5:23:57 PM UTC-4 matthew...@nytimes.com wrote: > Isn't this really just another form of issue 3117 > ? > Some of, but really different. > > > On Wed, Mar 17, 2021 at 3:19 PM 'Axel Wagner' via golang-nuts < >

Re: [go-nuts] About the efficency of modifying map elements.

2021-03-17 Thread tapi...@gmail.com
On Wednesday, March 17, 2021 at 5:19:55 PM UTC-4 axel.wa...@googlemail.com wrote: > On Wed, Mar 17, 2021 at 10:06 PM tapi...@gmail.com > wrote: > >> For simple scenarios, compiler optimizations might be possible. >> But for some complicate ones, it is hard for compiler to do optimizations.

[go-nuts] Re: %v for []string{} and []string{""}

2021-03-17 Thread tapi...@gmail.com
Printing a nil slice also get the same output []. I remembered Rob Pike ever said in an issue thread that this can't be changed now for compatibility reason. On Monday, March 15, 2021 at 8:18:46 AM UTC-4 Brian Candler wrote: > I was slightly surprised to discover that the Print() output for an

Re: [go-nuts] About the efficency of modifying map elements.

2021-03-17 Thread Matthew Holiday
Isn't this really just another form of issue 3117 ? On Wed, Mar 17, 2021 at 3:19 PM 'Axel Wagner' via golang-nuts < golang-nuts@googlegroups.com> wrote: > On Wed, Mar 17, 2021 at 10:06 PM tapi...@gmail.com > wrote: > >> For simple scenarios, compiler

Re: [go-nuts] About the efficency of modifying map elements.

2021-03-17 Thread 'Axel Wagner' via golang-nuts
On Wed, Mar 17, 2021 at 10:06 PM tapi...@gmail.com wrote: > For simple scenarios, compiler optimizations might be possible. > But for some complicate ones, it is hard for compiler to do optimizations. > For example, the element is modified by an function between the map > element getter and

Re: [go-nuts] About the efficency of modifying map elements.

2021-03-17 Thread tapi...@gmail.com
For simple scenarios, compiler optimizations might be possible. But for some complicate ones, it is hard for compiler to do optimizations. For example, the element is modified by an function between the map element getter and setter and the behavior of the function is hard to determined at compile

Re: [go-nuts] About the efficency of modifying map elements.

2021-03-17 Thread 'Axel Wagner' via golang-nuts
Yes, Jan's link also pretty clearly shows that this optimization isn't currently happening :) Sorry for the noise. I still believe it should be an optimization in the compiler, not a language-level feature. On Wed, Mar 17, 2021 at 9:44 PM tapi...@gmail.com wrote: > > I found this performance

Re: [go-nuts] About the efficency of modifying map elements.

2021-03-17 Thread tapi...@gmail.com
I found this performance difference by benchmarking the two: func IntAdd(words [][]byte) map[string]int { var m = make(map[string]int) for _, w := range words { m[string(w)] = m[string(w)] + 1 } return m } func IntIncrement(words [][]byte) map[string]int {

Re: [go-nuts] About the efficency of modifying map elements.

2021-03-17 Thread Jan Mercl
On Wed, Mar 17, 2021 at 9:18 PM tapi...@gmail.com wrote: > Now, to modify a map element, especially the element type is not a basic > type, two hashes are needed to compute. https://github.com/golang/go/issues/5147 -- You received this message because you are subscribed to the Google Groups

Re: [go-nuts] About the efficency of modifying map elements.

2021-03-17 Thread 'Axel Wagner' via golang-nuts
Hi, have you verified this using a disassembler or benchmarks? Just asking because this is, as far as I'm concerned, a job for the compiler, to eliminate the overhead automatically - and I could well imagine that it's already doing it. There definitely shouldn't be a new language construct for

[go-nuts] About the efficency of modifying map elements.

2021-03-17 Thread tapi...@gmail.com
Now, to modify a map element, especially the element type is not a basic type, two hashes are needed to compute. This is often unnecessary and inefficient. For example: package main type T struct{ N int // ... more fields } func main() { var m =

Re: [go-nuts] No generic, part -2

2021-03-17 Thread Ian Lance Taylor
On Wed, Mar 17, 2021 at 4:28 AM Space A. wrote: > > Can you provide any proof that there was an open public discussion? What kind of proof would you find to be acceptable? Can you give an example of something that I could say that you would consider to be a good answer to that question?

[go-nuts] Re: build world question

2021-03-17 Thread Brian Candler
What error do you see? Are your subdirectories independent modules in their own right (i.e. they have their own "go.mod"), or just separate packages within the same module (go.mod only exists at the top level)? Normally the latter is what you want. On Wednesday, 17 March 2021 at 17:57:55 UTC

Re: [go-nuts] Supporting contained zip archives inside of tar and zip archives

2021-03-17 Thread Jan Mercl
On Wed, Mar 17, 2021 at 7:38 PM Glen Newton wrote: > > zip archives contain files and directories. Often, some of the files > contained in zip archives are also archives, zip and tar(.gz|bz2). Sometimes, > these contained archives also contain such archives (and so on...). > > Reading a zip

Re: [go-nuts] Re: now that the election is over can we please remove the political ad for golang.org

2021-03-17 Thread Rusco
afaik George Soros is behind the BLM Campaign, this alone justifies removing the banner. From now on the Golang Community should be inclusive and tolerate all political opinions. Seems to be harder than writing speedy go code ... On Wednesday, 17 March 2021 at 17:59:52 UTC mortdeus wrote: >

[go-nuts] Supporting contained zip archives inside of tar and zip archives

2021-03-17 Thread Glen Newton
zip archives contain files and directories. Often, some of the files contained in zip archives are also archives, zip and tar(.gz|bz2). Sometimes, these contained archives also contain such archives (and so on...). Reading a zip file requires an io.ReaderAt in the func zip.NewReader(r

Re: [go-nuts] Re: now that the election is over can we please remove the political ad for golang.org

2021-03-17 Thread mortdeus
"Ian, This individual is either trolling us or suffering some sort of psychological crisis that warrants intervention by a mental health professional." Somewhere in the middle, but mostly drunk and extremely aggravated. If what I am saying is annoying you to the point that you want to ban me.

[go-nuts] build world question

2021-03-17 Thread Hotei
Heeding the prodding of the go gurus on this list I just converted a bunch of old code to modules and was wondering what the "module" equivalent to "go build ./..." is. I used to be able to use that command at the top of my code tree and it would attempt to build everything in the subdirs.

Re: [go-nuts] Re: now that the election is over can we please remove the political ad for golang.org

2021-03-17 Thread Kurtis Rader
Ian, This individual is either trolling us or suffering some sort of psychological crisis that warrants intervention by a mental health professional. Either way I think we've all had quite enough of their rants and their behavior warrants banning from this mailing list. On Wed, Mar 17, 2021 at

Re: [go-nuts] Re: now that the election is over can we please remove the political ad for golang.org

2021-03-17 Thread mortdeus
Steve Jobs is literally on tape saying he doesn't believe in equality of outcome, only equality of opportunity. Therefore respect his ghost, and get rid of the stupid ad. That's the least you owe him for making unix at least look sexy. It might not perform all that well in bed (though with a

[go-nuts] Re: How to implement localhost proxy which injects Proxy-Authorization header to incoming request and sends it to another remote proxy with Go?

2021-03-17 Thread Hugo Bollon
I fixed the 400 Server Error issue and add a request checking before inject *Proxy-Authorization *header in order to alter only GET or CONNECT requests: https://github.com/hbollon/IGopher/blob/proxy/internal/proxy/pipe.go But now I'm getting this error after curl request: *OpenSSL SSL_read:

Re: [go-nuts] Re: now that the election is over can we please remove the political ad for golang.org

2021-03-17 Thread mortdeus
There is a reason why Steve Jobs spent all the day, yelling at you stubborn #&@#s for not getting why Bob Dylan is an essential component to why Apple is now the most valuable company in the world. If what I am saying sounds crazy, just know you thought my ideas were the dopest ideas in SV

Re: [go-nuts] Re: now that the election is over can we please remove the political ad for golang.org

2021-03-17 Thread mortdeus
I literally don't want the banner because I don't like the way it looks. It's really like an ocd thing for me. And you all need to understand, that is extremely important. Way more important than your political concerns. Because like I said, a tool like this is honestly the only effective way

Re: [go-nuts] Re: now that the election is over can we please remove the political ad for golang.org

2021-03-17 Thread mortdeus
No Go is literally a 1000x bigger achievement than the Mona Lisa, because somehow we managed to get a bunch of people to come together and somehow create a miracle of engineering. In a perfect world, where the market also adopts the most efficient technological solutions. Plan 9 should have

Re: [go-nuts] Re: now that the election is over can we please remove the political ad for golang.org

2021-03-17 Thread 'Carla Pfaff' via golang-nuts
It's not an uncommon practice for teams that run a public website to raise awareness for a good cause, usually by supporting fundraising for a social nonprofit charitable organization. Some choose a children's cancer charity or the Wikimedia foundation, this is what the Go team chose. This does

Re: [go-nuts] Re: now that the election is over can we please remove the political ad for golang.org

2021-03-17 Thread Ian Lance Taylor
I count sixteen messages from you in this thread. Please stop. 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. To

Re: [go-nuts] Re: now that the election is over can we please remove the political ad for golang.org

2021-03-17 Thread mortdeus
Don't just talk shit, post evidence that explains why your shit doesn't technically stink just as bad as everybody elses. Because my shit smells like roses, and therefore you should all be forced to endure it, because I am the change you are too chicken shit to be (but sure as hell will talk a

Re: [go-nuts] Re: now that the election is over can we please remove the political ad for golang.org

2021-03-17 Thread mortdeus
This is why my opinion alone should carry more weight than all of yours combined. Take the stupid ad down, and instead lets promote a culture that actually works to address the issues of poverty using the tools we actually built. Why give money to a charity, when you can pour that money into

Re: [go-nuts] Healthy tinygo Was: No generic, part -2

2021-03-17 Thread Kevin Chadwick
Thank You for answering Regards, kc -- 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. To view this discussion on the web

[go-nuts] Re: nice user survey re Go-lang

2021-03-17 Thread 'Carla Pfaff' via golang-nuts
It's a nice survey indeed. This is the original source of the article: https://blog.golang.org/survey2020-results -- 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] How to search standard libarary?

2021-03-17 Thread Jan Mercl
On Wed, Mar 17, 2021 at 4:59 PM jake...@gmail.com wrote: > > On Tuesday, March 16, 2021 at 11:59:31 AM UTC-4 Jan Mercl wrote: >> >> Entering `rename site:golang.org/pkg` in Chrome seems to work well, for >> example. >> >> (But I'm not using this kind of search so there might be some issues >>

[go-nuts] nice user survey re Go-lang

2021-03-17 Thread L Godioleskky
https://www.zdnet.com/article/google-go-programming-language-three-months-in-and-you-are-productive-say-developers/ -- 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] How to search standard libarary?

2021-03-17 Thread jake...@gmail.com
On Tuesday, March 16, 2021 at 11:59:31 AM UTC-4 Jan Mercl wrote: > Entering `rename site:golang.org/pkg` in Chrome > seems to work well, for example. > > (But I'm not using this kind of search so there might be some issues > I'm not aware of.) > > I'm unclear what you

Re: [go-nuts] Re: now that the election is over can we please remove the political ad for golang.org

2021-03-17 Thread mortdeus
Just read your thread. Don't you like how everybody just completely ignored your opening argument that there is a place for politics and there is a place for purity? They are literally arguing that when you open a science book for say a topic like biology and lets say the authors (who are

Re: [go-nuts] Searching recursively in GOLANG

2021-03-17 Thread jake...@gmail.com
You could also achieve this using the regexp package. But, in this case, it would probably be overkill. On Tuesday, March 16, 2021 at 2:55:29 AM UTC-4 Sharan Guhan wrote: > Thanks for the tip! I just wanted to make sure, I am not missing some > basic API out there.. Will code this up :-) > >

Re: [go-nuts] Healthy tinygo Was: No generic, part -2

2021-03-17 Thread Space A.
> I want to get away from C as much as possible! I shouldn't have to do so much like writing reasonably memory safe array handling functions to be confident in my codes security. Because C can't be arsed to offer safer compile options. Yes, I understand that in your projects using tinyGo instead

[go-nuts] Re: How to implement localhost proxy which injects Proxy-Authorization header to incoming request and sends it to another remote proxy with Go?

2021-03-17 Thread Hugo Bollon
Yeah, I'm not very comfortable with networking so it's possible I'm not using the right terms... I want to be able to allow my users to use, with Selenium (and therefore Chrome), a proxy with authentication. The problem is that I cannot send the proxy credentials to the Chrome instance or

Re: [go-nuts] Healthy tinygo Was: No generic, part -2

2021-03-17 Thread 'Axel Wagner' via golang-nuts
On Wed, Mar 17, 2021 at 3:22 PM Kevin Chadwick wrote: > That is not what you said or meant and I didn't make an assumption. > No offense, but you did use the words "assuming generics poses a question". Apologies that I misunderstood, but I was trying to respond to that. > I was basically

Re: [go-nuts] Healthy tinygo Was: No generic, part -2

2021-03-17 Thread Kevin Chadwick
On 3/17/21 1:57 PM, Axel Wagner wrote: > No, I am saying that your assumptions that generics pose a problem is wrong. > There is no technical reason that would prevent the authors of TinyGo to > implement them, without too much trouble. Certainly far less trouble than > other > language features

Re: [go-nuts] Re: now that the election is over can we please remove the political ad for golang.org

2021-03-17 Thread mortdeus
you think you know how to protest and get dramatic "total 180 turn-around" results? wait until you see what i can do with a silly sense of humor and a high karma rating on ycombinator news *cracks knuckles* On Wednesday, March 17, 2021 at 9:00:41 AM UTC-5 mortdeus wrote: > somebody else

Re: [go-nuts] Re: now that the election is over can we please remove the political ad for golang.org

2021-03-17 Thread mortdeus
somebody else wrote.* Sigh Its time to go to bed, so i can get up in the morning and implement my masterplan if by then the powers that be in this forum haven't bent to my will and restored the goverse to it's rightful balance On Wednesday, March 17, 2021 at 8:57:53 AM UTC-5 mortdeus wrote:

Re: [go-nuts] Re: now that the election is over can we please remove the political ad for golang.org

2021-03-17 Thread mortdeus
Im just saying you can literally justify a fork of the language where the only change is to remove this ad from the website code, and everything else is just a mirror and the readme is "the pogo programming language, literally just Go but with the dumb political shit taken out" And that fork

Re: [go-nuts] Healthy tinygo Was: No generic, part -2

2021-03-17 Thread 'Axel Wagner' via golang-nuts
On Wed, Mar 17, 2021 at 2:36 PM Kevin Chadwick wrote: > > *Might* Generics adoption within the stdlib make more of it unusable > > (assuming generics poses a problem, it might not). > > No. Generics can be implemented as a purely compile-time feature > > < >

Re: [go-nuts] Re: now that the election is over can we please remove the political ad for golang.org

2021-03-17 Thread mortdeus
You know what, I just thought of the best analogy to put this argument to rest. About 10 years ago, when go v1.0 first came out, I like many of the familiar faces in this thread, absolutely fell in love with the language. It was literally like a goldilocks "this one is juust right" moment

Re: [go-nuts] Healthy tinygo Was: No generic, part -2

2021-03-17 Thread Kevin Chadwick
> I'm actually happiest with the language part of GO. Not necessarily so much, > the> implementation. It has the potential to make me happy, anyway.> > "https://tinygo.org/lang-support/stdlib/; I should clarify. My interest is purely memory safety and ease of porting existing vendor provided C

Re: [go-nuts] Healthy tinygo Was: No generic, part -2

2021-03-17 Thread Kevin Chadwick
On 3/17/21 10:02 AM, Axel Wagner wrote: > When I look at the Go language feature page of TinyGo > , I don't think that GC is the only or > largest > hindrance to using it with normal Go programs. TBQH I'm always surprised that > people call it a Go implementation

Re: [go-nuts] Healthy tinygo Was: No generic, part -2

2021-03-17 Thread Kevin Chadwick
On 3/17/21 12:11 PM, Space A. wrote: > I don't think Java failed on micros, for instance look at JavaCard, a lot of > SIM-cards are running applets based on it. SIM cards can be a dying technology > on itself, but still, I think there was a huge success. Not sure about other > "small places"

Re: [go-nuts] Re: now that the election is over can we please remove the political ad for golang.org

2021-03-17 Thread peterGo
On Wednesday, March 17, 2021 at 6:10:09 AM UTC-4 axel.wa...@googlemail.com wrote: > As such, nothing has really changed since the topic last came up > . > > I started the original thread titled "political fundraising on

Re: [go-nuts] Healthy tinygo Was: No generic, part -2

2021-03-17 Thread Robert Engels
Java was actually very successful on micros. It is running on billions of IOT and smart card devices - and android on SoC. > On Mar 17, 2021, at 4:47 AM, Kevin Chadwick wrote: > >  >> >>> Go will loose its uniqueness and values, will never become a next big >> thing. No cross platform GUI,

Re: [go-nuts] now that the election is over can we please remove the political ad for golang.org

2021-03-17 Thread mortdeus
im just saying jan mercl has been around as long as I can remember. And frankly he has done way more than I have to help build up this community, and he understands completely why I am making a huge issue about why this community needs to be above politics. Because frankly, it's not as simple

Re: [go-nuts] now that the election is over can we please remove the political ad for golang.org

2021-03-17 Thread mortdeus
"Not to point out the obvious, but if you don't want to have a political discussion, it would be wise not to start one. Again, this has been discussed. I don't see how this thread can end any differently." The way it can end differently is that you have smart people making better arguments so

Re: [go-nuts] now that the election is over can we please remove the political ad for golang.org

2021-03-17 Thread mortdeus
the only politicking that needs to be going on around here is #TeamGo. You don't want to live in a world where engineers like Palmer Luckey can have their entire childhood dream taken from them because they had the audacity to literally donate to the Republican version of Obama. Just because

Re: [go-nuts] now that the election is over can we please remove the political ad for golang.org

2021-03-17 Thread Marvin Renich
* Jan Mercl <0xj...@gmail.com> [210317 06:27]: > On Wed, Mar 17, 2021 at 10:57 AM mortdeus wrote: > > I'm probably giving up any hopes to work for Google in the future by > writing this: +1. I find the banner deeply offensive, divisive and > excluding for people with dissenting views, regardless

Re: [go-nuts] now that the election is over can we please remove the political ad for golang.org

2021-03-17 Thread 'Axel Wagner' via golang-nuts
On Wed, Mar 17, 2021 at 1:22 PM mortdeus wrote: > The problem is that this inspires a political discussion that obviously > should happen with your city council or your therapist. Not with gophers. > Not to point out the obvious, but if you don't want to have a political discussion, it would be

Re: [go-nuts] now that the election is over can we please remove the political ad for golang.org

2021-03-17 Thread mortdeus
from the major music labels* On Wednesday, March 17, 2021 at 7:23:11 AM UTC-5 mortdeus wrote: > is ignoring their suffering* > > On Wednesday, March 17, 2021 at 7:22:03 AM UTC-5 mortdeus wrote: > >> The problem is that this inspires a political discussion that obviously >> should happen with

Re: [go-nuts] now that the election is over can we please remove the political ad for golang.org

2021-03-17 Thread mortdeus
is ignoring their suffering* On Wednesday, March 17, 2021 at 7:22:03 AM UTC-5 mortdeus wrote: > The problem is that this inspires a political discussion that obviously > should happen with your city council or your therapist. Not with gophers. > > Put it this way, what if I said I hated black

Re: [go-nuts] now that the election is over can we please remove the political ad for golang.org

2021-03-17 Thread mortdeus
The problem is that this inspires a political discussion that obviously should happen with your city council or your therapist. Not with gophers. Put it this way, what if I said I hated black people (i don't) but I love Go. Is your theory that the best way to ensure you defeat racism is to

Re: [go-nuts] No generic, part -2

2021-03-17 Thread Space A.
I can, and I searched, and right answer is there was no open public discussion on dropping Generics proposal entirely, only "counterproposals". But it's a no brainer that if you propose anything other than "No Generics, never" you will end up with some form of them. ср, 17 мар. 2021 г. в 14:57,

Re: [go-nuts] Healthy tinygo Was: No generic, part -2

2021-03-17 Thread Space A.
I don't think Java failed on micros, for instance look at JavaCard, a lot of SIM-cards are running applets based on it. SIM cards can be a dying technology on itself, but still, I think there was a huge success. Not sure about other "small places" because I never touched them in my work. With

Re: [go-nuts] No generic, part -2

2021-03-17 Thread Wojciech S. Czarnecki
Dnia 2021-03-17, o godz. 14:27:51 "Space A." napisał(a): > Can you provide any proof that there was an open public discussion? Can't you search for yourself? When I submitted my rough counterproposal there were already over 50 others linked at Team's (compile contracts one). Wasn't it a

Re: [go-nuts] No generic, part -2

2021-03-17 Thread Space A.
Can you provide any proof that there was an open public discussion? ср, 17 мар. 2021 г. в 02:12, Ian Lance Taylor : > On Tue, Mar 16, 2021 at 6:51 AM Space A. wrote: > > > > > (To be clear, your original claim was that there *was* no discussion - > which is at least easy to address, because

Re: [go-nuts] No generic, part -2

2021-03-17 Thread Space A.
> Russ locked the proposal issue after it was accepted. Proposal published on 12 Jan Russ "accepted" it on 10 Feb Russ locked it on 20 Feb with " That is our usual way of using issues, but this issue continues to gather comments that are not relevant to tracking the work of implementing the

Re: [go-nuts] now that the election is over can we please remove the political ad for golang.org

2021-03-17 Thread Wojciech S. Czarnecki
Dnia 2021-03-17, o godz. 02:57:15 mortdeus napisał(a): > This ad should have never been put up to begin with Every time I go to sites with this banner I am being reminded of what have happened to this once democratic country. And not to this country alone. > this community is far more

Re: [go-nuts] now that the election is over can we please remove the political ad for golang.org

2021-03-17 Thread Jan Mercl
On Wed, Mar 17, 2021 at 10:57 AM mortdeus wrote: I'm probably giving up any hopes to work for Google in the future by writing this: +1. I find the banner deeply offensive, divisive and excluding for people with dissenting views, regardless of the omnipresent inclusiveness narrative. I cannot

Re: [go-nuts] Re: now that the election is over can we please remove the political ad for golang.org

2021-03-17 Thread 'Axel Wagner' via golang-nuts
The banner is not related to the (US presidential) election. It is also not partisan - it is purely issue-oriented and not associated to a particular party (of any country). As such, nothing has really changed since the topic last came up

[go-nuts] can we please remove the political ad from the website now that the election is over?

2021-03-17 Thread mortdeus
I understand this issue and election was very important to many of you, but it really needs to be said. It's time to leave your politics at home where they belong. Black Lives Matter but not more than golang.org being able to maintain a science centric community that promotes a complete

Re: [go-nuts] Healthy tinygo Was: No generic, part -2

2021-03-17 Thread 'Axel Wagner' via golang-nuts
On Wed, Mar 17, 2021 at 10:47 AM Kevin Chadwick wrote: > My concern (an uneducated concern) is that considering a micro running > currently compatible parts of the stdlib with gc set to none and using > global variables for reliable memory consumption. When I look at the Go language feature

[go-nuts] Re: now that the election is over can we please remove the political ad for golang.org

2021-03-17 Thread mortdeus
ugh i really need to hire an editor. On Wednesday, March 17, 2021 at 4:57:16 AM UTC-5 mortdeus wrote: > First of all full disclosure, I just want to apologize ahead of time to > anybody who finds what I am about to say offensive. I understand politics > are really important to a lot of people

[go-nuts] now that the election is over can we please remove the political ad for golang.org

2021-03-17 Thread mortdeus
First of all full disclosure, I just want to apologize ahead of time to anybody who finds what I am about to say offensive. I understand politics are really important to a lot of people (especially right now) so I understand how just my suggestion of this might offend people who care a lot

Re: [go-nuts] Use cases for custom ResponseWriter

2021-03-17 Thread Amnon
https://github.com/gorilla/handlers contains a number of ResponseWriters to provide functions such as compression and logging On Wednesday, 17 March 2021 at 08:41:09 UTC be...@pferdewetten.de wrote: > net/http/httptest contains an implementation of http.ResponseWriter that's > used for testing

[go-nuts] Re: Is there a final document on generics?

2021-03-17 Thread Amnon
I don't think that a race between competing genetics container collections will necessarily be a bad thing. It will allow flexibility, experimentation, innovation, and it will allow the community to vote with its feet in terms of eventually coalescing around a de-facto standard. On Wednesday,

[go-nuts] Healthy tinygo Was: No generic, part -2

2021-03-17 Thread Kevin Chadwick
>> Go will loose its uniqueness and values, will never become a next big >thing. No cross platform GUI, no Android, and browsers (GopherJS is >more dead than alive, WASM idk) is also a big question. It will be a >"bad copy" of Java or other mature languages (with better and more >powerful generics

Re: [go-nuts] Use cases for custom ResponseWriter

2021-03-17 Thread Gregor Best
net/http/httptest contains an implementation of http.ResponseWriter that's used for testing request handlers in isolation (without spinning up a server). On 17.03.21 03:12, Amit Saha wrote: Hi all, I came across the need for writing a custom ResponseWriter when I wanted to log the response

[go-nuts] Re: How to implement localhost proxy which injects Proxy-Authorization header to incoming request and sends it to another remote proxy with Go?

2021-03-17 Thread Vladimir Varankin
I think I didn't get what you're building right. Now, it looks like, instead of implementing a custom RR's director, you need to configure its Transport [1], which will be aware of your auth proxy in the middle. Have a look at net/http.Transport.Proxy field [2] for that. [1]:

[go-nuts] Re: Is there a final document on generics?

2021-03-17 Thread Markus Heukelom
On Tuesday, March 16, 2021 at 11:27:12 AM UTC+1 Haddock wrote: > > > Therefore I wonder whether it would make sense for the Go core development > team to define a couple of generic interfaces for sets, lists, queues, > maps, etc. that are part of the standard library to prevent some >