Re: [go-nuts] Proposal for compile-time package overrides support

2020-07-20 Thread Yuriy Yarosh
> https://golang.org/issue/35283 Yup, thanks for pointing this out. On Tuesday, July 21, 2020 at 12:09:07 AM UTC+3 Ian Lance Taylor wrote: > On Mon, Jul 20, 2020 at 12:48 PM Yuriy Yarosh wrote: > > > > > don't think it's going to be feasible to make it possible to > > replace the standard libra

Re: [go-nuts] Proposal for compile-time package overrides support

2020-07-20 Thread Ian Lance Taylor
On Mon, Jul 20, 2020 at 12:48 PM Yuriy Yarosh wrote: > > > don't think it's going to be feasible to make it possible to > replace the standard library net package. > > Well, I'm not proposing to replace entirely, just to add some annotations for > the compiler, like use this instead of net packa

Re: [go-nuts] Proposal for compile-time package overrides support

2020-07-20 Thread Yuriy Yarosh
> don't think it's going to be feasible to make it possible to replace the standard library net package. Well, I'm not proposing to replace entirely, just to add some annotations for the compiler, like use this instead of net package over here... > That's a lot of work and a massive increase i

Re: [go-nuts] Proposal for compile-time package overrides support

2020-07-20 Thread Ian Lance Taylor
On Mon, Jul 20, 2020 at 12:23 PM Yuriy Yarosh wrote: > > Basically I'm replacing net package partially rn with custom DPDK-enabled > impl right now i.e. everything syscall.Socket related. > It's not about the protocols, it's about replacing whole BSD sock API and > epoll/kqueue with a custom imp

Re: [go-nuts] Proposal for compile-time package overrides support

2020-07-20 Thread Yuriy Yarosh
Basically I'm replacing net package partially rn with custom DPDK-enabled impl right now i.e. everything syscall.Socket related. It's not about the protocols, it's about replacing whole BSD sock API and epoll/kqueue with a custom impl enterily. I've managed to impl a PoC for this, might create a

Re: [go-nuts] Proposal for compile-time package overrides support

2020-07-20 Thread Ian Lance Taylor
On Mon, Jul 20, 2020 at 7:53 AM Yuriy Yarosh wrote: > > Basically I've got some different tcp/ip stack implementations based on DPDK > and want to be able to replace existing types and methods of the stock net > package, which would allow to add DPDK support for existing apps without any > amen

[go-nuts] Proposal for compile-time package overrides support

2020-07-20 Thread Yuriy Yarosh
Basically I've got some different tcp/ip stack implementations based on DPDK and want to be able to replace existing types and methods of the stock net package, which would allow to add DPDK support for existing apps without any amends as a complete plug'n'play. Same goes for JSON serialization