Re: [go-nuts] Dlopen without Cgo on Darwin (#18296)

2019-12-13 Thread Jimmy Tang
A readme to make it discoverable would be nice as well. On Saturday, 14 December 2019 04:17:24 UTC+11, Ivan Trubach wrote: > > Sure, I will. The dyld package should work for dlsym C calls, however I > don’t think it’s possible to do callbacks with the functionality runtime > exposes (i.e. I am t

Re: [go-nuts] Dlopen without Cgo on Darwin (#18296)

2019-12-13 Thread 'Ivan Trubach' via golang-nuts
Sure, I will. The dyld package should work for dlsym C calls, however I don’t think it’s possible to do callbacks with the functionality runtime exposes (i.e. I am talking about API that sys/windows package provides). So, yeah, while there is no need for Darwin dlopen in x/sys/unix, we still nee

Re: [go-nuts] Dlopen without Cgo on Darwin (#18296)

2019-12-12 Thread Ian Lance Taylor
On Thu, Dec 12, 2019 at 10:55 PM 'Ivan Trubach' via golang-nuts wrote: > > Hi, I’ve stubbled upon issue 18296 (dlopen/dlsym without CGo). The discussion > focuses on Linux, but since Go on Darwin already co-exists with libSystem, > wouldn’t it be trivial to add Darwin dlopen support to e.g. x/sy

[go-nuts] Dlopen without Cgo on Darwin (#18296)

2019-12-12 Thread 'Ivan Trubach' via golang-nuts
Hi, I’ve stubbled upon issue 18296 (dlopen/dlsym without CGo). The discussion focuses on Linux, but since Go on Darwin already co-exists with libSystem, wouldn’t it be trivial to add Darwin dlopen support to e.g. x/sys/unix? I’ve also set up a small standalone dlopen demo: https://github.com/tie