Re: [go-nuts] How to set a callback for cgo ?

2019-01-16 Thread astone . chou
sorry for late reply. thanks very much. it got the key. 在 2019年1月11日星期五 UTC+8下午10:09:17,Jan Mercl写道: > > > On Fri, Jan 11, 2019 at 2:49 PM > wrote: > > > I get the file 'exit0', but didn't get the file 'exit1'. > > As far as I can tell, it works as expected. Exit handlers are called when > libc's

Re: [go-nuts] what is the use of context in golang RESTful apis?

2019-01-16 Thread robert engels
Context is in no way shape or form a crutch. It is a required element of any multi-user or distributed system. You may call it something else, but in the end it is a “context”. > On Jan 16, 2019, at 7:29 PM, Space A. wrote: > > Problems are fine. And developer should be able to take care of th

Re: [go-nuts] what is the use of context in golang RESTful apis?

2019-01-16 Thread Space A.
Problems are fine. And developer should be able to take care of them. That's what he does. Context is basically a crutch. So are you proposing to make a crutch a language construct? четверг, 17 января 2019 г., 0:43:58 UTC+3 пользователь robert engels написал: > > I agree with all of those asse

Re: [go-nuts] what is the use of context in golang RESTful apis?

2019-01-16 Thread robert engels
I agree with all of those assessments. That’s why I think the “context” needs to be moved into a language construct. Then the developer is insulated from most (all) of these problems - that is the “current context” propagates unless specifically told not to when creating the Go routine. In almos

Re: [go-nuts] what is the use of context in golang RESTful apis?

2019-01-16 Thread Ian Lance Taylor
> On Wed, Jan 16, 2019 at 7:15 AM Robert Engels wrote: > > > I don’t see the complexity nor the real difference between Go routines and > Threads. In Java TLS is not passed to new threads you need to be explicit. > The ThreadLocal doesn’t allow access to other threads locals even with > thread

[go-nuts] Re: Using "er" and "able" for interfaces

