Live data from Hacker News

The Sin of Sloth – an external module system for C

billwadge.wordpress.com

1–10 of 11 posts

Re: The Sin of Sloth – an external module system for C

#4
post #3
post #2

So, where can I download this module system?

Maybe that is the reason it didnt catch on? (actually I am having the same question as you)

Not even linked in the blogpost or pdf. No traces on Google. Seems unfortunate.

Edit: Removed slander.

Re: The Sin of Sloth – an external module system for C

#6
This reads quite complicated, a simple example would really help to get the picture.

Just as side-note: There is already a kind of C module system, at least when you can live with GPL licensed code: The GNU Portability Library (Gnulib). It's a source code collection designed for portability and in combination with GNU Autotools a very powerful toolbox.

Re: The Sin of Sloth – an external module system for C

#7
post #6

This reads quite complicated, a simple example would really help to get the picture. Just as side-note: There is already a kind of C module system, at least when you can live with GPL licensed code: The GNU Portability Library (Gnulib). It's a source code collection designed for portability and in combination with GNU Autotools a very powerful toolbox.

How is gnulib at all a module system? It's just a library from what I can tell.

Re: The Sin of Sloth – an external module system for C

#8
post #5
post #3

Earlier quoted context omitted.

Maybe that is the reason it didnt catch on? (actually I am having the same question as you)

I'll arrange something

Were you committing the sin of sloth when writing that post? But seriously, announcing something like that and not following "show me the code" is rather unusual these days.

Re: The Sin of Sloth – an external module system for C

#9
post #7
post #6

This reads quite complicated, a simple example would really help to get the picture. Just as side-note: There is already a kind of C module system, at least when you can live with GPL licensed code: The GNU Portability Library (Gnulib). It's a source code collection designed for portability and in combination with GNU Autotools a very powerful toolbox.

How is gnulib at all a module system? It's just a library from what I can tell.

Gnulib is distributed in source code format and comprises several bundled functions aka "modules" including dependencies.

You either download individual files online or clone the whole repository for local usage. There is the gnulib-tool utility which you use to copy the required source modules into your project. They come along with Autoconf macros and build scripts.

After properly setting up your configure.ac and Makefile.am, all imported modules will be build, the resulting object is a static libary libgnu.a, ready for linking.

On the source code side, the only thing you will do is #include ".h" and use the available functions.

Autoconf & Automake take care of the rest for building.

For me, this feels very much like a module system (designed for maximum portability), but of course there might be other definitions of a module system.

https://www.gnu.org/software/gnulib/MODULES.html

Re: The Sin of Sloth – an external module system for C

#10
post #9
post #7

Earlier quoted context omitted.

How is gnulib at all a module system? It's just a library from what I can tell.

Gnulib is distributed in source code format and comprises several bundled functions aka "modules" including dependencies. You either download individual files online or clone the whole repository for local usage. There is the gnulib-tool utility which you use to copy the required source modules into your project. They come along with Autoconf macros and build scripts. After properly setting up your configure.ac and M…

Colour me surprised. Yeah, that looks like a module system to me.
Post reply on HN