Hi,
i too use go and i see all the benefits that you are mentioning. I was only
pointing out what was wrong in the post about windows...
BTW You don't need IIS to run .Net Core. There is a new web server named
Kestrel (check this video https://vimeo.com/172009499) which performs very
well.
So
On Wed, May 18, 2016 at 4:06 PM Sotirios Mantziaris
wrote:
> The claim that .Net is not heavily concurrent is not true either.
A Go program executing 100k goroutines needs 200MB or 400MB RAM for stack,
depending on version, so it can run just fine. A .net program trying to
execute 100k threads w
Hi, yes I agree with the fact that Visual Studio is one of the best IDE's
out there. But in general tooling, golang has a great set too. I suggest
you check out VS Code with golang extension, pretty neat! And on top of
that VS Code is cross-platform too.
On Sat, 8 Oct 2016, 09:15 Sotirios Mantzi
This is actually my go setup along with delve for debugging.
On Sat, Oct 8, 2016, 11:36 Francois Hill wrote:
> Hi, yes I agree with the fact that Visual Studio is one of the best IDE's
> out there. But in general tooling, golang has a great set too. I suggest
> you check out VS Code with golang
Recently I've been asked a question which is, what's the difference between
Golang and Java about *interface*?
I know there are some 'syntax-sugar level' differences, what I am
interested is anything beneath the ground, like how does Golang and Java
implement interface? What's the biggest di
If you can stomach GOTO the code :
i := a
loop1: //stuff
//..fmt.Println(i, a, b)
//stuff
if i != b {
i = i + b - a
goto loop1
}
should compile to something fairly sane without the extra variables and
'ifs'
..but it lacks local scope, and the indentation
Il giorno mercoledì 13 aprile 2016 22:45:48 UTC+2, Ian Lance Taylor ha
scritto:
>
> On Wed, Apr 13, 2016 at 12:31 PM, fyodor > wrote:
> > Is there a way to obtain TTL information from through the DNS lookup
> methods
> > in the net package?
>
> Not at present.
>
> > I'm implementing a comp
Hi,
I'm using http.Client to make restful calls, turning off nagle's algorithm
will help as messages are very short and response time needs to be fast. Is
there a way to check or/and set to turn off 'NoDelay'/Nagle's algorithm for
http.Client ( https://golang.org/pkg/net/http/#Client ) ?
Regar
I am just starting with Go and I want to rewrite a PHP app that read/write
events to and from my user's calendars. That app uses an API service
account key ("two-legged OAuth" - server to server authentication) to
access the calendar that my users have granted r/w access to my Service
Account e
The most obvious difference is that Go doesn't have the implements keyword. All
you have to do to implement an interface is implement the interface's methods,
and the Go compiler will take care of the rest.
This rule leads to the empty interface, interface{}. This interface requires no
methods
On Sat, Oct 8, 2016, 16:39 Pietro Gagliardi wrote:
>
>
> Go does not have functional interfaces or interface literals.
>
I don't know what is meant by 'functional interfaces' but Go definitely
supports interface literals.
--
-j
--
You received this message because you are subscribed to the
In Java, if an interface contains exactly one method, and that method is not
already part of java.lang.Object, the syntax
Interface i = (arguments) -> {
code
};
will make an object i of that interface type with the given closure as the
method body. This interface
But that is just syntactic sugar around the fact that Java does not have
first class functions. At least not in the sense Go does.
On Sat, Oct 8, 2016, 17:31 Pietro Gagliardi wrote:
> In Java, if an interface contains exactly one method, and that method is
> not already part of java.lang.Object,
Hey Gophers!
I'm working on a small project where I'm looking to support the "Forwarded"
header as defined in RFC-7239[1]. For those unfamiliar, it's a
standardization and unification of the "X-Forwarded-For" and
"X-Forwarded-Proto" headers, among others. The simplest version of the
header loo
On Saturday, 8 October 2016 16:34:33 UTC+3, xiio...@gmail.com wrote:
>
> If you can stomach GOTO the code :
>
> i := a
>
> loop1: //stuff
>
> //..fmt.Println(i, a, b)
>
> //stuff
>
> if i != b {
>
> i = i + b - a
>
> goto loop1
>
> }
>
>
> should compile to somet
On 07-10-2016, Konstantin Khomoutov wrote:
> On Thu, 6 Oct 2016 20:24:47 + (UTC)
> wilk wrote:
>
>> I know... but i must access to MSACCESS database. I would like to use
>> Go instead of Python.
>> I found alexbrainman/odbc and it works. I found some litle issues
>> that I submited to the proj
In the http.Client that you use, specify your own Transport where you
specify your own DialContext function which Dials first and then calls
SetNoDelay on the connection before returning.
Janne Snabb
sn...@epipe.com
On 2016-10-08 11:25, hay wrote:
> Hi,
>
> I'm using http.Client to make restful
Of course. And in Go you would write code in a way that would avoid the need
for such constructs in the first place.
Aside: is there a way to get El Capitan Mail.app to play nice with Google
Groups?
> On Oct 8, 2016, at 12:04 PM, Henrik Johansson wrote:
>
> But that is just syntactic sugar ar
On Saturday, 8 October 2016 20:19:37 UTC+1, Egon wrote:
>
>
>
> In this code you could use empty blocks, e.g.:
>
> {
> i := 0
> loop:
> fmt.Println(i)
> if i < 10 {
> i++
> goto loop
> }
> }
>
> or:
>
> i := 0
> {
> loop:
> fmt.Println(i)
> if i < 10 {
> i++
> goto loop
> }
> }
>
> or:
>
> i :=
I prefer to show the intent of the bool with something like
for done :=false;!done;{
//stuff
done = xxx // done = expr in until(expr)
}
On Friday, October 7, 2016 at 7:25:02 PM UTC-4, xiio...@gmail.com wrote:
>
> Any suggestions on a way to write a repeat until lo
My TLS proxy used to create two goroutines of `io.Copy` to copy between the
incoming and outgoing connection.
As soon as `io.Copy` returned, with or without an error, I closed both
connections. This had the effect that on the other goroutine, the
Read/Write returned with errors about the "use of a
Sorry, my mistake. Use
https://github.com/nhooyr/tlswrapd/blob/15b03321169039a4042434086d841a660a7afd88/proxy.go#L88-L143
as
the link incase I change things and the line numbers become incorrect.
On Sat, Oct 8, 2016 at 11:43 PM Anmol Sethi wrote:
> My TLS proxy used to create two goroutines of `
On Monday, October 3, 2016 at 2:34:31 PM UTC-4, hadies...@gmail.com wrote:
>
> mean is : i want create application for window or others platforms
>
> If you only want a gui for Windows, the simplest go-gettable package I've
>> found with useful examples is https://github.com/lxn/walk
>>
>>
>>
>
Ok, so I think I've got it really nice now:
https://github.com/nhooyr/tlswrapd/blob/master/proxy.go#L87-L110
Much simpler by only using the first error.
On Sat, Oct 8, 2016 at 11:45 PM Anmol Sethi wrote:
> Sorry, my mistake. Use
> https://github.com/nhooyr/tlswrapd/blob/15b03321169039a404243408
Arg, use
https://github.com/nhooyr/tlswrapd/blob/965c34913d5c8635b07ec8fb4918174298fa4855/proxy.go#L87-L110
On Sun, Oct 9, 2016 at 12:45 AM Anmol Sethi wrote:
> Ok, so I think I've got it really nice now:
> https://github.com/nhooyr/tlswrapd/blob/master/proxy.go#L87-L110
>
> Much simpler by only
Hi Jan. The correct analogy here are not threads but Tasks from the
excellent Task Parallel Library in order to compare Apples with Apples.
i have a little stupid source code (https://github.com/mantzas/headon) that
run in parallel n tasks and the equivalent in go.
dotnet run 100
Project d
26 matches
Mail list logo