camel-cdr / cauldron Goto Github PK
View Code? Open in Web Editor NEWA collection of single-file C libraries. (generic containers, random number generation, argument parsing and other functionalities)
License: MIT License
A collection of single-file C libraries. (generic containers, random number generation, argument parsing and other functionalities)
License: MIT License
This recent reddit post outlined some problems with header only libraries in c.
TLDR: Static functions will get omitted in every translation unit separately.
I still want to maintain the header only part though, especially for random.h, as splitting it up would break the literate programming style.
Ideally I'd use a hybrid stb style, where the longer functions, like most the distributions, are only implemented if RANDOM_H_IMPLEMENTATION
is defined and all the other smaller functions are still static inline
.
This would either require a header of forward declarations, which could be merged with the API overview
chapter, but this would require about tree to four time more lines for the chapter.
Or the RANDOM_H_IMPLEMENTATION
guard could also be used on a per function/chapter basis. If I choose this solution I'll probably also remove some *_AVAILABLE
guards that check for uintN_t
and the floating point format and combine the checks into one that does #error
if the features aren't available.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.