News for hackers. Stuff that matters.
Re:Single-file C/C++ public-domain/open source libraries wit... by quinthar on Saturday December 17, 2016 @06:06PM (#13203268)
In the FAQ it just says "Come on" for SQLite included in the list. Can you provide a bit more detail? This feels like a pretty great option to include here.
Re:Single-file C/C++ public-domain/open source libraries wit... by idm on Saturday December 17, 2016 @06:11PM (#13203291)
My theory: everybody knows sqlite can be distributed as a single-file library that you can happily embed. However, it's a pretty complex beast compared to the rest of the list and maybe it's outside the vision of the list altogether, which features much simpler projects.

Edit: to be even clearer, sqlite is 100+ .c files. Yes, you can make it one "amalgamated" .c file, but no developer works on that file; they work on the 100+ smaller .c files.

Re:Single-file C/C++ public-domain/open source libraries wit... by billforsternz on Saturday December 17, 2016 @07:24PM (#13203577)
No developer working on SQLite uses the amalgamated file, but developers using SQLite often do use the amalgamated file.
Re:Single-file C/C++ public-domain/open source libraries wit... by sfifs on Sunday December 18, 2016 @06:32AM (#13205403)
I guess you mean SQLite developers don't use the amalgamation. It is used by users.

The amalgamation is used for instance in the most popular Golang library to provide SQLite engine.

Re:Single-file C/C++ public-domain/open source libraries wit... by jbarham on Sunday December 18, 2016 @05:42PM (#13208170)
Re:Single-file C/C++ public-domain/open source libraries wit... by billforsternz on Saturday December 17, 2016 @06:41PM (#13203417)
I was puzzled by that too. I've used the SQLite amalgamation and thought it was a very clever way of avoiding the complexities of libraries. I took inspiration from it in my chess program and amalgamated all my chess primitives into a single file to avoid the pain of a library dependency. It's an inspired idea and deserves better than "come on".
Re:Single-file C/C++ public-domain/open source libraries wit... by nickez on Saturday December 17, 2016 @06:21PM (#13203341)
It is a 6MB file produced from several source files.. Does any library count if I concatenate all the source files to a single file?
Re:Single-file C/C++ public-domain/open source libraries wit... by quinthar on Saturday December 17, 2016 @06:32PM (#13203388)
Well if the rules are:

- Libraries must be usable from C or C++, ideally both

- Libraries should be usable from more than one platform (ideally, all major desktops and/or all major mobile)

- Libraries should compile and work on both 32-bit and 64-bit platforms

- Libraries should use at most two files

Then ya, I think it'd fit. I'm not sure why size matters here: the goal is to have libraries that are easily embedded. Anyway, I was mainly curious for the reason. If size is the reason, then that's that. Thanks!

Re:Single-file C/C++ public-domain/open source libraries wit... by BinaryIdiot on Saturday December 17, 2016 @10:24PM (#13204143)
Sure, why not? It's just another distribution method of a library and it seems to fit the criteria.

Why would it matter if the original developer coded everything in a single, huge file or multiple small ones that get distributed as one? Seems arbitrary.

Re:Single-file C/C++ public-domain/open source libraries wit... by netheril96 on Sunday December 18, 2016 @09:47PM (#13209170)
I believe the "any library" should count if it just builds when concatenated. Many won't though.
Re:Single-file C/C++ public-domain/open source libraries wit... by gfody on Sunday December 18, 2016 @03:10AM (#13204860)
They also say shame on you if you're using XML, so I suspect some adolescent. Ain't no shame in using XML kiddo
Re:Single-file C/C++ public-domain/open source libraries wit... by cgvgffyv on Sunday December 18, 2016 @12:56PM (#13206751)
Extraordinary claims require extraordinary evidence.

On your part, that is.

Re:Single-file C/C++ public-domain/open source libraries wit... by gfody on Sunday December 18, 2016 @07:13PM (#13208530)
Re:Single-file C/C++ public-domain/open source libraries wit... by cgvgffyv on Monday December 19, 2016 @05:32PM (#13215610)
Clearly, I meant evidence for saying that there's no shame in using XML.