[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Why does the default cpath not have lib?.so in it?
- From: Matthew Frazier <leafstormrush@...>
- Date: Wed, 14 Sep 2011 11:09:56 -0400
On Sep 14, 2011, at 9:54 , Sebastien Lai wrote:
> On Wed, Sep 14, 2011 at 8:07 AM, Tim Caswell <tim@creationix.com> wrote:
>> FWIW, the way we solved this in nodeJS is to change the extension to .node
>> and require can only open those and not arbitrary .so files.
>>
>
> But doesn't that introduce additional ambiguity?
>
> As far as I know, Lua keeps it that way to remove any possible
> ambiguity. Just by looking at the file extension ".node" it's not
> possible to tell whether it's a DLL, SO, or a simple javascript file.
>
Alternatively, Lua could use ".lua.so" or ".lua.dll". This both makes it clear that (a) it is a normal .so or .dll file, and (b) it is intended for use with Lua.
Thanks,
Matthew Frazier
http://leafstorm.us/