Re: ssll - simple shared library loader

2020-01-10 Thread Oleg B via Digitalmars-d-announce
On Monday, 6 January 2020 at 10:04:38 UTC, Sönke Ludwig wrote: I've written something similar with the goal to make it work transparently with existing static bindings: https://code.dlang.org/packages/dynamic It uses a mixin to specify the module(s) containing the declarations instead of a

Re: ssll - simple shared library loader

2020-01-10 Thread Oleg B via Digitalmars-d-announce
On Monday, 6 January 2020 at 04:32:25 UTC, Mike Parker wrote: On Sunday, 5 January 2020 at 23:23:48 UTC, Oleg B wrote: Nice work! One thing I would recommend, though, is that you not bake in extern(C). Some libraries require extern(System) (because they're stdcall on Windows and cdecl

Re: ssll - simple shared library loader

2020-01-06 Thread Sönke Ludwig via Digitalmars-d-announce
Am 06.01.2020 um 00:23 schrieb Oleg B: It's analog of bindbc, but without need write boilerplate code. May be bindbc is designed for another cases, but I don't understand need writing triple definition for one function (pointer, loading, wrap-function). ssll betterC compatible too, and tested

Re: ssll - simple shared library loader

2020-01-06 Thread user1234 via Digitalmars-d-announce
On Sunday, 5 January 2020 at 23:23:48 UTC, Oleg B wrote: It's analog of bindbc, but without need write boilerplate code. May be bindbc is designed for another cases, but I don't understand need writing triple definition for one function (pointer, loading, wrap-function). ssll betterC

Re: ssll - simple shared library loader

2020-01-05 Thread Mike Parker via Digitalmars-d-announce
On Sunday, 5 January 2020 at 23:23:48 UTC, Oleg B wrote: Nice work! One thing I would recommend, though, is that you not bake in extern(C). Some libraries require extern(System) (because they're stdcall on Windows and cdecl everywhere else). There's also the issue with the Windows stdcall

ssll - simple shared library loader

2020-01-05 Thread Oleg B via Digitalmars-d-announce
It's analog of bindbc, but without need write boilerplate code. May be bindbc is designed for another cases, but I don't understand need writing triple definition for one function (pointer, loading, wrap-function). ssll betterC compatible too, and tested on windows (x86) and linux (x86, ARM).