Mock (real) cmake project to build off of. Would like to handle the subprojects chicanery nicer, but for now... Next up is tests, somehow.
Sample test, using the CATCH testing framework (which seems to be under active-ish development and is header only. \o/)
Wacky test shenanigans. Does this really work?
welp, forgot "enable_testing()"
Debugging, and c++11 threads. And events.
Don't need a "_set" variable in the event, apparently. Also, changed the name of the project to corelib.
Reorganzing event into a different (real) library.
Adding a timer class to wrap std::chrono stuff and do intervals (for measuring!)
Better timing for test, and moving the results into a string so we don't have weird thread contention with std::cerr
The event timer can time out! \o/
Some fixed point math performance tests compared to FLOPs. Preliminary verdict: floats suck, fixed point ftw
asDouble, and some multiply and division stuff.
Some interesting benchmarks? Maybe fixnum isn't some magical silver bullet after all.
Nah, I'm just dumb. Can't make the main constructor invoke operator=(double), unless we want to be doing a FLOP every time we initialize a variable. :awesome:
Updating tests to work with new "don't do flops on assignment" paradigm (durrr). Verdict: faster. Fast enough? Not sure.
Slight reorg
FixedPointNumber now uses a friend template (smh) to have "fast" versions of multiply/divide that cut some corners for performance. fastdouble and fastfloat to go with fixdouble and fixfloat.
lib/socket
Less headers.
Take the port in the constructor