Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Ticket #123 (closed task: fixed)

Opened 2 years ago

Last modified 1 year ago

Create tango.sys.Library

Reported by: larsivi Assigned to: h3r3tic
Priority: minor Milestone: 0.99.2 RC5
Component: Tango Version:
Keywords: Cc:

Description

This should be a replacement for the std.loader.

Change History

11/06/06 00:40:48 changed by jcomellas

  • status changed from new to assigned.

12/16/06 10:25:45 changed by larsivi

  • milestone changed from 0.9 to 0.95 Beta1.

01/09/07 05:21:17 changed by larsivi

  • milestone changed from 0.95 Alpha1 to 1.0.

03/04/07 14:25:49 changed by kris

  • milestone changed from 1.0 to 0.97 RC 1.

03/14/07 21:38:45 changed by kris

  • milestone changed from 0.97 RC 1 to 2.0.

In retrospect, why would we need this? Let's get some discussion going first?

03/14/07 21:40:33 changed by kris

  • priority changed from major to minor.

03/15/07 04:05:47 changed by larsivi

In retrospect, this was discussed back when the ticket was created (5 months ago). Someone did at that time ask for std.loader and it was mentioned that it kinda sucks (reflected in the fact that all that needs such functionality rather rolls their own solution) although the functionality can be very useful. Originally, we we're thinking DDL for this kind of functionality, but we considered it too heavy for this, and thus the suggestion tango.sys.Library cropped up. Juan were confident that a much better solution could be made of this and wanted to give it a try.

03/15/07 09:44:59 changed by jcomellas

I have implementation of this, but seeing what Flectioned can do, what I wrote is just a cruel joke. What I did was create a wrapper of dlopen/dlsym/dlclose on POSIX and of LoadLibrary/GetProcAddress/FreeLibrary? on Windows. Is there still any interest for something like that?

09/06/07 17:44:52 changed by clayasaurus

std.loader replacement would be nice, but std.loader is not a good model about how to accomplish this task.

The functionality is useful in projects like Derelict, where libraries load the dll files and .so files at runtime, and extract only the needed functions from the dll and so.

I think Aldacron might be useful of such a module, as he rolled his own std.loader version after std.loader wasn't up to the task.

~ Clay

09/06/07 17:47:40 changed by clayasaurus

What I meant to say was, contacting Aldacron might be helpful in the design of this module. Here is the Derelict version.

http://www.dsource.org/projects/derelict/browser/trunk/DerelictUtil/derelict/util/loader.d

09/06/07 17:54:12 changed by h3r3tic

std.loader replacement would definitely be nice :P I needed it yesterday and had to write my own wrapper instead. Not only is it ugly, it also doesn't work outside of Windoes. Ah the laziness :P

P.S. larsivi made me write this :F

10/02/07 03:53:04 changed by larsivi

  • owner changed from jcomellas to h3r3tic.
  • status changed from assigned to new.

10/02/07 03:55:05 changed by larsivi

  • status changed from new to closed.
  • resolution set to fixed.
  • milestone changed from 2.0 to 0.99.2 RC5.

tango.sys.SharedLib? was committed in [2598], thanks Tom for sharing ;)