Hacker News new | past | comments | ask | show | jobs | submit login

Unfortunately ChaiScript needs to be header-only because it's like 99% templates.

You can put all your ChaiScript-related code into an isolated implementation file, and try to avoid touching that file as much as possible. But that only works well for long-term projects, where once you get all the bindings you need set up, you can coast for a while without touching those files.

For short-term projects it's a nightmare because you're constantly touching the ChaiScript files.

There's no inherent reason a header-only library should significantly impact compile times, aside from the fact that the authors usually don't have the foresight to make it efficient. It's also very difficult to find information about how to make templates more efficient at compile time.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: