[erlang-questions] Why do we need modules at all?

Vlad Dumitrescu vladdu55@REDACTED
Tue May 24 16:50:09 CEST 2011


2011/5/24 Frédéric Trottier-Hébert <fred.hebert@REDACTED>

> One issue is that while plain files are abstractions, they are a very
> common one, compatible with most systems you will see in use, and on which
> many tools have been developed, including source control, IDEs, e-mail
> attachments, documentation and conversation.
>
> I do not see the idea of a database as inherently bad -- it could be a good
> supplement to the developer, much like module_info is for modules. Using a
> DB for everything (with unique IDs) could solve the problem of nested
> dependencies, where library A needs library B 1.1.2 while library C needs B
> 1.2.0 and both can not be loaded at once.
>
> But the social problems it creates -- how to communicate about functions,
> how to regroup collections of them in an exportable way, how to version
> them, how to patch them, how to reload them, etc. are not worth the change,
> I believe.
>

One can always create a virtual filesystem on top of the database.

One can also implement a virtual database on top of the filesystem.

regards,
Vlad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110524/98629696/attachment.htm>


More information about the erlang-questions mailing list