7 karma · joined Sep 23, 2014 (12y ago) · 10 submissions
comment 11y ago · link · parent
Consider python's pip. Bootstrapping a python codebase is simple, just run pip install -r requirements_file.txt. The bootstrapping itself may take some time, but it's automatic and simple to do.
We need exactly the same for C and C++. Bootstrapping huge C/C++ libs will never be done in a couple of minutes, compiling those take time. But the process of triggering that bootstrap can (and should) be simple and natural (I think we achieved that with boost on biicode. Of course everything can be improved). That's what a C/C++ dependency manager means. Forget to elide large compile times, that's a matter of how the language works. But let's try to make gluing C/C++ libraries together an easy to "call" task.
comment 11y ago · link · parent
comment 11y ago · link · parent
comment 11y ago · link · parent
Those libraries usually have their own hardcoded tricks and metafunctions. What I'm trying with Turbo is to provide all that functionality in a portable and easy way.
comment 12y ago · link · parent
comment 12y ago · link · parent
comment 12y ago · link · parent
The point of the example is: We represent a string as a variadic pack of chars, and build_string is a metafunction that builds that kind of string recursively given a starting character and a size. Inside that metafunction we define an aux metafunction build_string_impl that does the job, we only have to pass the required initial parameters (The count of chars and the initial empty string). The first partial specialization acts as the recursive case of that function, and the second is the base case (note count is 0 in that case).