2019-01-16 Thread Roberto Zanotto
Java is object-oriented, Go is subject-oriented :) On Wednesday, January 16, 2019 at 3:42:38 PM UTC+1, Victor Giordano wrote: > > > As far i can get to understand the english language (i'm not a native > speaker), the "er" seems to denotes or describe things in a more "active > way" (the thing t

Re: [go-nuts] Using "er" and "able" for interfaces

2019-01-16 Thread Ian Denhardt
Quoting Victor Giordano (2019-01-16 12:44:57) >"able" describes things in a more "passive way"� (the thing that you >can "ask it/his/her" to do). Do you find this appreciation correct? Pretty close, but a subtle point is that "-able" makes something the indirect object, so for example it

[go-nuts] Libvmi help to find hollowed processes in Win 10 operating system

2019-01-16 Thread peddojusuresh
I came to know from Volatility hollowfind that, they are using VAD and PEB structures to find process hollowing. In this process, I am trying to get details of VAD information from Win 10 image rekall profile with Libvmi. Then I can compare PEB and VAD structures to find discrepancies. Can anyon

Re: [go-nuts] Using "er" and "able" for interfaces

2019-01-16 Thread Victor Giordano
Thanks you both gentleman for sharing your point of view on this! I shall assume that the convention doesn't fit in 100% of the cases. Greetings V El miércoles, 16 de enero de 2019, 12:38:22 (UTC-3), Ian Davis escribió: > > On Wed, 16 Jan 2019, at 2:42 PM, Victor Giordano wrote: > > As far i can

Re: [go-nuts] what is the use of context in golang RESTful apis?

2019-01-16 Thread Robert Engels
Sorry to the group, that message was only supposed to go to Ian... I guess I need retraining on using email. > On Jan 16, 2019, at 10:09 AM, Robert Engels wrote: > > Stupid iOS. I don’t even see a way to resend. Oh well. > >> On Jan 16, 2019, at 10:07 AM, Robert Engels wrote: >> >> >> >>

Re: [go-nuts] what is the use of context in golang RESTful apis?

2019-01-16 Thread Robert Engels
Asan aside, I’ve never understood why the group messages don’t come from the group so a simple reply is all that is needed but then sometimes they do it seems... > On Jan 16, 2019, at 10:07 AM, Robert Engels wrote: > > > > > Begin forwarded message: > >> From: Ian Lance Taylor >> Date

Re: [go-nuts] what is the use of context in golang RESTful apis?

2019-01-16 Thread Robert Engels
Stupid iOS. I don’t even see a way to resend. Oh well. > On Jan 16, 2019, at 10:07 AM, Robert Engels wrote: > > > > > Begin forwarded message: > >> From: Ian Lance Taylor >> Date: January 16, 2019 at 9:29:59 AM CST >> To: Robert Engels >> Subject: Re: [go-nuts] what is the use of context

Fwd: [go-nuts] what is the use of context in golang RESTful apis?

2019-01-16 Thread Robert Engels
Begin forwarded message: > From: Ian Lance Taylor > Date: January 16, 2019 at 9:29:59 AM CST > To: Robert Engels > Subject: Re: [go-nuts] what is the use of context in golang RESTful apis? > > This just came to me, not to the mailing list. Was that a mistake? > > Ian > >> On Wed, Jan 16,

Re: [go-nuts] Using "er" and "able" for interfaces

2019-01-16 Thread Ian Davis
On Wed, 16 Jan 2019, at 2:42 PM, Victor Giordano wrote: > As far i can get to understand the english language (i'm not a native > speaker), the "er" seems to denotes or describe things in a more "active way" > (the thing that they actually do by itself), and the "able" describes things > in a mo

Re: [go-nuts] what is the use of context in golang RESTful apis?

2019-01-16 Thread Robert Engels
One other note, I think passing the context around is very limited compared to TLS based usage. In well written frameworks the context is provided by and controlled by the container allowing for very advanced AOP style injections where appropriate (logging, security, transactions, etc) Having d

Re: [go-nuts] Using "er" and "able" for interfaces

2019-01-16 Thread Robert Engels
Your thinking is correct, but Java has a Reader class as well. I prefer the able format, but it depends. You have interfaces like Predicate in Java and not Testable. You also have Runnable and not Runner. In summary - it depends :) > On Jan 16, 2019, at 8:42 AM, Victor Giordano wrote: > > Hel

Re: [go-nuts] what is the use of context in golang RESTful apis?

2019-01-16 Thread Ian Lance Taylor
On Wed, Jan 16, 2019 at 5:39 AM Robert Engels wrote: > > A big difference of opinion here. TLS as implemented in Java via ThreadLocal > is trivial to use, understand, and is pervasive. In C++ its a different story. A general form of TLS is much more confusing in a language where it's trivial to

[go-nuts] Using "er" and "able" for interfaces

2019-01-16 Thread Victor Giordano
Hello all! I don't know very well what is the topic about using "er" or "able" or any other suffix for the single method interfaces (a.k.a. "funcitonal interfaces"), but i would like to address some thoughts, hope you can bear with me, here we go: If a take a look to the Readable interface in Java

Re: [go-nuts] what is the use of context in golang RESTful apis?

2019-01-16 Thread Robert Engels
A big difference of opinion here. TLS as implemented in Java via ThreadLocal is trivial to use, understand, and is pervasive. In C++ its a different story. > On Jan 16, 2019, at 3:17 AM, alex.besogo...@gmail.com wrote: > > TLS most certainly does not make stuff easier. It just obscures it. >

Re: [go-nuts] performance optimization

2019-01-16 Thread Jesper Louis Andersen
On Wed, Jan 16, 2019 at 11:55 AM Wojciech S. Czarnecki wrote: > You can't expect a million interrupts per second and host OS running > simultaneously. > (1us gives some 4k instructions inbetween on recent 3GHz cpu core) > > And to add: if you do anything with memory, it is usually considerably l

Re: [go-nuts] performance optimization

2019-01-16 Thread Wojciech S. Czarnecki
On Mon, 14 Jan 2019 21:34:34 +0100 Tamás Király wrote: > I'm simulating the internal clock of an embedded microcontroller... You can't expect a million interrupts per second and host OS running simultaneously. (1us gives some 4k instructions inbetween on recent 3GHz cpu core) Usual way for em

Re: [go-nuts] what is the use of context in golang RESTful apis?

2019-01-16 Thread alex . besogonov
TLS most certainly does not make stuff easier. It just obscures it. The decision to remove TLS from Go was right. Explicit is better than implicit, even if it does make logging quite a bit clumsier. That being said, Context API could use a re-design. On Monday, January 14, 2019 at 7:37:25 AM UT