# Stroika Release Notes ## About These release notes are a summary of major user (developer)-impactful changes - especially those they need to be aware of when upgrading. ## History ### 3.0d23 {2026-04-11} {[diff](../../compare/3.0d22...3.0d23)} #### TLDR - Implemented more fully and internally synchronized versions of various DocumentDB backends - Fixed issue with webserver 'leaving around' extra connections in lists of open connections - fixed github action out of space issues (again) - Duration no longer emits ISO 8601 Part 2 format strings (fail to parse in some js libraries) - fixed processrunner hang which caused service manager (service restart) on UNIX to not work properly - Big cleanup of SharedByValue (concepts etc) - qStroika_ATTRIBUTE_NO_UNIQUE_ADDRESS_VCFORCE use so VS how properly optimizes size in at least a few cases (most important ones). - OAuth fetcher caching - Major re-org of Caching code - more concepts - deprecated many implementations and folded their logic into TimedCache<>, and did Synchronization support via traits (instead of subclass) - Abandon support for MacOS 14, and XCode 15 (require MacOS15 or later and XCode 16 or later) #### Upgrade Notes (3.0d22 to 3.0d23) - Cache - Replace use of SynchronizedTimedCache with use of InternallySynchronized traits argument (documented in TimedCache CTOR example) - LRUCache factory code - and regtests and deprecating older api; - deprecated files SynchronizedCallerStalenessCache.h CallerStalenessCache.h, SynchronizedLRUCache.h (just use TimedCache.h) - FloatConversion - Renamed Precision to SignificantFigures - deprecated TrimTrailingZerosType, eDontTrimZeros, eTrimZeros: replaced with eScientificWithWhitespaceTrimmed and eFixedPointWithWhitespaceTrimmed - Renamed TrivialDocumentDB -> LocalDocumentDB - Renamed NullMutex to NullLock #### Change Details - Documentation - Building-Stroika.md - Varied updates - docs in FAQ about common vscode build errors on new machine - FAQ for command 'cpptools.activeConfigName' not found - Misc cleanups, including ReadMe docs, and class comments/docs - Build System and Scripts - .vscode - removed ThirdPartyComponents/*/CURRENT/** from C_Cpp.files.exclude (experimenting a bit) - .github Actions/Workflows - setting dockerroot on windows github action to d:\docker (to address running out of space issue on windows) - Build/Release docs - fixed regtest docs for .local => .lan name change - Makefile - added new top level makefile target library-clobber and used it in .vscode/tasks.json for rebuild task - fixed (by simplifying makefile) mkaefile for top level make of all or libraries when QUICK_BUILD=1 is on (now that default so more prominent when it was broken) - handling failures - ECHO_TIMESTAMPS experimental feature in top-level Makefile (show how long many/most makes took) - Scripts - configure - fixed configure script so test for presence of python doesn't hang on latest msys under docker - tweak help - fixed scripts FormatCode so works on macos (weaker version of expand) - Added mingw to path in .vscode/launch.json - Docker - Windows - now uses VS_17_14_27 visual studio - now uses MSYS_20251213 - Compiler Bug Defines - define new compiler bug define qCompilerAndStdLib_NamedAutoLocalBindingNotCapturable_Buggy for clang++15 and workaround - new qCompilerAndStdLib_float2string_defaultfmt_scientificNotStripped_Buggy BWA - Simplify/enahance BWA for qCompilerAndStdLib_template_template_auto_deduced_Buggy - new qCompilerAndStdLib_NO_UNIQUE_ADDR_IgnoredAndMustUseMSVCNOUNIQUE_Buggy and qCompilerAndStdLib_NO_UNIQUE_ADDR_REALLYREALLY_Buggy - BWA issue with crasher in g++13 release build was compiler bug, but worked around by cleaning up general case code (more tolerant of bad data from sql) - hard to isolate bug - and only appears to happen with sanitizers and optimization and g++13 - lose define qCompilerAndStdLib_lambdas_in_unevaluatedContext_Buggy and qCompilerAndStdLib_lambdas_in_unevaluatedContext2_Buggy cuz no more BWAs for it, and no way (effectively) to test anymore if its still there - qCompilerAndStdLib_RequiresNotMatchInlineOutOfLineForTemplateClassBeingDefined_Buggy BWA - bug defines qCompilerAndStdLib_NO_UNIQUE_ADDR_IgnoredAndMustUseMSVCNOUNIQUE_Buggy and qCompilerAndStdLib_NO_UNIQUE_ADDR_REALLYREALLY_Buggy) - another BWA needed for qCompilerAndStdLib_FloatNonTypeTemplateArgument_Buggy - qCompilerAndStdLib_explicitly_defaulted_threeway_warning_Buggy BWA - updated qCompilerAndStdLib_deduce_template_arguments_Using_Buggy bug define - qCompilerAndStdLib_template_template_argument_as_different_template_paramters_Buggy simpler BWAs - try marking qCompilerAndStdLib_stdlib_ranges_pretty_broken_Buggy broken for clang16 on macos cuz xcode 15.3 clang++ 15.0.7 now apprears to report clangMAJOR == 16? - another qCompilerAndStdLib_ConstraintDiffersInTemplateRedeclaration_BWA BWA - Library - Foundation - Cache - Common - Moved a bunch of common cache types/concepts here - IValuelessCache, NonKeyedKeySentinalType, etc. - LRUCache - IValuelessCache support in LRUCache and LOSE hack I had about if KEY=VALUE type - docs - use Concepts (e.g. new ICache, IValuelessCache, etc...) - lock tweaks - RemoveAll(PREDICATE) - regtest cleanups - fixed CacheElt_COMPARE_ITEM_EQComparer_ to be ComparisonRelationType::eEquals (respect stronger concept typing in cache code) - LRUCache factory code - and regtests and deprecating older api; - Deprecated SynchronizedLRUCache.h and rediud SynchronizedLRUCache in LRUCache.h - Memoizer - cleanups - use qStroika_template_template_BWA BWA - new function MakeMemoizer - TimedCache - major cleanup using concepts/traits - now directly includes (optional) support for internal syncrhonization - deprecated SynchronizedTimedCache (directly supported by TimedCache now). - RemoveAll and RetainAll () methods added - TRAITS kTrackFreshness/kTrackExpiresAt support (TrackExpirationTraits) - LookupValue() code cleanups (concepts over std::function usage), and docs cleanups - new traits feature kAutomaticPurgeFrequency to replace deprecated PurgeSpoiledDataFlagType - new GetExpiration API - IValue support so can use void for value - expose kHoldWriteLockDuringCacheFill through traits - though no change by default - just allows external testing of this 'feature' - fMaxAge_ now optionally removed/empty if TRAITS set to remove it (not by default) - simplify upgradeLock/LookupValue code cuz sporadically fails on MacOSX (not sure why - looked fine) - but test with simpler code and see if works better - deprecated templates SynchronizedCallerStalenessCache and CallerStalenessCache - Supported kAutomaticPurgeFrequency; respected kPerCacheMaxAge and kDefaultMaxAge - sometimes copying that as default and supporting default CTOR often - deprecated APIs using TimeStampType maxAge - cuz were in CallerStalenssCache - deprecated files SynchronizedCallerStalenessCache.h CallerStalenessCache.h - replaced impl of CallerStalenessCache SynchronizedCallerStalenessCache with use of TimedCache - Major revsions to TimedCache to support void KEY (for replacing CallerStalenessCache) - TimedCache<> callerstalenessCache support (TrackFreshness) - Statistics (for Cache code) - minor copy/move cleanups to cache Stats_Basic code - Characters - CodeCvt - tweaked weakassert in CodeCvt.inl - FloatConversion - Docs - Lots of cleanups and significant improvement (but alot of cleanup needed after I lose deprecated APIs) - More ToStringOptions CTORs constexpr - Fixed FloatConversion::ToString (eTrimZeros) case of last .0 (cuz I had documented it that way and better), and added regtests for this and many other eFixedPoint FloatConversion::ToString() calls - lots of cleanups and simplifications / docs for FloatConversion code (sb no semantic changes, except making a few things inline->constexpr), and added Precision::kDefault - mostly docs. - Added FloatFormatType::eStandard (not NYI really) - and several other cleanups to ToString_GeneralCase_ - but still more todo - but testing passes all regtests - improved FloatConversion regtests - fixed FloatConversion handling of precision for scientific case - new Precision::CalculatePrecision () utility - Renamed FloatConversion::Precision to FloatConversion::SignificantFigures - deprecated FloatFormatType::eAutomaticScientific - deprecated TrimTrailingZerosType, eDontTrimZeros, eTrimZeros: replaced with eScientificWithWhitespaceTrimmed and eFixedPointWithWhitespaceTrimmed - Common - Concepts - new concept concept ICVRefTd - StdCompat - #define qStroika_ATTRIBUTE_INDETERMINATE [[indeterminate]], and used all over the place instead of comments - Added to Common::Concepts BasicLockable and Lockable - from std-c++ - renamed _ASSUME_ATTRIBUTE_ -> qStroika_ATTRIBUTE_ASSUME - new qStroika_ATTRIBUTE_NO_UNIQUE_ADDRESS and qStroika_ATTRIBUTE_NO_UNIQUE_ADDRESS_VCFORCE and qStroika_ATTRIBUTE_NO_UNIQUE_ADDRESS_VCBUGGY use instead of [[no_unique_address]] (see qCompilerAndStdLib_NO_UNIQUE_ADDR_IgnoredAndMustUseMSVCNOUNIQUE_Buggy and qCompilerAndStdLib_NO_UNIQUE_ADDR_REALLYREALLY_Buggy) - qStroika_ATTRIBUTE_NO_UNIQUE_ADDRESS with qStroika_ATTRIBUTE_NO_UNIQUE_ADDRESS_VCFORCE (cuz works) and with qStroika_ATTRIBUTE_NO_UNIQUE_ADDRESS_VCBUGGY - TemplateUtilities - moved FunctionTraits from Concepts.h to TemplateUtilies.h - Simplified Common::FunctionTraits a bit - fewer intermediate classes - use FunctionTraits arg_t instead of arg::type (instead of arg::type) - TypeHints - message improvement in TypeHints ArgByValueType - Containers - Mapping - A few fixes to RetainAll/RemoveAll - concepts/corner cases - no changes to running code - just to checks/reporting - Database - DocumentDB - API - Database::Document new Options feature, and new option fAddAllowsExternallySpecifiedIDs, and respected in Add () method (not everywhere yet but mostly and assert when would fail) and support in concrete containers - Ptr::GetOne (Filter) overload - renamed GetOne to Get - support in DocumentDB code for GetsSpaceConsumed () - support fOperationLoggingCallback option specification - Improve use of DeclareActivity in DocumentDB wrappers - Collection added 'GetName' method, and used in LazyEvalActivity declaration/exception report - LocalDocumentDB - Renamed TrivialDocumentDB -> LocalDocumentDB (questionable but both names sucked) - Implemented SingleFileDB, DirecotryDB and MemoryDB cases decently. - Examples/Samples/RegressionTests - file-based impls now how option for fRetryOnSharingViolationFor (passed to ThroughTmpFileWriter) - new fReadInitialData option for LocalDocumentDB::SingleFile variant - renamed recent LocalDB option fReadInitialData -> fForceCreateNew - Database::Document::LocalDocumentDB FlushOnEachWrite option and explicit Flush API - new option fForceCreateNew support for LocalDocumentDB::DirectoryFilesystem... - MongoDBClient - fixed to handle either oid _id or string _id field, and other cleanups - support for WrapExecute_/logging/tracking - SQLite - support for WrapExecute_ (so reports log stats/trace messages) - fixed SQLite bindings - so support funky table names (wrap them in quotes) - fixed bug where query with force add ids, but object missing - API no longer has Peek() at sqlite3 object, cuz would break thread safety gaurantees (for internally synchronized case) - refactor extract of string col value from sqlite through ExtractColumnText_ helper with asserts and mapping of null-column to empty string - and otherwise throws if bad column type or cannot convert - all concrete DocumentDBs get (LocalDocumentDB, SQLite and Mongo) - Option fInternallySynchronizedLetter - Tests - TestAddNewWithExternalKeysProvided_ (for all backends) - ObjectCollection - const fix for Ptr, and added missing AddOrUpdate () method - fixed missing overloads for Get/GetOrThrow in Document/ObjectCollection - DataExchange - OptionsFile - Tweak messages - Variant - Reader - Read method now const - Writer - JSON - deprecated/renamed fJSONPrettyPrint->fPrettyPrint name of option for JSONSerializer; - added fCanonicalize support to it (for easier diff testing) - Debug - AssertExternallySynchronizedMutex - support try_lock - mark as Common::StdCompat::Lockable<> - docs and static_assert - BackTrace - Comments and SuppressInterruptionInContext in BackTrace::Capture so clear not a cancelation point - Trace - #if qStroika_Foundation_Debug_TraceToFile define Debug::GetTraceFileName () API returning name of tracefile; - Execution - CommandLine - maked fArgument field const since its public so it can only be read not set - ModuleGetterSetter - concept checking on IMPL - better docs - new AssureLoaded method - NullLock - **renamed NullMutex to NullLock** - ProcessRunner - minor cleanup of BackgroundProcess::WaitForStarted() - Various cleanups - deprecated ProgressMonitor API (was never used, and dont have clear docs about how I intended to use it - can add back in the future if ever needed, but document how it mgiht work) - refactoring of private CreateRunnable_ into CreateDetailedRunnable_ and CreateSimpleRunnable_ () and have it return shared_ptr so lifetime safety FIX - ProcessRunner 'ToString' methods added to a few places to ease debugging - Minor cleanups to (Windows) verbosity on happy path (USE_NOISY_TRACE_IN_THIS_MODULE_) - RunInBackground - fDetached support - document restrictions in ProcessRunner when fDetached, and enforce them and fix behavior for POSIX case (untested) - fixed RunInBackground detached for POSIX (enabled test for posix) - appear to have fixed ProcessRunner detached mode on windows too - Tests: Foundation_Execution_ProcessRunner RunInBackgroundDetached - SpinLock - lose dependency on pre c++20 - Thread - Suppressed interrupt throw DBGTRACE message now has stacktrace too - improved DbgTrace with CheckForInterruption - **fixed serious bug to stop_callback handling** (__cpp_lib_jthread) in Thread::Ptr::Rep_::ThreadMain_ - VirtualLockable **new utility class** - WaitForIOReady - Execution::WaitForIOReady = kDefaultTypeOfMonitor now includes Error and HUP events (cuz typically if you are waiting for a read, you would probably want to know about those too) - lose TypeOfMonitor::eError and eHUP, and added ePriority (and docs) - USE_NOISY_TRACE_IN_THIS_MODULE_ improvements - IO - FileSystem - WellKnownLocations - various cleanups: leave a few variables uninitialized (use qStroika_Foundation_INDETERMINATE) - ThroughTmpFileWriter - Fixed - not 100% - but much better - random filename generation so fewer conflicts with other processes doing same thing - and weakassert on failure/conflict - #if qStroika_Foundation_Common_Platform_Windows = added fRetryOnSharingViolationFor support to IO/FileSystem/ThroughTmpFileWriter - defaulting to retry for one second - treat ERROR_ACCESS_DENIED same as ERROR_SHARING_VIOLATION (as both can happen from virus scanner) - for WINDOWs - if DeleteFileW fails, use MoveFileExW (null, MOVEFILE_DELAY_UNTIL_REBOOT) to force eventually delete - Network - Interface - fixed log warning about IF_TYPE_PROP_VIRTUAL - mapped to Interface::Type::eDeviceVirtualInternalNetwork and added docs - ConnectionOrientedStreamSocket - minor cleanups - fixed so tracks if we've ever seen 0 returned by READ/RECV, and if so, mark socket at EOF, so henceforth always returns known zero bytes available and read returns zero (so can tell cleanly shutdown and closed) - HTTP - MessageStartTextInputStreamBinaryAdapterMinor - small cleanups (code is a bit of a mess) - Memory - Common - Memory::CopyToIf () overloads now constexpr - SharedByValue - Major cleanup using concepts - now can control if it uses instance var or not easily and checked with traits, and concepts and right CTOR overloads present/absent accordingly. - new namespace SharedByValueSupport for most of the concepts/traits/utility definitions - DefaultValueCopier - Streams - InputStream - fixed InputStream::Ptr::IsAtEOF () bug - was quite wrong result - Time - ClockCast - Time::clock_cast cleanups, docs, and regtests - Duration - now for Duration ToString code - use ToStringOptions {eStandard} (+exxx stuff only supported in ISO 8601 Part 2) - Traversal - DiscreteRange, DisjointRange, DiscreteDisjointRange, Range - Added concept usage - Added IRangeableTraits and IAdvanceAndRetreatable in a few places more - use Memory::MakeSharedPtr in a bunch of places instead of std::make_shared, as possible optimization - used final in a bunch of places it should be used - Foundation - Common - Compiler Bug Defines - fixed compiler bug defines for apple __clang_major__ 17 (xcode 16.4) - fixed qCompilerAndStdLib_template_second_concept_Buggy define for xcode 16.4 - apple bug defines for clang++ 17 - used (new concept) Common::1 in InheritAndUseBlockAllocationIfAppropriate - Configuration - GetSystemConfiguration_ComputerNames () now returns ComputerNameDnsHostname for windows - Characters - String - Fix regression with FromSDKString of span (nul char at end). Issue is it was too easy to use buf size not 'strlen' - for number of characters captured (for example GetSystemConfiguration_ComputerNames was wrong). Now more careful in calls, and added new utility Characters::AdjustNulTerminatedStringSpan() to help sometimes. - DataExchange - InternetMediaTypeRegistry - more gracefully handle bad mediatypes line in EtcMimeTypesRep_ reader (happens when no locale code installed maybe) - Execution - Sleep/SleepUntil - slight tweaks to Sleep/SleepUnitil implementation/docs so Sleep/1 slightly and SleepUntil slightly more accurate about how long they sleep. - Memory - BlockAllocator - tweak docs and fix impl (bug bug found by g++-15) - BlockAllocator should NOT depend on qStroika_Foundation_Memory_PreferBlockAllocation define - just dont use block allocator if you dont want it. Better documented this fact - Streams - Compression - ZStd - new support added - StreamReader - docs - new IsAtEOF overload - Frameworks - WebServer - Added ContentEncoding::kZStd support to webserver - Samples - HTMLUI - Documentation improvements - Makefile echo improvements - Fixed a few HTML/GUI regressions (probably an old refactoring not well enuf tested) - so now HTMLUI sample AUTH stuff seems to work properly again - also better reporting/docs - tweak dependencies in QuasarBasedHTMLApp/package.json to workaround dependabot warnings - also check for nodejs version in addition to quasar - and skip if needed - ThirdPartyComponents - boost - 1.90 - cleanups to boost.pc and PRODUCED_OUTPUT_ARTIFACTS in boost makefile - curl - 8.17.0 - --without-zstd no longer needed (so uses zstd) - libxml2 - 2.15.1 - mongo-cxx-driver - 4.1.4 (to avoid macos issue with cmake version) - mongo-cxx-driver fixed support for zstd (still must report to mongodb folks the issue) fixed mongo-cxx-driver makefile for build with no ssl - openssl - 3.6.0 - sqlite - 3.51.1 - StrawberryPerl - 5.42.0.1 - re-ordering FETCHURLS for strawberry-perl generates fewer warnings - ZStd - 1.5.7 - newly supported building ThirdPartyComponents (static lib) - fix a few issues with integrating with other libraries (like curl, mongo-cxx) - zstd makefile - fix warning lto-wrapper: warning: Extra option to '-Xassembler... - Tests - Regression Tests - fix regtest to not fail just cuz missing en/us locale - Fixed issue that performance dumps logging were capturing the wrong data/file for the last couple releases - Tools - no change #### Release-Validation - Compilers Tested/Supported - g++ { 11, 12, 13, 14. 15 } - Clang++ { unix: 15, 16, 17, 18, 19, 20; XCode: 15.2, 15.4, 16.2, 16.4 } - MSVC: { 17.14.23 } - OS/Platforms Tested/Supported - Windows - Windows 11 version 25H2 - mcr.microsoft.com/windows/servercore:ltsc2025 (build/run under docker) - cygwin (latest as of build-time from CHOCO) - MSYS (msys2-base-x86_64-20250622.sfx.exe) - WSL v2 - MacOS - 26.2 - arm64/m1 chip - 14.8.3, 15.7.2 on github actions - Linux: { Ubuntu: [22.04, 24.04, 25.04], Raspbian(cross-compiled from Ubuntu 22.04, Raspbian (bookworm)) } - Hardware Tested/Supported - x86, x86_64, arm (linux/raspberrypi - cross-compiled, debian-12), arm64 (macos/m1) - Sanitizers and Code Quality Validators - [ASan](https://github.com/google/sanitizers/wiki/AddressSanitizer), [TSan](https://github.com/google/sanitizers/wiki/ThreadSanitizerCppManual), [UBSan](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) - [CodeQL](https://codeql.github.com/) - [Valgrind/MemCheck](https://valgrind.org/docs/manual/mc-manual.html) - Build Systems - [GitHub Actions](https://github.com/SophistSolutions/Stroika/actions) - Regression tests: [Correctness-Results](Tests/HistoricalRegressionTestResults/3.0), [Performance-Results](Tests/HistoricalPerformanceRegressionTestResults/3.0) - Known (minor) issues with regression test output - raspberrypi - 'badssl.com site failed with fFailConnectionIfSSLCertificateInvalid = false: SSL peer certificate or SSH remote key was not OK (havent investigated but seems minor) ---------------------------- ### 3.0d21 {2025-07-29} {[diff](../../compare/3.0d20...3.0d21)} #### TLDR - Configure (build) system now much more driven off pkgconfig files - stroika-frameworks.pc requires stroika-foundation.pc - stroika-foundation.pc requires third party components it is built off (e.g xerces, boost, libcurl, etc), and stroika-platform - stroika-platform.pc contains all the 'native platform' library depenencies, and C #defines etc for std c++ libraries, etc. #### Upgrade Notes (3.0d20 to 3.0d21) ##### in makefiles - lose deprecated ~~~ include $(StroikaRoot)ScriptsLib/Makefile-Common.mk ~~~ - lose ~~~ ifneq ($(CONFIGURATION),) -include $(StroikaRoot)IntermediateFiles/$(CONFIGURATION)/Configuration.mk endif ~~~ replacing with (if not already present) ~~~ include $(StroikaRoot)ScriptsLib/SharedMakeVariables-Default.mk ~~~ - move SrcDir/ObjDir to top of file, for example: ~~~ export TOP_ROOT=$(abspath ../../)/ StroikaRoot := $(TOP_ROOT)ThirdPartyComponents/Stroika/StroikaRoot/ SrcDir := $(TOP_ROOT)API-Server/Sources/ ObjDir := $(TOP_ROOT)IntermediateFiles/$(CONFIGURATION)/IPAM/API-Server/ ~~~ - Assure ~~~ include $(StroikaRoot)ScriptsLib/SharedBuildRules-Default.mk ~~~ is AFTER ~~~ include $(StroikaRoot)ScriptsLib/SharedMakeVariables-Default.mk ~~~ preferable after define of Objs - Replace use of LinkerArgs_LibDependencies with LDFLAGS ~~~ -LinkerArgs_LibDependencies += -lexiv2 -lexpat -lz ~~~ becomes: ~~~ +LDFLAGS += -lexiv2 -lexpat -lz ~~~ -EXTRA_SUFFIX_LINKER_ARGS+= -ignore:4286 +LDFLAGS+= -ignore:4286 - replace calls to DEFAULT_LINK_LINE like this (if any changes to LDFLAGS made, else harmless but not needed): ~~~ @$(call DEFAULT_LINK_LINE,$@) ~~~ with: ~~~ @$(call DEFAULT_LINK_LINE,$@,stroika-frameworks,,${LDFLAGS}) ~~~ - Replace any occurances of: ~~~ #include "Stroika-Current-Version.h" ~~~ with ~~~ #include "Stroika/Current-Version.h" ~~~ #### Change Details - Documentation - Minor Changes - Build System - Docker - changed dockerfiles to always install python3 - not conditionally (cuz switching more of scripts over from perl to python, I think) - get openssh to autostart on dev containers - lose no longer needed [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]'Tls12,Tls13' from windows Dockerfiles - VS_17_14_8 - use msys 2025-06-22 release - allow ACTUAL_RUN_CMD arg to RunInDockerEnvironemt script, and use to add start-stroika-dev-containers to makefile, and have them auto-restart on reboot - autostarting ssh - Makefiles - get rid of commented out/deprecated makefile variables: StroikaFoundationSupportLibs PKG_CONFIG_STATIC_COMPONENTS, and TPP_PKG_CONFIG_PATH - Comment out STRIP_INCLUDE_COMPILER_FLAGS since unused and appears obosolete (Makefile-Common.mk) - moved SharedMakeVariables-Default.mk StroikaLibDir to be (StroikaPlatformTargetBuildDir)lib/ (added lib/) - Big makefile refactoring - deprecating ScriptsLib/Makefile-Common.mk - just include SharedMakeVariables-Default.mk instead; - ObjDir/SrcDir declared at top of file - cleanup WIN_USE_PROGRAM_DATABASE (largely unused anymore) feature to use StroikaLibDir name so works with new location of stroika libraries - MSYS2_ARG_CONV_EXCL BWA still needed (docuemnted why) - needed more complex BWA in ScriptsLib/ApplyConfiguration fpr MSYS2_ARG_CONV_EXCL issue - lose extra no longer needed include IntermediateFiles//Configuration.mk in each makefile - now done in ScriptsLib/SharedMakeVariables-Default.mk - moved ThirdPartyComponents builds output to StroikaPlatformTargetBuildDir (one level up) - so more like standard unix --prefix and stroika libs all together with those of other libraries (for more use of .pc files) (instead of $(StroikaRoot)Builds/$(CONFIGURATION)) - better docs/warnings in ScriptsLib/SharedBuildRules-Default.mk - moved SED makefile variable into ScriptsLib/SharedMakeVariables-Default.mk - added TOP_ROOT to SharedMakeVariables-Default.mk - minor cleanup to Tests/Makefile-Test-Template.mk - use DETECTED_HOST_OS MSYS insetad of BuildPlatform is VisualStudio for one BWA specific to MSYS - lose obsolete LinkerArgs_StroikaDependentLibDependencies from SharedMakeVariables-Default.mk - cleanups to DEFAULT_LINK_LINE makefile macro (e.g LinkerArgs_ExtraSuffix changes) - cleanup makefile reacent changes (and lose deprecated LinkerArgs_LibDependencies from SharedMakeVariables.mk) - more makefile cleanups: SharedMakeVariables-Default.mk - lose deprecated LinkerArgs_LibDependencies, and cleanup RC_FLAGS/MIDL_FLAGS, StroikaRoot_MIXED cleanup - lose PKG_CONFIG_STROIKA_DEPENDS_ON - from ApplyConfiguraiton/Configuration.mk etc - largely unused(done via pkgconfig) - progress on new Platform_LDFLAGS define in SharedMakeVariables-Default.mk - Added ObjDir_ToolsSafe to SharedMakeVariables-Default.mk - Scripts - configure - revised configuration INCLUDES handling - replaced INCLUDES_PATH in ConfigurationFiles/X.xml with PLATFORM_INCLUDES_PATH and PLATFORM_INCLUDES_PATH - Lose INCLUDES_PATH from ConfigurationFiles /x.xml - use the name PLATFORM_CFLAGS instead of CFLAGS (and same for CXXFLAGS) - no longer need to add onfigurationName/ThirdPartyComponents/lib/... to @LinkerArgs_LibPath_ADD - dont print VSVARS_PLATFORM_INCLUDES_PATH to config file if not needed - renamed CONFIGFILE entry LinkerArgs_LibPath -> Platform_LinkerArgs_LibPath and LinkerArgs_LibDependencies -> Platform_LinkerArgs_LibDependencies; - dont add LinkerArgs_LibDependencies_ADD to linker-args any longer (using boost.pc); push (@packageCfgNames, boost); various makefile cleanups (esp to third party components) to get more working using --libs and pkg-config - renamed LinkerArgs_ExtraPrefix -> Platform_LinkerArgs_ExtraPrefix and LinkerArgs_ExtraSuffix -> Platform_LinkerArgs_ExtraSuffix; and draft DEFAULT_LINK_LINE2 - lose support for EXTRA_COMPILER_ARGS in configuration - configure: just include Builds/1042configurationName/include in INCLUDES_PATH_ADD instead of FOUNDATION_INCLUDES_PATH - -noexp -noimplib linker args for visual studio to avoid 'Creating library ...'' message from linker - moved Stroika-Current-Version.h to Builds/$CONFIG/include/Stroika; renamed Stroika-Current-Version to Stroika/Current-Version.h - lose IntermediateFiles from FOUNDATION_INCLUDES_PATH - renmamed configfile variable PkgConfigNames -> Foundation_PkgConfigNames - Always add Builds/$configurationName/include/ to include path in configure: even if no third party components (for stroika-version.h) - fixed stroika foundation/frameworks library names to fit with new .pc file usage - **new** CreatePackageConfigFiles - ApplyConfiguration - call CreatePackageConfigFiles - updated configure and ApplyConfiguration (etc) to store FOUNDATION_CPPFLAGS_NOTINCLUDES and PLATFORM_CPPFLAGS_NOTINCLUDES instead of CPPFLAGS_NOTINCLUDES - **new** SplitCFLAGS - new script pkg-config-msvc, new file boost/boost.pc; - RunLocalWindowsDockerRegressionTests - lose DOCKER_NETWORK flag support and instead better document to use the dns: 8.8.8.8 config setting to fix this problem - Library - Common - **new** LazyType_t - Execution - SignalHandlerRegistry::Get () DEPRECATED (use sThis instead) - fix (though not elegantly - and with comments to improve later) - Activity CTOR - uses concepts more; fixes case of initialization with array (like C-string) - Memory - deprecated Memory::NEltsOf - use std::size() or std::ssize() instead - ThirdPartyComponents - generate/fix pkgconfig files for sqlite, and zlib (static); lose explicit link dependencies in configure script (replacing with adding those pkgfiles to list of pkgconfig file names - using stroika-foundatipn.pc) - libcurl - tried 8.15.0; revert to curl 8.12.1, cuz 8.15.0 seems to have same cookie bug (caught by asan - maybe) - lzma - lzma.pc support - libxml2 - makefile tweak to workaround issues with stroika-foundation.pc file (still experiemntal windows only) - libxml2 2.14.5 - mongocxxdriver - 4.1.1 - sqlite - 3.50.2 - xerces - fixed xerces build code to use .pc file (instead of configure add of libs etc) - zlib - minor tweaks makefile - Tests - Added -I${ObjDir_ToolsSafe} to CPPFLAGS for Tests makefile template and fixed ref to where to #include from for test/34 - docker tests - windows - docker image mem usage size upped 12G to 13G cuz sometiems runs out - Tools - HTMLViewCompiler - moved HTMLViewCompiler install to bin directory ---------------------------- ### 3.0d20 {2025-06-08} {[diff](../../compare/3.0d19...3.0d20)} #### TLDR - **new** DataExchange::Archive::Writer (zip only) and refactored DataExchange::Archive::Reader - new StdCompat::expected/unexpected #### Upgrade Notes (3.0d19 to 3.0d20) - lose fMessage field of Execution::InvalidCommandLineArgument (use As\()) - Archive::Zip::Reader reader becomes Archive::Reader::Ptr reader = Archive::Zip::Reader::New; similarly for _7z (so constructor becomes new type name and when actually constructing use New) #### Change Details - Documentation - Minor Changes - Build System - Makefile (top level) - (and some changes to others to accomodate) - Minor cleanup to makefile clean/clobber so can say all in one line make CONFIGURATION=Debug clean all run-tests -j8 EVEN if no such configuration as Debug - dont just ignore erors on CheckValidConfiguration - dont do it on make clobber/clean (cuz OK - just nothing todo) - cleanups for generating Stroika-Current-Version and a few other chagnes to rules for apply-configurations - ScriptsLib - maybe fix warning about bad reg key in WarnIfNotWindowsDeveloperMode/Docker windows - ApplyConfigurations - minor tweak to force creation of appropriate directiroes before writing config files - Skel - minor fixes to skel generated makefiles (already done outside of skel) - .vscode - .vscode/tasks.json: edit /.config.json new command, and tweaked rebuild command - Library - across whole app - Lose several uneeded .AsNarrowSDKString () calls when used with iostreams cuz now automatic, and use eIgnoreErrors on a few more existing calls to AsNarrowSDKString for dbg messages - Foundation - Characters - fixed typo in DefaultNames - Common - Compiler Bug Defines - added another qCompilerAndStdLib_span_requires_explicit_type_for_BLOBCVT_Buggy BWA - DataExchange - Archive - Reader - **not backward compat** - changed Archive::Reader to namespace (from class with nested _IRep); - upgrade notes: Archive::Zip::Reader reader becomes Archive::Reader::Ptr reader = Archive::Zip::Reader::New; similarly for _7z (so constructor becomes new type name and when actually constructing use New) - **new** Writer support (Zip format only - primitive support) - refactor DataExchange/Archive/Zip reader code so Private_minizip_ factored out (Private_minizip_); added very early draft DataExchange/Archive/Zip/Writer using Private_Minzip_ - Zip - fixed zip file archive unicode filename support - Execution - CommandLine - Option::IsPositionArgument () support; - new option fSkipFirstNArguments; - fixed bug where CommandLine::ValidateQuietly sometimes threw (using StdCompat::unexpected) using experimental StdCompat::expected, which avoids a couple throws we didnt want in ValdateQuietly (and others), and a few related cleanups to COmmandline code - cleanup internal ParseOneArg_ (including bugfixes); - cleanup ToString() for cent changes to Options and docs - lose fMessage field of Execution::InvalidCommandLineArgument - Added ThrowIfFailed for std/StdCompat ::expected/unexpected (and StdCompat::expected) - Memory - Added satisfies Concepts docs/static assert checks for InlineBuffer and BLOB to span - BLOB CTOR - allow construct from span (uint8) - Samples - ArchiveUtility - support CreateArchive command for zip files, and slightly improved error handling/reporting - Cleanups - Tests - improved Archive::Zip::Writer regtests (read back results - seems OK) - improved CommandLine regtests - ThirdPartyComponents - mongocxxdrier - workaround https://jira.mongodb.org/browse/CXX-3291 issue - copying pdb files - minor ThirdPartyComponents/mongo-cxx-driver/Makefile cleanup #### Release-Validation - Compilers Tested/Supported - g++ { 11, 12, 13, 14. 15 } - Clang++ { unix: 15, 16, 17, 18, 19, 20; XCode: 15.2, 15.3, 16.0 } - MSVC: { 17.14.2 } - OS/Platforms Tested/Supported - Windows - Windows 11 version 24H2 - mcr.microsoft.com/windows/servercore:ltsc2022 (build/run under docker) - cygwin (latest as of build-time from CHOCO) - MSYS (msys2-base-x86_64-20241208.sfx.exe) - WSL v2 - MacOS - 15.0.1 - arm64/m1 chip - 14.3, 14.4, 15.0 on github actions - Linux: { Ubuntu: [22.04, 24.04, 25.04], Raspbian(cross-compiled from Ubuntu 22.04, Raspbian (bookworm)) } - Hardware Tested/Supported - x86, x86_64, arm (linux/raspberrypi - cross-compiled, debian-12), arm64 (macos/m1) - Sanitizers and Code Quality Validators - [ASan](https://github.com/google/sanitizers/wiki/AddressSanitizer), [TSan](https://github.com/google/sanitizers/wiki/ThreadSanitizerCppManual), [UBSan](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) - [CodeQL](https://codeql.github.com/) - [Valgrind/MemCheck](https://valgrind.org/docs/manual/mc-manual.html) - Build Systems - [GitHub Actions](https://github.com/SophistSolutions/Stroika/actions) - Regression tests: [Correctness-Results](Tests/HistoricalRegressionTestResults/3.0), [Performance-Results](Tests/HistoricalPerformanceRegressionTestResults/3.0) - Known (minor) issues with regression test output - raspberrypi - 'badssl.com site failed with fFailConnectionIfSSLCertificateInvalid = false: SSL peer certificate or SSH remote key was not OK (havent investigated but seems minor) ----------- ### 3.0d19 {2025-05-29} {[diff](../../compare/3.0d18...3.0d19)} #### TLDR - Foundation::Database::Document - various MongoDB client bugfixes - many SQLite bugfixes - projection and filter done in DB now - SQLite (documentdb and sql) - improved busy handling - lose support for ubuntu 24.10 - now end of life replaced by 25.04 - changed regression test server from hercules to medusa #### Upgrade Notes (3.0d18 to 3.0d19) - Streams::BufferedInputStream - use Seekability overload instead of bool for New methods #### Change Details - Documentation - build docs etc - Build System - lose support for ubuntu 24.10 - now end of life replaced by 25.04 - (docker containers, .github actions, etc) - using Medusa instead of Hercules for builds (updated notes/docs on build lines etc) - use EXTRA_DOCKER_ARGS= with add-host line and new ResolveIP script to workaround issues with docker containers accessing names that cannot be resolved inside container(?? at least I cannot figure easy way how) - DockerFile - Windows - set SecurityProtocol in dockerfile more carefully so works on newer windows - experiment with ltsc2025 for windows dockerfile - fixed docker build for windows so using servercore:ltsc2025 (except on github actions) - container use env:VS_17_14_2 - Minor cleanups to windows docker cygwin dockerifle - Github Actions - try runs_on windows-2025 for building windows containers - parameterize WINDOWS_BASE_IMAGE setting for windows dockerfile container build-images, and use in github actions to swithc windows version for build cuz running out of space - run on windows-latest not windows-2025 for docker build containers cuz runs out of space otherwise - Makefile (top level) - Added xxd to list of check-prerequisite-tools-common: since used in regtests to build regtests (and elsewhere) - Scripts - configure and build script support for VSVARS_MSVC_RUNTIME_LIBRARY variable and --msvc-runtime-library argument for visual studio - configure - Wfree-nonheap-object warning changes - one suppression -and removed configure suppression of this for some cases -just handle more locally in cpp files as needed - for unix/clang = check HasStdLib_ if only-if- flag present in configure - tweaks to configure for running under WSL (and missing /bad sudo and missing clang versions) - **new** ScriptsLib/ResolveIP - Skel - in skel makefile - use $(MAKE) instead of make to aviod + -j warning - WarnIfNotWindowsDeveloperMode (hack to warn windows users) - Library - Foundation - Common - Compiler Bug Defines - fixed qCompilerAndStdLib_explicitly_defaulted_threeway_warning_Buggy bug define (new case for _LIBCPP_VERSION = 200100 on ubuntu 25.04) etc qCompilerAndStdLib_inline_const_order_wrong_sometimes_Buggy BWA - bug defines for _MSC_VER_2k22_17Pt14_; - lose qCompilerAndStdLib_RecuriveTypeOrFunctionDependencyTooComplex_Buggy: qCompilerAndStdLib_function_dependency_too_complex_Buggy used instead - same thing - new bug define qCompilerAndStdLib_XXXCLANG16Bug_Crasher_Buggy and BWA - KeyValuePair - A few minor noexcept cleanups - Containers - DataStructures - A few minor noexcept cleanups - Database - Document - ToString/Format support for some types in Database::Document to facilitate debugging - Projection - various cleanups & docs - new Includes method - compare operators - fixed bug in FilterElements::Equals::Matches - MongoDBCLient - fixed bug with filter in GetAll - and other small minor cleanups for debugging mostly - fix projection-filter code to not project server side when we have custom filter that cannot be done server side - (ugly) fix for _id lookup/filter in MongoDBCLient GetAll() method - SQLite - improved use of json functions/package - cleanup prepared statement use - projection support (inside db) - for includes - not excludes - refactor CollectionRep_::GetOne Projection code into ExtractRowValueAfterStep_ - refactor of GetAll() in SQLITE documentDB to use filter and projection from sqlite query - ignore error result from ::sqlite3_finalize - document why - for SQLITE support - document default busy-timeout behavior for library, and provide my own kBusyTimeout_Default (for now set to 10s) - comments about sqlite sharedcache code why not a good idea to use and why still used - TrivialDocumentDB - minor cleanups - SQL - SQLite - for SQLITE support - document default busy-timeout behavior for library, and provide my own kBusyTimeout_Default (for now set to 10s) - comments about sqlite sharedcache code why not a good idea to use and why still used - DataExchange - Variant - JSON - Reader - support case of non-seekable stream handed to JSONReader - just document it doesn't get seek offset reliably set in that case - VariantValue - **fixed serveral serious bugs in equals/threeway comparer for VariantValue** (and added regtest to capture some) - Execution - CommandLine - BWA in CommandLine::CommandLine for https://stroika.atlassian.net/browse/STK-1029 WrapInShell::eBash issue on Medusa - ProcessRunner - Windows ProcessRunner cleanups - factoring - and use readAnyAvailableAndCopy2StreamWithoutBlocking on stderr at end - so we capture oll stderr data - Memory - Common - Insert() cleanups - Cleanups to CopyOverlappingBytes etc (Common.inl) - Streams - BufferedInputStream - use Seekability overload instead of bool for New methods - fixed missing SeekRead() method from BufferedInputStream and fixed Read to handle fSeekOffset_ == fBufferOfAllReadDataSoFar_.size() case better - Common - Streams::GetSeekability() now undeprecated - useful method (though trivial) and often better to call IsSeekable - TextToBinary - Reader module (New) supports optional\ or documents which overloads always produce seekable results - Frameworks - SystemPerformance - Instruments - Filesystem - fixed typo in name (rarely used so dont worry - fBytesTransfered -> fBytesTransferred) - Auth - OAuth - Configuration - ODR violation fixed (decltype of lambda used in type) - Samples - Multiple Samples - use dpg-deb --root-owner-group instead of deb to build .deb installers (avoid warning on latest ubuntu) - AppSettings - fixedup error handling so doesn't crash - re-enabled Samples-AppSettings/AppSettings in regression tests script - SQL - lose .fBusyTimeout option setting from samples - just use builin default now (may need to revisit/tune both) - DocumentDB - lose .fBusyTimeout option setting from samples - just use builin default now (may need to revisit/tune both) - Tests - cosmetic regtest cleanups (raw strings mostly) - Improvements to documentdb regtest - Document DB regtests - many cleanups/improvements - new tests getall with filters/conunctions etc - start adding Test with filter and projection but not working - database document tests - ThirdPartyComponents - googletest - 1.17.0 - sqlite - 3490200 - StrawberryPerl - 5.40.2.1 - libxml2 - 2.14.3 - lose one setting of LIBXML2_WITH_ZLIB=OFF in libxml2 makefile - mongo-cxx-driver - Supporting MONGOCXXDRIRVER_VERSION_=r4.1.0 - mongo-cxx-driver supports r4.1.0 on windows (so enabling by default) - fixed mongoc client (new version) build for unix (also need same patch of rc files for static link) - makefile fixed makefile issue with ThirdPartyComponents/mongo-cxx-driver/Makefile - workaround issue wtih Wfree-nonheap-object warnings from mongo-cxx-driver #### Release-Validation - Compilers Tested/Supported - g++ { 11, 12, 13, 14. 15 } - Clang++ { unix: 15, 16, 17, 18, 19, 20; XCode: 15.2, 15.3, 16.0 } - MSVC: { 17.14.2 } - OS/Platforms Tested/Supported - Windows - Windows 11 version 24H2 - mcr.microsoft.com/windows/servercore:ltsc2022 (build/run under docker) - cygwin (latest as of build-time from CHOCO) - MSYS (msys2-base-x86_64-20241208.sfx.exe) - WSL v2 - MacOS - 15.0.1 - arm64/m1 chip - 14.3, 14.4, 15.0 on github actions - Linux: { Ubuntu: [22.04, 24.04, 25.04], Raspbian(cross-compiled from Ubuntu 22.04, Raspbian (bookworm)) } - Hardware Tested/Supported - x86, x86_64, arm (linux/raspberrypi - cross-compiled, debian-12), arm64 (macos/m1) - Sanitizers and Code Quality Validators - [ASan](https://github.com/google/sanitizers/wiki/AddressSanitizer), [TSan](https://github.com/google/sanitizers/wiki/ThreadSanitizerCppManual), [UBSan](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) - [CodeQL](https://codeql.github.com/) - [Valgrind/MemCheck](https://valgrind.org/docs/manual/mc-manual.html) - Build Systems - [GitHub Actions](https://github.com/SophistSolutions/Stroika/actions) - Regression tests: [Correctness-Results](Tests/HistoricalRegressionTestResults/3.0), [Performance-Results](Tests/HistoricalPerformanceRegressionTestResults/3.0) - Known (minor) issues with regression test output - raspberrypi - 'badssl.com site failed with fFailConnectionIfSSLCertificateInvalid = false: SSL peer certificate or SSH remote key was not OK (havent investigated but seems minor) ----- ### 3.0d18 {2025-04-22} {[diff](../../compare/3.0d17...3.0d18)} #### TLDR - LOSE support for KeyedCollection_stdhashset and Mapping_stdhashmap because, due to issue with COW and iteration guarantees. Replace with new HashTable (DataStructures) based implmenetations of basically the same thing - https://stackoverflow.com/questions/79551148/how-to-copy-stdunordered-map-while-preserving-its-order?noredirect=1#comment140292420_79551148 - https://stroika.atlassian.net/browse/STK-1026 - New Foundation::Database::Document module - sample provided - implements MongoDB connection, SQLite backed impl (via json extension) and TrivialDocumentDB backends - Support Ubuntu 25.04, g++15, and clang++-20 #### Upgrade Notes (3.0d17 to 3.0d18) - If you directly used KeyedCollection_stdhashset or Mapping_stdhashmap, replace with KeyedCollection_HashTable/Mapping_HashTable #### Change Details - Build System - github actions - improved catpure of logfiles for unix - more 'save space' code needed for clang++-19 c++23 ubuntu 24.10 debug configuration - added clang++20 build to github action builds - include g++-15 - tweak .github action for g++-15 due to running out of space (-O1) - Makefile (top level) - cleanup use of DEFAULT_CONFIGURATION_ADD2ALL in toplevel makefile - not needed - use use already existing EXTRA_CONFIGURE_ARGS= respected by configure - and better docs on this in makefile - improved make help - fixed https://stroika.atlassian.net/browse/STK-1005 - vscode/c_cpp_properties.json depends on ThirdPartyComponents/lib/pkgconfig/*.pc rebuild only that file - fixed default makefile configs to use 'use-system' instead of 'system' (caught by better error handling in configure script) - Makefiles - added + lines before cmake --build to address warning from make call from cmake about -j flags being ignored (https://stackoverflow.com/questions/44042771/cmake-add-prefix-to-build-command-to-enable-parallel-make - Add '+' to parent make rule issue - pkgconfig - major cleanups - use pkg-config --msvc-syntax for libs on windows and then lost most/all of the patches I was doing to .pc files with sed - fixes to pkg-config files for gtest_main, openssl - configure now adds openssl to pkgconfig configuration, instead of adding explicit paths; - lose #pragma comment link stuff - so now even for windows using pkg-config for openssl (had to patch pc files in openssl build to make them work) - fixed ApplyConfiguration handling of PkgConfig files for vscode files (small issue) and vcproj files (was never supported) - define and use in Configuration.mk PKG_CONFIG_STROIKA_DEPENDS_ON and PKG_CONFIG_PATH variables - SharedMakeVariables-Default.mk - lose unused StroikaFoundationSupportLibs and TPP_PKG_CONFIG_PATH - use single-quotes windows CPPFlags for -I names - cleanup/unify naming of some makefile variables (private ones) - tried to move BWA for cmake/_DEBUG/_RELEASE flag issue from ScriptsLib/Makefile-CMake-Common.mk to ThirdPartyComponents/Xerces/Makefile since appears specific to xerces; but put CMAKE_C_FLAGS_DEBUG/RELASE etc hack back into /Makefile-CMake-Common.mk since needed and better documented why - configure - dont have all-thirdparty flag for configure include mongodb without python being installed - configure (and related) scripts - added VSVARS_PLATFORM_INCLUDES_PATH (windows only); separted CPPFLAGS_NOTINCLUDES vs regular CPPFLAGS; - lose CPPFLAGS from Configuration file (just keep CPPFLAGS_NOTINCLUDES); and keep CPPFLAGS in Configuration.mk file - configure script: ValidateUseArg_() - and if use-system on zlib - double check really installed (onlyGenerateIfCompilerExists) - Scripts - ApplyConfigurations (aka Configuration.mk) - mostly fixed https://stroika.atlassian.net/browse/STK-1005 - Configuration.mk depends on .rc files; and fixed ApplyConfigurations to check pkg-config files - writing CPPFLAGS and LinkerArgs_LibDependencies all set in one line without += in .mk file - use nested shell syntax for pkg-config call in ApplyConfiguration - Makefile-CMake-Common.mk - add comments about how to add CMAKE_ARGS --trace/--debug-output; - depending on AssertionsEnabled, set CMAKE_MSVC_RUNTIME_LIBRARY - turn on CMAKE_VERBOSE_MAKEFILE=1 for cmake builds - **new** FixupDashIs - new utility script and used in ApplyConfigurations - so now less tmphack workaround for libxml2 stuff - and just dependency on pkg-config stuff - Makefile-CMake-Common.mk - small cleanup to ScriptsLib/Makefile-CMake-Common.mk (windows only code ifdefed) - RunRemoteRegressionTests - Added MONGO_CONNECTION_STRING support - RegressionTests - print MONGO_CONNECTION_STRING in regressiontests script - Added Samples-DocumentDB/DocumentDB to regressiontests samples to run - RunLocalWindowsDockerRegressionTests - fixed so sizes disk properly (quoting) and sizes larger so works on windows (builds have gotten bigger), and upped size to 175GB - Docker Build Containers - Optionally (but default on) include python in windows docker containers (so can build mongodbclient) - Windows Container - Use VS_17_13_6 - **new** Ubuntu 25.04 support - .vscode - Added MONGO_CONNECTION_STRING to .vscode/launch.json - Documentation - Miscelaneous comments/docx cleanups - Tweaked Doxgygen linking and Table-Of-Contents a bit - docs testing and tweaks for running local docker container mongodb - Library - ALL (pan-library) - lose [[nodiscard]] on a bunch of types (like String, Timezzone, TimeOfDay, etc, cuz too banket a rule and no way to reverse [[nodicard] on a type - g++ 14.2 says operator _xxxx deprecated - so lose space separator in our operator '' literals - Foundation - Characters - String - Skip utility slightly better behavior and slihgtly better performance - slight tweak to String::GetData() - Common - Compiler Bug Defines - new BWA qCompilerAndStdLib_constructible_Buggy - new qCompilerAndStdLib_illunderstood_ispan_Buggy BWA - define qCompilerAndStdLib_stdlib_ranges_ComputeDiffSignularToADeref_Buggy for gcc14 as well (since triggered on ubuntu 25.04) - - bug defines for g++-15 - support _LIBCPP_VERSION version 20 bug defines - **new** qCompilerAndStdLib_MemoryInsertAt_Buggy BWA (release builds gcc 13 and gcc 14) - Concepts - correct corner case of IEqualToOptimizable: check equality_comparable beofre Private_::HasUsableEqualToOptimization cuz sometimes fails evaluating HasUsableEqualToOptimization (probably shouldnt but did on msvc) - new utility invocable_r - Containers - Associaion and Mapping - fixed RemoveAll support to work with iterable_keys argument - Fixed RetainAll - big cleanup, and apparent bug in retainall was really bug with Mapping_stdhashmap impl (now killed) - close jira issue http://stroika-bugs.sophists.com/browse/STK-539 and open replacement issue for more narrow but more serious https://stroika.atlassian.net/browse/STK-1026, and provide (temporary) workaround for the isssue (so tests not failing now), and then fixed https://stroika.atlassian.net/browse/STK-1026 - Misc Concrete - Minor cleanups to container backend imps of remove/erase - making more uniform how approached, and maybe more safe (re-use erase result) - Private - STLContainerWrapper::MoveIteratorHereAfterClone () change to take extra parameter, eventually to fix https://stroika.atlassian.net/browse/STK-1026 but for now sb no effect - **new** HashTableSupport (classes to capture common features for hashtable-based concrete containers) - refactored Private::IteratorImplHelper_ to use new IteratorImplHelper_DefaultTraits - cleanup CTOR delegation in Containers/Private/XXXSupport classes - https://stroika.atlassian.net/browse/STK-1026 - - LOSE support for KeyedCollection_stdhashset and Mapping_stdhashmap because https://stackoverflow.com/questions/79551148/how-to-copy-stdunordered-map-while-preserving-its-order?noredirect=1#comment140292420_79551148 - DataStructures - **new** HashTable (and regression test) - All - renamed DataStructure::*::RemoveAll() to '...clear' - since stl methods have that name/semantics - Array - Array<> template: docs, new .data() method, new Find () overloads (to be more similar to other datastructure classes), depreacte Contains() method, and added RemoveAt () overload and refactored RemoveAt to use new Memory::Remove() functionality - Containers/DataStructures/Array fix some issues (possible leak/no out of memory checks) in malloc impl - Array::Insert overload with span (todo fix naming) - and refactor to used Memory::Insert - Renamed Array::InsertAt to Insert() - Array regtests improvements - Array<>::ReserveAtLeast utility - separate from reserve() - fixed Array Iterator (forward/backward) operator==; and re-enable new version of Array::Insert - renamed Array::RemoveAt to Remove (2 overloads) - deprecate AddBefore/AddAfter and add overloads to Insert for that purpose; - DoublyLinkedList - Minor cleanups (forward iterator) - LinkedList - cleanups (forward iterator and docs) - DoublyLinkedList and LinkedList - take span overloads on push_front,push_back (carefully document semantics); - KeyedCollection - **new** KeyedCollection_HashTable and regtests and use as appropriate in Factory - Mapping - **new** Mapping_HashTable - improved Mapping regetsts; - fixed bug iwth SortedMapping_SkipList (and if missing); - and made Mapping_HashTable default (againish) in factory - Sequence - Sequence X Rep :: Insert() method now uses span and new span-based insert etc methods in DataStructures - Sequence_Array - use Array::Insert(span) instead of manual reserve and lots of adds from Sequence_Array - Database - SQL - fThreadingMode default (and changed sample) - use SQLiteCallback_ utility - opening memory dbs and better error reporting and docs - **new module** Document - Filter - ObjectCollection - Projection - SQLite backend impl - MongoDB backend impl - TrivialDocumentDB backend impl - DataExchange - VariantValue - (go back to) use Mapping_HashTable instead of SortedMapping_stdmap in DataExchange/Variant/JSON/Reader (optimization) - Debug - Assert - fixed issue with default assertion handlers on UNIX with clang++ - fwrprintf not working right - Execution - Activity - new utility AnyCurrentActivities() - CommandLine - ValidateQuietly method added - NestedException - new overload for NestedException CTOR - Synchronized - Added requires to synchronized CTOR to produce better error messages from compiler - Math - **new** PrimeAtLeastThisBig - Memory - Common - CopyOverlappingBytes - fixed to use copy or copy_backward depending on direction of copy; - fixed to check/copy correctly and use Intersects to clarify - new CopyOverlappingSpanData - that works with non-byteish data - modernized concept ISpan def, improved CompareBytes() def, and related docs/cleanups - **new** Memory::Insert, and Memory::Remove utility functions - and used in InlineBuffer (code refactor) - mostly cosmetic cleanups to Memory::Common code (doc pictures and simplifed some addressof checks) - InlineBuffer - added Remove () method - fixed serious memory bug with InlineBuffer MOVE CTOR - Time - Date - Date::As() now uses concepts like DateTime::As() so better compiler error messages - DateTime - tweak requires on DateTime::As() method - Traversal - Iterable - Minor cleanup to Iterable<>::container_Of_T CTOR - fix to give better error message/concepts copyable - Frameworks - SystemPerformance - Dont use OpenInputFileStream - just std lib open - cuz dont want exceptions in a couple places (code written old style if (in) ...) - Samples - **new** DocumentDB sample - HTMLUI - code cleanups (html) - Tests - Regression tests for new DocumentDB code - Mapping - Added Foundation_Containers_Mapping, RetainAllCaseFails_ regtest - failing sometimes (more) - ThirdPartyComponents - boost - version 1.88 - **new** mongocxxdriver (qFeatureFlag_mongocxxdriver) - FEATUREFLAG_mongocxxdriver to default on, if python present - libcurl - Cleanup makefile for recent changes to Configuration.mk handling of PKG_CONFIG_PATH= and var +PKG_CONFIG_STROIKA_DEPENDS_ON - used to silence a warning cuz of stuff not fully built when libcurl being built - TRIED version 8.13.0, but revert to libcurl 8.12.1 cuz of apparent asan issue - libxml2 -version 2.14.1 - openssl - version 3.5.0 - sqlite - makefile cleanups #### Release-Validation - Compilers Tested/Supported - g++ { 11, 12, 13, 14. 15 } - Clang++ { unix: 15, 16, 17, 18, 19, 20; XCode: 15.2, 15.3, 16.0 } - MSVC: { 17.13.6 } - OS/Platforms Tested/Supported - Windows - Windows 11 version 24H2 - mcr.microsoft.com/windows/servercore:ltsc2022 (build/run under docker) - cygwin (latest as of build-time from CHOCO) - MSYS (msys2-base-x86_64-20241208.sfx.exe) - WSL v2 - MacOS - 15.0.1 - arm64/m1 chip - 14.3, 14.4, 15.0 on github actions - Linux: { Ubuntu: [22.04, 24.04, 24.10. 25.04], Raspbian(cross-compiled from Ubuntu 22.04, Raspbian (bookworm)) } - Hardware Tested/Supported - x86, x86_64, arm (linux/raspberrypi - cross-compiled, debian-12), arm64 (macos/m1) - Sanitizers and Code Quality Validators - [ASan](https://github.com/google/sanitizers/wiki/AddressSanitizer), [TSan](https://github.com/google/sanitizers/wiki/ThreadSanitizerCppManual), [UBSan](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) - [CodeQL](https://codeql.github.com/) - [Valgrind/MemCheck](https://valgrind.org/docs/manual/mc-manual.html) - Build Systems - [GitHub Actions](https://github.com/SophistSolutions/Stroika/actions) - Regression tests: [Correctness-Results](Tests/HistoricalRegressionTestResults/3.0), [Performance-Results](Tests/HistoricalPerformanceRegressionTestResults/3.0) - Known (minor) issues with regression test output - raspberrypi - 'badssl.com site failed with fFailConnectionIfSSLCertificateInvalid = false: SSL peer certificate or SSH remote key was not OK (havent investigated but seems minor) ------------------------------------ ### 3.0d17 {2025-03-08} {[diff](../../compare/3.0d16...3.0d17)} #### TLDR - Minor improvements to webserver (stacks tracking mostly) and HTMLUI sample #### Upgrade Notes (3.0d16 to 3.0d17) - this space intentionally left blank #### Change Details - Documentation - Doxygen - include doxygen docs reference in top level README.md - Library - Foundation - Debug - fixed Debug::Demangle () to be threadsafe on windoze - underlying windows API documented as not threadsafe (was causing period crashes in HearHE) - Time - Duration classes - enforce require not arg nan for floating point arguments - Frameworks - WebServer - slightly better default count of threads in WebServer/ConnectionManager based on # maxConnections - re-implemented qStroika_Framework_WebServer_Connection_TrackExtraStats stats collection to use synchronized<> instead of atomic<> so we can capture more stuff like webmethod, uri, and peer-socket-address; - Samples - HTMLUI - fixups to about page - tracking stats - lose a few that are better captured by webserver stats and show those in about page, and a few other about page cleanups, - kDefaultWSThreadPoolSize_ = clamp... - lose use of pinia-plugin-persistedstate and instead use setup-style for Configuration-Store so can use watcher to read/write to localstorage and use storeToRefs to simplify usage minor HTMLUI html cleanups - updated HTMLUI webserver sample app to sort connections output so active first (easier to read interesting parts) #### Release-Validation - Compilers Tested/Supported - g++ { 11, 12, 13, 14 } - Clang++ { unix: 15, 16, 17, 18, 19; XCode: 15.2, 15.3, 16.0 } - MSVC: { 17.13.2 } - OS/Platforms Tested/Supported - Windows - Windows 11 version 24H2 - mcr.microsoft.com/windows/servercore:ltsc2022 (build/run under docker) - cygwin (latest as of build-time from CHOCO) - MSYS (msys2-base-x86_64-20241208.sfx.exe) - WSL v2 - MacOS - 15.0.1 - arm64/m1 chip - 14.3, 14.4, 15.0 on github actions - Linux: { Ubuntu: [22.04, 24.04, 24.10], Raspbian(cross-compiled from Ubuntu 22.04, Raspbian (bookworm)) } - Hardware Tested/Supported - x86, x86_64, arm (linux/raspberrypi - cross-compiled, debian-12), arm64 (macos/m1) - Sanitizers and Code Quality Validators - [ASan](https://github.com/google/sanitizers/wiki/AddressSanitizer), [TSan](https://github.com/google/sanitizers/wiki/ThreadSanitizerCppManual), [UBSan](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) - [CodeQL](https://codeql.github.com/) - [Valgrind/MemCheck](https://valgrind.org/docs/manual/mc-manual.html) - Build Systems - [GitHub Actions](https://github.com/SophistSolutions/Stroika/actions) - Regression tests: [Correctness-Results](Tests/HistoricalRegressionTestResults/3.0), [Performance-Results](Tests/HistoricalPerformanceRegressionTestResults/3.0) - Known (minor) issues with regression test output - raspberrypi - 'badssl.com site failed with fFailConnectionIfSSLCertificateInvalid = false: SSL peer certificate or SSH remote key was not OK (havent investigated but seems minor) --- ### 3.0d16 {2025-03-01} {[diff](../../compare/3.0d15...3.0d16)} #### TLDR - Fixed output of performance regression tests - Minor cleanups to String API, IO::Network::Transfer (especially exeption messages) - Frameworks::OAuth (revocation and refresh supported) - Doxygen tweaks (closer to usable/reasonable) - Samples/HTMLUI - improved auth support (showing status/details much better, and auto-refresh auth) #### Upgrade Notes (3.0d15 to 3.0d16) - deprecated Common::ConstantProperty in favor of improved Execution::LazyInitialized #### Change Details - Build System - github actions save space more on linux due to run out of space on one config (Linux (Linux, ubuntu-24.10-clang++-19-c++23-debug, clang++-19, ubuntu-latest) - docker container windows uses VS_17_13_2 - Build Scripts - LinkTime_CopyFilesToEXEDir uses cp --force now since sometimes with parallel link (make -j) can get two copies at the same time - Documentation - Doxygen - now main page looks more reasonable - added alias @aliases - and used in source code - Prelim support for samples page - Library - Foundation - Characters - String - String::Find/FindEachMatch/FindEarchString return Containers::Sequence instead of stdvector (so can be treated as Iterable and use linq-like methods) - uses Concrete::Sequence_stdvector so little cost - Common - Compiler Bug Workarounds - Compiler bug defines support for _MSC_VER_2k22_17Pt13_ (no changes from 12) - Execution - LazyInitialized - deprecated Common::ConstantProperty in favor of improved Execution::LazyInitialized - basically same thing - serveral improvements to LazyInitialized - new methods, and impl uses union to save space - removed several uses of ConstantProperty/LazyInitialized that appeared unneccessary (documented using lambda () directly) - ThreadPool - fixed AbortAndWaitForDone_ to remove all thread ptr objects and ensure thread list empty (private so no api change) - IO - Filesystem - Added IO::FileSystem::{is_cygwin_symlink,read_cygwin_symlink} #if qStroika_Foundation_Common_Platform_Windows to workaround issue that filesystem::is_symlink and filesystem::read_symlink (and other things) dont work with (older) cygwin symbolic links (depends on flags / env vars used in cygwin) - Network - HTTP - Added Headers::contentDisposition property support - Transfer::Exception - change for Exception to strip out html tags in message gen - some testing infrastructure for IO/Network/Transfer/Exception message extraction - Frameworks - Auth/OAuth - support (google maybe somewhat non-standard) - revocation_endpoint - and revocation API - support refreshing refresh_tokens - store openid_configuration_uri without .well-known/openid-configuration and add as needed - SystemPerformance - Capturer: initialize threadpool with zero threads (and give threadpool name), so not removing a bunch of threads soon after adding (sb fine but needlessly costly) - WebServer - added WebServer/Response location property - WebService - Slightly loosen assert in internal WebService/Server/ObjectRequestHandler routine - Samples - HTMLUI - Backend - better default for timeout on cache control values - QuasarBasedHTMLApp - HTMLUI sample autoRefreshAuth flag on auth - so auto-refreshes - kSupportRefreshTokenRevocation_ = false BWA until I can test/fix a bit more of this (HTML UI AUTH) - All - sample AUTH token improved support - return info about expiry of and value of tokens - revocation and automatic refresh token handling - HTMLUI tweak settings for vite/quasar http-cache settings (immutable) for hashes - got revokeTokens (so logout more fully) working - so we should automatically get refresh token when we login again - Tests - fixed regression in performance regression tests - now should be outputting properly - Cleanup String regtests - mostly for change in FindEach... return value - fixed TOTAL_WARNINGS_EXPECTED= computation in RegressionTest script - Workaround issue with awk on cygwin not working from DOS (due to symbolic link) with new FileSystem::is_cygwin_symlink and IO::FileSystem::read_cygwin_symlink utilities - ThirdPartyComponents - curl - 8.12.1 - googletest - 1.16.0 - libxml2 - 2.13.6 - openssl - 3.4.1 - perl - 5.40.0.1 - makefile tweaks - sqlite - 3490100 #### Release-Validation - Compilers Tested/Supported - g++ { 11, 12, 13, 14 } - Clang++ { unix: 15, 16, 17, 18, 19; XCode: 15.2, 15.3, 16.0 } - MSVC: { 17.13.2 } - OS/Platforms Tested/Supported - Windows - Windows 11 version 24H2 - mcr.microsoft.com/windows/servercore:ltsc2022 (build/run under docker) - cygwin (latest as of build-time from CHOCO) - MSYS (msys2-base-x86_64-20241208.sfx.exe) - WSL v2 - MacOS - 15.0.1 - arm64/m1 chip - 14.3, 14.4, 15.0 on github actions - Linux: { Ubuntu: [22.04, 24.04, 24.10], Raspbian(cross-compiled from Ubuntu 22.04, Raspbian (bookworm)) } - Hardware Tested/Supported - x86, x86_64, arm (linux/raspberrypi - cross-compiled, debian-12), arm64 (macos/m1) - Sanitizers and Code Quality Validators - [ASan](https://github.com/google/sanitizers/wiki/AddressSanitizer), [TSan](https://github.com/google/sanitizers/wiki/ThreadSanitizerCppManual), [UBSan](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) - [CodeQL](https://codeql.github.com/) - [Valgrind/MemCheck](https://valgrind.org/docs/manual/mc-manual.html) - Build Systems - [GitHub Actions](https://github.com/SophistSolutions/Stroika/actions) - Regression tests: [Correctness-Results](Tests/HistoricalRegressionTestResults/3.0), [Performance-Results](Tests/HistoricalPerformanceRegressionTestResults/3.0) - Known (minor) issues with regression test output - raspberrypi - 'badssl.com site failed with fFailConnectionIfSSLCertificateInvalid = false: SSL peer certificate or SSH remote key was not OK (havent investigated but seems minor) - windows/cygwin - SSDPClient issues have todo with quirks of windows networking - reboot PC and fine... --- ### 3.0d15 {2025-02-13} {[diff](../../compare/3.0d14...3.0d15)} #### TLDR - doxygen: dont build on regular regtests - just on linux in github action (once) cuz very slow build; and cleaned up a bit, and pushed output to https://sophistsolutions.github.io/Stroika/ - **new** Authentication Framework (OAuth, JWT, webserver interceptor for auth, HTMLUI sample code) - kRawEnvironment and kEnvironment and environment support in ProcessRunner (control env variables of child processes) - Streams - {TextToByteReader,TextReader,TextWriter} renamed to {TextToBinary,BinaryToText} - More API cleanups - harmonizing StreamReader with InputStream::Ptr - IO::Network - socket code - use spans like done before with streams - Transfer code - use TypedBLOB, and improved Exception handling (and changed semantics of Send, now separate SendAndThrowOnFailure). - String: improved RegExp overloads (Tokeninze, Match), and new AsLines, Grep, and Col methods to simulate what often done with grep, and awk #### Upgrade Notes (3.0d14 to 3.0d15) - HTMLUI Sample - changed from createWebHashHistory to createWebHistory - to allow working with oauth (see git commit b6b06567ea) - patch security warning / upgrade - PITA - and not super helpful - but git commit e144b9d79b if you want to try - must be careful to use nodejs 20 for this to work (fixed docker containers to fetch this version) - Streams refactoring: - Streams/TextReader.h -> Streams/BinaryToText.h - Streams/TextWriter.h -> Streams/TextToBinary.h - Streams/TextToByteReader.h -> Streams/TextToBinary.h - Streams::TextReader -> Streams::BinaryToText::Reader - Streams::TextWriter -> Streams::TextToBinary::Writer - Streams::TextToByteReader -> Streams::TextToBinary::Reader #### Change Details - Build System - RegressionTests - dont use make all - use make libraries tools tests samples - since docs builds can take a very long time (MSYS especially) - Github actions - fixed output of samples apps from windows jobs - broke out jobs doxygen and deploy-doxygen (pushes to github pages), due to very bad performance of these builds sometimes - various cleanups of log data capturing (zip file artifacts) - Documentation - Significant cleanup to doxygen, and now publish to https://sophistsolutions.github.io/Stroika/ - Misc docs cleanups everywhere - Everywhere - fixed a few remaining property names (no longer use p prefix) - minor tweaks for doxygen - Library - Foundation - Characters - Character - Added static Character::IsWhitespace to encourage optimization/detecting use of that common algorithm - String - Better concept usage on String::Match () - and support String* in addition to optional*; added another example Match() and regtest - new String::AsLines, and String::Grep, and regtests for these new methods - optimized String::StripAll () - better use of StringBuilder - changed String member functions to reference static Character::IsWhitespace instead of member-function version through lambda, so can check in impl - and optimize (no real semantics change) - performance optimizations for String LTrim/RTrim/Trim - fixed docs on String::Find(RegExp); - added RegExp overload of Tokenize (); - added String::Matches helper to return tuples; - added String::Col/ColValue to replace much use of Matches() regexp functions - Get rid of Trim() built into Tokeninize () - generally not needed (and added regtests and docs for where it is); added more regtests for String::Match and fixed bug with new code (not 100% backward compatible, but sb OK) - StringBuilder - docs - cleanup StringBuilder::As () - ToString - fixed bug with ToString(tuple) - infinite loop - Common - Compiler Bug Workarounds - new qCompilerAndStdLib_function_dependency_too_complex_Buggy - bug Workaround for fatal error C1202: recursive type or function dependency context too complex issue - new qCompilerAndStdLib_thread_local_static_inline_twice_Buggy BWA - one qCompilerAndStdLib_explicitly_defaulted_threeway_warning_Buggy specific to xcode 15 - qCompilerAndStdLib_tie_trick_spaceship_impl_Buggy - Concepts - new concept Common::explicitly_convertible_to - TemplateUtilities - new template utility RepeatedTuple_t - simplified impl of CountedValue operator<=> and KeyValuePair operator<=> (using tie) - Containers - Association - Added Association::LookupOne () method - KeyedCollection - support KeyedCollection::CTOR {initializer_list} - SortedSet - fixed typo in SortedSet::operator<=> - DataExchange - JWT - Simple (but usable) JWT support (just decoding for now, not validating much) - TypedBLOB - Made fType field of (new) TypedBLOB optional, and reversed order of fields - Variant - fixed CharacterDelimitedLines Reader for recent change to String::Tokenize (not trimming) - Variant::Reader/Writer::GetDefaultFileSuffix now returns optional instead of String - FormURLEncoded - new module, and regtests - InternetMediaTypesRegistry - new kWWWFormURLEncoded - Execution - new utility function RunAll (alias InvokeAsync) - new kRawEnvironment and kEnvironment properties, and regtests - ProcessRunner - support fEnvironment options support on ProcessRunner - String2ContigArrayCStrs_ cleanup to processRunner - use fBytesBuffer not fPtrsBuffer on Windows/CreateProcess - fixed typo in Execution::SleepUntil () - IO - Networking - HTTP - Added authorization property (and caching/storage) to IO::Network::HTTP::Headers class - Sockets - Socket API (ptr just so far) converted to using spans (deprecated a few const byte* methods) - Transfer - use TypedBLOB in place of two separate BLOB/InternetMediaTypes params (deprecting older API) - cleanups for Foundation_IO_Network_Transfer regtest - Connection - cleaned up docs/semantics on Send/and new SendAndThrowOnFailure - (Send now doesnt throw on HTTP status error but SendAndThrowOnFailure does) - so change in semantics (docs were ambiguous) - but no change to wrappers like POST, PUT, etc which I think most people call - improved error reporting in IO::Network::Transfer::Exception code - so captures some stuff from the body to include as part of 'reason' - maybe now works SLIGHTLY better giving hints about what went wrong - Memory - new ISpanBytesCastable concept to capture the requirements on SpanBytesCast API (and used it there); and strengthened the requirements to check trivially_copyable and no cast away const of underlying value_type - new OptionallyCopy - Streams - fixed typo/bug (a few releases back) to ToSeekableInputStream - RemainingLength - docs on NoDataAvailableHandling; and deprecated NoDataAvailableHandling::eDEFAULT - ExternallyOwnedSpanInputStream - New now uses ISpanBytesCastable so slightly more flexable, and clean and simple - {TextToBinary,BinaryToText} was {TextToByteReader,TextReader,TextWriter} - refactored - but get rid of TextReader/TextWriter and TextToByteReader in favor of FromText/{Reader/Writer} and ToText/{Reader/Writer} - Streams::TextReader/TextWriter/TextToByteReader replaced with Streams::ToText::{Reader/Writer} and Streams::FromText::{Reader/Writer} - renamed (recent change so just use newest in relnotes) - ToText to BinaryToText and FromText to TextToBinary; and misc minor cleanups - new simple utility TextToBinary::Convert(BLOB...) -> String utility - InputStream - InputStream::Ptr Read and ReadOrThrow no longer take default param for blockFlag - use another API (wiht diff return value) to get default blocking behavior - if using that API - you probably have the block flag value to pass - StreamReader - Updated StreamReader API (not totally backward compatible, but not a new API so not really used by much yet so no need for lots of notes) - and API now basically just follows pattern in InputStream::Ptr better - Added ReadBlocking overload (read to delimiter) to InputStream::PTr and StreamReader - Time - Added DateTime::NowUTC () method - Traversal - Iterable - Iterable<>Join support for RESULT_TYPE=SDKString (at least when explicit type param) - Frameworks - Auth - new CurrentIdentityManager - manage templated identity object in thread_local storage - new OAuth support - ProvidersConfigurations, ClientConfiguration, and kDefaultProviderConfigurations - Client/Fetcher support - to fetch a bunch of remote stuff (like wellknown/... ids and calls to oauth provider to convert tokens, get UserInfo etc) - New (WebServer)-Interceptor - WebServer::Interceptor instance that translates auth-headers into CurrentIdentityManager thread_local storage object with that information interpretted (fits well with route callbacks) - WebServer - FileSystemRequestHandler support for Option fFallbackFile (useful for integrating with vue3/oauth where cannot use # for router); - fixed one case where it was still throwing ClientErrorException{HTTP::StatusCodes::kNotFound to treat as not-found by route search - small mostly cosmetic namespace usage cleanups and webserver fDefaultIndexFileNames sequence instead of string - IntercetorMgr - Allow comparing WebServer InterceptorChain for equality, - Connection/ - fixed bug where DeriveConnectionDefaultOptionsFromEffectiveOptions_ not updated (where we store interceptor chain) on change - so lose fInterceptorChain - just store in fUseDefaultConnectionOptions_ (connection manager) - Samples - HMTLUI - fallback file to support createWebHistory () in vuejs, in turn to support oauth2 redirect; and use createWebHistory() - connections API tweaks - Minor tweaks to HTMLUI boot/configuration.ts - Draft (working) OAuth support in Sample HTMLUI - authtest page and you can login/logout - and backend uses TLS interceptor to get auth info from http auth token - Samples/HTMLUI: Lots of changes so authentication process supports multiple providers, and various cleanups/fixups to vue reactivity logic - ThirdPartyComponents - boost - attempt at workaround for issue building boost on windows under HearHE- flakiness persists, but improved reporting/testing, so maybe I can get to the bottom of it before too long (b2.exe disappears) - lzma - maybe impove optics of lzma extract random issue on ubuntu (WARNING: FAILURE in 7z) - Tests - deleted HistoricalRegressionTestResults and HistoricalPerformanceRegressionTestResults from old, pre-release builds - small cleanups to regtest 40 (ThreadSafetyBuiltinObject) - better debug one issue I saw but cannot reprpduce with valgrind - Github Actions/Workflows - Tweaked sizes of various containers, and reporting, to fix run-out-of-memory issue on windows, and increase build performance (and generally cleanup/remove older uneeded hacks) - Tweaked reporting of memory/etc sizes of all platforms, and adjusted --jobs= values for newly discovered values (size of hosts probably changed). #### Release-Validation - Compilers Tested/Supported - g++ { 11, 12, 13, 14 } - Clang++ { unix: 15, 16, 17, 18, 19; XCode: 15.2, 15.3, 16.0} - MSVC: { 17.12.4 } - OS/Platforms Tested/Supported - Windows - Windows 11 version 24H2 - mcr.microsoft.com/windows/servercore:ltsc2022 (build/run under docker) - cygwin (latest as of build-time from CHOCO) - MSYS (msys2-base-x86_64-20230127.sfx.exe) - WSL v2 - MacOS - 15.0.1 - arm64/m1 chip - 14.3, 14.4, 15.0 on github actions - Linux: { Ubuntu: [22.04, 24.04, 24.10], Raspbian(cross-compiled from Ubuntu 22.04, Raspbian (bookworm)) } - Hardware Tested/Supported - x86, x86_64, arm (linux/raspberrypi - cross-compiled, debian-12), arm64 (macos/m1) - Sanitizers and Code Quality Validators - [ASan](https://github.com/google/sanitizers/wiki/AddressSanitizer), [TSan](https://github.com/google/sanitizers/wiki/ThreadSanitizerCppManual), [UBSan](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) - [CodeQL](https://codeql.github.com/) - [Valgrind/MemCheck](https://valgrind.org/docs/manual/mc-manual.html) - Build Systems - [GitHub Actions](https://github.com/SophistSolutions/Stroika/actions) - Regression tests: [Correctness-Results](Tests/HistoricalRegressionTestResults/3.0), [Performance-Results](Tests/HistoricalPerformanceRegressionTestResults/3.0) - Known (minor) issues with regression test output - raspberrypi - 'badssl.com site failed with fFailConnectionIfSSLCertificateInvalid = false: SSL peer certificate or SSH remote key was not OK (havent investigated but seems minor) --- ### 3.0d14 {2025-01-11} {[diff](../../compare/3.0d13...3.0d14)} #### TLDR - Enhancements to Cryptography code - Providers, PKI, SSL (including basic support for ssl streams) - Improved Frameworks::WebServer ConnectionManager stats production/reporting (designed to find dead/hung/deadlocked threads/connections) #### Upgrade Notes (3.0d13 to 3.0d14) - InputStream::Ptr<T>::Read now returns optional instead of throwing; call ReadOrThrow to get old behavior - Refactor (not backward compatible) - Cryptography::OpenSSL code down to Cryptography::Providers::OpenSSL - HTMLUI-based samples - git diff 3.0d13...3.0d14 -- Samples/HTMLUI/ #### Change Details - Documention - top level README.md - Improved Header Documentation, and ReadMe documentation - Stroika Library - Across Library - header include cleanups - minor namespace cleanups - enums names pushed into enclosing (Streams) namespace and a few related cleanups (using xxx:yyy instead of constexpr xxx yyy = xxx:yyy;) - updated copyright notice (2025) - Foundation - Common - Compiler Bug Defines - More qCompilerAndStdLib_stdlib_ranges_pretty_broken_Buggy BWA - qCompilerAndStdLib_nestedLambdaBindings_Buggy new bug define and BWA for clang++15 - Characters - RegularExpression - docs/examples - deprecated (reversed some params) for RegularExpression CTOR; and improved docs on regular expression syntaxes (pointers to where to find details of that syntax); and fixed example :blank: to be eBasic syntax - String - New String::NormalizeSpace () method - String {}.ReplaceAlL(RegExp) examples and regtests - String Literal _k and FromStringConstant code now fully work with ALL kinds of IUNICODECanUnambiguouslyConvertFrom characters (though not all cases optimized); and improved regtests to reflect this; and these no longer both with the NUL-termination requirement (was obsoleted a while back); and a few related cleanups/fixes - ToString - ToString support: shared_ptr and unique_ptr tostrings print using *t if known how, else print address, and added regtests for this and a bunch of related ToString cases/tests - Cryptography - Refactored OpenSSL specific code (mostly) to Providers/OpenSSL - OpenSSL ThrowLastError marked noreturn - a bunch of new classes for PEMFiles, SSLStreams etc... - **new** PKI folder with **new** Certificate, PrivateKey and PEMFile modules - new Certificate::NewSelfSigned () api - **new** SSL folder with - working (but still early) version of Cryptography/OpenSSL/SocketStream Cryptography/SSL/SocketStream - working regtest with socketpair, and creating two paired SSL streams and reading and writing - DataExchange - InternetMediaTypeRegistry::GetAssociatedFileSuffixes () - returns suffix (also) built into the ct itself - Execution - Exceptions - new NestedException - Logger - changed one assert to WeakAssert with logging - cuz saw error in WTF - in the Windows Logger/LogEvent code - ProcessRunner - Big cleanup to ProcessRunner::Exception handling - capture - now does much better job capturing stderr and including it in the message, and in a way that it can easily be removed if desired. And changed Run()/0 overload to act like Run(), and so handle embedding stderr messages in exption - fixed use of RegExp in ProcessRunner (based on recent examples/regtests) - MakeVersionViaAwkPipe regtest cleanups - and fixed reporting and documented issue with awk under cygwin - Minor tweaks to docs and error reporting in ProcessRunner - regtest MacOS_Mystery_Crasher_; A few minor cleanups to Process_Runner_POSIX_ (code is a mess); and one memory bug fix! - caused Foundation_Execution_ProcessRunner.MacOS_Mystery_Crasher_ - WaitForIOReady - use new ConnectionOrientedStreamSocket::NewPair instead of explicit ConnectionOrientedMasterSocket::New ... in WaitForIOReady (really sb effectively no change on windoze, but switch to socketpair from explicit gorp in setup - probably no real difference once really running - I hope - IO - Filesystem - FileInputStream - kBufferFlag_DEFAULT = eUnbuffered now (because StreamReader works better for buffering) - Networking - HTTP - Minor cleanup to HTTP Status utilities (and use) - InternetAddress - experiment using StackBuffer in place of vector - Added InternetAddress LocalHost (SocketAddress::FamilyType fm) utility - ConnectionOrientedStreamSocket - new ConnectionOrientedStreamSocket::New (SocketPair{}) ; and regtests of communications over these socketpairs - Socket - document and enforce that Socket::Shutdown ignored if socket already closed(/shutdown) - Math - new Math::ComputeCommonStatistics (including ToString support) and ObjectVariantMapper CommonSerializer support - Memory - Common Mark CopyOverlapingBytes, CopyBytes as noexcept - InlineBuffer - new UninitializedConstructorFlag::eUninitializedIfTrivial and used in InlineBuffer CTOR - new InlineBuffer::insert/Insert methods - cleanups to InlineBuffer (comments and use of CopySpanData) - regression tests - Streams - BufferedInputStream - First actually buffering implementation - BufferedOutputStream - support argument bufferSize - and templated INLINE_BUF_SIZE using InlineBuffer; and related cleanups - Copy - various cleanups - InputStream - InputStream::Ptr - new methods ReadBlocking, ReadNonBlocking, and incompatible change to Read() overloads and several deprecations - deprecated InputStream::ReadCharacter - StreamReader - tweaks to const methods on Peek(), and overload of FillCacheWith_ - and added new untested RemainingLength/AvailableToRead methods to bettter mimic InputStream API - StreamReader use more span-style code - TextWriter - fixed bugs with openwrite/closedwrite/openread/closedread logic in TextWriter - Time - DateTime - DateTime::Format() and Format(eCurrentLocale_WithZerosStripped) fixes, and regression tests; and many other fixes to regtest for datetime code - TimeOfDay - Allow TimeOfDay{hr,mi} CTOR - default seconds to 0 - Traversal - Range - Range::ToString()... with lb=kLowerBound or ub == kUpperBound shown as '' in ... range display - so appears more open-ended, and other Range print cleanups - Added Range::ReplaceStart, and Range::ReplaceEnd() methods - fixed missing traits on Traversal::RangeTraits specializations for DurationSeconds, TimePointSeconds, and chrono::time_point\ - Frameworks - WebServer - Mostly cosmetic cleanups to WebServer Connection code - using const for data members, and restructured ReadAndProcessMessage () - mostly compatibly - **new** Connection::Stats and Connection::stats() property, along with (slightly incompatable) change to ConnectionManager: connections and activeConnections now return Collection of Connection::Stats instead of shared_ptr - not totally backward compatable change to WebServer::ConnectionManager: lose activeConnections property; rename a few things in statistics produced, and mostly greatly enhance it to include useful connection stats; and updated docs and samples accordingly (mostly); and draft healthCheck endpoint on some samples - WebServer::Connection - use TimePointSeconds instead of DateTime - for precision; and use CommonStatistics and in HTMLUI sample (including HTML) - Samples - HTMLUI - HTMLUI sample - slight restructure of how to talk to WSImpl::WithWebServerCallbackType; and capture way more stats now - and report more in about from ConnectionManager - ConnectionManager and HTMLUI sample uses CommonStatistics\ for a bunch of measurements/stats - HTMLUI sample app - added debuging/testing connections WSAPI - more HMTLUI sample improvemnts (showing helathcehck results) - WebServer - Minor tweaks - ThirdPartyComponents - lzma - echo debug message - to try and workaround issue with 7z lzma extract makefile issue in third party components - see if it triggers #### Release-Validation - Compilers Tested/Supported - g++ { 11, 12, 13, 14 } - Clang++ { unix: 15, 16, 17, 18, 19; XCode: 15.2, 15.3, 16.0} - MSVC: { 17.12.3 } - OS/Platforms Tested/Supported - Windows - Windows 11 version 24H2 - mcr.microsoft.com/windows/servercore:ltsc2022 (build/run under docker) - cygwin (latest as of build-time from CHOCO) - MSYS (msys2-base-x86_64-20230127.sfx.exe) - WSL v2 - MacOS - 15.0.1 - arm64/m1 chip - 14.3, 14.4, 15.0 on github actions - Linux: { Ubuntu: [22.04, 24.04, 24.10], Raspbian(cross-compiled from Ubuntu 22.04, Raspbian (bookworm)) } - Hardware Tested/Supported - x86, x86_64, arm (linux/raspberrypi - cross-compiled, debian-12), arm64 (macos/m1) - Sanitizers and Code Quality Validators - [ASan](https://github.com/google/sanitizers/wiki/AddressSanitizer), [TSan](https://github.com/google/sanitizers/wiki/ThreadSanitizerCppManual), [UBSan](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) - [CodeQL](https://codeql.github.com/) - [Valgrind/MemCheck](https://valgrind.org/docs/manual/mc-manual.html) - Build Systems - [GitHub Actions](https://github.com/SophistSolutions/Stroika/actions) - Regression tests: [Correctness-Results](Tests/HistoricalRegressionTestResults/3.0), [Performance-Results](Tests/HistoricalPerformanceRegressionTestResults/3.0) - Known (minor) issues with regression test output - raspberrypi - 'badssl.com site failed with fFailConnectionIfSSLCertificateInvalid = false: SSL peer certificate or SSH remote key was not OK (havent investigated but seems minor) --- ### 3.0d13 {2024-12-20} {[diff](../../compare/3.0d12...3.0d13)} #### TLDR - Fixed real bug masked with qCompilerAndStdLib_LTOForgetsAnInlineSometimes_Buggy BWA - NODEJS=20 from deb.nodesource ubuntu container issues - Cleaned up various issues in https://stroika.atlassian.net/ #### Upgrade Notes (3.0d12 to 3.0d13) - ProcessRunner::Run() - overload doing ThrowIfFailed() not needed anymore (only applies to 3.0d12 code) #### Change Details - Documention - Various docs/comments cleanups - top level README.md - Build System - Docker - Windows: use MSYS_20241208; tried but failed using ltsc2025 - Ubuntu: use NODEJS=20 from deb.nodesource.... because failures with quasar / vite dependencies... - Stroika Library - Across Library - header include cleanups - Foundation - Characters - StringBuilder - cleanup - note http://stroika-bugs.sophists.com/browse/STK-34 fixed - String - Completed https://stroika.atlassian.net/browse/STK-968 - immutable String - Common - Compiler Bug Defines - add another qCompilerAndStdLib_DefaultMemberInitializerNeededEnclosingForDefaultFunArg_Buggy BWA - lose qCompilerAndStdLib_LTOForgetsAnInlineSometimes_Buggy BWA - fixed underlying issue (missing #include for def of UnoverloadedToString) - Containers - Sequence - lose config vars Stroika_Foundation_Containers_Sequence_SupportProxyModifiableOperatorOpenCloseParens and Stroika_Foundation_Containers_Sequence_SupportProxyModifiableOperatorBracket; - fixed https://stroika.atlassian.net/browse/STK-77 and https://stroika.atlassian.net/browse/STK-582 (really same); Sequnce:: opeartor[] now always produces const (not updatable) and operator() always produces tmp reference (so updatable but more costly); documented well and added regtests - documented new (replacement narrower bug# not really new issue) https://stroika.atlassian.net/browse/STK-1024 another BWA - Execution - ProcessRunner - **not fully backward compat** change to ProcessRunner::Run - but simplified overlad taking streams - just ThrowIfFailed() automatically and dont return ProcessResult and documented using RunInBackground() to get that behavior - and added regtests to verify https://stroika.atlassian.net/browse/STK-585 addressed - changed default working directory to /tmp - Minor cleanups and better use of DeclareActivity when running subprocess - new BackgroundProcess::WaitForStarted; GetChildProcessID; and new options fDetached and fChildUMask - used to deprecate DetachedProcessRunner - Traversal - Iterable: - https://stroika.atlassian.net/browse/STK-858 - Iterable::Nth and Nthvalue take signed int and support -1 from end - ThirdPartyComponents - boost 1.87.0 - sqlite 3.47.2 - libcurl 8.11.1 #### Release-Validation - Compilers Tested/Supported - g++ { 11, 12, 13, 14 } - Clang++ { unix: 15, 16, 17, 18, 19; XCode: 15.2, 15.3, 16.0} - MSVC: { 17.12.3 } - OS/Platforms Tested/Supported - Windows - Windows 11 version 24H2 - mcr.microsoft.com/windows/servercore:ltsc2022 (build/run under docker) - cygwin (latest as of build-time from CHOCO) - MSYS (msys2-base-x86_64-20230127.sfx.exe) - WSL v2 - MacOS - 15.0.1 - arm64/m1 chip - 14.3, 14.4, 15.0 on github actions - Linux: { Ubuntu: [22.04, 24.04, 24.10], Raspbian(cross-compiled from Ubuntu 22.04, Raspbian (bookworm)) } - Hardware Tested/Supported - x86, x86_64, arm (linux/raspberrypi - cross-compiled, debian-12), arm64 (macos/m1) - Sanitizers and Code Quality Validators - [ASan](https://github.com/google/sanitizers/wiki/AddressSanitizer), [TSan](https://github.com/google/sanitizers/wiki/ThreadSanitizerCppManual), [UBSan](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) - [CodeQL](https://codeql.github.com/) - [Valgrind/MemCheck](https://valgrind.org/docs/manual/mc-manual.html) - Build Systems - [GitHub Actions](https://github.com/SophistSolutions/Stroika/actions) - Regression tests: [Correctness-Results](Tests/HistoricalRegressionTestResults/3.0), [Performance-Results](Tests/HistoricalPerformanceRegressionTestResults/3.0) - Known (minor) issues with regression test output - raspberrypi - 'badssl.com site failed with fFailConnectionIfSSLCertificateInvalid = false: SSL peer certificate or SSH remote key was not OK (havent investigated but seems minor) --- ### 3.0d12 {2024-12-14} {[diff](../../compare/v3.0d11...3.0d12)} #### TLDR - ProcessRunner much cleaner support for running under shells/shell commands, and better error reporting - new Frameworks::WebService::ObjectRequestHandler, replacing deprecated mkRequestHandler - Frameworks::WebServer - mostly using references, instead of pointers - Nearly completed making String class immutable (use StringBuilder for mutable cases) - floating point precision control (across formatting, VariantValue/JSON IO, Durations, etc). - InternetMediaTypeRegistry ISA redesign - **new** DataExchange::TypedBLOB - Memory::CopyBytes/CopySpanData/SpanBytesCast improvments #### Upgrade Notes (3.0d11 to 3.0d12) - Frameworks::WebServer - mostly using references, instead of pointers for Message&, Request&, Response&, etc... - new Frameworks::WebService::ObjectRequestHandler, replacing deprecated mkRequestHandler (see Samples/WebService/Main/WebServer.cpp - search ObjectRequestHandler::Factory) - String API - avoid mutating APIs (most remaining deprecated) #### Change Details - Various docs/comments cleanups - Build System - configure - configure: fixed SetDefaultsWhichDependOnCompilerDriverAndApplyDefaultsDebugOrRel_ to check for and handle COMPILER_DRIVER eq '' - configure script: many changes (to test) - check COMPILER_DRIVER variable instead of COMPILER_DRIVER_CPlusPlus in many places; new ComputeARCHFlag_ procedure to better modularize/cleanup; and renamed for clarity ParseCommandLine_CompilerDriverAndDebugOrReleaseDefaultMode_ and SetDefaultsWhichDependOnCompilerDriverAndApplyDefaultsDebugOrRel_ - Minor cleanup of configure script - no apparent change (but could be) - configure - apparently redudnent set of Wno-stringop-overflow removed - workaround two linker time warnings in glibc code in configure - raspberrypi configurations - --append-CXXFLAGS -fno-sanitize=alignment for https://stroika.atlassian.net/browse/STK-1023 - fixed configure so --append-CXXFLAGS go at the end (so they can be used to override things) - test an dthen do to other appends - -fstanitize alignment no: https://stroika.atlassian.net/browse/STK-1023 needed for g++-11 too - Docker - fixed build msys docker contianer - miussing pkg-config - docs about https://stroika.atlassian.net/browse/STK-742; and switch docker config to using VS_17_12_0 - windows docker container VS_17_12_3 - github actions - added /boost/ConfigureAndBuild-OUT.txt to github action log data capture (a few) - Added more debug statements for macos build target - github workflow - github action macos - get link error building libcurl on macos 13 - dont bother debugging cuz not importany to support old macos and no easy way to debug - experiment with fixes for github action issue with brew install - lose like macos brew install -q pkg-config no longer works and isnt needed - github action - workaround https://github.com/actions/upload-artifact/issues/506 - RegressionTests - Lots of miscelaneous RegressionTest cleanups (switch to google test style, etc) - Merged (out) Configuration tests into Common - Split regtest that had frameworks webserver and webservices into two separate regtests - Added regtests for BLOB and Stream code - renumbered a few regressiontests (RenumberRegressionTests) restructure (gtest) regtest Foundation_Cryptography moved regtest to Frameworks_WebService, TestVariantValueSupport Regression test - better output warnings about TSAN disabled set UBSAN_OPTIONS in RegressionTests script revised BWA for https://stroika.atlassian.net/browse/STK-1021; TSAN - hold lock longer lose PeekIsSet from ThreadSanitizerSuppressions.supp and instead - added Stroika_Foundation_Debug_ATTRIBUTE_NO_SANITIZE_THREAD before the two procedures calling PeekIsSet handle RequiredComponentMissingException in webservice regtests since cannot build libcurl on some macos configurations - Scripts - ScriptsLib/RenumberRegressionTests draft script ScriptsLib/CreateSelfSignedCert - BuildGLIBCLocally - to be able to run with newer ubuntus cross compile for raspberrypi (old debian) - refer back to https://stroika.atlassian.net/browse/STK-1022 - Stroika Library - Across Library - new clang-format (18.1.18); make format-code - Foundation - Characters - CodeCvt - Added a few comments, requires etc on CodeCvt - one important bugfix converting differently sized UTF to UTF conversions - FloatConversion - Regression Tests additions/imrovments - CalcPrecision_ to regression test, and to workaround missing __cpp_lib_to_chars code case - Code for missing __cpp_lib_to_chars very iffy/quesitonable, but hopefully good enuf for now - hopefully missing compilers (clang) will correct before too long. - promote Foundation::Characters::FloatConversion::{ToFloat,ToString} to also be in Characters namespace - Format - mostly cosmetic - use just _f () instead of Characters::Format (..._f, - String - added String::ContainsAny () utility - Depreacted IO::Filesystem::ToPath and instead String.As () works including qStroika_Foundation_Characters_AsPathAutoMapMSYSAndCygwin hack - cleanup mistake with IConvertibleToUNICODEStdString with String CTORs and renamed (and fixed) concept to be IStdPathLike2UNICODEString - String module: new IConvertibleToUNICODEStdString, and used in String CTOR so can accept filesystem::path argument; used to deprecated FromPath method; AND many various cleanups and reactions to various deprecations - deprecated String::clear() - Deprecated several modifying methods on String - push_back, erase, operator+, Append, and added a few helper methods to StringBuilder to ease the transition (weak impls but OK to test) - StringBuilder - improved nonvirtual StringBuilder& operator= and cleanup a few more warnings - ToString - ToString(StringBuilder) support - Common - Compiler Bug Defines - Lose qCompilerAndStdLib_ASAN_memcpy_Buggy BWA - cuz was MY bug not ASAN issue; and fixed BLOB code so BLOB :: As - holds onto refcount - lose qCompilerAndStdLib_RequiresNotMatchInlineOutOfLineForTemplateClassBeingDefined_Buggy BWA no longer needed - on explicit String (TOSTRINGABLE&& s) - now more restruict concept on it - BWA for qCompilerAndStdLib_RequiresNotMatchInlineOutOfLineForTemplateClassBeingDefined_Buggy another case - qCompilerAndStdLib_formattable_FilterOnStringLitOp_Buggy not buggy on clang - qCompilerAndStdLib_formattable_FilterOnStringLitOp_Buggy and Stroika_Foundation_Common_formattable_FilterOnStringLitOp_BWA - lose qCompilerAndStdLib_CompareOpReverse_Buggy - just workaround issue and document in header I dont understand why extra function required, but compilers consistent enuf I must be wrong - _MSC_VER_2k22_17Pt12_ compiler bug define support - qCompilerAndStdLib_ConstraintDiffersInTemplateRedeclaration_BWA BWA - Appears Stroika_Foundation_Common_formattable_FilterOnStringLitOp_BWA not needed on Format() function call - a few more minor cleanups - mostly Characters::Format BWA simplifications - Concepts - Added IBuiltinArithmetic concept - ArgOrVoid member of FunctionTraits - Added and used trivially_copyable in a few places (docs/clarifications) - new concept Weak_Equality_Comparable_With - GUID - docs and asserts GUID - override formatter for GUID (cuz default the way I wrote things was to use ranges formatter - at least on systems that supported it); now have regtest to assure outputs in compact formated GUID format - Cryptographaphy - OpenSSL - Minor docs and init cleanups to Cryptography/OpenSSL/LibraryContext - minor cleanup of Library/Sources/Stroika/Foundation/Cryptography/OpenSSL/Exception.cpp - Minor cleanups to Foundation_Cryptography regtest: better docs/comments on how to detect new errors/failures in new openssl releases; and handle new issue with SHAKE128/256 (not well - just ignore) - DataExchange - InternetMediaType - fix to change allowing no subtype in InternetMediaType - InternetMediaTypes and InternetMediaTypeRegistry - deprecated IsXMLFormat, IsTextFormat, IsImageFormat, and replaced with IsA() support doing the same thing - Added predefined internetmediatype kAudioWAV, InternetMediaTypes::kJSONPatch, AudioMP3 kAudioMP4 - cleanup of InternetMediaTypeRegistry::IsA mechanism - new wildcard InternetMediaTypes::WildCard kText,kAudio - which can be used as token sfor these IsA calls - added regtests and furhter improved IsA() impl - mostly checking for suffixes - **new** DataExchange::TypedBLOB - Variant - JSON Read/Writer - regtests JSONWriterNumberPrecision verify/test - fJSONWriterOptions in ObjectRequestHandler - Execution - BlockingQueue - cleanup - CommandLine - disable some maybe unwanted/unhelpful quoting in CommandLine::As () - Minor cleanups to recent CommandLine changes (StringShellStyle-> StringShellQuoting) - fixed CommandLine ::CommandLine to use COMSPEC ENV var, not cmd and path search (based on looking at visual studio source code for system call) - CommandLine::As () support so you can map back - Exceptions - ThrowIfNull overload for optional - Weak_Equality_Comparable_With used to fix recent chagnes to ThrowIfNull - Module - **new** kPath and kPathEXT - **new** FindExecutableInPath utility - ProcessRunner - **big cleanup** - much cleaner handling of commandline arguments and 'shells' - better error reporting when not FindExecutableInPath() - Now based on CommandLine class - with contructors to wrap in shell (as appropriate). - also new Options argument (and property) - so can control CodeCvt used on reading/writing subprocess etc - Improved regression tests - ***not backward compat change*** on ProcessRunner::Run(STRING) - now returns tuple so must wrap String expecting results with get<0> - big change to ProcessRunner API - deprecated passing streams to CTOR, and instead added Run() overload taking STREAMS; so new meaning for .Run() - must replace it with .Run().ThrowIfFailed - for all overloads taking streams (including no args overload) - Refactored currentdirectory to Options for ProcessRunner, and added a few windows control flags there (options) to be set outside and defaulted instead of hardwired in ProcessRunner.cpp - effectively no changes to any of the defaults - more clenaups / progress on CommandLine/ProcessRunner code - AutomaticWrapInBashOrCmdShellForPipesInShell draft and other regtest cleanups - more ProcessRunner cleanups, but mostly StringShellStyle in As method of CommandLine - preliminary WrapInShell support on Execution::CommandLine class, and used in ProcessRunner - recatoring of ProcessRunner to run off CommandLine class (seems to pass all old regtests and one API deprecated) - WaitForIOReady - comments, and typos fixed, and extra use of const for clarity in WaitForIOReady - IO - FileSystem - deprecated kPathComponentSeperator and replaced wtih filesystem::path::preferred_separator - cleanup Foundation_IO_FileSystem regtest and minor fixes to FileSystem/DirectoryIterator.cpp - TempFile - fixed small bug with FileSystem::CreateTmpFile - if missing extension use .txt to txt - Network - lose accdidentally left around class URL - fixed ClientErrorException::TreatExceptionsAsClientError to not add extra layer of ClientErrorException if already is one; and added dbgtrace on translation - URI - docs; and new Query::Lookup and URI::LookupQueryArg methods - IO::Network::HTTP::{Request/Response} support for movable concept - Math - Common - Round - RegressionTests - use Trunc instead of Round() in Round (FLOAT_TYPE n, unsigned int nDigitsOfPrecision...) - New Round (..,nDigitsPrecision) overload - docs - **new** Trunc() routine for integer (saturation) truncation - use new numbers::pi_v instead of deprecated kPi (smae for kE, etc). - deprecate Math::PinInRange - use std::clamp instead (and fixed some places that called Min(Max(... to use clamp) - Memory - BLOB - Satisfies Concepts: for BLOB - Common/Span - Deprecated SPAN.h (moved span related stuff to Memory/Common.h - CopyBytes replaces most uses of CopySpanData(), but new semantics for new CopySpanData - Renamed MemCmp to CompareBytes () - deprecating old name - new API SpanBytesCast (replaces deprecated SpanReInterpretCast) - and improved - lose CopySpanData_StaticCast - now just (better semantics CopySpanData) - new CopyOverlappingBytes - InlineBuffer - fixed bug with InlineBuffer (InlineBuffer&& src) moving large buffer - Streams - TextWriter takes copyable not move only argument CodeCvt - Added Foundation_Streams TextReaderBug to demo/reporudce (now fixed) CodeCvt issue with sizeof (SERIALIZED_CHAR_T) and qCompilerAndStdLib_ASAN_memcpy_Buggy - Streams code: used to \req IsOpen (and IsRead/WriteOpen) on Close/CloseWrite/CloseREad - but now check internally and allow close calls when already closed (noop) - use WeakAssert for rare case that can happen - on failure of Flush in BufferedOutputStream - Time - Duration - indirect in Duration code to shared FloatConversion::ToString() - change DefaultCTOR for Precision to initialiuze to 6; and use that to lose ToStringOptions::kDefaultPrecision; added regtests for new precision code; Time::Duraiton::As () now NEW HEBAVIROR - NOT BACKWARD COMPAT FULLY - defaults to 6 digits precision instead of full, but easy to pass in Full() to As method if you want; and regtest that from ObjectVariantMapper now too - Duration/precsion regtests - MakeCommonSerializer support Duration+Precision - Time::Duration As String(PRecision) now even if stored fStringRep - we convert so produces right precision answer - Support Characters::ToString(Duration,Precision) - Duration::UnParseTime_ () use FloatConversion::Precision - Frameworks - WebServer - RequestHandler now takes additional optional argument - bool* handled; and changed Lookup on Router to return Iterator>> so sb able to have multiple filesystem routers now - Request::GetBodyVariantValue () returns {} on no content-type (maybe more cases to add) ; and fixes to ObjectRequestHandler - changed Ensure to WeakAssert Response::End () - cuz reponse might have ended before abort happens - Frameworks::WebServer::{Message,Requst,Response} now support move - progress towards RequestHandler cleanup (incomplete) - slightly incompable (but not noticible by most users) change to WebServer::RequestHandler - internal calling rep now requires Message& instead of Message* (overriders most common, and there users get a deprecation warning) - more recent RequestHanlder cleanups and fixes for pickier clang - not backward compat but minor - use Message& in WebServer Interceptor code instead of Message* - not commonly user facing APIs so not that noteworthy - WebService - **new** Frameworks/WebService/Server/ObjectRequestHandler - use deducation guides to make work better than old mkRequestHandler - deprecated mkRequestHandler - PATCH support example in WS tester reggtest (incomplete) - Regression tests for new webservice ObjectRequestHandler - Server::WriteDocsPage use reference argument for response instead of ptr (deprecated old api) SendStringResponse method, and Factory::SendResponse behavior and docs updated - Test - Frameworks::Test::WarnTestIssue now has String overload which simplifies some usage - start adding qStroika_HasComponent_googletest PrintTo for some userdefined types, so shows up better in google test - Samples - HTMLUI - Minor cleanups - fixed missing Samples/HTMLUI/Backend/Projects/VisualStudio.Net-2022; and a few other minor mkaefile tweaks - SSDPServer - Minor celanups to SSDPServer sample - WebServer - move test for automaticTransferChunkSize modes to regtest (mostly from sample - now sample more reasonable) - cosmetic cleanups to weberserver sample - slightly polish webserver sample, and docs about webserver sample - WebService - tweaked Samples/WebService - and use new ObjectRequestHandler - Sanitizers - https://stroika.atlassian.net/browse/STK-1021 BWA - ThirdPartyComponents - openssl 3.4.0 - sqlite 3.47.0 - libxml 2.13.5 - libcurl 8.11.0 #### Release-Validation - Compilers Tested/Supported - g++ { 11, 12, 13, 14 } - Clang++ { unix: 15, 16, 17, 18, 19; XCode: 15.2, 15.3, 16.0} - MSVC: { 17.12.3 } - OS/Platforms Tested/Supported - Windows - Windows 11 version 23H2 - mcr.microsoft.com/windows/servercore:ltsc2022 (build/run under docker) - cygwin (latest as of build-time from CHOCO) - MSYS (msys2-base-x86_64-20230127.sfx.exe) - WSL v2 - MacOS - 15.0.1 - arm64/m1 chip - 14.3, 14.4, 15.0 on github actions - Linux: { Ubuntu: [22.04, 24.04, 24.10], Raspbian(cross-compiled from Ubuntu 22.04, Raspbian (bookworm)) } - Hardware Tested/Supported - x86, x86_64, arm (linux/raspberrypi - cross-compiled, debian-12), arm64 (macos/m1) - Sanitizers and Code Quality Validators - [ASan](https://github.com/google/sanitizers/wiki/AddressSanitizer), [TSan](https://github.com/google/sanitizers/wiki/ThreadSanitizerCppManual), [UBSan](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) - [CodeQL](https://codeql.github.com/) - [Valgrind/MemCheck](https://valgrind.org/docs/manual/mc-manual.html) - Build Systems - [GitHub Actions](https://github.com/SophistSolutions/Stroika/actions) - Regression tests: [Correctness-Results](Tests/HistoricalRegressionTestResults/3.0), [Performance-Results](Tests/HistoricalPerformanceRegressionTestResults/3.0) - Known (minor) issues with regression test output - raspberrypi - 'badssl.com site failed with fFailConnectionIfSSLCertificateInvalid = false: SSL peer certificate or SSH remote key was not OK (havent investigated but seems minor) --- ### 3.0d11 {2024-10-31} {[diff](../../compare/v3.0d10...v3.0d11)} #### TLDR - Merged Foundation::Configuration namespace/folder into Foundation::Common (namespace/folder) - new sample HTMLUI - an excellent default to clone to create a webservice (service) application (c++ backend) with a modern HMTL UI fronend - Skel template support ~~~ ./ScriptsLib/Skel --appRoot ../NewHTMLBasedApp --appName MyApp --template HTMLUI ~~~ so now easy to create Stroika-based webservice app, serving up static and dynamic content, and running as service, with installers (or docker run) etc... - Support XCode 16, and clang++-19, and Ubuntu 24.10 (in place of 23.10) #### Upgrade Notes (3.0d10 to 3.0d11) - #define name changes (if you use the name on the left, change to name on the right) ~~~ #define qDebug qStroika_Foundation_Debug_AssertionsChecked #define qHas_Syslog qStroika_HasComponent_syslog #define qHasLibrary_ODBC qStroika_HasComponent_ODBC #define qHasFeature_sqlite qStroika_HasComponent_sqlite #define qHasFeature_OpenSSL qStroika_HasComponent_OpenSSL #define qHasFeature_Xerces qStroika_HasComponent_xerces #define qHasFeature_ATLMFC qStroika_HasComponent_ATLMFC #define qHasFeature_boost qStroika_HasComponent_boost #define qHasFeature_LibCurl qStroika_HasComponent_libcurl #define qHasFeature_fmtlib qStroika_HasComponent_fmtlib #define qHasFeature_GoogleTest qStroika_HasComponent_googletest #define qHasFeature_LZMA qStroika_HasComponent_LZMA #define qHasFeature_WinHTTP qStroika_HasComponent_WinHTTP #define qHasFeature_libxml2 qStroika_HasComponent_libxml2 ~~~ - Replace #include and namespace references to Configuration with Common ~~~ #include "Stroika/Foundation/Configuration/Enumeration.h" namespace Stroika::Foundation::Configuration { template <> constexpr EnumNames DefaultNames::k{{{ {Characters::CompareOptions::eCaseInsensitive, L"Case-Insensitive"}, {Characters::CompareOptions::eWithCase, L"With-Case"}, }}}; } ~~~ ~~~ using namespace Configuration => Using namespace Common; ~~~ - Replace Linguistics::MessageUtiltiesManager::Get () with Linguistics::MessageUtilities::Manager::sThe #### Change Details - Various docs/comments cleanups - Build System - Docker Containers - docker container tweaks dev containers - build docker containers on github action updated for 23.10 => 24.10 switch - docker container support for building with npm ubuntu 22 and 24 - windows docker VS_17_11_5 - github actions - add Installer-Build.Out to archived files in github actions - github workflow - cleanup some warnings and scripts/output names - github actions: build with g++-13 too - github actions - added MacOS-15-XCode-16.0 test run each time - github action - tweak run github actions on ubuntu 24.10 - using macos-15 from github actions - save space on ubuntu-24.10-clang++-19 .github action and others - github actions with build with xcode 15.4 instead of 15.3 - github actions: added build using clang++17 for ubuntu 24.04; and started switch to configurations for 24.10 (from 23.10) - Scripts - configure - configure: print macOSversion to configfile; and skipASANSanCuzBroken on darwin - -Wno-return-local-addr on ubuntu 24.04 also to cleanup spurrious warnings - ScriptsLib - fix for issue with quasar - RunInDockerEnvironment makes sure ~ is user writable - RegressionTests - add to regression-test-configurations for windows - ./configure Debug-Xerces - RegressionTests script uses regression-test-configurations instead of default-configurations by default - makefile default-configuration/regression-test-configuration cleanups so builds xerces on windows for regression tests and related cleanups - SharedMakeVariables-Default.mk - fixed DEFAULT_LINK_LINE for LinkTime_CopyFilesToEXEDir so properly handles failed link - ScriptsLib/Skel - refactoring Skel script to support new templates (now default Basic template) - support for HTMLUI template - Supported Compiler Configs: - re-enable clang++16 with libc++ on ubuntu 24 and added to .github actions workflow - Stroika Library - Across Library - a few static asserts (copyable) for docs purposes - use concept same_as in a few places in place of older is_same - Foundation - Characters - FloatConversion - fix to Precision::GetEffectivePrecision for max_digits10 - still need to document better and cleanup if works - ToString/formatter support for shared_ptr<> - incomplete - Common - Merged Foundation::Configuration into Foundation::Common, as having two separate names was slightly confusing (often unclear which something logically belonged under) - **not backward compatible** - but mostly backward compatible/through deprecation - update scripts for Foundation/Configuration => Common change - deprecate Configuration folder/namespace and update tests/samples to reflect - **not backward compatible** - renamed qHasFeature_ XXX to similar names qStroika_HasComponent_fmtlib - many - ConvertibleTo now uses concept convertible_to; and added mirror ConvertibleFrom helper and used in new IIterableOfFrom - many more cleanups to Library/Sources/Stroika/Foundation/Common/Private/ .. - losing several more files from there, and adjusting StroikaConfig.h accordingly, and renaming some and in some cases moving defines to tother more appropriate/modular files - more cleanups of Library/Sources/Stroika/Foundation/Common/Private renames and deletions of old files and moving defines around (so far no renames of defines) - Moved Common(was Configuration)/Private/Platform_.h (was something else) to Common/Platform and renamed qPlatform_Windows to qStroika_Foundation_Common_Platform_Windows etc - and deprecating old names - Added ISharedPtr concept - Private - Compile Bug Defines - Supported bug defines for xcode 16 - noticed we really require msvc version 17.9 or later, so require that for now as minimum - minor tweak to qCompilerAndStdLib_formattable_of_tuple_Buggy def - tweak qCompiler_IUseToStringFormatterForFormatter_Buggy IUseToStringFormatterForFormatter_ clang++ BWA for when using newer libstdc++ - simplify deprecated define impl - qCompilerAndStdLib_to_chars_FP_Buggy; qCompilerAndStdLib_to_chars_FP_Buggy _LIBCPP_VERSION < 199999 - start support for clang++19 _LIBCPP_VERSION = 190101 - dont use basic_string cuz not defined if xmlChar = unsinged char (https://en.cppreference.com/w/cpp/string/basic_string) - caught by clang++19 - must define namespace std before using to avoid warnings (clang++19) - qCompilerAndStdLib_template_template_call_SequentialEquals_Buggy broken for clang++19 - draft clang++-19 bug define support - changed def of qCompilerAndStdLib_from_chars_and_tochars_FP_Precision_Buggy to assure not set for _LIBCPP_VERSION - qCompilerAndStdLib_AssumeWarningSpamming_Buggy BWA - qCompilerAndStdLib_release_bld_error_bad_obj_offset_Buggy broken for clang++-19 - fixed qCompilerAndStdLib_ThreadLocalInlineDupSymbol_Buggy for clang++-19 - fixed qCompilerAndStdLib_template_ConstraintDiffersInTemplateRedeclaration_Buggy define for xcode 16 - qCompilerAndStdLib_StdFmtOfPath_Buggy BWA - fixed qCompilerAndStdLib_ThreadLocalInlineDupSymbol_Buggy for xcode16 - qCompilerAndStdLib_template_concept_matcher_requires_Buggy BWA for new ISharedPtr - lose Common/Private/Defaults_Characters_StringUtils_.h Common/Private/Defaults_Memory_Common_.h - defines either no longer used or moved - Characters - String - Minor String::CTOR cleanup, and allowed losing bug define qCompilerAndStdLib_templateConstructorSpecialization_Buggy - Containers - Set - Redo Set::ContainsAll/Any using Iterable Any/All methods - DataExcahnge - OptionsFile - use Lingusitcs::MessageUtilities::Manager::sThe.RemoveTrailingSentencePunctuation to imporove messages in DataExchange/OptionsFile.cpp - XML - Xerces - slight cleanup - use xerces namespace instead of xerces_3_2 (so can work with 33); and moved XERCES_CPP_NAMESPACE_USE to cpp file - Debug - renamed qDebug -> qStroika_Foundation_Debug_AssertionsChecked ; name change **not backward compatible** upgrade carefully - Simplify samples with defaults in Debug modules (or no args/defaults) ~~~ Debug::RegisterDefaultFatalErrorHandlers (Execution::DefaultLoggingFatalErrorHandler); SignalHandlerRegistry::Get ().SetStandardCrashHandlerSignals (SignalHandler{DefaultLoggingCrashSignalHandler, SignalHandler::Type::eDirect}); ~~~ - AssertExternallySynchronizedMutex - docs cleanups, - WriteContext now uses unique_lock instead of lock_guard so movable, and changed static asserts to reflect that - Fatal - explicitly expose DefaultFatalErrorHandler and added new Execution::DefaultLoggingFatalErrorHandler; DefaultLoggingCrashSignalHandler - Visualizations - tiny bit of docs on Foundation/Debug/Visualizations and added VariantValue - cosmetic, and Debug::Visualizations cleanups - Execution - CommandLine - CommandLine GetAppName and GenerateUsage overloads - cleanup Usage generation in samples - Logging - Minor tweaks to Foundation/Execution/Logger - IO - FileSystem - FileStream: assure STDOUT_FILENO etc defines always available and use in Stroika samples directly - Linguistics - MessageUtilities: **not backward compat** changes to Linguistics::MessageUtilities - fixed typo in name, made namespace, uses sThe pattern etc - Memory - other overload of InlineBuffer::BufferAsT_ () constexpr - Traversal - Iterable - renamed IsIterableOf to IIterableOfTo - use IIterableOfTo<> in Iterable CTOR - iterable docs, cleanups: more concepots (like on As()), and Map() methods - Minor tweak to Iterable::Any (): - **not backward compatible - but minor** - Iterable::_SafeReadWriteRepAccessor and _SafeReadRepAccessor now both properly movable but neither copyable - Samples - HTMLUI **New Sample application** - elaborate demo - run from docker (and build from docker) - WIX, RPM, DEB installers - Service integration - WebServices - Web HTML content served from filesystem - HTML UI using webservices, using quasar/vue - fix activeledit sample makefile so doesnt needlessly rebuild dll - ThirdPartyComponents - Libcurl - cleanup apparently no longer needed BWAs in curl Makefile #### Release-Validation - Compilers Tested/Supported - g++ { 11, 12, 13, 14 } - Clang++ { unix: 15, 16, 17, 18, 19; XCode: 15.2, 15.3, 16.0} - MSVC: { 17.11.5 } - OS/Platforms Tested/Supported - Windows - Windows 11 version 23H2 - mcr.microsoft.com/windows/servercore:ltsc2022 (build/run under docker) - cygwin (latest as of build-time from CHOCO) - MSYS (msys2-base-x86_64-20230127.sfx.exe) - WSL v2 - MacOS - 15.0 - arm64/m1 chip - 14.3, 14.4, 15.0 on github actions - Linux: { Ubuntu: [22.04, 24.04, 24.10], Raspbian(cross-compiled from Ubuntu 22.04, Raspbian (bookworm)) } - Hardware Tested/Supported - x86, x86_64, arm (linux/raspberrypi - cross-compiled, debian-12), arm64 (macos/m1) - Sanitizers and Code Quality Validators - [ASan](https://github.com/google/sanitizers/wiki/AddressSanitizer), [TSan](https://github.com/google/sanitizers/wiki/ThreadSanitizerCppManual), [UBSan](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) - [CodeQL](https://codeql.github.com/) - [Valgrind/MemCheck](https://valgrind.org/docs/manual/mc-manual.html) - Build Systems - [GitHub Actions](https://github.com/SophistSolutions/Stroika/actions) - Regression tests: [Correctness-Results](Tests/HistoricalRegressionTestResults/3.0), [Performance-Results](Tests/HistoricalPerformanceRegressionTestResults/3.0) - Known (minor) issues with regression test output - raspberrypi - 'badssl.com site failed with fFailConnectionIfSSLCertificateInvalid = false: SSL peer certificate or SSH remote key was not OK (havent investigated but seems minor) --- ### 3.0d10 {2024-09-24} {[diff](../../compare/v3.0d9...v3.0d10)} #### TLDR - [DataStructure::SkipList<>](Library/Sources/Stroika/Foundation/Containers/DataStructures/SkipList.h#96) support - generic backend-integration layer in concrete containers ([ArraySupport](Library/Sources/Stroika/Foundation/Containers/Private/ArraySupport.h#L21),SkipListSupport etc), so things so for example, Collection_Array and Sequence_Array have the same extension api for 'array stuff' like reserve - more thorough concept usage - comparison improvements - especially with containers - lose support for clang++-14 - Sorted* containers now use ITotallyOrderingComparer, so easier mixing of total ordering and strict in-order ordering functions with sorted containers #### Upgrade Notes (3.0d9 to 3.0d10) - maybe watch out for assumptions about the type of the result of Iterable::end(), but mostly this should be transparent #### Change Details - Various docs/comments cleanups - start documenting Design Overview.md#Comparisons with static_assert (totally_ordered); - Design Overview.md#Comparisons better docs and static_asserts of equality_comparable and totally_ordered as appropriate - Build System - Compilers Bug Workarounds - change check for msvc compiler from _MSVC_LANG >= kStrokia_Foundation_Configuration_cplusplus_23 to _HAS_CXX23 - qCompilerAndStdLib_RequiresNotMatchInlineOutOfLineForTemplateClassBeingDefined_Buggy BWA - new bug define and BWA qCompilerAndStdLib_default_initializable_broken_Buggy - lose qCompilerAndStdLib_stdlib_compare_three_way_missing_Buggy define cuz no longer support clang++-14 - simplication of BWA defines - BWA_Helper_ContraintInMemberClassSeparateDeclare_ merged to qCompilerAndStdLib_UseConceptOrTypename_BWA - lose qCompilerAndStdLib_ContraintInMemberClassSeparateDeclare_Buggy - Minor cleanups to qCompilerAndStdLib_template_ForwardDeclareWithConceptsInTypenameCrasher_Buggy - testing on xcode - lose qCompilerAndStdLib_clangWithLibStdCPPStringConstexpr_Buggy and otehr clang++-14 specific bug define support - qCompilerAndStdLib_ConstraintDiffersInTemplateRedeclaration_BWA macro BWA name cleanups - lose unneeded qCompilerAndStdLib_RequiresIEqualsCrashesAssociation_Buggy - new bug define BWA qCompilerAndStdLib_template_Requires_constraint_not_treated_constexpr_Buggy - qCompilerAndStdLib_stdlib_ranges_ComputeDiffSignularToADeref_Buggy BWA - update qCompilerAndStdLib_template_ConstraintDiffersInTemplateRedeclaration_Buggy for clang versions - Comments and warning about __cpp_lib_jthread < 201911 to see if still an issue on any target platform - configure - fixed configure script to detect eq && NeedsFmtLib_ () if onlyGenerateIfCompilerExists and disable and warn - Regression Tests - fixed exe used in RunPerformanceRegressionTests - cleanup regtests - and make in style of gtest - one test macro section per logical test, added ArchtypeClasses::AsIntsThreeWayComparer, and use _EQ, etc... - MultiSet - SortedMapping - association - Set - Sequence - Collection - KeyedCollection - Mapping - fixed warnings valgrindline count in regtest(I hope - testing) - tweak regression test script - REGTEST CONFIGURATIONS - rewrote/reorganized makefile basic-UNIX-test-configurations - Added g++-debug-sanitize_thread config - Added g++-release-sanitize_address_undefined_leak config for ubuntu 24.04 - basic-unix-test-configurations tweaks - on ubuntu 22.04 - disable sanitizers (maybe only needed asan) by default with --apply-debug-flags; not worth debugging the issue here/how - probably with asan itself or host os kernel settings - better document NOT supporting helgrind and why, and lose a few more BWA for old helgrind bug workarounds - github actions - cosmetic cleanups - added github action setting letting you select variable container_image version (defaults to v3) - Scripts - lose qCompiler_ValgrindDirectSignalHandler_Buggy bug define and BWA, since no longer supporing valgrind under Ubuntu 22.04 and doesnt seem triggered anyhow (maybe revisit?) and configure tweaks - fewer cases setting piler_ValgrindLTO_Bug - testing; and a few more configs tested in regresisn test configs for ubuntu 22.04 cleanups to makefile configuraiton generation/defaults (lose leak san on ubun2u22.04 cuz not building curl) - Skel: - tweak SKEL Makefile rule for latest-submodules - Supported Compilers - desupport clang++-14 (latest boost fails to compile there under ubuntu 22.04) - no need to support - support for _MSC_VER_2k22_17Pt11_ - Docker Containers - visual studio uses VS_17_11_4 - Ubuntu 22.04 uses ppa:ubuntu-toolchain-r/test version of g++-13 instead of my own build - Stroika Library - Across Library - use concept copy_constructible instead of is_copy_constructible_v and cosmetic - use concept same_as in place of older is_same_v - use concept constructible_from instead of old name is_constructible_v - use default_initializable over is_default_constructible_v - docs, static asserts about Satisfies Concepts - lose a few legacy uses of _IRepSharedPtr - Standard Stroika Comparison support docs cleanups (static assert totally_ordered etc); - Foundation - Cache - renamed BloomFilter::Contains to ProbablyContains - Common & Configuration (to be merged next release) - Compare - draft IThreeWayComparer and new Common::ToInt(strong_ordering) so can be used in switch statement - fixed IPotentiallyComparer for compare_three_way - IPotentiallyComparer fixed to support lamdas returning strong_ordering - slightly refactor code for ExtractComparisonTraits_ - get IComparer working with threewaycomparer lambda - ThreeWayComparerAdapter/InOrderComparerAdapter/EqualsComparerAdapter with attempt at deduction guides but didn't seem to help - New ITotallyOrderingComparer concept and used in ThreeWayComparerAdapter - Minor cleanups to ComparisonRelationDeclaration; and now many uses of ComparisonRelationDeclaration like ElementInOrderComparerType now also use ArgByValueType - more requires constraints on ComparisonRelationDeclaration - for better debug messages - Concepts - Select_t utility - GUID - Minor GUID cleanups (mostly concepts) - KeyValuePair - KeyValuePair support mapped_type=void - StdCompat - moved compare_three_way_BWA to Configuration::StdCompat::compare_three_way - Endian - Minor tweaks to Endian support (docs mostly) - addressed http://stroika-bugs.sophists.com/browse/STK-850 - std::endian and Configuration::GetEndian support - Containers - Nearly all the container classes - improved concepts usage, and got each working as input_range, and totally_ordered, or not, as appropriate, and documented for each - reacted to iterable<>::sentinal change: all over the place by making most Stroika containers /APIs taking two iterators - use sentinel_for in second concept - use .empty () instead of .size() == 0 in a bunch of places (can be more performant) - Common - Migraded Containers::AddReplaceMode to Common.h; - added related AddOrExtendOrReplaceMode - DataStructures - all - normalized CTORs for various ForwardIterator classes on datastructures, documenting better behavior across all - ForwardIterator::operator bool () on the various datastructure forwarditerators; - Container DataStructure classes - replaced a few Prepend/Append method names with push_front / push_back - make API in Containers::DataStrucutres more STL-ish - operator->, operator* replacing it.Current () and a few other changes to SkipList - replace ForwardIterator::Equals with operator==; - static_assert (ranges::input_range>) works now - for all datastructure container classes - **new** SkipList<> implementation - Docs in ReadMe about supported containers/datastructures - more use of concepts on these DataStructure::Find... function calls; - Array - removeAt renamed to Array::REmove(NOT BACKWARD COMPAT but not directly used); and new method erase() provided rerning iterator, and that simplified a bunch of uses - Assertions cleanups to DataStructures Array - https://stroika.atlassian.net/browse/STK-757 for DataStructures::Array use malloc/realloc if trivailly_copyable_v - LinkedList - Assertions cleanups to DataStructures LinkedList (dont store fData in debug builds) - Remove and erase methods (diff is returning itererator) - DoublyLinkedList - Remove and erase methods (diff is returning itererator) - Factories - Supported ITotallyOrderingComparer in all sortedxxx factories; and a few other minor/cosmetic cleanups - Private:: - IteratorImplHelper_ supports passing low level iterator as arg; - more requires () on private IteratorImplHelper_ to try and get better compiler error messages - tons of containers cleanups (IImplRepBase_ simplifcaiton, fixed missing fChangeCounts_, and made a few things more terse) - Concrete classes - For all Array, std::vector, and SkipList based concrete containers, replace any adapter methods in the concrete container to access capacity etc, with instead generic access via StdVectorSupport/SkipListSupport/ArraySupport. - lots of misc cleanups / docs / performance docs cleanups across all the concrete classes - deprecated Mapping_stdmap (use SortedMapping_stdmap); had to jump through #include hoops but if it works, less redundancy - cleanup SortedMapping_stdmap - Concrete::Sorted{Association,Collection,KeyedCollection,Mapping,MultiSet,Set}_SkipList impl, with regtests - SortedMapping_stdmap supports STDMAP move CTOR and used more appropriatley in ObjectVariantMapper.inl - deprecated Association_stdmultimap: instead use SortedAssociation_stdmultimap, deprecated Collection_stdmultiset -> SortedCollection_stdmultiset instead, deprecated KeyedCollection_stdset (in favor of just calling SortedKeyedCollection_stdset), deprecated MultiSet_stdmap (use SortedMultiSet_stdmap instead), deprecated Set_stdset replace with SortedSet_stdset; and related docs cleanups - cleanups to Sequence_stdvector - ArchType classes - progress on SortedCollection::_IRep::_Equals_Reference_Implementation and use in other impls - SortedXXX containers all support ITotallyOrderingComparer argument - **Not fully backward compat**; but switched container backends for sorted types to return 'InOrderComparer' - and added accessor overloads so you can GET back either inorder or threeway (via adapter) - changed docs example for KeyedCollection to use lambda - new Set<>::CloneEmpty method (may want for other containers) - and used to improve sematncis and performance of Union, and a few other apis - back/front etc aliases for Queue/DeQueue - Major refactor/rename of comparers - especially in SortedXXX classes: SortedSet::GetInOrderComparer () -> SortedSet::GetElementInOrderComparer (), docs about Container Element comparisons, GetThreeWayComparer support for SortedSet, SortedSet<> IRep now directly supports GetElementThreeWayComparer - converted sorted container archtype CTORs (now that factories done) to accept ITotallyOrderingComparer instead if IInOrderComparer, and updates docs, and regression tests accordingly - Clenaup container remove code to use Remove for erase from datastructure layer depending on need to get updated iterator - DataExchange - Atom: - concepts on Atom<>::As() - InternetMediaTypeRegistry - InternetMediaTypeRegistry::Get ();/Set deprecated - use sThe instead - documented how to avoid any cost - if needed in loop - copy value - sharedbyvalue - Move a few InternetMediaTypeRegistry to cpp file cuz FrontEndRep code defined only in CPP file so references illegal - workaround deadly-embrace startup issue created by making InternetMediaTypeRegistry sThe static inline - instead have it default internally to a nullptr; and define a kDefaultFrontEndForNoBackend_ and use NullCoalesce to pick between them - VariantValue - document VariantValue regular concept - Math - Statistics - Math::Mean/Median/StandardDeviation template overload cleanups, and docs and requires - Memory - Bits - minor cleanups to BitSubString/Bits() helper functions, concepts and docs - Optional - Generalized NullCoalesce so works with shared_ptr, SharedByValue, etc - using concepts - SharedByValue::operator bool () support - InlineBuffer - InlineBuffer experimental support for more ranges code, and sentinel_for - https://stroika.atlassian.net/browse/STK-757 for Memory::InlineBuffer use malloc/realloc if trivailly_copyable_v - Traversal - Iterator - new Iterator<> EndSentinel support (incomplete but good draft) - Iterable - tweak Iterable::SequentialEqualsComparer - Iterable::end() - make Iterable::end() static - not const method - Iterable<>::end () now returns default_sentinel_t (instead of Iterator) - lots of work throughout Stroika reacting to this - **not backward compatible** - use UncheckedDynamicCast in place of static_cast in Iterable<> - static_assert(copyable); - new Iterable::IsOrderedBy - workaround the fact that vector/set etc are not fully 'range-friendly' with their constructors (taking one type iterator not sep type for end iterator) - Iterable::SequentialEqualsComparer now uses qCompilerAndStdLib_UseConceptOrTypename_BWA BWA; and Iterable::SequentialThreeWayComparer now uses IThreeWayComparer concept - cleanup Iterable<>::As(); - Ranges - tweak DisjointDiscreteRange constructors (concepts) - Frameworks - Tests - ArchtypeClasses - Big changes to Test::ArchtypeClasses: deprecated old names SimpleClass and SimpleClassWithoutComparisonOperators and using new class names OnlyCopyableMoveable OnlyCopyableMoveableAndTotallyOrdered, and Regular, and started using new helper templates AsIntsEqualsComparer etc, and other cleanups ; NotCopyable -> OnlyDefaultConstructibleAndMoveable; added draft concepts / tests for these test classes to be clear what htey are for testing - ThirdPartyComponents - Boost - tweaks - support VERSION:=1_86_0 - better boost makefile fix for issue building cobalt and clang++ - Curl - VERSION 8.10.1 - LibXML2 - VERSION 2.13.4 - SQLite - VERSION 3.46.1 - Xerces - makefile tweak - openssl - VERSION 3.3.2 - NEW openssl repo location FETCHURLDOWNLOADS... = github - googletest - makefile for googletest: must patch .rc file in 'builds' directory - not with patch in CURRENT directory - because its re-used when we build different targets (e.g. same folder and build for Windows and WSL) #### Release-Validation - Compilers Tested/Supported - g++ { 11, 12, 13, 14 } - Clang++ { unix: 15, 16, 17, 18; XCode: 15.2, 15.3} - MSVC: { 17.11.4 } - OS/Platforms Tested/Supported - Windows - Windows 11 version 23H2 - mcr.microsoft.com/windows/servercore:ltsc2022 (build/run under docker) - cygwin (latest as of build-time from CHOCO) - MSYS (msys2-base-x86_64-20230127.sfx.exe) - WSL v2 - MacOS - 14.4 - arm64/m1 chip - 14.3, 14.4 on github actions - Linux: { Ubuntu: [22.04, 23.10, 24.04], Raspbian(cross-compiled from Ubuntu 22.04, Raspbian (bookworm)) } - Hardware Tested/Supported - x86, x86_64, arm (linux/raspberrypi - cross-compiled, debian-12), arm64 (macos/m1) - Sanitizers and Code Quality Validators - [ASan](https://github.com/google/sanitizers/wiki/AddressSanitizer), [TSan](https://github.com/google/sanitizers/wiki/ThreadSanitizerCppManual), [UBSan](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) - [CodeQL](https://codeql.github.com/) - [Valgrind/MemCheck](https://valgrind.org/docs/manual/mc-manual.html) - Build Systems - [GitHub Actions](https://github.com/SophistSolutions/Stroika/actions) - Regression tests: [Correctness-Results](Tests/HistoricalRegressionTestResults/3.0), [Performance-Results](Tests/HistoricalPerformanceRegressionTestResults/3.0) - Known (minor) issues with regression test output - raspberrypi - 'badssl.com site failed with fFailConnectionIfSSLCertificateInvalid = false: SSL peer certificate or SSH remote key was not OK (havent investigated but seems minor) --- ### 3.0d9 {2024-07-31} {[diff](../../compare/v3.0d8...v3.0d9)} #### TLDR - Various cleanups to ObjectVariantMapper (docs, DefaultConstructForRead<> specialization point, more concepts use, AddClass(.fAfterFrom) impovements) - gzip compression - WebServer and URL normalization so GET ///foo matches rule /foo - libxml2 warnings improvements #### Upgrade Notes (3.0d8 to 3.0d9) - ObjectVariantMapper::AddSubClass () use of {rarely used .fAfterFrom now takes VariantValue* updateVariantValue parameter} #### Change Details - Various docs/comments cleanups - Build System - Compilers Bug Workarounds - new qCompiler_clangNotCompatibleWithLibStdCPPStackTrace_Buggy BWA - qCompilerAndStdLib_defaultconstructibleFails_Buggy define and BWA; and related fixes to UPNP DeviceDescription::Icon definition - qCompiler_IUseToStringFormatterForFormatter_Buggy BWA - for clang++ - configure - added comment VERSIONS section in configure output - Regression Tests - on ubuntu 23.10 - disabled leak sanitizer tests - they crash - not sure why... - no useful report - github actions - Added ubuntu-24.04-g++-14 ubuntu-24.04-g++-14-c++23 builds git .githubactions - Supported Compilers - docker VS_17_10_5 - Library - Foundation - Characters - String - String::StartsWith and EndsWith now Require(not subString.empty ()) for string overload - StringBuilder - lose begin/end/c_str() deprecated methods from StringBuilder since a while back appear to have removed implementation; and about to lose anyhow - Format - progress trying to address IStdFormatterPredefinedFor_ issue for various compilers (including post to stackoverflow). Still a mess, but better, and working for current compilers. - Common - GUID - Fixed Common::GUID CTOR to accept any STRINGISH type - Configuration - Fix GetSystemConfiguration () logic for windows to appropriately print Windows 11, instead of Windows 10 (for the most part) - DataExchange - Compression - Added gzip compression/decompression support - ObjectVariantMapper - Generally improved use of concepts (lots more todo) - Lots of docs improvements/examples - redo ClassOptions for ObjectVariantMapper AddClass code - fAfterFrom - now takes extra var parameter - replace ToObject<> specialization with DefaultConstructForRead<> specialization in ObjectVariantMapper - DefaultConstructForRead - libxml2 - lose xmlParserErorr call in Providers/LibXML2.cpp - seems unneeded and writes to stdout - minor libxml2 error catching/reporting cleanups - Execution - CommandLine - docs, tweak Has () method - ThreadPool - ThreadPool::Statistics::GetMeanTimeConsumed () const now returns optional rather than nan for no-stats case - IO::Network - URI new URI::ParseRelative () - because sometimes URI::Parse() will treat part of the Path as part of the authority - and for example in HTTP first line - this would be wrong; cleanup some use of requires - using IAnyOf<> prefix typename filter (cosmetic); new NormalizationStyle for Normalize() method - so sometimes can say (aggressive) - and remove // sequences (not part of RFC3986 standard normalization) - but very handy - cuz can use in Routes/Router - and easy to accidentally get // in wrong place due to javascript spling strings togehter; - Frameworks - WebServer - use new URI::ParseRelative in Frameworks/WebServer/Connection cuz method line argument MUST be relative url - and dont want to sometimes confuse part of it as authority - docs about FileSystemRequestHandler options improved, and use url ().Normalize (URI::NormalizationStyle::eAggressive) - so extra // etc properly handled - Router: docs, and use url.Normalize (URI::NormalizationStyle::eAggressive) so router use will automatically match more often - in intuitive cases an - Frameworks/WebServer/FileSystemRequestHandler options - now document and enforce that if fURLPrefix2Strip option missing - default is '/' - https://stroika.atlassian.net/browse/STK-1012: added gzip compression support to webserver - and also supported fSupportedCompressionEncodings param from webserver configuration (not tested) - Samples - WebServer - adjusted FileSystemRequestHandler::Options use in sample to be more clear, and other stuff in sample to better handle /// indpenendence ; - and print Listening on {} as part of sample - useful hint in a sample (but not real app) #### Release-Validation - Compilers Tested/Supported - g++ { 11, 12, 13, 14 } - Clang++ { unix: 14, 15, 16, 17, 18; XCode: 15.2, 15.3} - MSVC: { 17.10.5 } - OS/Platforms Tested/Supported - Windows - Windows 11 version 23H2 - mcr.microsoft.com/windows/servercore:ltsc2022 (build/run under docker) - cygwin (latest as of build-time from CHOCO) - MSYS (msys2-base-x86_64-20230127.sfx.exe) - WSL v2 - MacOS - 14.4 - arm64/m1 chip - 14.3, 14.4 on github actions - Linux: { Ubuntu: [22.04, 23.10, 24.04], Raspbian(cross-compiled from Ubuntu 22.04, Raspbian (bookworm)) } - Hardware Tested/Supported - x86, x86_64, arm (linux/raspberrypi - cross-compiled, debian-12), arm64 (macos/m1) - Sanitizers and Code Quality Validators - [ASan](https://github.com/google/sanitizers/wiki/AddressSanitizer), [TSan](https://github.com/google/sanitizers/wiki/ThreadSanitizerCppManual), [UBSan](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) - [CodeQL](https://codeql.github.com/) - Build Systems - [GitHub Actions](https://github.com/SophistSolutions/Stroika/actions) - Regression tests: [Correctness-Results](Tests/HistoricalRegressionTestResults/3), [Performance-Results](Tests/HistoricalPerformanceRegressionTestResults/3) - Known (minor) issues with regression test output - raspberrypi - 'badssl.com site failed with fFailConnectionIfSSLCertificateInvalid = false: SSL peer certificate or SSH remote key was not OK (havent investigated but seems minor) - Ubuntu 24.04 - TSAN somewhat broken - https://stroika.atlassian.net/browse/STK-1010 --- ### 3.0d8 {2024-07-20} {[diff](../../compare/v3.0d7...v3.0d8)} #### TLDR - Fixed WebServer issue processing lower-case headers (some comparisons were case sensitive in IO::Network::HTTP::Headers) - ObjectVariantMapper significant cleanups/simplifications - more/better concepts usage - Math/isnan/precision improvements (formatting) #### Upgrade Notes (3.0d7 to 3.0d8) - ObjectVariantMapper - no longer need StructFieldInfo{} explicitly - see examples - much simpler now (bit still works) - StructFieldInfo::eOmitNullFields no longer needed, and now the default (to get non-ndefalt behavior, AddClass takes ClassMapperOptions - {.fOmitNullEntriesInFromObject=false} ) #### Change Details - Various docs/comments cleanups - Build System - Compilers Bug Workarounds - qCompilerAndStdLib_fpclasifyEtcOfInteger_Buggy new define and workaround - DEPRECATED DEFINE qCompilerAndStdLib_to_chars_FP_Buggy - no longer used as - check __cpp_lib_to_chars of 2024-07-14 - qCompilerAndStdLib_to_chars_assmes_str_nul_terminated_Buggy bug define and BWA - qCompilerAndStdLib_NearlyEqualsInfinityCompareValgrind_Buggy BWA and cleanups - improved qCompilerAndStdLib_isinf_Valgrind_Buggy BWA - qCompilerAndStdLib_formattable_of_tuple_Buggy BWA - Library - Foundation - Characters - FloatConversion - changed static const FloatConversion::ToStringOptions kFmtOptions for variantValue to use :digits10 - 1 and documented why - experimental FloatConversion::Precision::kFull support - Precision::GetEffectivePrecision - lose private ToFloat_Legacy_ String2Float_LegacyStr2D_ and Legacy_Float2String_ - Format - resolve ambiguity that shows up with clang++15 on FormatString::operator() - Cleanned up dependencies between Format and ToString, to address an issue compiling InternetMediaTypeNotSupportedException - slight refactoring so more separation between Format module, and ToString module (so can now just include Format.h to get format function and dont need to include both) - String - deprecated String::Remove() in favor of RemoveFirstIf, and RemoveAll methods - Configuration - StdCompat formattable impl, and used in many places throughout Stroika (e.g. FormatString, DbgTrace) - defined kStrokia_Foundation_Configuration_cplusplus_23 - Configuration::kStroikaVersion constexpr variable - DataExchange - ObjectVariantMapper - Major cleanup to ObjectVariantMapper code - **not fully backward compatible** ; deprecate StructFieldInfo::eOmitNullFields and NullFieldHandling in general, in favor of new ClassMapperOptions<> argument to AddClass, AddSubClass, and MakeClassSerializer - and better handled the before/after mapping guys using that same options object. NOT BACK COMPAT part - MOSTLY - is cannot specify omit/include on per field basis, but on a per AddClass basis, and default changed from include-nulls, to omit-nulls - simplify new AddClass usage - lose explicit calls to StructFieldMetaInfo{} - in hundreds of contexts - leverage implicit conversion - much cleaner looking AddClass() usage - StructuredStreamEvents fix dbgtrace call using typeid to wrap in type_index since type_info doesn't work with format strings - not copyable - XML - libxml2 - support for error handlers (address issue i saw on WTF with errors speewing to stdout) - use xmlSaveToBuffer instead of xmlDocDumpFormatMemoryEnc () since that has options to control XML_SAVE_NO_EMPTY which changed in libxml2 2.13.1 - Debug - Debug::IsThisProcessBeingDebugged () uses std::is_debugger_present if available - IO - Network - HTTP - IO::HTTP::Headers: use concepts in As() method; and fixed returned assocation/mapping to use kHeaderNameEqualsComparer; and sidestpeed issue (for performance) and directly call LookupOne() or property accessors like origin, server etc (either change would have fixed bug where headers were being often, but not always, compared case sensitively not case insensitively) - Math - major cleanups/improvements to NearlyEquals(); - fix regtest to use numeric_limits<...>::digits10 - 1 and documented why; - more concepts usages - simplfications of Math::Abs(); - Math::infinity () - Configuration::StdCompat::isinf/isnan; - cleanup regests for Verify_FloatStringRoundtripNearlyEquals_ and bug workarounds - Memory - Added Memory::AsBytes () utility and used to workaround deprecated OutputStream<>::WriteRaw - Streams - OutputStream - WriteRaw now uses is_trivail inadste of is_standard_layout_v so BLOB doesn't inadvertantly match - deprecated OutputStream::WriteRaw - Traversal - Iterable - Iterable<>::As () now takes ... forwarded argument passed to ctor of target container being created (before iterators) - Frameworks - WebServer - cleanup header for Frameworks/WebServer/ConnectionManager - renamed ConnectionMnaager::pStatistics to 'statistics'; amnd in ConnectionMnager: added property bindings - Samples - SQL - write to stdout instead of dbgtrace since probbaly makes better sample that way - RegressionTests - cleaned up regtest 41 (convert to GTEST_TEST style) - ThirdPartyComponents - libxml2 - VERSION 2.13.2 - GoogleTest - VERSION 1.15.0 - fmtlib - VERSION 11.0.1 - prompted lots of BWA check for use of qStroika_HasComponent_fmtlib FMT_VERSION >= 110000 #### Release-Validation - Compilers Tested/Supported - g++ { 11, 12, 13, 14 } - Clang++ { unix: 14, 15, 16, 17, 18; XCode: 15.2, 15.3} - MSVC: { 17.10.4 } - OS/Platforms Tested/Supported - Windows - Windows 11 version 23H2 - mcr.microsoft.com/windows/servercore:ltsc2022 (build/run under docker) - cygwin (latest as of build-time from CHOCO) - MSYS (msys2-base-x86_64-20230127.sfx.exe) - WSL v2 - MacOS - 14.4 - arm64/m1 chip - 14.3, 14.4 on github actions - Linux: { Ubuntu: [22.04, 23.10, 24.04], Raspbian(cross-compiled from Ubuntu 22.04, Raspbian (bookworm)) } - Hardware Tested/Supported - x86, x86_64, arm (linux/raspberrypi - cross-compiled, DEBIABVERSION###), arm64 (macos/m1) - Sanitizers and Code Quality Validators - [ASan](https://github.com/google/sanitizers/wiki/AddressSanitizer), [TSan](https://github.com/google/sanitizers/wiki/ThreadSanitizerCppManual), [UBSan](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) - [CodeQL](https://codeql.github.com/) - Build Systems - [GitHub Actions](https://github.com/SophistSolutions/Stroika/actions) - Regression tests: [Correctness-Results](Tests/HistoricalRegressionTestResults/3), [Performance-Results](Tests/HistoricalPerformanceRegressionTestResults/3) - Known (minor) issues with regression test output - raspberrypi - 'badssl.com site failed with fFailConnectionIfSSLCertificateInvalid = false: SSL peer certificate or SSH remote key was not OK (havent investigated but seems minor) - Ubuntu 24.04 - TSAN somewhat broken - https://stroika.atlassian.net/browse/STK-1010 --- ### 3.0d7 {2024-07-11} {[diff](../../compare/v3.0d6...v3.0d7)} #### TLDR - Frameworks::WebServer: support deflate inline transfer coding/content-encoding; new property automaticTransferChunkSize, replaces setting transferCoding manually, and other prep for https support - ObjectVariantMapper: cleanups to StructFieldInfo/TypeMappingDetails to faciliate custom mappers #### Upgrade Notes (3.0d6 to 3.0d7) - Renamed a few properties to no longer use 'p' prefix ; prettty clear error message from compiler - Makefile/configure name changes - BUILD_TOOLS_ROOT to BuildToolsRoot - RUN_PREFIX renamed to RunPrefix - renamed makefile/configure TARGET_PLATFORMS to TargetPlatforms - renamed arg to configure from --platform to --build-platform - use TargetPlatforms instead of ProjectPlatformSubdir - $(findstring VisualStudio.Net,$(ProjectPlatformSubdir)) => $(findstring VisualStudio.Net,$(BuildPlatform)) OR $(findstring VisualStudio.Net,$(ProjectPlatformSubdir)) => $(findstring Windows,$(TargetPlatform)) OR - (Unix,$(ProjectPlatformSubdir)) => (Unix,$(BuildPlatform)); **BuildPlatform CAN BE Unix, VisualStudio.Net-2022** - makefile variable CMAKE_USE_GENERATOR no longer supported/generated #### Change Details - ReadMe's / Docs / Comments / Misc - Build System - Compiler Bug Defines - workaround qCompilerAndStdLib_RequiresNotMatchInlineOutOfLineForTemplateClassBeingDefined_Buggy - qCompilerAndStdLib_RecuriveTypeOrFunctionDependencyTooComplex_Buggy BWA and new bug define - Configure/Makefile - hopefully fixed when we emit TSAN_OPTIONS in configure - better docs on --platform configure command - use TargetPlatforms instead of ProjectPlatformSubdir **not backward compatible** - lose unneeded makefile ref to ProjectPlatformSubdir; lose commented out makefile stuff; CMAKE_USE_GENERATOR flag appears no longer needed so removed - Lots of makefile cleanups: generally replace much use of ProjectPlatformSubdir with TARGET_PLATFORMS (for windows); use fewer CPPFLAGS += -D ... blah - and comment the ones remaining; and lose a bunch more compiler bug workarounds, no longer needed, like https://developercommunity.visualstudio.com/t/mfc-application-fails-to-link-with-address-sanitiz/1144525 - **not backward compatible**: renamed arg to configure from --platform to --build-platform; and changed makefile variable from ProjectPlatformSubdir to BuildPlatform - renamed makefile/configure TARGET_PLATFORMS to TargetPlatforms - Minor/rarely used: configure - renaemd variable BUILD_TOOLS_ROOT to BuildToolsRoot - configure: rarely used RUN_PREFIX renamed to RunPrefix - renamed -PER_CONFIGURATION_THIS_INTERMEDIATEFILES_DIR_NOSLASH_ to -PER_CONFIGURATION_THIS_INTERMEDIATEFILES_DIR_ ; for zlib makefie; added PER_CONFIGURATION_THIS_INTERMEDIATEFILES_DIR_OLDMAKEBWA_ hack occasionally (depends on make version) - configure: if (!( eq no) && ) push @LinkerArgs_LibDependencies_ADD, Bcrypt.lib; # Needed since 1.3.1 - configure: when setting no-third-party-components - dont override explicit set names - Library - Foundation - Characters - deprecate Characters::GetEOL, and replace with Characters::kEOL - Common - Property - Added concepts usage to Properties code - to facilitate better error messages from the compiler (and better docs) - Renamed a few properties to no longer use 'p' prefix - **not backward compatible** - but too painful todo backward compat...; prettty clear error message from compiler - Configuration - mostly cosmetic - use same_as instead of is_same_v: shorter, more modern, more clear/consistent - StdStdCompat - moved Memory::byteswap etc to StdStdCompat - Containers - better use of requires () on a few (operator==/<=>) functions to delegate so define iff is for 'T' type template of - DataExchange - Compression - https://stroika.atlassian.net/browse/STK-609 support for new factory style api and better names for compression/decompression code - redid regtests using new compression code; deprecated old api; added support for alternate compression level - Compression::Deflate::kSupported - fixed small bug in deflate PullEnufForDeflate1Byte_ and add slight optimization (pull more if available) - https://stroika.atlassian.net/browse/STK-520 use AssertExternallySynchronizedMutex in DataExchange/Compression/Deflate - ObjectVariantMapper - Minor cleanups to ObjectVariantMapper::StructFieldInfo::StructFieldInfo CTOR - incompatible changes to MakeClassSerializer () - OK cuz probably not used; AddClass SLIGHTLY incompatible change - when applied before/after to/from object code changed slightly but unlikely a noticble difference, and now more clearly documented/organized; and related code better vectored together (incluing AddSubClass and validation/cehcks) - ObjectVariantMapper::TypeMappingDetails CTOR args largely reversed (old still supported just deprecated) - Better data hiding in ObjectVariantMapper::StructFieldInfo, and deprecated CTOR where StructFieldMetaInfo is missing - ObjectVariantMapper cleanups; AddClass and AddSubClass overloads (taking from/to T mappers directly); enhanced sample to avoid new deprecated api and print better; ObjectVariantMapper::kTraceFromObjectMapper and ObjectVariantMapper::kTraceToObjectMapper helpers - https://stroika.atlassian.net/browse/STK-955 fixed - Variant - JSON - JSON::Writer::Options - add optional fLineTermination and default to Characters::kEOL (so change and had to update regtests) - XML - XPath::Expression cleanups/ToString support improvements - Execution - renamed FeatureNotSupportedInThisVersionException => FeatureNotSupportedException and used in Deflate code if not available to address if constexpr issue in HTTP webserver Request code - IO - Network - HTTP - TransferCodings is a Sequence, not Set; and draft IO::Network::HTTP::ContentCoding - draft ContentCoding using atoms - incompatible change - IO::Network::TransferCoding eChunked now kChunked - support for acceptEncoding/ContentEncoding http headers - Streams - OutputStream::Ptr::Write (span<>) allows empty span argument - just do nothing - dont assert out - New experimental API InputStream::Ptr::ReadAllAvailable () - https://stroika.atlassian.net/browse/STK-584 (SharedMemoryStream not seekable optimization) - added the throwaway data feature - SharedMemoryStream: one more use std::distance () instead of ptr diff for better clarity - Frameworks - WebServer - minor tweaks to webserver code and regtests of chunked encoding - More progress on Content-Encoding support - and webserver response has StateTransition_ private method now - MANY changes to WebServer - not fully backward compatible: https://stroika.atlassian.net/browse/STK-758 - preliminary accept-encoding and content-codiing/transfer-coding compression support; new option on request (NYI) automaticTransferChunkSize; replaces setting rwHeaders().transferEncoding directly; fewer 'states' in HTTP WebServer Repsonse; a few new readonly poperties and cleanups - Big cleanups to HTTP webserver response code designed to make chunked transfer compressed encodings work. Much cleanup - but still not actually working. Now not sure why... will need to dig more - minor progress on Frameworks_WebServer, TestEncContent tests; minor cleanup for Transfer/Connection_WinHTTP - got compression and chunked transfer working together finally - enuf at least - with kTransferEncodingCompressionDoesntAppearToWorkWithBrowsers_ flag - and dont think it really matters - Minor cleanups - and Compression::Deflate::Compress::Options{.fCompressionLevel = 1.0f}; added for deflate config in webserver (hardwired for now) Various cleanups to HTTP WebServer response - but mostly support for automaticTransferChunkSize now works (somewhat - not super well) ; and deprecated multi-arg WebServer::Connection CTOR - in favor of new Connection::OPtions object - Frameworks::WebServer: renamed pConnections/pActiveConnections to lose the 'p'; and added options for fAutomaticTransferChunkSize fSupportedCompressionEncodings replaced EnterHeadMode() in HTTP Webserver Response with headMode() property - now supports Optiopns (and used in WebServer::Response) - https://stroika.atlassian.net/browse/STK-584: WebServer::Response uses non-seekable/non-syncronized SharedMemoryStream optimization - Minor cleanups to HTTP WebServer Response object - alphabetize properties, and cleanup write () overloads and added codeCvt property - (SAMPLE): simplified ssdp server sample webserver usage, and used that then in ReadMe.md about webserver - dont do chunked/transfer in http werbserver in autocompute etag - ThirdPartyComponents - libxml - VERSION 2.13.1 and react to deprecated function - NOTE - sadly - changes default (not easy to undo) - for XML_SAVE_NO_EMPTY (or diff in different enums) - but cannot see how to set with APIs I'm using #### Release-Validation - Compilers Tested/Supported - g++ { 11, 12, 13, 14 } - Clang++ { unix: 14, 15, 16, 17, 18; XCode: 15.2, 15.3} - MSVC: { 17.10.3 } - OS/Platforms Tested/Supported - Windows - Windows 11 version 23H2 - mcr.microsoft.com/windows/servercore:ltsc2022 (build/run under docker) - cygwin (latest as of build-time from CHOCO) - MSYS (msys2-base-x86_64-20230127.sfx.exe) - WSL v2 - MacOS - 14.4 - arm64/m1 chip - 14.3, 14.4 on github actions - Linux: { Ubuntu: [22.04, 23.10, 24.04], Raspbian(cross-compiled from Ubuntu 22.04, Raspbian (bookworm)) } - Hardware Tested/Supported - x86, x86_64, arm (linux/raspberrypi - cross-compiled, DEBIABVERSION###), arm64 (macos/m1) - Sanitizers and Code Quality Validators - [ASan](https://github.com/google/sanitizers/wiki/AddressSanitizer), [TSan](https://github.com/google/sanitizers/wiki/ThreadSanitizerCppManual), [UBSan](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) - [CodeQL](https://codeql.github.com/) - Build Systems - [GitHub Actions](https://github.com/SophistSolutions/Stroika/actions) - Regression tests: [Correctness-Results](Tests/HistoricalRegressionTestResults/3), [Performance-Results](Tests/HistoricalPerformanceRegressionTestResults/3) - Known (minor) issues with regression test output - raspberrypi - 'badssl.com site failed with fFailConnectionIfSSLCertificateInvalid = false: SSL peer certificate or SSH remote key was not OK (havent investigated but seems minor) - Ubuntu 24.04 - TSAN somewhat broken - https://stroika.atlassian.net/browse/STK-1010 --- ### 3.0d6 {2024-06-13} {[diff](../../compare/v3.0d5...v3.0d6)} #### TLDR - _f strings and new Format () API (based on new std::format<>) - MAJOR change - deprecated c-style sprintf style - Characters::Format - replaced with new _f strings API - based on c++20 formattable feature - Added Ubuntu 24.04 support (workaround tsan issue with /proc/sys/vm/mmap_rnd_bits and LINUX), Lose Ubuntu 20.04 support, added VS_17_10_1, clang 17/18 g++14 - Execution::Logger - allow multiple appenders, and use new _f strings - DataExchange::JSON {Pointer and Merge - draft support} - github action macos: fix to libid2n not found for macos14 (reported to github actions support, but they ignored/misunderstood) #### Upgrade Notes (3.0d5 to 3.0d6) - Replace all use of c-style format strings with _f strings (using new {} stdc++ style format) - this includes DbgTrace calls, Execution::Logger, String::Format () - really not needed anymore - and more #### Change Details - Build System - Supported Platforms Changes - ubuntu lose 20.04 - added 24.04 - Supported Compilers - Added makefile configs for clang++17 and clang++18, and g++-14 - Added VS2k22 19.10.x - github actions workflow(s) - more tweaks to hacks2savespace for linux - lose extra git checkout on windows (just set Path to same place used to and dont checkout via container) - fixes bug when run on tag - use upload/artifacts@v4 ; use actions/checkout@v4; and login action - mostly to address warnings from github action runs that they were out of date - Improved logic for copying tracelog files out of containers so they show up as artifacts in github action run - refactor building containers (to work around size limits) - lose ubuntu 20.04 from github action configs we build - many space-savings hacks due to run out of space building problems - MacOS - use MacOS-13 with XCode-15.2 - use MacOS-14 with XCode-15.3 - github actions macos add more info about running xcode - on macos - copy out BUILD-CONF-TOOLS-OUT.txt to see why its failing - fix to libid2n not found for macos14 (reported to github actions support, but they ignored/misunderstood) - Windows - lose rebaseall thing cuz done on msys and cygwin not sure needed on any but failing on cygwin - MacOS - experiemnt adding brew install autoconf and libtool for build requirements - needed glibtoolize on macos but not elswehre so lose from recent additions to prereq - configure / ApplyConfiguration - simplified configure handling of DoSetThirdPartyComponents_ and fixed bug (setting fmtlib sometimes) - workaround tsan issue with /proc/sys/vm/mmap_rnd_bits and LINUX - disable asan on ubuntu 23.10 and g++11 - cuz fails there too - configure: changes so defaults sanitizers off for gcc 11, since appears broken on Ubuntu 22.04 with gcc-11, and much newer versions to worry about first - configure tweaks for ubuntu 22.04 so dont use sanitizrs for gcc < 13 and clang 15 or earlier (by default with --apply-debug) - since appears to not work; and various issues with latest curl build and clang and old gcc too fixed (maybe same issue with asan) - only do configure BWA for ununtu 22.04 since comment says all thats needed - see if more needed - configure script - warning on bad VSVARS_WindowsSdkDir - disable asan on ubuntu 23.10 and g++12 since doesnt appear to work - configure: skip using asan configure change for 23.10 ubuntu - not supported version so not worth diggiging into (maybe mmap_rnd_bits issue) - configure: IsTargettingSanitizer_ refactor of configure code (minor - sb now change in behavior) - configure getXCOde version script along with using it to check if xcode < 15.3 and only turning on fmtlib then (for xcode builds) - fixed configure script to better check for asan/memory issue - https://stackoverflow.com/questions/77850769/fatal-threadsanitizer-unexpected-memory-mapping-when-running-on-linux-kern... issue - cleanups to PkgConfigNames handling - moved some workarounds from configure to ApplyConfigurations - much more to cleanup/fix - but OK for now (as good as ever) - related to https://stroika.atlassian.net/browse/STK-1005 - fix bug where configure --no-sanitize address didn't fully remove references to address - Skel - skel makefile .notparallel fix - added Release-Logging configuraiton to default-configurations for Skel - Regression Tests - Cleanup several more regtests to follow gtest 'tests' pattern better (instead of one massive all test). - update regtest docs - new 24.04 ubuntu lose 20.04 - disbale clang++-15 on with libc++ on ubuntu 24.04 - cosmetic and workarounds for missing locale in regtests - DockerFile - readme docs - Windows - VS_17_10_1 in docker container - simplify furhter the docker build scripts for windows ; msys esp - MSYS - use 2024-05-07 exe now - simplify (still experimental) workarounds for https://stroika.atlassian.net/browse/STK-742 docker windows dns issue - Lots of dockerfile cleanups/simplifications - ErrorActionPreference stop on dockerfile and other small tweaks to how I fetch MSYS (hoping to address random DNS issue) - use Windows11SDK.22621; - Ubuntu - Added g++12 and removed g++-14-arm-linux-gnueabihf from ubuntu 24.04 dockerfile to reflect availability: - fix other docker contianers to also print hello message about Getting started - Added stroika ubuntu dev container 2310 - lose support for ubuntu 20.04 and add for 24.04; updated BuildGCC script and use it in docker container for 22.04 so it builds gcc 13; other related makefile cleanups/simplifications - updated Dockerfile CMD -l and bash profile for Ubuntu 24.04 small container so prints message about reading Getting Started - Makefile - BUILD_DEV_IMAGES flag building docker images - so maybe can avoid running out of space on github actions - dont need to build there - ScriptsLib/ - optional USE_NMAESPACE arg to ScriptsLib/MakeVersionFile - was calling ScriptsLib/MakeVersionFile with 5 args, but inorning any past 3 - which worked badly when I added new optional 4th param! - so fixed calls and added the optional 4th (namespace) param - more tweaks to Scripts/MakeVersionFile (#define protecter) - tweak ScriptsLib/RunLocalWindowsDockerRegressionTests - new ./ScriptsLib/GetGCCVersion script (and used in configure) - draft Scripts/GetClangVersion script (and used in configure) - RunLocalWindowsDockerRegressionTests - workaround bugs in latest windows docker desktop - copying files indide docker with a mount, not using docker cp - which doesnt appear to work anymore for windows containers - Compiler Bug Defines/BWA - BWA_Helper_ContraintInMemberClassSeparateDeclare_ - qCompilerAndStdLib_ContraintInMemberClassSeparateDeclare_Buggy BWA for clang++-18 - qCompilerAndStdLib_FormatRangeRestriction_Buggy define and BWA - qCompilerAndStdLib_LTOForgetsAnInlineSometimes_Buggy: need extra BWA for arm - bug defines (incliding qCompilerAndStdLib_PSTLWARNINGSPAM_Buggy) for g++-14 Ubuntu 24.04 support - qCompilerAndStdLib_stacktraceLinkError_Buggy BWA for gcc 13 / ununtu 24.04 - updated bug define qCompilerAndStdLib_ThreadLocalInlineDupSymbol_Buggy - new qCompilerAndStdLib_template_map_tuple_insert_Buggy define and BWA - added qCompilerAndStdLib_StdBacktraceCompile_Buggy define and workaround - qCompilerAndStdLib_ThreadLocalInlineDupSymbol_Buggy broken on clang++18 too - support qCompilerAndStdLib_vector_constexpr_Buggy for _GLIBCXX_RELEASE == 11 - qCompilerAndStdLib_vector_constexpr_warning_Buggy BWA (ONLY works for _GLIBCXX_RELEASE==13) - qCompilerAndStdLib_release_bld_error_bad_obj_offset_Buggy broken on clang++16 thru clang++18 - draft qCOMPILER_BUG_MAYBE_TEMPLATE_OPTIONAL_CONCEPT_MATCHER so xcode compiles with new formatter code - updated def for qCOMPILER_BUG_MAYBE_TEMPLATE_OPTIONAL_CONCEPT_MATCHER bug define - progress on BWA for qCOMPILER_BUG_MAYBE_TEMPLATE_OPTIONAL_CONCEPT_MATCHER - renamed qCOMPILER_BUG_MAYBE_TEMPLATE_OPTIONAL_CONCEPT_MATCHER -> qCompilerAndStdLib_template_concept_matcher_requires_Buggy - fixed typo; and qCompilerAndStdLib_template_concept_matcher_requires_Buggy broken in clang++-18 - qCompilerAndStdLib_template_concept_matcher_requires_Buggy broken for clang++18 - maybe fix qCompilerAndStdLib_template_concept_matcher_requires_Buggy BWA for clang/macos - qCOMPILER_BUG_TIMEPOINT_FLOAT_BUGGY and minor cosmetic - cosmetic and renamed qCOMPILER_BUG_TIMEPOINT_FLOAT_BUGGY -> qCompilerAndStdLib_ITimepointConfusesFormatWithFloats_Buggy; and better workaround for qCompilerAndStdLib_ITimepointConfusesFormatWithFloats_Buggy - qCompilerAndStdLib_FormatThreadId_Buggy BWA - additiopnal place broken for what I think is qCompilerAndStdLib_RequiresNotMatchInlineOutOfLineForTemplateClassBeingDefined_Buggy - same bug basically - qCompilerAndStdLib_LTOForgetsAnIlineSometimes_Buggy define and BWA - new qCompilerAndStdLib_WeirdReleaseBuildRegtestFailure_Buggy Bug define/workaround - compiler bug defines for clang++-17 - clang++-16/17 with libcstd++ doesn't support c++23 mode - in configure script so can lose one workaround in googletest makefile - configure: only set HasMakefileBugWorkaround_lto_skipping_undefined_incompatible for clang++16 and earlier (seems OK with clang++-17, except broken on clang++-17 too (ubuntu 23.10), 18 sometimes too); Add another case for BWA for HasMakefileBugWorkaround_lto_skipping_undefined_incompatible - compiler bug defines for clang++-18 - g++-14 LTO workarounds/disable some warnings in configure - for Ubuntu 24.04 - disable LTO by default on clang++18 (and earlier) - check HasMakefileBugWorkaround_lto_skipping_undefined_incompatible on building zlib as well - needed for clang++-18 on ubuntu 24.04 - Support _MSC_VER_2k22_17Pt10_ bug defines - up a few _LIBCPP_VERSION BWA defines - cuz broken in version 18 of lib as well (tested on untunu 24.04) - avoid asan on some tests cuz broken on clang++16 ubuntu 23.10 sometimes - fixed a few compiler bug defines for g++-14 - All Source Files - Use Stroika-root relative paths instead of . relative paths #includes (so things line up better, copy-pasta better, and slightly clearer, though slightly more verbose) - lose include guards from .inl files and normalize formatting - since always included inside .h inside include guard - Library - Foundation - Characters - Character - Character::Compare now takes size_t template arg for spans - Character::CheckASCII now constexpr - fixed exception thrown in Character class - String - new String::AssureEndsWith - Added operator<< for (ostream,String) - using AsNarrowSDKString(eIgnoreErrors) - and documented why; use eIgnoreErrors on a few other AsNarrowSDKString calls; and lose a bunch of AsNarrowSDKString calls as no longer necesary (places wehre I was writing to cerr for exmaple) - _f strings and new Format () API - MAJOR change - deprecated c-style sprintf style - Characters::Format, and Characters::VFormat - replaced with new _f strings API - based on c++20 formattable feature - Used for DbgTrace, and Execution::Logger API, and a few others (anywhere we did format api/vformat) - qStroika_Foundation_Characters_FMT_PREFIX - Integrate with ToString() - formatter calls Characters::ToString () and _f strings automatically do this so no need for most explicit calls to Characters::ToString() - formatter pair/filesystem::path support (experimental); and lose unneeded ToString()s in a few more places - small progress on formatters for String/ToString - - and regtest to fiddle - trying to mkae String formatter like wstring formatter for starters - for now - String and ToString formatters redirect to String (and wstring) formatters, so inherit all those format specs. Considering alternatives, but thats it for now - Lose (quoting) feature of ToString(String) - wrapping in quotes and doing StringShorteningPreference by default - maybe re-enable in some form, but probably more like std new formatting code (? in format string) - progress enhancing IUseToStringFormatterForFormatter_ - test carefullybefore adding more cases - perhaps fix clang++16 support for IUseToStringFormatterForFormatter_ - IUseToStringFormatterForFormatter_ tweaks for differnt compiler/libs combos - still probably alot todo here - more converts of DbgTrace and Format calls to new style, and IUseToStringFormatterForFormatter_ fixes for MSFT compilers (quirky way to check for stdc++23) - TraceContextBumper restructure CTORs, and deprecate old format based API (sprintf strings); and used new API instead of deprecated one throughtout most of Stroika - TraceContextBumper support new style format strings (and a couple test cases) - Configuration - Concepts - New Configuration::IStdOptional and Configuration::ExtractStdOptionalOf_t utilities/concepts - New Configuration::ICountedValue concept - New Configuration::IKeyValuePair concept - New Configuration::IOptional; - New Configuration::IPair - New Configuration::IVariant concept - Enumeration - is_constant_validated in EnumNames::RequireItemsOrderedByEnumValue_ - EnumNames support for Characters::CompareOptions - Locale - ScopedUseLocale now works with optional locale argument, and new FindNamedLocaleQuietly function and docs - Added and used Configuration::LocaleNotFoundException and used that to improve retgest (avoid fail on missing locale) - StdCompat - migrate backward compatability compiler support here - for APIs that are really stdc++ newer apis but not fully supported by call compilers (polyfill layer) - StdCompat::vformat - chrono stdcompat - Containers - Added Set::contains (LC) for stl compat - DataExchange - JSON - JSON Pointer/JSON Patch - new draft support - Draft (but more or less complete/real) support for JSON::PointerType (and regtests) - JSON PointerType Support Context and ApplyWithContext (for use in Patch, but still incomplete) - Draft support for JSON::Merge - Draft support forJSON Patch code - one simple test case working - but lots of work to go, and did simple regtest - ObjectVariantMapper - ObjectVariantMapper::ToObjectQuietly () new function - lots of cleanups to ObjectVariantMapper: and static const kException_ - qStroika_Foundation_DataExchange_ObjectVariantMapper_Activities - new config/feature - minor activity tweak to ObjectVariantMapper; exerimental use of precision in Format/Acitivity strings in ObjectVariantMapper - tweak DbgTrace for ObjectVariantMapper::Lookup_ failure - OptionsFile - OptionsFile now generates eSuccessfullyReadFile message by default - InternetMediaType - InternetMediaTypeRegistry::CheckIsA () utility - VariantValue - VariantValue cleanup of As<> template (IAnyOf) and take nullopt or nullptr - Improved VariantValue As<> function to handle optional - template VariantValue::operator T () const same as VariantValue::As () - but explicit - VariantValue - cleanup DbgTrace usage; and in a few cases added stuff to teh thrown exception about why failed - XML - XML::DOM::Element code Append, and SetAttribute allow value to be VariantValue, and just silently As it - cleanup XML DOM RootElement default namespace code for ReplaceRootElement - Added Document::Ptr::LookupOneElement / Lookup / LookupElements - DOM::Element::SetValue overloads - LibXML2 - New resolver support code - fix exception safety bug in XPathLookupHelper_ LibXML2 - expose get/set Standalone flag to XML document, and change default for libxml2 to standalone as I had with Xerces - fixed libxml2 entity reference writing support (must call xmlEncodeSpecialChars before xmlNodeSetContent) - maybe fix libxml2 issue with default namespaces not working properly - Debug - Assertion - Cleanup/re-orig macors in Assertions.h - Assert handlers now use wchar_t - fixing a number of rare/minor problems; and simplifying its use of DbgTrace - TimingTrace - Minor imporovements to TimingTrace class: added Suppress() method, and better support for !qStroika_Foundation_Debug_DefaultTracingOn - clenaup compiler warnings and DbgTrace output (new format code) for TimingTrace - Execution - Activity - fix docs and impl of CaptureCurrentActivities so clear keeps TOP of stack as most specific activity and bottom of stack as first/original outer actiivity - regtests for stack of exceptions capture - generalized/added concepots to Execution::ThrowIfNull utility - CommandLine - new CommandLine class; options support, inclding autogenerateing 'Usage' from Options; and updated all the regtests and samples to use the new CommandLine code - LazyInitialized **new class** - new utility TranslateExceptionToOptional - Logger - support multiple loggers; - better document use and setting logger to log to stdout - IO - Filesystem - qStroika_Foundation_IO_FileSystem_PathName_AutoMapMSYSAndCygwin support, and regtests (ToPath) - AdoptFDPolicy no longer has eDEFAULT - since there is no safe value - force specification by callers - so deprecated a couple FileInput/OutputStream New () overloads - new IO::Filesystem::CreateTmpFile and use that in AppTempFileManager, and minor cleanups to names and args in TemporaryFile code (not fully backward compat but SB simple enuf to update/adapt) - Network - fix includes so MacOS includes TCP_NODELAY define - URL Host Host::As () always wraps IPv6 addr with [] - not just if pct encoding - cleanup URL Network regtests and add regtest for [] on IPv6 addresses - new regtest TestNotPCTEncodingColonOnURLPath_ and improved AsString (dont pctencode certain cahracters esp : in path) - Minor tweaks to IO/Network/Transfer/Connection_WinHTTP.cpp - ConnectionOrientedStreamSocket::{Get/Set}TCPNoDelay support; and use in ConnectionManager options - and default to TRUE there - WebServer/Request and IO/Network/Transfer/Response now have GetBodyVariantValue () utility function - which checks the content type and then reads JSON and maps to VariantValue - not new functionality - just simple wrapper for common case - Memory - BLOB - expose base64 encoding options in BLOB::AsBase64, and add regtest (probbaly more needed) - Added _blob literal for Memory::BLOB (attach) - and regtest for it - Span - cleanup docs / rationale on assertions for CopySpanData - new Memory::{Transform,And_Then,Or_Else} trivial wrappers on c++23 monadic new functions that work on older c++ (polyfill) - Streams - Minor tweak / fix to TextToByteReader - fixed bug in Streams/TextToByteReader Read code reading multibyte unicode - untested - but hopefully right now - Frameworks - Led - fixed warning about delter on shared_ptr - WebServer - Added fThreadPoolSize to WebServer::ConnectionManager statistics - deprecate framework/webserver/reponse/printf and instead added write () overload taking FormatString and updated some usage to use it - Docs - WebService - JSONRPC - draft JSONRPC support (just define a few objects, and ObjectVariantMappers - maybe not much more todo) - OpenAPI - super early draft of Stroika/Frameworks/WebService/OpenAPI/ support
(generating docs link to openapi content) - Docs Gen
cosmetic tweaks to webservice frameworks docs page - new overload of PickoutParamValuesFromBody - ThirdPartyComponents - boost 1.85.0 - clang14/15 dont work with boost cobalt - Patch to msvc.jam file to support latest visual studio compiler so boost 1_85_0 works with visual studio 17.10.x (latest compiler) - libcurl - lots of hacks to get the latest version building on UNIX - some versions fail to build with libbrotli (esp with clang++) - lose std= setting to linker - VERSION 8.8.0 - fmtlib - new dependency (iff needed cuz missing from stdlib) - https://github.com/fmtlib/fmt/releases - configure support so only builds if needed - cuz using stdlib that doesn't have it. - openssl - VERSION 3.3.1 - disable https://stroika.atlassian.net/browse/STK-948 openssl lib build workaround - sqlite - VERSION 3.46.0 - libxml2 - VERSION 2.12.7 - StrawberryPerl - check on build - zlib - changed zlib build to only remove sofiles/dlls not zlib.pc file (losing lib/pkgconfig/zlib.pc etc from zlib build) - no longer needed to install libz.a on regression test images #### Release-Validation - Compilers Tested/Supported - g++ { 11, 12, 13, 14 } - Clang++ { unix: 14, 15, 16, 17, 18; XCode: 15.2, 15.3} - MSVC: { 17.10.1 } - OS/Platforms Tested/Supported - Windows - Windows 11 version 23H2 - mcr.microsoft.com/windows/servercore:ltsc2022 (build/run under docker) - cygwin (latest as of build-time from CHOCO) - MSYS (msys2-base-x86_64-20230127.sfx.exe) - WSL v2 - MacOS - 14.4 - arm64/m1 chip - 14.3, 14.4 on github actions - Linux: { Ubuntu: [22.04, 23.10, 24.04], Raspbian(cross-compiled from Ubuntu 22.04, Raspbian (bookworm)) } - Hardware Tested/Supported - x86, x86_64, arm (linux/raspberrypi - cross-compiled, DEBIABVERSION###), arm64 (macos/m1) - Sanitizers and Code Quality Validators - [ASan](https://github.com/google/sanitizers/wiki/AddressSanitizer), [TSan](https://github.com/google/sanitizers/wiki/ThreadSanitizerCppManual), [UBSan](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) - [CodeQL](https://codeql.github.com/) - Build Systems - [GitHub Actions](https://github.com/SophistSolutions/Stroika/actions) - Regression tests: [Correctness-Results](Tests/HistoricalRegressionTestResults/3), [Performance-Results](Tests/HistoricalPerformanceRegressionTestResults/3) - Known (minor) issues with regression test output - raspberrypi - 'badssl.com site failed with fFailConnectionIfSSLCertificateInvalid = false: SSL peer certificate or SSH remote key was not OK (havent investigated but seems minor) - Ubuntu 24.04 - TSAN somewhat broken - https://stroika.atlassian.net/browse/STK-1010 --- ### 3.0d5 {2024-02-28} {[diff](../../compare/v3.0d4...v3.0d5)} #### TLDR - Iterable::Map big improvement - concepts, performance, power - Streams no longer use quasi-namespace trick - Dramatically improved XML support (DOM, Schema, and XPath added, as well as libxml2 support) - googletest - Cleaned up alot with using concepts/requires - Improved clock/realtime clock support (Time::DurationSeconds replaced with use of chrono more directly). #### Upgrade Notes (3.0d4 to 3.0d5) - Iterable::Map() - generally if you have templated arguments, probbaly just try deleting them and the defaults will do fine. If not, then specify container as sole template argument, rather than mapped_type followed by container type - BIG streams changes - not backward compatible - generally replace InputStream::Ptr with (or Character) with InputStream::Ptr (or Character). Same for OutputStream. And same for SomeKindOfStream::New () - now needs template (of T) - parameter - like MemoryStream::New () - replace Time::DurationSecondsType with Time::DurationSeconds (if a duration) and sometimes Time::TimePointSeconds (if from GetTickCount) - due to new ASSUME_ATTRIBUTE macro, and experimental use of it in Assert/Require macros, some assert/require calls may need to be wrapped in #if qStroika_Foundation_Debug_AssertionsChecked #### Change Details - Compilers support changes - no longer support XCode 14 - since I dont have easy way to run/debug there now - 17.9.1 - BuildScripts - configure - replace old \ with simpler PkgConfigNames (to fix libxml2 include issue) - for libxml add LIBXML_STATIC to CPPFLAGS (so seen in vscode) - new configure LinkTime_CopyFilesToEXEDir feature, and used to replace old ScriptsLib/Vs2kASANBugWorkaround - Xerces defaults to not being built (if libxml2 is built - qStroika_HasComponent_libxml2); and new --default-third-party-components --all-available-third-party-components options available - **NOT BACKWARD COMPATIBLE** - cleaned up format and names used in configure files/scripts. Users may need to update makefile scritps; Linker=>LINKER; EXTRA_PREFIX_LINKER_ARGS=> LinkerArgs_ExtraPrefix; EXTRA_SUFFIX_LINKER_ARGS=> LinkerArgs_ExtraSuffix; LIB_DEPENDENCIES=>LinkerArgs_LibDependencies; LIBS_PATH=>LinkerArgs_LibPath - fixed minor array indexing bug in configure perl script - simplify LinkerArgs_LibPath configure - just store cmdline args in variable not actual path so dont need to do that magic in app - improved configure script on windows to print out warning if it finds multiple compiler/visual studio instances, and to pick slightly better between them - Docker Build Containers - Refactoring/options - tweak so builds smaller docker windows container - avoiding(???) issue with .github actions not having enuf disk space (so failing) - dockerfile -lose pull-base-image support - Windows - support VS_17_9_1 in docker container - docker build for windows compiler: tweaked and better documented source of --add lines in installation of Visual Studio - cleanup docker DOCKER_NETWORK hack/workaround in docker build makefile - use/define Dockerfile ARG USEWINSDK and docs, but not actual change yet - Makefile - improved docs and behavior of WRITE_PREPROCESSOR_OUTPUT makefile option - new make distclean in top level makefile - special speed tweak on builds for libraries if QUICK_BUILD=1 set as command-line argument to make - tiny unused hack added to make default-configurations (DEFAULT_CONFIGURAITON_ADD2ALL) - changed 'regressiontest configurations' to by default include TEST_CONFIGURATIONS_ADD2ALL - so to include xerces - **new** LinkerArgs_StroikaDependentLibDependencies - Scripts - ApplyConfiguration - ApplyConfiguration sorts configurations by name now for .vscode - making it much easier to handle tons of configs in menu in vscode - fixed ApplyConfigurations processing of .env.myDefaultIncludePath update - ApplyConfiguraiton now generates ::= instead of = (posix style simply expanded) variables instead of recursive expand variables written to Configuration.mk (faster, more portable, and sometimes less confusing) - trim PkgConfigNames before check for '' before call to pkg-config in script - ScriptsLib/MakeBuildRoot - RegressionTests - touchup RegressionTests test code for counting failures to accomodate warning that has the word failure in it - fixed a few small issues with TOTAL_WARNINGS_EXPECTED and fFailConnectionIfSSLCertificateInvalid for raspberrypi - Skel - Small cleanups (makefiles) - IDE Support - Delete some no longer needed references to vs2k17/19 - Documentation - Tons/Misc comments/todo/docs cleanups - Cleanup Code-Status.md settings (simplified enumeration) and re-reviewed all uses so more sensible - Library - General - new version of clang-format (17.0.3) with latest vis studio - so re-ran make-format-code - in many places, changed usage of is_same_v to same_as (cosmetic; shorter; more modern; uniform) - Moved many enum names into surrounding namespace with using, such as: - (in Characters namespace) using AllowMissingCharacterErrorsFlag::eIgnoreErrors; - tons of mostly cosmetic changes; L string cleanup; regularizing namespace imports at top of modules; lose some empty cpp files - experimented with __has_include instead of qHasFeature code, but decided BAD IDEA, cuz may want to disable stroika dependency on library even if it exists in system includes - Several enums that were naemd eDefault were renamed to eDEFAULT (**not backward comaptible but I think mostly on new stuff since v3 so probbaly not user noticible**) - Foundation - Cache - fix Cache::Stats_Basic so copyable - redo lazy access to Mapping<> in CallerStalenessCache for special case of void KEY - since I now am experimenting with better validation of Mapping<> template parameters - cleanups to LRUCache constructors (factory deduction approach), and similarly synchronizedLRUCache - Test8_NewLRUCacheConstructors_ in regtests - better use of requires/concepts - Characters - IPossibleCharacterRepresentation - Characters::CString::Length and Characters::GetEOL use concept IPossibleCharacterRepresentation instead of specializations - LineEndings GetEOL can only be constexpr if c++ version >= c++23(constexpr) - fixed SDK2Wide (span s, AllowMissingCharacterErrorsFlag) serious bug - where default missing character not representable in the current locale codepage - Character - refinements to CTOR - more overloads - and more restrictive - and more carefuly about throws/checking on them - and documented - ToString - https://stroika.atlassian.net/browse/STK-566 Major Characters::ToString cleanup, including ToString (...elipsis) support, and cleanup use of templates in Private_ - ToStringDefaults, etc. - ToString() support for (some) chrono::duration and chrono time_point values (with any clock) - Added Characters::UnoverloadedToString (some contexts appear to not work with ToString overloaded template - e.g. Iterable<>::Join) - added IToString concept replacing deprecated has_ToString_v - Draft of StringShorteningPreference support in ToString() code - ToString() support (minimally) std::variant - Use Configuration::IBoundedEnum concept and in Characters::ToString() - FloatConversion - improved Characters::FloatConversion code checking with concepts use (so better error reports, but no real changes) - String - Added String::Remove() overload - fixed bug in String :: CTOR (utf8) code - if contained latin1 characters and ascii, but no non-latin1 characters; added regtest for this case, and fixed the bug (could be more efficient, but hopefully good enuf for now - wait ti I see in profiling) - deprecated bool arg to String::LimitLength (replaced with enum) and used that enum in ToString code; - optimize String::ToUpperCase/ToLowerCase - optimization of String EqualsComparer - for case of (String,basic_string_view) - COMMON case - so possibly helpful - Added StringCombiner; and related kDefaultStringCombiner (for Iterable<>::Join) - StringBuilder - StringBuilder::ShrinkTo (size_t sz) - experiment with StringBuilder having non-explicit String conversion op - Experimental support for ToString implicitly in operator<< for StringBuilder; and a few test uses of simplified API - Configuration - Compiler Bug Defines - Updated bug defines for _MSC_VER_2k22_17Pt8_ - Support _MSC_VER_2k22_17Pt9_ - qCompilerAndStdLib_template_template_argument_as_different_template_paramters_Buggy for clang - qCompilerAndStdLib_template_template_auto_deduced_Buggy BWA - workaround qCompilerAndStdLib_specializeDeclarationRequiredSometimesToGenCode_Buggy - qCompilerAndStdLib_arm_asan_FaultStackUseAfterScope_Buggy new bug workaround define and attempted bug workaround - testing - New bug define qCompilerAndStdLib_span_requires_explicit_type_for_BLOBCVT_Buggy - qCompilerAndStdLib_explicitly_defaulted_threeway_warning_Buggy BWA - qCompilerAndStdLib_RequiresNotMatchInlineOutOfLineForTemplateClassBeingDefined_Buggy BWA - qCompilerAndStdLib_template_requires_doesnt_work_with_specialization_Buggy BWA - qCompilerAndStdLib_InternalCompilerErrorTSubCopy_Buggy BWA - qCompilerAndStdLib_CompareOpReverse_Buggy BWA improved; broken on clang++-16 too; broken starting on gcc 13, so maybe really my bug after all - qCompilerAndStdLib_crash_compiling_break_in_forLoop_Buggy BWA; - qCompilerAndStdLib_clangWithLibStdCPPStringConstexpr_Buggy BWA - qCompilerAndStdLib_template_optionalDeclareIncompleteType_Buggy bug define and possible workaround - qCompilerAndStdLib_kDefaultToStringConverter_Buggy - qCompilerAndStdLib_template_SubstDefaultTemplateParamVariableTemplate_Buggy - lose unneeded qCompilerAndStdLib_ArgumentDependentLookupInTemplateExpansionTooAggressiveNowBroken_Buggy - workaround qCompilerAndStdLib_arm_ubsan_callDirectFunInsteadOfThruLamdba_Buggy in Test_Join - Concepts - new utility Configuration::IAnyOf concept; and used in a few places to test - Endian - simplify/generalize slightly the EndianConverter code (if constexpr and and concepts) - Enums - define Configuration::IBoundedEnum concept - switched most use of Configuraiton::IOperatorEq IOperatorLtetc to using equality_comparable, three_way_comparable, etc and added those checks to Sequence<> opreator==/<=> template so only defined if subselts defined for too - not 100% working - one queer case - Containers - All - Added requires () on default CTOR for various container archtypes, that require less, or equal_to etc to be defined, so we hopefully get better compiler error messages (otehrwise should have no effect) - template 'overloads' for Map in SortedSet/Sequence - just forwarding - but to change default template produced - Adapters - Adapters::Adder greatly simplified using concepts - now works more generally, and without all the dependencies it had on other modules; used it now to siplify adding stuff in Iterable<> - STL - mark Containers::STL::Make as deprecated - KeyedCollection - Added CTOR overload - Mapping - new draft Mapping_IKey and Mapping_IMappedValue concepts (so give better error messages in Mapping template instantiation) - Document that we CANNOT use Mapping_IKey Mapping_IMappedValue as typename constraints cuz they dont interact well wtih templates on incomplete types (Like Mapping in VariantValue); so instead use static_assert which appears to work fine with these incomplete types - Set - Set<>::insert overloads / tweaks to make more STL drop-in-replacement compatible - Common - new utility Common::VariantIndex for extracting info from std::variant - Cryptography - Encoding - renamed to Base64::Decode : deprecated DecodeBase64 (span s), similarly Base64::Encode - DataExchange - new RecordNotFoundException class - fixed bug with InternetMediaTypeRegistry::Get ().IsA and added related regression tests and docs - StructuredStreamEvents - **incompatible change** to SAXReader/StructuredStreamEvents::IConsumer - added Mapping attributes argument to StartElement () callback, and no longer generate Start/End/TextInside calls for each attribute (though ObjectReader still does this) - ObjectVariantMapper - Added DurationSeconds support to ObjectVariantMapper::MakeCommonSerializer - VariantValue - trivial tweak to VariantValue::operator bool () - Tons of VariantValue cleanups - but MOSTLY - adding rquires constraint to As<> method instead of using template specailization (so get better compiler error messages and executable docs for what is allowed) - XML - **incompatible change** - Massive change (somewhat backward compatible, but mostly not) - very little the same - New XML::{Provider,DOM,Namespace,XPath, Schema} etc support - XML::SAXParse deprecated overload taking context reference, and instead take context ptr - Targets either Xerces or libxml2 - libxml2 now the default because IT supports XPath in the DOM code (so does Xerces but much weaker in Xerces) - exposed qStroika_Foundation_DataExchange_XML_DebugMemoryAllocations since slow, and made sure we actually check on destruction no leak! if you do all that work - New regtests for new XML (esp schema and DOM and XPath) APIs - new qStroika_Foundation_DataExchange_XML_SupportDOM ; qStroika_Foundation_DataExchange_XML_SupportSchema; qStroika_Foundation_DataExchange_XML_SupportParsing - Added new ResolverPtr mechanism to replace SourceComponents - Debug - Assertions - new _ASSUME_ATTRIBUTE_ macro, and experimental use of it in Assert/Require macros - split Assert into Assert (procedure) and AssertExpression for expressions; and sample for Require/RequireExpression and Ensure/EnsureExpression; for the PROCEDURE versions - in RELEASE BUILDS - add [[assume(C)]] where possible (RISKY, INTERESTING, BUT PROBBABLY HELPFUL FOR PERFORMANCE) - in release builds, Assert(ETC)NotReached() calls std::unreachable () if available - AssertExternallySynchronizedMutex - renamed macro qStroikaFoundationDebugAssertExternallySynchronizedMutexEnabled -> qStroika_Foundation_Debug_AssertExternallySynchronizedMutex_Enabled - use Debug::AssertExternallySynchronizedMutex _fThisAssertExternallySynchronized in place of inheritance in a few more places - Sanitizers - tried memory sanitizer - a boondoggle - not worth trying for now... - fixed docs on Stroika_Foundation_Debug_ATTRIBUTE_NO_SANITIZE_ADDRESS usage, and used in qCompilerAndStdLib_arm_asan_FaultStackUseAfterScope_Buggy BWA for Debug::Private_::Emitter::DoEmit_ RASPI issue - Visualizations - new module Foundation::Debug::Visualizations to fix visual studio .natvis problems; #include Debug/Visualizations.h to get visualizations in debugger from now on - natvis major improvement for Stroika strings - still not great but at least OK now - early draft Library/Projects/VisualStudio.Net-2022/VisualStudio-Stroika-Frameworks-Debugger-Template.natvis support - Execution - Execution/Resource/Accessor and Manager use span<> (***not backward compatible but rarely if ever used***) - CommandLine - Added Execution::CommandLine overloads - Added overloads for Execution::ParseCommandLine - ModuleGetterSetter - Docs and new experimental operator-> for ModuleGetterSetter - ModuleGetterSetter::Get () const now - WaitForIOReady - fix to race (tsan found) in WaitForIOReady - ProgressMonitor - big improvements (just in time to possibly deprecate cuz really not that useful anymore). - Added ProgressMonitor::SetCurrentTaskInfo () method - ProgressMonitor: SetCurrentProgressAndThrowIfCanceled depreacted - use SetProgress, and update docs / code so SetProcess does Throw - use Syncronized in ProgressMonitor code and more minor cleanups/asserts - optional (default on) feautre to restore taskinfo on DTOR, and keep task callbacks by reference so works better with mutable lambdas - Fixed Updater::ThrowIfCanceled to call Thread::CheckForInterruption () - ChangedCallbackType cannot use noexcept with std::function - Thread - **not backward compatible** : changed rules for thread::Ptr::Abort - no longer legal to call with NotYetStarted(); and make START promise/ensure state != notyetstarted when it returns. Removed a few regtests (or adjust them) to reflect new rules and this fixes assert failre very sporadic in service test (i hope); - test more and more cleanups related to this - redid alot of the Thread start / abort logic so we now support RegressionTest25_AbortNotYetStartedThread_ again and re-enabled that test; - big simplification of Thread rep internals - removed fStatus_ - and just use values in various events: RISKY - but seems to work - Minor cleanusp to recent Thread::Ptr::Rep_::PeekStatusForToString_ changes - fixed issue(s) on clang++15 - lose Thread::Status::eNull - status for the rep, not the Ptr - ThreadPool - deprecated CTOR (unsigned int nThreads, const optional& threadPoolName) and replace with ThreadPool::Options CTOR; - add new QMax settable option and respect it in AddTask method - either blocking or waiting (poorly) or throwing; - Minor fix (<= not <) in ThrowTimeoutExceptionAfter, and several other 'throw' utility tweaks to use perfect forwarding - Synchronized - workaround/avoid probably real serious bug https://stroika.atlassian.net/browse/STK-700 - opeartor== and operator<=> respect equality_comparable three_way_comparable - IO - Filesystem - AppTempFileManager - a few cleanups to TempFile code - mostly make windows open code use same code as UNIX and filesystem::perms::all instead of POSIX gorp - Another attempt at CreateFile for GetTempFile code - MemoryMappedFileReader - span support - improved error message in CTOR (activty to record opening what file) - Network - URI - new StringPCTEncodedFlag enum and (optional) flag to several URI(and related) methods; Deprecated AsEncoded and AsDecoded functions in those classes (instead As (eEncoded or eDecoded) - changed the StringPCTEncodedFlag parameters to As<'stringish'> functions to optional, so they can each vary based on 'T' - as appropriate (documented how they all default but mostly - if you care - dont use the default - specify - document issue https://stroika.atlassian.net/browse/STK-1000 - corner case issues with parsing/decoding StringPCTEncodedFlag - Math - Math utilities use more concepts for better error reporting - Memory - BLOB - deprecated BLOB::Hex in favor or better name and improved API BLOB::FromHex; Same for BLOB::Raw -> BLOB::FromRaw, and cleanups to said methods - use BlockAllocation in BLOB code for its private binary stream - better factoring and requires errreporting for BLOB::As() and deprecated BLOB::As/1 - Memory::BLOB now directly supports FromBase64/AsBase64; and better templates for this and Hex support - BLOB::Repeat () optimizaiton - lose lots of overloads taking Memory::BLOB where we already took InputStream::Ptr - as redundant (mostly); left in a few were was perofrmance tweak (and documented as such); and forced adding a couple explicit Memory::BLOB ctors in calls - but for hte better as making more clear the behavior - cleanup regtests for blob and cleanup output of BLOB ToString() for ascii case - experimental addition of /*explicit*/ operator Streams::InputStream::Ptr () const; - BlockAllocation - **not backward compatible**, but rarely referenced directly: qAllowBlockAllocation -> qStroika_Foundation_Memory_PreferBlockAllocation - fixed small bug in BlockAllocator for when qStroika_Foundation_Memory_PreferBlockAllocation disabled - new Memory::InheritAndUseBlockAllocationIfAppropriate - InlineBuffer - minor cleanup to InlineBuffer<>::reserve() - docs, simplificiation, and hopefully avoids warning in g++-12 cross-compile for raspi/arm - Optional - Added new ValueOfOrThrow - Span - fixed template args to SpanReInterpretCast - must have template arg for FROM_EXTENT to work with static arrays - cleanup a few Span support templates - renamed new Memory::ISpanT -> Memory::ISpan - use as_bytes in place of Memory::SpanReInterpretCast in a bunch of places and documented in description of SpanReInterpretCast that its better to use as_bytes where you can easily - Streams - **not backward compatible or even close - HUGE CHANGE** - supports span, and deprecats iterator New methods, loses quasi-namespace code (so InputStream::Ptr becomes InputStream::Ptr - ETC - that is biggest change users will face) - **not backward compatible** lose _SharedIRep and use shared_ptr directly, and a few related changes - losing _mkPtr in most 'streams ptr' subtypes - use concepts/requires in many methods, types, constructors, factories etc, to give better error messages (at time of call not link errors) instead of template specialization - **incompatible change** updated ExternallyOwnedMemoryInputStream, SplitterOutputStream, and ... to use namespace, not quasi-namespace style; generally all that is needed to upgrade is to rewrite ExternallyOwnedMemoryInputStream::New () as ExternallyOwnedMemoryInputStream::New () - use new Memory::InheritAndUseBlockAllocationIfAppropriate, and use in InternallySynchronizedInputStream so can re-enable UseBlockAllocationIfAppropriate - InputStream - **incompatible change** but only affects users who implement InputStream reps; InputStream::Rep::Read() now takes span instead of start/end pointers and now returns span (more to come probbaly) - Lots more cleanups of old ReadNonBlocking code to new NoDataAvailableHandling enum flag code - progress on New Streams EWouldBlock design - incomplete - INputStream::IRep::Read now returns otpional - where missing means (wrapper do throw EWouldBlock::kThe) - unlike wrapper ptr API (that just uses nullopt for EOF - progress on new Stream blcokign code - lose old rep API ReadNonBlocking - replaced with AvailableToRead; REP API NOT CLOSE to compatible. (as far as non-blcokgin conscerned); Ptr API pretty close to but not 100% ; - InputStream RemainingLength API added - OutputStream - Write now uses span (**not backward compatible change to rep**) - cleanup/generalization of OutputStream::Ptr::WriteLn and related OutputStream::Write cleanups (concepts/requires) - InputOutputStream - depreacated input/output streams GetOffsetToEndOfStream method, and rewrote a fwe places that used it - InputSubStream - InternallySynchronized overload of InputSubStream::New () - iostream - added regtest for IOStreamSeekBug and fixed bug - implementation intenrally needed a few fOriginalStreamRef_.clear () calls cuz read past eof set failbit, and even if you seek back, it didn't get auto-cleared, so we threw (happened in case of a short seekable stream, like one byte/char, and wrapping TextReader that looked for BOM before reading text) - TextReader - refactored TextReader::IterableAdapterStreamRep_ private impl into new public module Streams::IterableToInputStream - and generalized to trnaslate any Iterable to InputStream. - **not fully backward compatible** - but big simplification to TextReader::New overloads - and docs - TextReader::New - use codeCvtFlags in more cases - like not seekable - TextWriter - TextToByteReader - Streams::TextToByteReader uses new IterableToInputStream::New to add Iterable overload to New; and switched to new namespace style for this streams class - SharedMemoryStream - SharedMemoryStream no longer accepts overloads with InternallySynchronized parameter - since always internallyschrhonized - InternallySynchronizedXXXStream: - big cleanups to (and mostly convert to namesapce from quasinamespace code) InternallySynchronizedInputStream, InternallySynchronizedOutputStream, and InternallySynchronizedInputOutputStream - OpenSSLInputStream/OpenSSLOutputStream - FileInputStream/FileOutputStream - SplitterOutputStream - new ExternallyOwnedSpanInputStream : replacing deprecated ExternallyOwnedMemoryInputStream - progress on zlib reader compression/decompress new ReadNonBlocking support - more cleanups of Compression/Zip/Reader code and other stream code - Added InputStreamDelegationHelper helper - new Streams_ToSeekableInputStream_ - FileInputStream - Cleanup FileInputStream flags/enums - MemoryStream - Added MemoryStream::ToString() support - Time - **not backward compatible** - big change to Time::Realtime code: deprecate Time::DurationSecondsType in favor of sometimes Time::DurationSeconds and sometimes Time::TimePointSeconds - mostly this means places where you used to specify a timeout, just add an 's' to the end (3.0 becomes 3.0s). Also- when treating the duration as a float, you need to say .count (). And when treating a TimePointSeconds as a float In process of converting, fixed a couple bugs due to confusion beteween teh float being timepoint vs duration. - new experimental Time::FromAppStartRelative and ToAppStartRelative - New Configuration concepts support - IDuration and ITimePoint - renamed Time::kInfinite to Time::kInfinity - duration now a literal type (constexpr dtor was missing); so now can make Duration::min/max and related duration range stuff constexpr - defined Traversal::RangeTraits::Default<> template specializations for Time::DurationSeconds and Time::TimePointSeconds so ranges work better with these types - new Time::Pin2SafeSeconds () utility and used in a couple places to avoid ubsan failures - DateTime - big change to DateTime 'chrono::time_point' and 'tickcount' support; now directly support arbitrary time_point in DateTime CTOR, and as template for DateTime::As<> and rewrote To/From TickCount to use these - Added DateTime::ParseQuietly () overload with list of formatPatterns and default kDefaultParseFormats - CTOR minor cleanups - made a few CTORs explicit, and lost one (mostly) redundant one. Only incompat this introduces is maybe sometimes will need expplicit DateTime{} around Date{} objects; and a few other minor cleanups to tests, quiet warnings etc - Date - Added Date::Now() function (based on DateTime::Now()) and operator+/- for Date which handles duration (rounding) - Clocks - clock_cast extension of std::chrono::clock_cast, plus add (Stroika) Range support - AppStartZeroedClock define new template AppStartZeroedClock<> - and use that in place of (very recent add/removed) ToAppStartRelative/FromAppStartRelative using this clock type with clock_cast>? - defined new RealTimeClock type alais for steack_clock (doc used for TickCount); - new Time::DisplayedRealtimeClock (and use); - Traversal - Iterable - declare Iterable<>::iterator / const_iterator for easier STL interoperability - Map **major not backward compat change** - new impl - now supports lazy eval for Iterable - now has container arg first, and no longer has element arg - but defaults much better so often can be omitted - Where cleanup - using perfect forwarding and concepts and better subclass tuning in Containers like Set etc. - Improved Iterable::First/FirstValue/Last/LastValue with concepts and cleaned use - Iterable<>::Join significant implementation changes, api about the same - Iterator - Minor clenaups to Iterator<> code - mostly using const in a few more places - Range - Migrate Foundation::Traversal::Openness type to Traversal Common.h file, so can be used elsewhere (without #include Range.h which pulls alot in); no namespace changes - new operator<=> just returing partial_ordering (was briefly called DefinitelyLessThan) - Frameworks - Led - Actually ported to MacOS/Unix - old code just had commented out builds - so misleadingly ported before v3 (really just windows) - Lots done here - but still tons of led code disabled on UNIX (if/cuz no GDI - qStroika_Frameworks_Led_SupportGDI) - But I can now use alot of the Led code (AskHealthFrame uses for record RTF read/convert). - Lose old MacOS 'quicktime/carbon' code (so check pre-v3.0d5 for that code if ever needed) - lose old apis support: qUseSystemNetscapeOpenURLs, - minor cleanups to constexpr Led code, etc, modernizing usage lose some no longer needed (and not helpful/wrong) #define checkers etc for qStroika_Foundation_Debug_AssertionsChecked/NDEBUG, etc; lose qHasIsAscii - Led cleanups of #defines - no longer supprt qWideCharacters/qMultibyteCharacters/qSingleByteCharacters - instead always do what we used to call qWideCharacter, - document @todo : switch to using span at some point (if I work enuf of Stroika/Led) - Minor Led cleanups/modernizing/comments/warnings - cosmetic and new qStroika_Frameworks_Led_SupportTables define - lose Led option qURLStyleMarkerNewDisplayMode - just assume (it was) true - respect qStroika_Frameworks_Led_SupportClipboard better - lose not really working anyhow StyledTextIOWriterSinkStream_FileDescriptor StyledTextIOSrcStream_FileDescriptor code; and document StyledTextIOReader::SrcStream and SinkStream need to be replaced with Streams::InputStream::Ptr and OutputStream::Ptr if we ever need to get this really working more widely - SystemPerformanceMonitor - fix system performance monitor code to better track initial time on measurements; change sample to print times using DisplayedRealtimeClock::time_point; and related cleanups - Test Framework **new** - Simple wrapper on google test code - Service - --runFor option to services intead of using first 'unused' argument - various minor Frameworks::Service cleanups - WebServer - Minor cleanups to ThreadPool stat collection; and used with new property / option in Frameworks::WebServer::ConnectionManager - cleanp use of new ThreadPool CTOR (avoid deprecated api) and for WebServer - change behavior so we max-out the QMax value (possibly no effect, possible reduce attack surface) - fixed Frameworks/WebServer/Response.inl writeln code to not write NUL chars in EOL - ThirdPartyComponnents - simplify and fix bugs in ThirdPartyComponents/Makefile - Boost - VERSION 1.84.0 - tweak makefile - fixed boost download - jfrog seems broken - Using new boost and clang compilers, must disable cobalt library - LibCurl - VERSION 8.5.0 - tried 8.6.0 - but problems - minor libcurl makefile cleanups - losing old BWA notes - libxml2 - new thirdparty compoennt - VERSION 2.12.5 - openssl - VERSION 3.2.1 - add better backup openssl backup download urls - SQLite - VERSION 3.45.1 - Xerces - VERSION 3.2.5 - patch Xerces ubsan issue - Xerces build out of CURRENT source rather than extracting source to IntermediateFiles (fewer copies and source stays around on clean so better debugging experience) - patch another memcpy issue with Xerces (sanitizer warning) - zlib - VERSION 1.3.1 - StrawberryPerl - download strawberryperl from github now (at least experiment) - VERSION 5.38.2.2 - .github workflow actions - workaround many build issues with github actions: run out of space - dont fail saving logfiles if file files missing on github actions macos - Added a few All3rdParty configurations (v3-Release only) to github action builds - fixed regression in github actions config file (clang++16 requires ubuntun 23.10 or later) - --boost no on github action running out of space - renamed build-v3-Docker-Containers to build-Dev-Docker-Containers - Samples - AppSettings - More elaborate AppSettings example/sample app - Traceroute - tweak UI of traceroute sample app - network monitor traceroute code new overload taking per hop callback; used to improve the UI of the traceroute app so more like regular traceroute tool - cosmetic and docs about isuses with traceroute and firewalls/unix sudo (issues with sampple) - Tests - xxd - added xxd to dockerfiles/build tool dependencies - use in Tests for embedded resources - regtests now depend on Framework library (just fixed project files for visual studio so far) - Sanitizers - tried msan, but didn't seem helpful/working - GoogleTest - Depend on googletest for regression testing (disabled if thirdpartycomponent googletest not configured/enabled). - cleanup of output of Tests makefile for run-tests for compat with new gtest code - Rewrote all regtests to use googltests, but only about 1/4 rewritten WELL on top of googletest (so more todo but low priority). - Valgrind - had to disable many tests since it was just so slow. And eventually decided not worth it (sanitizers work better) - so at least temporarily lose VALGRIND support. May re-add when I get to test with next LTS Ubuntu release (soon). - New WebServer (first framework) regression test - Simple but real/reasonable regtest for webserver and check with curl #### Release-Validation - Compilers Tested/Supported - g++ { 11, 12, 13 } - Clang++ { unix: 14, 15, 16; XCode: 15.0 } - MSVC: { 17.9.1 } - OS/Platforms Tested/Supported - Windows - Windows 11 version 23H2 - mcr.microsoft.com/windows/servercore:ltsc2022 (build/run under docker) - cygwin (latest as of build-time from CHOCO) - MSYS (msys2-base-x86_64-20230127.sfx.exe) - WSL v2 - MacOS - 14.3.1 - arm64/m1 chip - Linux: { Ubuntu: [20.04, 22.04, 23.10], Raspbian(cross-compiled from Ubuntu 22.04, Raspbian (bookworm)) } - Hardware Tested/Supported - x86, x86_64, arm (linux/raspberrypi - cross-compiled, DEBIABVERSION###), arm64 (macos/m1) - Sanitizers and Code Quality Validators - [ASan](https://github.com/google/sanitizers/wiki/AddressSanitizer), [TSan](https://github.com/google/sanitizers/wiki/ThreadSanitizerCppManual), [UBSan](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) - [CodeQL](https://codeql.github.com/) - Build Systems - [GitHub Actions](https://github.com/SophistSolutions/Stroika/actions) - Regression tests: [Correctness-Results](Tests/HistoricalRegressionTestResults/3), [Performance-Results](Tests/HistoricalPerformanceRegressionTestResults/3) - Known (minor) issues with regression test output - raspberrypi - 'badssl.com site failed with fFailConnectionIfSSLCertificateInvalid = false: SSL peer certificate or SSH remote key was not OK (havent investigated but seems minor) --- ### 3.0d4 {2023-11-14} {[diff](../../compare/v3.0d3...v3.0d4)} #### TLDR - Redo threading support using new C++20 stop_token/jthread feature (retain backward compatability since some stdc++ not fully supporting jthread). Related BlockingQueue, ConditionVariable, WaitableEvent fixes/changes. - ThreadPool fixes and new features (stats, task names, implementation simplification). - XML support improvement, notably DOM and Schema (and schema validation) support (no regtests/xpath yet) - ARM/Raspberry Pi testing now works again (new raspbian bookworm release) - lose much 'quasi-namespace' support, in favor of actual namespaces (still some remaining - not sure what todo about Streams) - Lose Helgrind support (was more pain than it was worth). - Added Ubuntu 23.10 support and g++13, clang-16, XCode 15 #### Change Details - Documentation - Cleanup docs (esp building docs) and lose project-files generation for windows on vs2k17/vs2k19 - Library - General - Cleanup use of std::byte - imported in Stroika namespace mostly and lose most of the redundent specs - Use [[nodiscard]] on many classes throughout Stroika to improve compiler warning reports - use Characters::AllowMissingCharacterErrorsFlag::eIgnoreErrors in a few more calls to AsNarrowSDKString - as for logging / already doing exception reporting - that orig exception is more important than issues converting codepage of text in report) - Foundation - Characters - CodeCvt - alignas in CodeCvt logic to possible fix issue that shows up on arm machine - simplified a bit of fInvalidCharacterReplacementBytesBuf in CodeCvt in hopes gets past compiler (bug/issue) raspi - but at least cleaner/simpler - String - simplify and improve IConvertibleToString so not IConvertibleToString (cuz that means String x = 3 would work; confusing with ovarloads - Added String::find overload - added String::back () helper - Added String::front() - StringBuilder - StringBuilder data() method/overloads - ToString - minor cleanup to ToString() method for exception_ptr (handle nullcase better) - Common - new ReverseCompareOrder - Configuration - new concept INoThrowInvocable - Allow perfect forwarding args to Immortalize() function - Compiler bug defines - qCompilerAndStdLib_ThreadLocalInlineDupSymbol_Buggy BWA - Lose qCompilerAndStdLib_copy_warning_overflow_Buggy from header file, and instead workaround with -Wno-stringop-overflow in configure so can be added to LINK line - needed for link-time warnings - qCompilerAndStdLib_lambdas_in_unevaluatedContext_warning_Buggy - simplification of qCompilerAndStdLib_stdlib_ranges_pretty_broken_Buggy bug define - cleanups to qStroika_FeatureSupported_Valgrind - new qCompilerAndStdLib_arm_ubsan_callDirectFunInsteadOfThruLamdba_Buggy bug define and workrounads, and Debug::kBuiltWithUndefinedBehaviorSanitizer cleanups/bug workarounds - Containers - STL\Compare deleted - Database - SQL - ***not fully backward compatible*** - Database::SQL::Connection no longer quasi-namespace, but actual namespace, and did a bit of refactoring of its use of AssertExternallySynchronizedMutex - ***not fully backward compatible*** - moved SQLite and OODBC Options to inside Connection namespace - DataExchange - Atom - Atom<>::As support - Minor tweaks to Atom code: CTOR exactly AtomInternalType so no mismatch on convertibletostring CTOR; and a few noexcepts on constructors for Atom And if const_evaluiated assertion cehck on one CTOR. - XML - cleanup Xerces/XML support - prepare to add more support - Progress on XML DOM and Schema support (incomplete/untested port from old RFLLib code) - more substantial proccess on DOM/Schema code for XML - cleanup/start using new qStroika_Foundation_DataExchange_XML_Support XXX flags - cleanup qStroika_Foundation_DataExchange_XML_SupportParsing usage - Debug - Trace - Tweak DbgTrace code internals - experiment with moduleInit instead of Immortalize due to warnings (no easy way to localize suppress in library code) leak warnings using it; instead settle on just using static module initializer using standard c++ inline static support - Make Debug::Emitter private - **not fully backward compatible** replaced macro qDefaultTracingOn with qStroika_Foundation_Debug_DefaultTracingOn and qTraceToFile with qStroika_Foundation_Debug_DefaultTracingOn - more cleanups to recent Debug Trace code - check __cpp_lib_stacktrace >= 202011 and if present/valid, use that for Debug::BackTrace::Capture () API - Execution - Misc - silence tsan warning from gcc about atomoc_thread_fence - lose kEveryNTimes template version of CheckForInterruption - just asking for bugs (not interuption point when looks like one) and was not currently being used - Execution::FinallySentry -> Execution::Private_::FinallySentry; and then Finally now uses new concept Configuration::INoThrowInvocable to assure argument lambda noexcept, and cleanup usage to comply - BlockingQueue - various cleanups (todos) - new GetQueue () method - Remove.. methods now throw Streams::EOFException on EOF, not TimeoutException - Fixed serious bugs in condition variable usage (masked by earlier stop-ever-.25 seconds crap in older ConditionVariable code) - ConditionVariable - many cleanups/changes, relating to new C++ 20 stop_token support, and others - lose fThreadAbortCheckFrequency support - fixed https://stroika.atlassian.net/browse/STK-993 - wait forever bug (substantial changes to threadrep code) - new kSupportsStopToken flag (cuz not all std::condition_variables support stop_token) - ConditionVariable - use condition_variable_any instead of condition_variable by default (for stop_token support) - now defaults conditionvariable template arg to condition_variable_any not condition_variable - more docs on what is cancelation point - major changes to wait_until() to support stop tokens (automatically) - more ConditionVariable fixes for new stop-token coding and recent Thread abort simplifications - ModuleInit module deprecated - Progress - Minor cleanups to ProgressMonitor::Updater for HF compat - Resources - fixed misisng Makefiles for Execution/Resources code - Thread - rewrite using jthread/stop_token (where available) - #if __cpp_lib_jthread cuz libc++ still doesnt support jthread - new Thread::GetCurrent() function - cleanups - but especially to Thread rep fInterruptionState_ code - now not using thread_local variable, but intead atomic part of weak_ptr current thread (which is now new htread local variable) - new utility Thread::GetCurrentThreadStopToken - simplified Interrupt flag handling in Thread code - now boolean rather than containing redundant data - tighten timeline on SuppressInterruptionInContext for initial fRefCountBumpedEvent_ coding - Improved ToString() reporitng - lose mutex on fAccessSTDThreadMutex_ - did more harm than good - fixed POSIX-only ThreadMain_ bug - with incRefCnt smart ptr - new Thread::IsCurrentThreadInterruptible () - Simplified Ptr::AbortAndWaitForDoneUntil - so just calls abort/wait. But hten had to fix serious bug with condition variable code - processing new stop tokens (tricky case); and commented out one bit of POSIX thread code for interupt handling I think no longer needed (must test; commented) - Cleanup (orthoganal more) Thread::New overloads - ***not backward compatible*** - lose Thread::Interrupt and InterruptException support; only support AbortException and Abort(); removed call IgnoreExceptionsExceptThreadInterruptForCall and replace with IgnoreExceptionsExceptThreadAbortForCall; Documented rationale in Thread.h - Thread wrap fSavedExeption_ in synchronized<> to avoid warnings in use from DbgTrace calls (could in principle be called elsewhere is why we must fix) - ThreadPool - ThreadPool: many small cleanups; and incompatible change to GetTasks () - returning Collection - describing stats about tasks (more to come here); and better dbgtrace logging and other small docs cleanups - threadpool - changed default CTOR so defaults to thread::hardware_concurrency () poolsize - draft support for Threadpool Task names, and other docs cleanups - simplified internals of ThreadPool task get next, and better supproted tracking tasknames - support for collecting minimal threadpool statistics - More small celanups to ThreadPool code - mostly MyRunnable_ with less abstraction/data hiding - really part of ThreadPool logic (due to locking policies) - WaitableEvent: - GetIsSet method and refined PeekIsSet tonotwait - Set methnow now uses MutateDataNotifyAll - slightly incompatible changes versus Stroika 2.1 - WaitableEvent WaitQuietly and WaitUntilQuietly now return WaitStatus instead of bool and deprecated kWaitQuietlyTimeoutResult kWaitQuietlySetResult (which basically acted as the enums) - qExecution_WaitableEvent_SupportWaitForMultipleObjects now defaults off; - WaitableEvent no longer supports AutoReset events - but instead has new 'AndReset' APIs - IO - Filesystem - TemporaryFile - big cleanups - add missing TemporaryFile to Makefile - significant cleanups to AppTmpFileManager (not backward comaptible but probably unused cuz was cruddy) - GetTmpFile uses wide-open permissions now on unix created tmpfiles - tune error handling in TemporarytFile AppTempFileManager - Network - Connection Transfer code no longer using quasi-namespace - restructured Socket, ConnectionOrientedStreamSocket, ConnectionOrientedMasterSocket, ConnectionlessSocket use namespace instead of quasi-namespace classes - Memory - BLOB - deprecated AttachApplicationLifetime and redid slightly the Attach code for BLOB making it a bit more flexible and better documented - improved BLOB::Attach API - Span - Loosened requirements on SpanReInterpretCast type arguments - Frameworks - ThirdPartyComponents - libcurl - curl 8.3.0 - TRIED 8.4.0 but fails to build on linux so back to 8.3.0 - openssl - 3.1.4 - sqlite - 3.4.4 - Xerces - makefile comments/cleanups for makefile - losing legacy workaround comments, lose MAKE-Trampoline BWA for Xercxes makefile - no longer needed and caused trouble with -flto=auto on unix , no longer needed so can simplify (ones for windows/visual studio) - Build System and Testing - Build System - new makefile feature WRITE_PREPROCESSOR_OUTPUT=1 - which may help reporting compiler bugs - Makefiles - remove a few unneeded CPP files from foundation - + on make fules to address -flto=auto issue (finally figured out what this meant) - restructure lib lines to use response file on WINDOZE due to command-line length being exceeded(occasionally depending on root dir name) - hopefully workaround/address flakey failure building sqlite due to changes in DEFAULT_LIBRARY_GEN_LINE macro - Scripts - simplifiy ScriptsLib/RunInDockerEnvironment slightly since DNS workaorund not working anyhow - configure - better error checking in configure script for bad args - no longer need add -lboost... stuff on macos in configure script - disable some libcurl LIBS settings which dont appear needed and appear to contribute to warning noise on macos - configure: for xcode/darwin: EXTRA_SUFFIX_LINKER_ARGS = -Wl,-no_warn_duplicate_libraries - Add and use new IsTargettingASAN_ util in configure script, and use it workaround https://stroika.atlassian.net/browse/STK-996 issue with LTO and ASAN - tweak compiler warning generation in configure script to address issue with LTO suprrious gcc warnings on ubuntu 23.10 - Minor configure cleanups, and placed workaround for Wstringop-overflow warning for g++11 in configure since didn't work with prama suppression - do Wno-maybe-uninitialized workaround in configure for g++13 as well - -Wno-tsan needed as linker flag with LTO on gcc/g++13 - Build Systems - Docker - support Ubuntu (23.04 initiallly and then instead) 23.10 and cleanup unix docker containers to include fewer compilers we dont support (old clangs mostly) - Compilers supported - g++-13 build added to github actions, and compiler bug defines and scripted in regtests - Added configs to makefile for clang++-16 - desupport clang++-13 (since libstdc++ version 13 doesn't compile (at least boost build) with that version of clang++ - not my problem) - VS_17_7_5 in docker container for testing - Compiler bug defines for xcode 15 - just check __GNUC__ not __GNUC_MINOR__ in compiler bug version detector - dont install clang++13 in docker containers cuz not supported (and running out of space on github actions sometimes) - Scripts/Skel - tweak Skel script - lose VS2k19 support from Skel - github actions - fixed missing cpp_version args in unix .github/workflows/build-N-test-Matrix.json - lots of effort to debug why running out of space in some github actions, and tightened size of docker containers and other tricks to workaround (see action itself for stuff removed) - github action tweaks so we see if-no-files-found: warn on actions/upload-artifact - play with macos version used/settings - cannot use macos-14 yet. add use of xcode 15 on macos 13 - update docs to reflect bulding and testing with xcode 15 (at least most regtests) - append CXXFLAGS -O0 for building analyze github actions - github actions windows use --jobs=2 to avoid occasionally run out of RAM compiling - RegressionTests - Debug::SetWeakAssertionHandler () - in regtests - to show the errors on the screen/stdout - Bullet proof performance regtest for missing files (so works on raspberrypi) - new RegressionTest25_AbortNotYetStartedThread_ regtest - cleanup threads regtest - draft regregression test DoSkelTest - cleanup cryto regtest a bit, and workaround issues running ASAN/crypto on raspi - Sanitizers - fixed memory alignment bug found by ubsan (I think) - remove one apparently no longer needed tsan workaround (and document one still needed) - Added tean supression for pthread_mutex_unlock - believe TSAN bug - big cleanup of qCompiler_SanitizerDoubleLockWithConditionVariables_Buggy support (mostly renamed to qCompiler_HelgrindDoubleLockWithConditionVariables_Buggy - separately fix / handle tsan case - big enuf change will require a bit ot testing to assure I did all teh scripting etc right; but TSAN on ubuntu 23.04 seems to work now and helgrind on same still fails (more testing to finetune) - Valgrind - Tweak regtests so run faster with valgrind memochgeck and better DbgTrace messages - DeSupport helgrind It appears too buggy with modern C++, and its been years since I found a bug because of its help. I spend all my time working around its bugs. And TSAN seems to address the same purpose. Keep using memcheck for now (since setup but not sure thats worth it anymore either, due to other google sanitizers). - disable RegressionTest5_Aborting_ under valgrind cuz too slow (even memcheck) - tweak timing of ubuntu valgrind memcheck test #### Release-Validation - Compilers Tested/Supported - g++ { 11, 12, 13 } - Clang++ { unix: 14, 15, 16; XCode: 14.3, 15.0 } - MSVC: { 17.7.5 } - OS/Platforms Tested/Supported - Windows - Windows 11 version 22H2 - mcr.microsoft.com/windows/servercore:ltsc2019 (build/run under docker) - cygwin (latest as of build-time from CHOCO) - MSYS (msys2-base-x86_64-20230127.sfx.exe) - WSL v2 - MacOS - 13 (on github actions) - 14 - arm64/m1 chip - Linux: { Ubuntu: [20.04, 22.04, 23.10], Raspbian(cross-compiled from Ubuntu 22.04, Raspbian (bookworm)) } - Hardware Tested/Supported - x86, x86_64, arm (linux/raspberrypi - cross-compiled, DEBIABVERSION###), arm64 (macos/m1) - Sanitizers and Code Quality Validators - [ASan](https://github.com/google/sanitizers/wiki/AddressSanitizer), [TSan](https://github.com/google/sanitizers/wiki/ThreadSanitizerCppManual), [UBSan](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) - Valgrind (helgrind/memcheck) - [CodeQL](https://codeql.github.com/) - Build Systems - [GitHub Actions](https://github.com/SophistSolutions/Stroika/actions) - Regression tests: [Correctness-Results](Tests/HistoricalRegressionTestResults/3), [Performance-Results](Tests/HistoricalPerformanceRegressionTestResults/3) - Known (minor) issues with regression test output - raspberrypi - 'badssl.com site failed with fFailConnectionIfSSLCertificateInvalid = false: SSL peer certificate or SSH remote key was not OK (havent investigated but seems minor) --- ### 3.0d3 {2023-10-01} {[diff](../../compare/v3.0d2...v3.0d3)} #### TLDR - Small cleanups to regression tests - Small performance tweaks (JSON reader, Strings, block allocator) - Memory::OffsetOf docs/white flag - CodeCvt/TextReader now uses Charset arg (minimal but critical Codeset/CodeCvt) support needed to fix critical regression in HTTP Response reading code (isolatin1 charset). #### Change Details - Documentation - Library - Foundation - Characters - StringBuilder - small speed tweak to StringBuilder::Append (const basic_string_view& s) ASCII - and use 'sv' suffix in tons of places calling APPEND on StringBuilder (trivial speed tweak) - StringBuilder ussage: use << instead of operator+= so for lines with sb += a + b + c we can avoid creating temporary string objects, so should be more efficient (not important cuz mustly in ToString code but may help a little here and there) - String - cleanup template requires of String/Character AsASCII/AsASCIIQuietly (use require expression saying methods used); and change API from calling into->clear() to requiring it be empty on call. - Minor cleanups to String::SubString_adjust_ - Charset class (new charset support) - CodeCvt now uses Charset arg (minimal but critical Codeset/CodeCvt) support needed to fix critical regression in HTTP Response reading code (isolatin1 charset). - DataExchange - StructFieldMetaInfo no longer uses fOffset internally - but instead a pointertomember (using inlinebuffer) - and now has member function GetAddressOfMember - JSON - kUseSAX_: SAX JSON reader support using boost JSON reader (about 10% speedup) - minor VariantValue ToString() cleanups - Memory - BlockAllocation - experimental kTryMemoryOrderOptimizations_ for block allocation - MemCmp now returns strong_ordering - InlineBuffer - InlineBuffer tweak operator=(&&) - Added InlineBuffer<>::empty method - Memory::OffsetOf() - many cleanups and attempts to get this working decently, portably, and constexpr. Essentially all failed, but better documented the status quo and laid out several possible implementations (prototyped/implemented). - just try avoiding use of this function (see StructFieldMetaInfo change) - ThirdPartyComponents - Build System and Testing - Github Actions - cleanups to save disk space since running out of space - RegressionTests - tweak perforamncetest sTimeMultiplier_ for running rleease under valgrind so runs faster - tweak default performance regtest -x factor - Scripts - configure - HasMakefileBugWorkaround_lto_skipping_undefined_incompatible workaround cleanups (minor - needed less than before, but still needed) - Docker - Windows - fixed startup HOME directory in MSYS windows docker container (already had fixed for cygwin) #### Release-Validation - Compilers Tested/Supported - g++ { 11, 12 } - Clang++ { unix: 13, 14, 15; XCode: 14.3 } - MSVC: { 17.7.4 } - OS/Platforms Tested/Supported - Windows - Windows 11 version 22H2 - mcr.microsoft.com/windows/servercore:ltsc2019 (build/run under docker) - cygwin (latest as of build-time from CHOCO) - MSYS (msys2-base-x86_64-20230127.sfx.exe) - WSL v2 - MacOS - 13.0.1 - arm64/m1 chip - Linux: { Ubuntu: [20.04, 22.04], Raspbian(cross-compiled) } - Hardware Tested/Supported - x86, x86_64, arm (linux/raspberrypi - cross-compiled), arm64 (macos/m1) - Sanitizers and Code Quality Validators - [ASan](https://github.com/google/sanitizers/wiki/AddressSanitizer), [TSan](https://github.com/google/sanitizers/wiki/ThreadSanitizerCppManual), [UBSan](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) - Valgrind (helgrind/memcheck) - [CodeQL](https://codeql.github.com/) - Build Systems - [GitHub Actions](https://github.com/SophistSolutions/Stroika/actions) - Regression tests: [Correctness-Results](Tests/HistoricalRegressionTestResults/3), [Performance-Results](Tests/HistoricalPerformanceRegressionTestResults/3) - Known (minor) issues with regression test output - raspberrypi - runs on raspberry pi with builds from newer gcc versions fails due to my inability to get the latest gcc lib installed on my raspberrypi --- ### 3.0d2 {2023-09-22} {[diff](../../compare/v3.0d1...v3.0d2)} #### TLDR - More String cleanups - SDKString now much cleaner/better documented, and more orthaganal, and uses span, and String SDKString related routines now indirected to, AllowMissingCharacterErrorsFlag support - performance - more deprecations of older APIs, and cleanups to CodeCvt logic, and related TextReader/Writer/BOM code - Improved UNICODE - constexpr Memory::OffsetOf() - at a cost... - merged (in a sense) StackBuffer/InlineBuffer (at least impls), and tweaked InlineBuffer more #### Change Details - Documentation - design overview docs tweaks - Library - Foundation - Cache - SynchronizedLRUCache call to base class needs () not {} to allow narrowing of args - Characters - Characters::Character - Character::As<> constexpr - fixed IPossibleCharacterRepresentation to include Character class; and added static overload of Character::IsASCII - new IUNICODECanUnambiguouslyConvertTo concept (and used to cleanup UTFConvert logic slightly) - Characters::CodeCvt: - CodeCvt::CodeCvt (span* guessFormatFrom) - use more concepts cleanup CodeCvt (private) - new CodeCvt methods Bytes2String and String2Bytes - Various cleanups - Added CodeCvt::GetOptions() function - More invalid character support for CodeCvt - esp BuiltinSingleByteTableCodePageRep_, and related cleanups - support for Options::fInvalidCharacterReplacement - note https://stroika.atlassian.net/browse/STK-983 and CodeCvt cleanups (obsoelte WindStringToNarrow) - Characters::CodePage - changed CodePage declaration from int to uint32_t (closer to what windows does); and document a bit better; and start migrating CodePage support into CodeCvt so we can deprecate the CodePageConverter code - more CodePage module cleanups and deprecations of most of the remaining CodePage code - Characters::Private_::WindowsNative_::WindowsNative_; and CodePageNotSupportedException cleanups to CodePage and CodeCvt code - new CharacterEncodingException and used in a few places - qGenTableDumper_ for CodeCvt; fixed typo/regression, and cosmetic - lose/deprecate UTF-7 support - Deprecate kCodePage_HEBREW ETC names and replace with WellKnownCodePages::kHebrew etc - deprecated CodePageConverter (and use CodeCvt instead); and renamed (through deprecation) kCodePage_UTF8 (ETC) to WellKnownCodePages::kUTF8 (ETC) - Characters MISC - kMaxBOMSize TextConvert - Characters/CString/Utilities support for char8_t and u8string; Characters::AsASCII support for u8string; and String::AsASCII and AsASCIIQuietly support for u8string - Characters::SDKChar/SDKString - simpliified / refactored APIs into stuff like Wide2SDK SDK2Wide in SDKString module... major cleanup - cleanups to recent chagnes and deprecated ASCIIStringToWide and WideStringToASCII and UTF8StringToWide use etc - new optional AllowMissingCharacterErrorsFlag flags in new String APIs in Characters::SDKString - more SDKString cleanups - deprecating GetDefaultSDKCodePage; deprecating *into overloads of various string functions; - Characters::String - new function String::NoramlizeTextToNL () - String AsASCII and AsASCIIQuietly /1 overloads deprecated - String::SubString_ () optimizations - and updated performance tests expectation numbers - String ASCII constant cleanups - New overload of Character::As - allowing producing more UTF char codes (utf_16 array or utf8 array) - Minor performance tweaks to String code - EqualsComparer::Cmp_Generic_ and ThreeWayComparer::Cmp_Generic_ use smaller StackBuffer (only important on windoz) cuz of chkstk optimization - optimize operator+ and String::Concatenate for String (for benchmark simple ascii - almost twice as fast) - adjust template overload for String class so GetData can be called with different stackbuffer builtin sizes - added regtest for converting ISOLATIN1 characters to UTF-8 - regtest for issue with String{..AsNarrowSDKString() - Characters::StringBuilder - fixed bugs with StringBuilder supportin char8_t BufferElementType and switched that to the default since it seems to perform better for (so far few) test cases - StringBuilder tweaks - As() overloads etc - performance tweaking Append() - Characters::UTFConvert - renamed UTFConverter to (better name) UTFConvert cuz I found a way to merge old UTFConver namespae code into this class (deprecated stuff) - Moved UnicodeExternalEncodings to UTFConvert.h; and changed option in UTFConvert fStrictMode to fInvalidCharacterReplacement, and started adding same to CodeCvt (incomplete) - support for Options::fInvalidCharacterReplacement - fixed bug with ComputeCharacterLength for zero length span - various fixes to UTFConverter code - MOSTLY - fixing the conversion from Latin1 to char8_t - that was fairly broken - Common - Properties - **not backward comaptible** - several properties named starting with 'p' renamed to just lower case prefix name as new (already documented) convention; - no need for backward compat here cuz not widely used interfaces and PITA to be backward compat and pretty obvious how it fails/updates - Configuration: - Compiler support - Attempt workaround for qCompilerAndStdLib_template_second_concept_Buggy - fixed compiler bug defines for gcc 12.3 - Vs2k2023 compiler support - silence a few warnings, lose errc::stream_timeout support cuz deprecated in C++23 - Compiler Bug Defines - qCompilerAndStdLib_release_bld_error_bad_obj_offset_Buggy seems still broken with clang++-14/15 - but may need more workarounds - Avoid no-return-local-addr warning on ubuntu 20.02 in configure script (LTO issue) - fixes to Stroika_Foundation_Debug_ATTRIBUTE_NO_SANITIZE_ADDRESS and Stroika_Foundation_Debug_ATTRIBUTE_NO_SANITIZE_UNDEFINED for VS - DataExchange - VariantValue - Allow VariantValue CTOR {ASCII} - Memory - BLOB - new BLOB regtest - minor tweaks to BLOB code - using final in rep instances - OffsetOf - use https://gist.github.com/graphitemaster/494f21190bb2c63c5516 to maybe makeConvertPointerToDataMemberToOffset work properly iwth non standard layout objects, and constexpr - renamed ConvertPointerToDataMemberToOffset -> OffsetOf (deprecated ConvertPointerToDataMemberToOffset name) - refactored OffsetOf to be constexpr, but needed todo workarounds for various compilers like: - -ftemplate-depth=5000 for g++ and similar for clang - minor fix to Memory::MemoryAllocator - InlineBuffer - speed tweak InlineBuffer push_back span() overload and added push_back_coerced variant methods - clenaup docs and minor tweaks to impl of InlineBuffer especailly reserve() code - StackBuffer - StackBuffer now reimplemented totally on top of InlineBuffer (only with different default sizes) - kStackBuffer_TargetInlineByteBufferSize tweaks - Span - Span support code cleanups - fixed bug with Memory::Intersects(spans) - handling of overlapping and documented and added regtest - IO::Network - not totally backward compatible - change to IO::Network::UniformResourceIdentification Query etc - to use u8string instead of string for utf8 strings - Streams - reorder seekable/not seekable so GetSeekable() type punning works more intuitively - iostreams - deprecate code in Streams/iostream/Utilities - use Stroika streams from now on, and use adapter from iostream to Stroika streams if you want utilities to access CodeCvt logic - convert use of deprecated iostream::ReadTextStream to TextReader::New (Streams::iostream::InputStreamFromStdIStream::New (in)).ReadAll ().As () - TextReader - new overloads of TextReader::New (AutomaticCodeCvtFlags); and use a bit in replacing obsolete use of CodePageGuesser and CodePageConverter with TextReader - new explicit overload of TextReader::New for only input stream and no specified seekability (copy from in stream by default) - InputStream - improved docs on InputStream ReadLine and rewrote ReadLines() so works if seekable or not - Traveral - Iterable - regtests to expose regression in Iterable<>::First, and a fix for it - Frameworks - Led - **not backward compatible** change to some Led frameworks APIs - that used CodePage* - use optional instead; especailly unsafe cuz one place *codePage=x - and unsure if anyting counted on that but I dont think so - Miscelaneous Coding - various template cleanups to use perfect forwarding - lose qCompilerAndStdLib_spanOfContainer_Buggy and all the bug workarounds - really still there - but only affects LIBC++ 14, and not macos version, and I have no more test cases where I can reproduce that (could if I worked at it but little point); could get the workaroudn back, but since unless/until I have a need/sitaution to test, no point - tweaked clang-format configuraiton settings; and new clang-format (version 16.0.5) - lose __cpp_designated_initializers workarounds and make format-code - ThirdPartyComponents - boost - 1.83.0 - curl - 8.2.1 - openssl - 3.1.2 - sqlite - 3430000 - Xerces - minor makefile simplifcations/cleanups - Build System and Testing - Scripts - configure - because of warnings from configure in libcurl, I moved the -D compile flags to CPPFLAGS (from CFLAGS/CXXFLAGS) and same with -I flags - testing - bubbled into many other componets, like had to fix - ScriptsLib/Makefile-CMake-Common.mk for recent CPPFLAGS change - for unubtu 20.04 - disable tsan and leak san since no longer working on that OS - in configure - if --only-if flag passed - default to -j8 instead of -j10 due to -flto=auto thing (may not help but test) - fixed serveral scripts to not default branch to v2.1-Dev or v3-Dev, but $(git symbolic-ref --short HEAD) - Misc - -flto=auto fix? - set -flto=auto when using lto to silence compiler warnings on gcc, but CANNOT do likewise for clang - generates error (related to qCompilerAndStdLib_release_bld_error_bad_obj_offset_Buggy) configure: use -flto=auto to silence warning - https://stackoverflow.com/questions/72218980/gcc-v12-1-warning-about-serial-compilation - VS2k2023 ASAN issue - workaround https://stroika.atlassian.net/browse/STK-984 ASAN issue with 17.7.0 release of vis studio - fix configure patch for working around ASAN MSVC bug - assume broken for any version past 193732822 til I see its fixed - ScriptsLib/Vs2kASANBugWorkaround as tmphack workaroudn for vs2k22 asan bug - Docker - Windows - docker container VS_17_7_4 - better docs/commetns on https://stroika.atlassian.net/browse/STK-742 and hints on workarounds - Github Actions - cleanup a few github action display names - Tests - Regression Tests - Performance - tweaked limits on expected regtests results for recent string optimizations - changed default for release performance builds to 2.5 instead of 5x for performance regtest - fixed RUN_PREFIX stuff to note have double $ in configure script/xml file, and fixed ApplyConfiguraiton to double dollar-signs so they are quoted in the makefile variable output clenaup kPrintOutIfFailsToMeetPerformanceExpectations_ in preformance regtests stuff and switch to only warning on 64 bit not 32 bit, and re-tuned performance regtest WARNING values (didnt affect comparabiliyt of results - just when we warn) - for 32bits and current statsu quo #### Release-Validation - Compilers Tested/Supported - g++ { 11, 12 } - Clang++ { unix: 13, 14, 15; XCode: 14.3 } - MSVC: { 17.7.4 } - OS/Platforms Tested/Supported - Windows - Windows 11 version 22H2 - mcr.microsoft.com/windows/servercore:ltsc2019 (build/run under docker) - cygwin (latest as of build-time from CHOCO) - MSYS (msys2-base-x86_64-20230127.sfx.exe) - WSL v2 - MacOS - 13.0.1 - arm64/m1 chip - Linux: { Ubuntu: [20.04, 22.04], Raspbian(cross-compiled) } - Hardware Tested/Supported - x86, x86_64, arm (linux/raspberrypi - cross-compiled), arm64 (macos/m1) - Sanitizers and Code Quality Validators - [ASan](https://github.com/google/sanitizers/wiki/AddressSanitizer), [TSan](https://github.com/google/sanitizers/wiki/ThreadSanitizerCppManual), [UBSan](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) - Valgrind (helgrind/memcheck) - [CodeQL](https://codeql.github.com/) - Build Systems - [GitHub Actions](https://github.com/SophistSolutions/Stroika/actions) - Regression tests: [Correctness-Results](Tests/HistoricalRegressionTestResults/3), [Performance-Results](Tests/HistoricalPerformanceRegressionTestResults/3) - Known (minor) issues with regression test output - raspberrypi - runs on raspberry pi with builds from newer gcc versions fails due to my inability to get the latest gcc lib installed on my raspberrypi --- ### 3.0d1 {2023-07-18} {[diff](../../compare/v2.1-Release...v3.0d1)} #### TLDR - Major changes, and much work-in-progress. Probably not stable. - Major revisions to String and UNICODE code - Improved scripting/automation (docker container build on github actions and github action workflow factoring better) - Use concepts thoroughly (replacing enable_if_t) - Require C++20 or later (which implies fewer compilers supported). - DateTime rewritten on top of C++20 date time library improvements #### Change Details - Documentation - [v3 Roadmap](https://github.com/SophistSolutions/Stroika/discussions/120) - [Design Overview.md](Documentation/Design%20Overview.md) - various cleanups, including new concept support, and revised docs about comparisons - Stroika Library - General - Require C++20 or later (Lose c++17 language compatability) - lose __cpp_impl_three_way_comparison checks since now assuming C++20 - makefile compile flags to require C++20 (not c++17), and some experimental c++23 compiler configs - deprecated macros LIKELY_ATTR and UNLIKELY_ATTR and use std names directly - marked NO_UNIQUE_ADDRESS_ATTR as DEPRECATED (unenforced) and use no_unique_address directly from now on since in C++20/assuming C++20 - require/check for __cpp_lib_chrono < 201907 C++20 chrono lib support - Lose Support for systems - Compiler - g++ 11 or later required - Visual Studio.Net - require vs2k22 or later - clang++ 13 or later (14.3 or later on macos/xcode) - tested up to clang++-15 - MacOS XCode 14.3 or later - if using libc++, require libc++ 14 or later, tested up to libc++ 15 - Platform - Ubuntu 18.04
no longer support Ubuntu 18.04; lose support for g++ versions before g++-11 (due to lack of chrono::month, etc) - Centos (no easy C++ 20 compilers and abandoned by IBM/redhat) - Concepts Usage - use if constexpr instead of #if qStroika_Foundation_Debug_AssertionsChecked in a few places
e.g. around qStroika_Foundation_Exection_Throw_TraceThrowpoint - use more perfect forwarding (e.g. use PREDICATE&& instead of const PREDICATE& - in response to (oblique) suggestion from https://www.reddit.com/r/cpp/comments/zl7ncq/stroika_an_opensource_modern_portable_threadsavvy/ comment/suggestion) - **not 100% backward compatible** - but changed most constexpr string constants throughout stroika from wstring_view to string_view - since they are all ascii. As long as used through String{} API, this will be 100% transparent. But if used directly, it may not compile (but hopefully in obvious ways) - remove_cv_t/remove_cvref_t - comments and use remove_cvref_t intead of remove_cv_t in one place (need todo more) - use std::remove_cvref_t directly - no longer need for indirection trhough obsolete Configuration::remove_cvref_t - use remove_cvref_t instead of decay_t, since clearer and sufficeint in most (all) cases - in many template concept usages, use derived_from instead of is_base_of_v - Foundation - Cache - TimedCache - fixed small CTOR bug with SynchronizedTimedCache - fix another regresion with SynchronizedTimedCache copy CTOR - Added regtest and used to fix bugs with TimedCache - antoher regtest to fix another regrssion with TimedCache - TimedCache (and SynchronizedTimedCache) use Time::Duration directly (no longer support overload taking DUrationSecondsType): should be mostly transparent/backward compatable, except for C++ 2 conversions on construction issue may cause some code to not build without explicit specificaiton (_duration) that something is a duration arg to TimedCache - TimedCache::GetElements -> TimedCache::Eleements() to match LRUCache naming (never released) - MANY not entirely backward compatible changes to Cache::TimedCache. MOSTLY, this was LOSING the template parameter TRACK_READ_ACCESS from DefaultTraits, and replacing it with LookupMarksDataAsRefreshed::eTreatFoundThroughLookupAsRefreshed being used rarely in Lookup and LookupValue calls as appropriate. This allowed making Lookup() methods const (thread implications). ALSO - use the nomenclature fresheness throughout TimedCache API, so GetTimeout deprecated, and now GetMinimumAllowedFreshness () (similarly for SetTimeout). DoBookkeeping () DEPRECATED (renamed to) PurgeSpoiledData; and Lookup() no longer calls 'clearold' - but really not needed since Add does now(depending on PurgeSpoiledDataFlagType flag to Add) so not that useful. For most use cases, no changes should be needed to calling code. NOTE STILL NOT YET IMPLEMETNED these changes in SynchronizedTimedCache (next) - GetElements() support in TimedCache, and use that in SynchronizedTimedCache copy constructor - Comments, cleanups, and extra optional arg to TimedCache::LookupValue (): https://stroika.atlassian.net/browse/STK-944 - comments and fixed minor recent regression in SynchronizedTimedCache::LookupValue - https://stroika.atlassian.net/browse/STK-944 -- use lock_guard not shared_lock in Cache/SynchronizedTimedCache (probably reverse in Stroika v3) - TimedCache now aggregates StatsType instead of inheriting (cuz now can use c++20 [[no_unique_address]]) - Make Foundation::Cache 'Statistics' classes use atomic, and be internally synchronized - CallerStalenessCache - added regression test (9d3c81a69968cdc618404a06575bcd194eb10a7a) to capture recent regression in sycnronized caller staleness cache caught in WTF - Characters - new ByteOrderMark flag; - Character - Added concepts - IBasicUNICODECodePoint - IUNICODECodePoint - IStdBasicStringCompatibleCharacter - IUNICODECanAlwaysConvertTo - IPossibleCharacterRepresentation - IUNICODECanUnambiguouslyConvertFrom - cleanup Character::IsASCII, Character::IsLatin1 and Character::IsASCIIOrLatin1 (eg use ranges) - new Character::IsASCIIOrLatin1 utility and used to refactor String rep construction a bit - so now more fully/accurately decides on creating Character_Latin1 reps - kCanUseMemCmpOptimization_ optimization on Character::Compare (CI) - Added Character::CheckASCII overload - Character (char16_t hiSurrogate, char16_t lowSurrogate) CTOR and related refactoring, and Character::GetSurrogatePair() method - simplify/cleanup Character class - Minor tweak/docs for Character::IsWhitespace () - new Characters::IsAscii/AsASCIIQuietly functions (for any unicode and char buf - string or stackbuffer - output) - loosed requires on Character::IsASCII (and renmaed from IsAscii); - tighten Character::As<> template so instead of just two specializations, uses requires so compiler not linker warn about bad arg types - Character::Compare - Added Character::Compare () overload for span - tried kUseStdTraitsCompare_, but no obvious difference - Compare_CS_() cannot use memcmp() - at least not portably - due to differnt byte orderings, but can still rewrite this to be faster - Character::Compare - now templated with concepts on CHAR_T, and moved to header, and span based (deprecated /4 overload) - fixed constexpr use on Character::Compare - CodeCvt - new CodeCvt<> template to replace use of std::codecvt, and integrate with new UTFConverter. - moved stome stuff from TextConvert to CodeCvt template - more of a swiss-army-knife - lose use of deprecated codecvt_utf8_utf16 etc functions (from all over the place) - lose LookupCodeConverter cuz codecvt stuff not easy to use (this API not well suited to codecvt limitaitons) and function largely replaced by new CodeCvt template - CString - cleanup Characters::CString:Length to use template requires instead of a bunch of specializations - much better! - String - refactored String::Concatenate (and generalized) - and made a few String methods like empty () etc noexcept - new String API for PeekData/GetData (allowing return of spans of different code-point types) - a few minor String fixes, including refactoring String::Copy so much more general/span friendly - String docs, cosmetic, and one or two noexcept fixes - completes first draft of changes to String public APIs (maybe all but deprecating mutability) - lose pair String::GetData () variation/overload, and updated all the code that used it to use the new style GetData(); added regtests for String::Replace(); minor cleanups; - **not backward compatible - but minor** - lose Characters/Concrete folder - and moved the stuff we still need either private into String.cpp or for String_Constant and String_ExternalMemoryOwnership_ApplicationLifetime - into the .h file (at least temporarily) - deprecated String_Constant and replaced wtih String::FromStringConstant static method (like String::FromASCII); and now migrated ALL reps so hidden inside String.cpp file - fixed bug / regression in String_Constant/String_ExternalMemoryOwnership_ApplicationLifetime - refactoring of the string reps - deprecated one overload (static) of String::AsASCIIQuietly - and have it delegate to new Character::AsASCIIQuietly - refactoring of String::IRep code - in preps for https://stroika.atlassian.net/browse/STK-684 string rep changes - cleanups for https://stroika.atlassian.net/browse/STK-965 String::c_str() changes - https://stroika.atlassian.net/browse/STK-965 and https://stroika.atlassian.net/browse/STK-684: **incompatible changes** but mostly minor - lose String::data method (never used); lose support for String::As () and String::As () - harder to tell but apparently never used; and added more utfxstring overloads for As() and cleaned up remaining c_str() usage - https://stroika.atlassian.net/browse/STK-965 https://stroika.atlassian.net/browse/STK-684 - cleanup String constructors.
BIG change (not backward compatible): InlineBuffer/StackBuffer now have operator T* explicit; and add method data() to let you access the pointer (to avoid confusion with a->b->a constructor issue).
Also data returns new type field (pointer) - but minor.
A few other small fixes/cleanups. - tweak mkWS_() overload - dont need Reserve .... call cuz dont internally in StringBuilder and better todo elsewise anyhow - use legacy UTF8_ typedef and directly use char8_t now - fixed locale code to use AsNarrowSDKString not AsUTF8 - lose -#if __cpp_char8_t >= 201811L check for char8_t; and changed (NOT BACKWARD COMPATIBLE) String::AsUTF8 default template arg from string to u8string; so to get old behjavior must change code from .AsUTF8() to .AsUTF8() - https://stroika.atlassian.net/browse/STK-965 - deprecated String::c_str() const version and did quickie (to be rewritten) non-const version and changed a bunch of (easy) code to use .As() to avoid const c_str () issue - fix use of deprecated String::c_str() - added String::c_str (Memory::StackBuffer* useBuf) const and started experimentally using - changed String::c_str (Memory::StackBuffer\ API and used in a few more places; and docs and related cleanups) - failed attempt to use new String GetData stuff - need to fix ctors for string rep construction first ofor ones doing construction - draft rewrite of String::Find () using new style data access - code cleanups, docs, and bug fixes to recent PeekData code in String class (and some classes renamed, some methods no static) - More progress on String conversion to new GetData<> logic, including changing what it hashes to so changed hardwired values in regtests for hash of strings - Draft new String::mk_ API - using spans - but still existing backends - more progress refactoring String constructors and mk_ provite routines - more cleanup/generalizing of String CTORs - deprecated string {from/to} - use span instead - and update code to avoid deprecated calls - Refactored String::FromUTF8() and deprecated /2 overload (use span instead) - refactor String::FromSDKString - fix recent checkins for String::PeekData (stricter compiler) - progress revising comments on String class; String::AsUTF32/AsUTF16 fixes for wstring; and continue migrating code from String::IRep to StringRepHelper_ - String::FromNarrowString/FromNarrowSDKString refactored/deprecate /2 overload - use Memory::eUninitialized on a bunch of StackBuffer construction calls as performance tweak - forgotten - as part of String code mostly - rewrite String::EqualsComparer and String::ThreeWayComparer using concepts to greatly simplfiy (havent profiled yet) - String code: fixed #if qStroika_Foundation_Debug_AssertionsChecked missing; tmphack fix to SubString_() so it no longer depends on c_str_peek returning non-null - forced c_str_peek for buffered string to return nullptr; and use new impl of c_str () that auto-patches with wrapper that returns non-null as needed - String impl refactoring - StringRepHelper_ -> StringRepHelperAllFitInSize_ and REP now TEMPLATED on CHAR_T - fixed bug with Find code for ascii optimized case, and supported creatming mk_span for ascii case - so now have first proof of concept nearly completed https://stroika.atlassian.net/browse/STK-684 - Major milestone - basically finsihed but polish - on https://stroika.atlassian.net/browse/STK-534, https://stroika.atlassian.net/browse/STK-684, and https://stroika.atlassian.net/browse/STK-965: no longer assume sizeof(Character) == sizeof (wchar_t), and now can have reps of strings of differnet backend/internal sizes; must review/tweak performance, but probably not bad right now, and still alot more polish relating to this needed - slight improvement on operator+ (STRINGISH,STRINGISH) - huge (but incomplete) change to String code - now allow String{string} - but ONLY if checked/assertions - that the string is ascii. _k checks at COMPILETIME that its ascii (or should) - rather meaning checks with asserts, and so no overhead except in debug builds; Not everwhere can we lose the L (format code still depends on wchar_t); but pretty soon everwhere else - esp if we redo format code - a few more cases using plain asciii string instead of L string - tons of changes - switching string constantts from L to plain ascii - esp using sv; and a few things like Activitiy ctors redone so more generic using STRINGLIKE_T - use plain String CTOR instead of String::FromASCII siunce about to mark that as deprecated, and its no longer needed - String::FromASCII () now marked as DEPRECATED (since you can just use String CTOR directly) - https://stroika.atlassian.net/browse/STK-296 - supported move CTORs for String class so can move from wstring&, or other std::basic_string types and re-use memory from those objects - code cleanups to new BufferedStringRep::Rep class (could help performance but untested) - fixed minor regressions and more performance tweaks (incomplete recent work on buffered string rep) - String performance enhancement - new FixedCapacityInlineStorageString_ impl - Minor tweak to String::mk_nocheck_justPickBufRep_ so also does 96 byte size (1.5 x64 cache lines) - String DynamicallyAllocatedString to replace use of (now obsolete internal) BufferedString_ - more cleanups to String code and revamp (perforamnce) StringWithCStr_ rep - enhanced/fixed String (documentation purpose only) static assertions about sizes - use final in String rep defintions - restructure FixedCapacityInlineStorageString_::Rep CTOR (and base class) to avoid UB failure on linux/g++ - dont access data til after initializing base class - incompatible change (but probbaly unused) - renamed String::FromISOLatin1 -> String::FromLatin1 - use ConvertibleToString concept on StringBuilder Append method - RegTests Updates - Test50a_UnicodeStringLiterals_ - experimental use of new IsSpanT/IsSpanT concepts in String CTOR - cleanup codecvt use (for locale) in String class (and docuemnt why still using) - StringWithCStr_ fixed to use IUNICODECanUnambiguouslyConvertFrom instead of IUnicodeCodePointOrPlainChar and use ASCII/LATIN1 for sharedptr reps depending on keepspandata returned on c_str() wrapper - cleanup String::mk_nocheck_ code/docs - loosen assert for String::c_str() for case of surrogates - minor tweaks to std::hash::operator() (const String& arg) - Add debugging code to StringRepHelperAllFitInSize_ rep makeiterator code - so it tracks count of running iterators and gives better error message when modified during use. Then deleted regression test that tested this case (since it generates failure/crash but not reliably) - dont allow modifying strings when running existing iterator; had to tweak sizes assumed asserts for extra debug code added - StringBuilder - major cleanup/fixes - using concepts, using span<> - a few method deprecations and may new overloads (cleanly captured with requires) - StringBuilder deprecate (testing) begin/end/c_str() methods - use newer StringBuilder Append API (span) - replace use of (now deprecated) StringBuilder begin/end with GetData() API - use Character_Compatible etc concpets to cleanup more of StringBuilder - deprecate StringBuilder begin/end/c_str() and add replacement API - GetData (prototype for what I will do in String) - fixed StringBuilder::Append performance regression (without ConstSpan stuff invokes String CTOR needlessly for common case) - StringBuilder no longer tracks separate Length field (use fData_.size()) - switched StringBuilder operators to use better requires clause - **not fully backward compatible - some use of StringBuilder must be changed to StringBuilder<> (not sure why CTA~DG no work); but changed StringBuilder to a template and parameterized a few things we will want to change/parameterize next - more (nearly complete) support for StringBuilder differnt configured backend type characters BufferElementType) - a few small fixes to StringBuilder for different BufferElementTyps and Append (CHAR_T now instead of just Character) - Minor code cleanup (use inlinebuffer push_back in StringBuilder::push_back) - cleanup StringBuilder.inl (simpler push_back code now performs OK for char32_t case) - UTFConverter - Lose deprecated CodePage UTFConvert code - and replace with new UTFConverter module - Abstracts various algorithms, like codecvt, portable UTF converter code, and third party library code converters. KEY concept is always UNICODE - always UTFX to UTFY. - Options::Implementation::eBoost_Locale (boost locale support for utf_to_utf) - qPlatform_Windows impl (now default on windows cuz seems fastest) - ToFloat/String2Int - **not backward compatible** - but minor - change in FloatConversion::ToStringOptions parameters - GetUseLocale now returns locale, not optional, and new GetUsingLocaleClassic, and a few changes in rarely used types related - ToFloat and String2Int overloads taking span<> (and more overloads to begin to make up for ambiguity - come back later and rewrite all this using requires) - refactoring of ToFloat () using span (not complete but better) - progress rewriting ToFloat code to be more C++20-ish/spanish etc - fixed small bug with ToFloat logic - peek at s not null terminated - finally a relatively simple way to reproduce https://stroika.atlassian.net/browse/STK-966 - clang specific ToFloat bug - fixed https://stroika.atlassian.net/browse/STK-966 - ToFloat failing - due to strtod requires NUL-termination, and new code didn't generally require/pass in NUL-terminated strings (did often enough to be confusing) - big simplification to String2Int code using concepts (hopefully still correct) - String2Int - method optimizes more span cases; and use Character::AsASCIIQuietly in place of deprecated String::AsASCIIQuietly - ToString - cleanup enable_if_t in ToString to use requires - deprecate a bunch of Characters/SDKString functions - e.g. WideStringToNarrowSDKString - not great organization and simpler API to just vector through string. A bit more expensive that way but not woth the extra api for stuff thats never used - Common - Compare - lose Common::strong_ordering and Common::kLess, kEquals, kGreater (**not backwards compatible**) - support directly/depend upon std c++ 20 three way compare/spaceship operator (no more conditional support for it not existing). - Deprecated Common::ThreeWayComparer and switched to using std::compare_three_way instead - a few small fixes to DeclareEqualsComparer and DeclareInOrderComparer to use decay_t (all this code needs careful review/rewrite in lgiht of new concept stuff etc) - new PossiblyInOrderComparer and InOrderComparer using concepts (experimental) - new concept EqualsComparer and PossiblyEqualsComparer. Added regtests, and used once (experimentally) in KeyedCollection - start converting more use of Common::EqualsComparer<> concept to simplify tempaltes intead of enable_if_t to sue the new Common::IEqualsCOmparer - and in doing so fixed longstanding worakround where I - had removed a (useful/needed) type constraint - added back and fixed calls now - deprecated IsEqualsComparer; instead use concept IEqualsComparer in place of enable_if_t (todo more of later) to replace - CountedValue - Concept cleanups CountedValue - GUID - added missing value_type so static_assert (IIterable); passes - define Common::GUID::size () const method - modernized GUID class (As template with requires, and noexcept and other cleanups) - added data() member to GUID so can be treated like a (constnat) span of bytes - GUID noexcept usage, and made it immutable (and fixed one dependency on its mutability) - cleanups to GUID::As() template, due to incompatability issues iwth clang++-15 - Configuration - Lose obsolete bug defines (for vs2k17) ~~~ qCompilerAndStdLib_alignas_Sometimes_Mysteriously_Buggy qCompilerAndStdLib_alignas_Sometimes_Mysteriously_Buggy qCompilerAndStdLib_static_inline_order_of_construction_Buggy qCompilerAndStdLib_maybe_unused_b4_auto_in_for_loop2_Buggy qCompilerAndStdLib_initializer_list_sometimes_very_Buggy qCompilerAndStdLib_maybe_unused_in_lambda_ignored_Buggy qCompilerAndStdLib_MemInitializerWithBitfield_Buggy qCompilerAndStdLib_usingOfEnumFailsToBringIntoScope_Buggy qCompilerAndStdLib_uniformInitializationsFailsOnIntSize_t_Buggy qCompilerAndStdLib_startupAppMagicStaticsNotWorkingFully_Buggy qCompilerAndStdLib_template_value_type_ambiguous_confusion_Buggy qCompilerAndStdLib_constexpr_call_constexpr_sometimes_internalError_Buggy qCompilerAndStdLib_if_constexpr_annoyingly_evaluates_untaken_path_Buggy qCompilerAndStdLib_attributes_before_template_in_Template_Buggy qCompilerAndStdLib_constexpr_stdinitializer_Buggy qCompiler_cpp17InlineStaticMemberOfClassDoubleDeleteAtExit_Buggy qCompilerAndStdLib_uninitialized_copy_n_Warning_Buggy #define qCompilerAndStdLib_TemplateTemplateWithTypeAlias_Buggy #define qCompilerAndStdLib_constexpr_union_enter_one_use_other_Buggy qCompilerAndStdLib_TemplateUsingOfTemplateOfTemplateSpecializationVariadic_Buggy qCompilerAndStdLib_lambda_expand_in_namespace_Buggy qCompilerAndStdLib_SpaceshipAutoGenForOpEqualsForCommonGUID_Buggy qCompiler_LimitLengthBeforeMainCrash_Buggy ~~~ - new Compiler bug defines - qCompilerAndStdLib_copy_warning_overflow_Buggy - qCompilerAndStdLib_stdlib_compare_three_way_present_but_Buggy - qCompilerAndStdLib_spanOfContainer_Buggy - qCompilerAndStdLib_stdlib_compare_three_way_missing_Buggy (trying to address quirkly lib++ support for three way compare) - qCompilerAndStdLib_DefaultMemberInitializerNeededEnclosingForDefaultFunArg_Buggy - qCompilerAndStdLib_RequiresNotMatchInlineOutOfLineForTemplateClassBeingDefined_Buggy - qCompilerAndStdLib_clangWithLibStdCPPStringConstexpr_Buggy - qCompilerAndStdLib_stdlib_ranges_pretty_broken_Buggy - qCompilerAndStdLib_template_Requires_templateDeclarationMatchesOutOfLine_Buggy - qCompilerAndStdLib_template_Requires_templateDeclarationMatchesOutOfLine2_Buggy - qCompilerAndStdLib_template_ForwardDeclareWithConceptsInTypenameCrasher_Buggy - qCompilerAndStdLib_requires_breaks_soemtimes_but_static_assert_ok_Buggy - qCompilerAndStdLib_template_Requires_constraint_not_treated_constexpr_Buggy - qCompilerAndStdLib_templateConstructorSpecialization_Buggy - Support compiler _MSC_VER_2k22_17Pt6_ bug define support - new _Stroika_Foundation_STRINGIFY_ macro - new Configuration::ConvertibleTo template class as helper for IIterableOf\ concept - Concepts.h - MAJOR reworking - losing nearly all preexisting concept-like meta functions/variables (e.g. HasLt) and replacing with appropriate IXXX (e..g IOperatorLt) concepts. - replace use of deprecated Configuration::IsTPredicate with std::predicate concept - and many other similar - BWA - bit_cast and byteswap BWA implementations - Containers - Many Submodules - major switch to using concepts, and requires (in place of enable_if_t) - not 100% backward compatible for container implementors, but otherwise sb fine; REMOVE _IRep methods for stuff like Keys() and default impl, and instead redo all this using Map(mcuh simpler/cleaner) - only done for Assocation, Bijection, and KeyedCollection so far; deprecated/renamed two Bijection methods Map/InverseMap to avoid name conflict with Iterable Map - restructured how factories work - no need for atomic - direct construction, and args often perfect forward on construction, often avoiding std::function - Many support optional Hints objects as factory construction argument to to be 'registered' as the default factory - AddAll - Use of concepts in AddAll usage, and several constructors that implicitly call AddAll - IsAddable_v - Lose continaer IsAddable_v template variable - cannot get workgin reasonably with concpet/contraints, and not used anywhere else, so lose it - and really almost same concept as ConvertibleTo so maybe just use that anyhow - LockFree - minor fruitless tweaks to LockFreeDataStructures/forward_list - DataStructures - new Array\: push_back - Array::Apply now takes SequencePolicy seq param, and used in Concrete reps (makes size bigger - not sure worth it) - (not backward compatible but to internal routine) change to DataStructure::Array - changed its Find() method to return optional, and more closely mimic LinkedList (so cloning code with if() not a problem) - Association - Added Association::operator[] () syntactic sugar - KeyedCollection - KeyedCollection rep Keys method now takes KEY rep as smartptr arg - Draft support for Concrete::KeyedCollection_stdhashset including regtests passing - (not backward compatible in minor ways) - KEY_EXTRACTOR no longer template parameter to CTOR or factory for KeyedCollection and its subclasses since part of the traits(was just default part of traits) - experiment using KeyedCollection_ExtractorCanBeDefaulted requires - tweak KeyedCollection CTORS (losing enable_if_t, and add requires in concrete constructors) - Docs/Samples - Mapping - **New** Mapping_stdhashmap - default Mapping factory to using Concrete::Mapping_stdhashmap (where applicable) - fixed SortedMapping::operator<=> - lose Mapping _IRep Keys/MappedValues use use base class Iterable::Map<> todo this (as before) - Adjusted regtest to take into account that order of elts can change due to Mapping now defaulting to non-sorted(hashmap) - Mapping - use requires so cleaer about Mapping::operator== and documented better as well the behavior - MultiSet - - new Multiset Top () and TopElements() methods - rewrote MultiSet Elements and UniqueElements() using Map/Generators (much simpler/cleaner, and no need for _IRep methods todo any of that) - fixed Multiset<> code to handle alternate 'countertype' besides default unsinged int - Sequence - added MOVE ctor for Sequence_stdvector taking std::vector<> - Set - new Set_Array implemetnation - SetFactory now uses Set_Array by default - lose unimplemented Concrete/Set_SparseArray cuz probably not worth doing - Stack - fixed bug with Containers::Stack (serious/rediculous); and improved regtests - Slight cleanup / performance boost of Stack factory and construction mechanism and more tests of said - Minor tweaks to Stack docs and code - Cryptograpy - Fixed Digester<> to fully support a RETURN_TYPE=Common::GUID - adding regression test and fixing template (worked with MD5 but now works with SuperFastHash and others) - Digest::ComputeDigest () and Digester<> etc - now support taking Iterable\ - so for example String - Digester ctor constexpr - Cryptography/Digest/HashBase - Significant speedup from Digester 'span' support (prelim) - on hashtable stuff from json parsing - new concept Digest::IHashFunction - Database - SQLite - fixed CompiledOptions::kThe.ENABLE_JSON1 for newwer sqlite - DataExchange - DataExchange::ValidationStrategy support on Date class, and other related cleanups - used that to replace (not backward compat but unimportant) Bijection::InjectivityViolationPolicy, and just introduced TimeOfDay::ThrowIfOutOfRangeFlag - with same meaning basically - Added draft support for ObjectVariantMapper::MakeCommonSerializer (OptionalSerializerOptions ...) so it can take explicit T serializer - ObjectVariantMapper - https://stroika.atlassian.net/browse/STK-743: added Containers::Adapters::IAddableTo and used teh concept in ObjectVariantMapper::MakeCommonSerializer_WithAdder - VariantValue - Add support to Stroika VariantValue so can be trivially constructed from boost::json::value, if Stroika built with boost - support VariantValue::As () - for full (easy) interoperability with boost (json support) - to some degreee fix bugs with comparing VariantValue objects, but mostly document https://stroika.atlassian.net/browse/STK-971 - BROKEN FOR CASE OF MAPPINGS. - loosened test case for comparing VariantValue output - parse/unparse json roundtriping - since using unorderedmap, must be more careful testing/comparing - Fixed https://stroika.atlassian.net/browse/STK-971 - VariantValue compare functions - and at same not - INCOMPATIBLE change - LOSING 'exactTypeMatchOnly' pareter to EqualsComparer/ThreeWayComparer functions for VariantValue (dont think ever used and documented didnt make much sense) - must be more careful comparing VariantValue for equality now - 5 == 5 no longer works - must save .ConvertTo(eInteger) - avoid needless operator= in VariantValue::CTOR (boost value), and cleanup use of operator= defs for VariantValue = use more concepts and hopefully fixed some copy/move stuff - Minor tweaks to VariantValue performance (final and mk_ instead of VariantValue CTOR) - Fixed https://stroika.atlassian.net/browse/STK-971 - added VariantValue::Normalize() method to do heavy lifting/factor logic for how things compared - Variant Reader/Writer - General - refactoring DataExchange/Variant/Writer code - better abstracting transformations; use that in (so far untested but probably solid) DataExchange::Variant::CharacterDelimitedLines readers/writers - added assertions Variant::Reader (not null rep); and refactored some Read calls to have new protected _ToByteReader and _ToCharacterReader, so can more easily re-use logic in other subclass constructors (some semantic change but trivial and should be no issue) - New utility (factoring) Variant::Reader::_ToByteReader (const Streams::InputStream\::Ptr& in) - CharacterDelimitedLines - Variant/CharacterDelimitedLines/Reader supported convert to VariantValues (basic Reader function) and added regtest of ReadMatrix use - better regression tets for new Variant::CharacterDelimitedLines::Writer - INI - Added INI::Reader ReadProfile overloads - DataExchange/Variant/INI progress cleanups - and first draft of Writer (so far untested) - regression tests for Variant::INI::Writer - DataExchange::Variant::INI Profile/Section ToString() support; and fixed regression test case for reader/writer - JSON - Added JSONTest code to PerformanceRegTest code (52) - Character::GetSurrogatePair() use in Variant/JSON/Writer - Added support for perfrmance test code to download and run json parser regtest on nlohmann/json : https://stroika.atlassian.net/browse/STK-781''' - in new boost support for Variant::JSON::Reader, wrap failures in BadFormatException - lose unneeded options.fCanReadPastEndOfJSONObjectInStream - JSON::Reader object now takes options, which allow you to select (defaults to) using boost to parse intead of stroika, but still can select the stroika parser - rewrote boost support in DataExchange/Variant/JSON/Reader - so should handle incrmentals etc, and stream of bytes or characters (with some caveats to fix there) - Performance - use new StreamReaderin JSON parser code (speedup for large files of around 15%) - large regtest file from 1.04 to .85 - rewrote part of JSON::Reader{}.Parse - really to use (Draft of new BufferedStreamReader_) - as performance improvement reading large json files - Slight speed tweak for JSON reader, using Containers::Concrete::Mapping_stdmap and move - JSON reader - Reader_Object_ - slight cleanup/simplification (with eye towards better performance but mostly clarity) - VariantValue CTOR from boost json uses Mapping_stdhashmap<>::STDHASHMAP optimization - slight performance tweak to Variant/JSON/Reader.cpp reading strings (only perftested windoze) - big performance tweak for windows json parser - using __forceinline on StringBuilder::Append (CHAR_T c) - switched JSON::Reader to use Mapping_stdhashmap::STDHASHMAP move ctor - slight performance tweak it appears - Debug - AssertExternallySynchronizedMutex - https://stroika.atlassian.net/browse/STK-734 - classes that use AssertExternallySynchronizedMutex, now AGGREGATE it rather than subclassing (use [[no-unique-address]]) - name changes on AssertExternallySynchronizedMutex::ReadLock -> AssertExternallySynchronizedMutex::ReadContext (and WriteContext) and unified names of instances - all to address confusion in posts on Reddit, about whether these are real locks or not - **not backward compatible** - AssertExternallySynchronizedMutex lock and unlock methods now non-const (all well documented now why, including why we leave shared_lock/shared_unlock as const - fSingleSharedLockThread_ in AssertExternallySynchronizedMutex for speed tweak (debug builds) - AssertExternallySynchronizedMutex further performance tweaks - Debug::AssertExternallySynchronizedMutex now hides fSharedContext, and accessed via (public was protected) GetSharedContext and SetAssertExternallySynchronizedMutexContext (not backward compatible but close); DataBase::Connection (and sucblasses) changes to use of AssertExternallySynchronizedMutex and chagnes to thread safety rules/docs for these classes (base unspecified if letter is threadsafe and for ODBC and SQLITE say they are not); implies some changes to GetSharedContext/SetAssertExternallySynchronizedMutexContext () usage for these classes (sb all internal and not noticable outside for hte most part) - qStroikaFoundationDebugAssertExternallySynchronizedMutexEnabled support - so AssertExternallySynchronizedMutexEnabled independently of qStroika_Foundation_Debug_AssertionsChecked (but defaults to qStroika_Foundation_Debug_AssertionsChecked and not Stroika_Foundation_Debug_Sanitizer_HAS_ThreadSanitizer) - use DropIntoDebuggerIfPresent () rather than direct call to windows DebugBreak() - fixed (serious regrssion - string visualizer) was broken, and updated older visual studio natvis files to match - new UncheckedDynamicPointerCast - Execution - windows CreateProcess appears to set hProcess to nullptr instead of INVALID_HANDLE_VALUE in some cases, so accomodate - use perfect forwarding for Finally - Synchronized<> uses requires instead of enable_if_t in a few places - Memory - BlockAllocation - Minor tweaks to Memory/BlockAllocator (clarity) - BLOB - re-engineer BLOB class to be more based on span (rather than pair - not fully backward compatible, but mostly just new apis supported (span) - Added BLOB::data () method - BLOB::As/0/1 supported - fixed (for now at least) BLOB::CTOR (container) - SmallStackBuffer, StackBuffer, InlineBuffer - Docs on StackBuffer, and adjusted default sizes for Windows, to avoid _chkstk calls, which helps performance (significant on boost_json-vv-parser: .\52\JSONTestData\large-dict.json test) - Refactored/Renamed SmallStackBuffer to InlineBuffer and StackBuffer - deprecated InlineBuffer::ReserveAtLeast and replacced with flag arg to reserve function, and simplified and probably improved performance of use of reserve internally in that class - like with inlinebuffer to stackbuffer - lose ReserverAtLeast - and replace with atLeast flag argument to reserve() and use that toughout class itself for stuff like grow. and cleanup use of GetScaledUpCapacity and special case for still inside inline buffer - fixed bug with Foundation/Memory/InlineBuffer in move CTOR (for non bytes case) - Memory::InlineBuffer - added kMinCapacity; and added static_assert (is_trivially_destructible_v) and lose destroy_elts call on resize_uninitialized - use noexcept in a few places where its known to be safe and esp relevent like StackBuffer/InlineBuffer data()/size()/capacity methods since that appears to affect buggy behavior in libc++ (and fixing it in stroika just a plus so better to avoid the bugs if I can) - used requires (is_trivially_copyable_v) on _uninitialized CTORs and methods for resizing for StackBuffer and InlineBuffer - a couple minor tweaks to InlineBuffer/StackBuffer - resize_uninitialized requres changes, and tweaked impl (dont case if > size just if > capacity) - minor correctness/performance tweaks to recent StackBuffer/InlineBuffer reserve() call changes - slight performance tweak for Memory/InlineBuffer and Memory/StackBuffer - delegate through HasEnoughCapacity_ which checks common constant (BUFSIZE) first - to avoid computing capacity when not needed (generally) - mostly cosmetic/constexpr clenaups to StackBuffer/InlineBuffer (and some \[\[likely]] annotations) - Minor progress on basic stroika json reader performance: StreamReader use a few more inlines and likelys, comments, and factored StackBuffer_DefaultInlineSize and InlineBuffer_DefaultInlineSize size calculation out of template declaration so separately callable/checkable and Memory::InlineBuffer in StringBuilder instead of default - Invariant calls in StackBuffer/InlineBuffer push_back - added span CTOR overload to StackBuffer and InlineBuffer - new InlineBuffer/StackBuffer ShrinkTo methods, and operator=(SPAN) support - InlineBuffer/StackBuffer push_back overloads (span) - StackBuffer resize (BOTH cases now) use Foundation::Containers::Support::ReserveTweaks::GetScaledUpCapacity - define config constant kStackBuffer_TargetInlineByteBufferSize to make better choices in other parts of the code - std::span
use std::span in a thourough way throughout Stroika - Memory span support - new utility Memory::ConstSpan - to workaround what APPEARS to be a defect in the design of span<> - see https://stackoverflow.com/questions/62688814/stdspanconst-t-as-parameter-in-function-template - refactor - migrate ConstSpan utility to file Memory/Span.h - New Memory CopySpanData and CopySpanData_StaticCast utilities - Memory::Intersects (SPANS) - and use in assertions for Memory::CopySpanData etc - switch many uses of std::copy to Memory::CopySpanData; CopySpanData_StaticCast now drops requirement about src/trg elt sizes being the same (and documented where handy); commnents - Added draft SpanOfT concept to Memory - further imporve concept SpanOfT adding static_asserts for docs and checking - renamed SpanOfT to IsSpanOfT, and added IsSpanT, and improved them all and documented better (works across extent) - new Memory::SpanReInterpretCast utility; - regtest for GetScaledUpCapacity () behavior - ValueOf - Memory::ValueOf constexpr - Somewhat dangerous (but good time for such risks) change to Memory::ValueOf - returning const& now. Documented in declaration why I believe this is safe/appropriate (what optional does) - MakeSharedPtr - new Memory::MakeSharedPtr; DELETED (not deprecated) MakeSharedPtr function in Memory for SharedPtr class cuz no longer really use this and I want to use the name for something else; Deprecated Iterable::MakeSmartPtr and switched to using Memory::MakeSharedPtr - Memory::SharedPtr now deprecated, and no longer used (even conditionally) - Added std::byte operator_b (unsigned long long b) to namespace Memory; and used it in a bunch of places - MemCpy/MemCmp - avoid calling memcpy with nullptr - use Memory::MemCmp isntead of memcpy to workaorund issue with nullptr passed/ubsan - switch Memory::MemCmp () to use memcpy where it can - did and used span overload for Memory::MemCmp - SharedByValue<>: fixed broken (and unused) rwget_ptr, and implemented new cget_ptr (pretty sure safe - havent thought about this in a while) - IO - Network - Added a couple more Execution::DeclareActivity in Networking code, so exceptions more obvious what failed; and added linux IPV6_MULTICAST_HOPS workaround to issue https://stroika.atlassian.net/browse/STK-578 - fixed Network::GetPrimaryInternetAddress () on windows to return NON-LOCAL address (I think already did this fine on unix) - InternetAddress - Added InternetAddress CTOR overloads from const char* and string_view - Socket - windows socket thread interuption - partial fix/woarkound for https://stroika.atlassian.net/browse/STK-964 - enuf to probably fix balance of https://stroika.atlassian.net/browse/STK-963 - URI - regtest for URI::SetScheme and docs - in URI class - use requires instead of unconstrained templates for polymorphic getter functions - Streams - cleanups to Streams/ExternallyOwnedMemoryInputStream - mostly using concepts in place of enable_if_t; but also extended to support char iterators for New with ELEMENT_TYPE=byte (for easier integration with stl/common c++ usage) - new StreamReader\ - Inputstream use requires instead of enable_if_t - OutputStream (start of) span support - Address (with static_assert) bug I ran into in StreamReader due to InlineBufferElementType_ hack for Character object - hopefully adequite to prevent in future) - TextWriter - deprecated InternallySynchronized overloads of new (use InternallySynchronizedOutputStream explicitly); and draft of support for creating TextWriter from CodeCvt and UnSeekable_UTFConverter_Rep_ - Major changes (depecation old api) for TextWriter - now pass in UnicodeExternalEncodings and ByteOrderMark or CodeCvt- placeholder tmphack impl of Foundation/Streams/TextToByteReader and redriected Variant/Reader code to it - changed TextWriter to defalt to NOT including BOM - Improved implemtnation of TextToByteReader (using new stream copy stuff) - but still weak -but probbaly good enuf for now - deprecate a few TextReader overloads (InternallySynchronizedInputOutputStream directly) - lose OutputStream.cpp and more refactoring to use requires instead of enable_if_t - maybe cleanup ReadAll/BLOB overload in InputStream (documented why this is so hard) - TextReader rewritten to use new CodeCvt instead of directly using std::codecvt - for speed and flexability and to avoid c++ deprecations - Time -All - fixes related to https://stroika.atlassian.net/browse/STK-950: imporved iso8601 datetime parsing, TimeOfDay CTOR overload with ThrowIfOutOfRangeFlag and use in a bunch of places (so better runtime validation of input dates) - Date - lose Date::kEmptyJulianRep - not 100% backward compatible, but very close - since we must have eliminated Date::empty() in Stroika 2.1 - fixed GLARING bug in ::DayDifference () - rewrite Date class to be based on chron::year_month_day - https://stroika.atlassian.net/browse/STK-793 - big changes to Date code - https://stroika.atlassian.net/browse/STK-668 - support full julian date range for Date (4000 BC to distant future - with caveats) - reanmed JulianRepType to JulianRepType - fixed GLARING bug in ::DayDifference () - lose MonthOfYear::eEmptyMonthOfYear, DayOfMonth::eEmptyDayOfMonth and Year::eEmptyYear - not totally backward compatble, but there wasn't any longer much of a sensible use case for these - deprecated Date::mdy/3, and replaced wtih mdy/0 - https://stroika.atlassian.net/browse/STK-793 - replaced Time::MonthOfYear enum with trivial wrapper on chrono::month - more cleanups of Date class - using month directly not MonthOfYear - mostly - re-implement Date class DayOfWeek as trivial subclass of weekday - more Date code cleanups - To/From JulianRep code takes optional DataExchange::ValidationStrategy, and Date::operator++ now deprecated (documented class immutable) - in Date code - replace DayOfMonth with use of chrono::day (but still support old name as construction wrapper) - Import a few date related chrono literals to Time namespace, and regtests and docs examples using them 1906y/May/12d == Date{1906y, May, 12d} - more Date cleanups, regtests and docs; and deprecated Date::AddDays() and replaced with Date::Add() and better overloads ofr operator+/operator- etc; similar for Date::Difference, and Date::DaysSince(now Since) - used \[[nodiscard]] in a couple places to help avoid bugs with mutable Date (Add method should not be discard result) - use \[[nodiscard]] in a few places; Year/Date/etc no longer have 'off sign' constructor support - caller must do the cast - DateTime - added optional parameter consumedCharacters to DateTime::ParseQuietly, and changed semantics for DateTime::Parse - to generally fail/exception with badly formatted (at least iso8601) datetimes (not just quietly ignore crap at the end); added regtest to reflect that and FIXED regression test I had checked in from sterling - this completes https://stroika.atlassian.net/browse/STK-950 (**NOTE NOT FULLY BACKWARD COMPATBILE** AS DateTime::Parse() is now a little more likely to throw) - Duration - no longer make Duration DCTORs from numbers be explicit - TimeOfDay - more constructor options for TimeOfDay (..., DataExchange::ValidationStrategy validationStrategy); - Timezone - cosmetic, and DataExchange::ValidationStrategy support on Timezones CTORs (and use in DateTime code show better validates/throws); and better https://www.rfc-editor.org/rfc/rfc822#section-5 timezone parsing - Misc - Support floating point _duration conversion operator; and make _duration literal operators also [[nodiscard]] - Range (traits) DifferenceToSizeT support, and used to fix regression in DateRange code - Traveral - Iterable - lose shared_from_this support in Iterable and various container subclasses, and String, etc... - New feature - Iterable\::Top - designed to address Sterls concern with 'SortedMultiset' - Iterable::_IteratorRepSharedPtr deprecated; get rid use - small cleanups to Iterable<> Generator code : fixed return value of Iterable::_SafeReadRepAccessor::_ConstGetRepSharedPtr () - mostly - lose unneeded dynamic_pointer_cast due to fix in iterable::accessor:: ConstGetRepSharedPtr () - deprecated IterableBase - refactor Iterable<>::_IRep code/apis - lose _Find_equal_to_default_implementation and _Find etc, and just do default impl of the Find/Find_equal_to etc implementations where possible and lose the overrides in each subclass that just called that helper mechanism. Appears to generate (at least testing on windows) basically same code (at least code size didnt change), and much simpler - facilitating future cleanups - changed impl of _IRep::Find_equal_to by default to call Find with seq - and no obvious performance diff, makes good a bit larger, but I think will pay off once I do seq support in Data structures - **not backwards compatible** change to Iterable<>::end() - went from static to instance method for ranges compatability - new IIterable concept - lose (**not backward compatible change**) shared_ptr argument Iterable<>::IRep::MakeIterator and Find() methods - replace most use of ExtractValueType_t and using IInputIterator amd IIterable in containers instead - deprecated Configuration::IsIterable_v - using ranges::range or IIterable - Iterator - deprecated Iterator<>::MakeSmartPtr - and use make_unique directly; Deprecated the using PtrImplementationTemplate in Iterator; deprecated Iterator::RepSmartPtr - deprecated Configuration::IsIterator_v and instead use concept std::input_iterator or appropriate std iterator, or new IInputIterator concept Iterator no longer inherites from IteratorBase: deprecated - Iterator::DEFAULT CTOR must exist for being range compatible (concept semiregular = std::copyable && std::default_initializable) - Iterator::GetEmptyIterator() noexcept - Range - IRange concept and used in partition code - Frameworks - Led - Tons of Led support cleanups - losing APIs like Led_SDKString2ANSI Led_SDK_String Led_SDK_Char etc, and replacing with already existing (long existing) Stroika Foundation equivilents - cleanups of obsolete Led framework APIs, and refactoring - lose Led_ThrowIfErrorHRESULT and use Platform::Windows::ThrowIfErrorHRESULT - tweak CATCH_AND_HANDLE_EXCEPTIONS_IN_HRESULT_FUNCTION; and use in sample apps - SSDP - SSDP server BasicServer, SearchResponder and PeriodicNotifier now all support optional IPVersionSupport flags, and bind both V4 and V6 versions of IP depending on flag provided (default both which is a change); AND other cleanups - several fixes and simplifications to SSDPServer sample and framework code (not fully backward compatible): set location.scheme in sample; changed API for SearchResponder and SearchResponder so use CTOR to specify arguments, and lose Run method (was pointless use of thread); fixed bug in combining urls in BasicServer so now should advertise / notify properly by default (at least this sample works well with stroika ssdpclient) - redo SSDP periodicNotifier class to use IntervalTimer (imposes new minor requirement on use - instantiating intervaltimermgr), and other related code simpliciations/cleanups) - fix/cleanup related to https://stroika.atlassian.net/browse/STK-963 - which would ahve fixed it - but had fixed something else first - now use Execution::WaitForIOReady in Server/SearchResponder so avoids blocking read until socket read (really this cahnge fixes another bug wihc is we were only waiting on one socket until stuff came in and then on the other); so searchrespnder should work much better now - SystemPerformance - define qSupport_SystemPerformance_Instruments_CPU_LoadAverage so also works on MacOS - WebServer - Added CORSOptions::ToString () const - ThirdPartyComponents - boost - 1.82.0 - lose TOOLSET_NAME=msvc-14.2 workaround no longer needed - libcurl - 8.1.2 - perl - use strawberryperl instead of activeperl on windows - seems bug for bug compatible, but better installation story, and seems for free of encumbrances - sqlite - 3.42.0 - zlib - 1.2.12 - disable ASM build for x64 windows zlib - and created jira ticket https://stroika.atlassian.net/browse/STK-905 to track future cleanup of makefile to reenable this (probably using cmake) - zlib experiemntal makefile fixes - lose a bunch of CMAKE_ARGS overrides in zlib makefile -already done in shared cmake include - but dont need the zlib Patches anymore - Comment out a bunch of stuff probbaly not needed on makefile anymore for windows zlib - lose (pointless and now wrong) #pragma comment(lib, "zlib.lib") - Samples - cleanup/simplify examples - in sample service, don't strip when building installer if IncludeDebugSymbolsInExecutables set - LedIt - fixed LedIt/LedLineIt app startup to now have Execution::Logger::Activator - SSDP - cosmeitc cleanups to SSDP Sample server, - one critical bugfix (new Stroika SSDPServer code more picky about order of writes/setting headers so set headers before write) - Tests - stop regression tests script immediately if build fails - no point in rest of tests and often runs more slowly cuz make tries to build again without jobs flag - Performance - JSON Performance - Added boost_json-parser to performance tests; guess dont need others since this is the fastest I've tried and easy to test against - add performance regression test for DoStroikaJSONParse_boost_json2Stk - in IO::Transfer regtest, also just warn - not fail - on timeouts - since remote network servers we ping often timeout - fixed bad regression test Test_05_ParseRegressionTest_3_ - badly formatted input - tiny progress on https://stroika.atlassian.net/browse/STK-747 jap locale character/number parsing (ToFloat regtests) - Build System - Clang-Format - a few small chantes to .clang-format file, and re-ran make format-code (mainly column limit set to 140, PenaltyExcessCharacter AllowShortEnumsOnASingleLine - configure - better error reporting in configure script - set configure script to default to --std=c++20 (effectively requiring g++ 9 or later - maybe 10 or later - we'll see) - change configure test for libc++ < version 11 - fail with good message - Added CMAKE variable to configure script - Default Configurations - Added **Profile** configuration for windows, since handy for doing profiling (not auto-built - just defined so can be easily used) - Docker - more cleanups to dockerfile for ubuntu 20.04 - Better docs about docker container windows build workarounds, and need to specify --network "Default Switch" in docker build script in one more place - tweak installed components for Ubuntu2004-RegressionTests/Dockerfile - Docker v3 in image names for v3 containers - Windows - vis studio docker container VS_17_6_4 - restructured build in dependent layers, so first compiler, then msys or cygwin layer - Fixed queer MSYS failures under docker - replace use of RunArgumentsWithCommonBuildVars with PATCH_PATH_FOR_TOOLPATH_ADDITION_IF_NEEDED since SIMPLER, former not working under DOCKER/MSYS anymore - probably related to https://stroika.atlassian.net/browse/STK-941 WORKAROUND NOT WORKING - Scripts - ApplyConfiguration - fixed to handle bad .vscode/c_cpp_properties.json files - if they were empty - it was not updating them, and leaving them empty - Misc - Update ScriptsLib/FormatCode to call ScriptsLib/GetMessageForMissingTool and updated ScriptsLib/GetMessageForMissingTool to give better suggestions for how to install for windows - RunRemoteRegressionTests - set /usr/local/bin first in path (needed to find right realpath in macos) - Skel tool - in skel makefile, delegate a few more top level phony makefile targets - Github actions/workflows - renamed github action to build-N-test - Merged separate DEBUG and RELEASE workflows into single workflow with build-v3-Docker-Containers.yml file - use macos 13 not macos latest for now on github actions - added new docker container build workflow - new github event run_all #### Release-Validation - Compilers Tested/Supported - g++ { 11, 12 } - Clang++ { unix: 13, 14, 15; XCode: 14.3 } - MSVC: { 17.6.4 } - OS/Platforms Tested/Supported - Windows - Windows 11 version 22H2 - mcr.microsoft.com/windows/servercore:ltsc2019 (build/run under docker) - WSL v2 - MacOS - 13.0 (Ventura) - arm64/m1 chip - Linux: { Ubuntu: [20.04, 22.04], Raspbian(cross-compiled) } - Hardware Tested/Supported - x86, x86_64, arm (linux/raspberrypi - cross-compiled), arm64 (macos/m1) - Sanitizers and Code Quality Validators - [ASan](https://github.com/google/sanitizers/wiki/AddressSanitizer), [TSan](https://github.com/google/sanitizers/wiki/ThreadSanitizerCppManual), [UBSan](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) - Valgrind (helgrind/memcheck) - [CodeQL](https://codeql.github.com/) - Build Systems - [GitHub Actions](https://github.com/SophistSolutions/Stroika/actions) - Regression tests: [Correctness-Results](Tests/HistoricalRegressionTestResults/3), [Performance-Results](Tests/HistoricalPerformanceRegressionTestResults/3) - Known (minor) issues with regression test output - raspberrypi - runs on raspberry pi with builds from newer gcc versions fails due to my inability to get the latest gcc lib installed on my raspberrypi --- ### 2.1.15 {2024-02-05} #### TLDR - Minor - Support more recent compilers/changes - in e.g. visual studio 17.8.x - Re-enable ASAN for for visual studio debug builds - found better workaround for [STK-984](https://stroika.atlassian.net/browse/STK-984) - configure LinkTime_CopyFilesToEXEDir. - Fix issue downloading thirdparty components - Updated many third party components to latest versions #### Change Details - Build System - Docker Containers - Visual studio use VS_16_11_33 and VS_17_8_5 - Configuration Scripts - LinkTime_CopyFilesToEXEDir in configure and make scripts; used to replace RUN_PREFIX hack and script hack to workaround MSFT ASAN bug/misfeature/regression; lose ScriptsLib/Vs2kASANBugWorkaround - Github actions - dont use specifc version of g++ for codeql test cuz on ubuntu latest - dont build boost since version of g++ used doesn't work with boost - Docs - update regtest docs - Library - Misc - basic support for _MSC_VER_2k22_17Pt8_ - update bug defines for latest macos/xcode etc - make format-code (clang-format version 16.0.5) - RegressionTests and Sanitizers - ThirdPartyComponents - curl - Version 8.5.0 - openssl - Adjusted FETCHURLS for openssl so should find older openssl builds for a while longer - Version 3.2.0 - boost - Version 1.84.0 - Disabled boost by default on gcc 8 and gcc 10, since fails to build on ubuntu (various reasons) - sqlite - Version 3.45.0 #### Release-Validation - Compilers Tested/Supported - g++ { 8, 9, 10, 11, 12 } - Clang++ { unix: 7, 8, 9, 10, 11, 12, 13, 14; XCode: 13, 15 } - MSVC: { 15.9.50, 16.11.33, 17.8.4 } - OS/Platforms Tested/Supported - Windows - Windows 10 version 22H2 - Windows 11 version 23H2 - mcr.microsoft.com/windows/servercore:ltsc2019 (build/run under docker) - WSL v2 - MacOS - 11.4 (Big Sur) - x86_64 - 14.0 (Ventura) - arm64/m1 chip - Linux: { Ubuntu: [18.04, 20.04, 22.04], Raspbian(cross-compiled) } - Hardware Tested/Supported - x86, x86_64, arm (linux/raspberrypi - cross-compiled), arm64 (macos/m1) - Sanitizers and Code Quality Validators - [ASan](https://github.com/google/sanitizers/wiki/AddressSanitizer), [TSan](https://github.com/google/sanitizers/wiki/ThreadSanitizerCppManual), [UBSan](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) - Valgrind (helgrind/memcheck) - [CodeQL](https://codeql.github.com/) - Build Systems - [GitHub Actions](https://github.com/SophistSolutions/Stroika/actions) - Regression tests: [Correctness-Results](Tests/HistoricalRegressionTestResults/2.1), [Performance-Results](Tests/HistoricalPerformanceRegressionTestResults/2.1) - Known (minor) issues with regression test output - raspberrypi - 'badssl.com site failed with fFailConnectionIfSSLCertificateInvalid = false: SSL peer certificate or SSH remote key was not OK (havent investigated but seems minor) - Cross-compiled from Ubuntu 22.04 has a number of failures, un-investigated (will address in Stroika v3) - VS2k17 - zillions of warnings due to vs2k17 not properly supporting inline variables (hard to workaround with constexpr) --- ### 2.1.14 {2023-09-07} #### TLDR - Support visual studio.net 2022 17.7.x - Redo build of docker windows msys docker containers so more automated (better in v3, partial backport) - and so works again building some third party component libraries - Disable ASAN by default for visual studio debug builds since MSFT broke [STK-984](https://stroika.atlassian.net/browse/STK-984) in 17.7.x. #### Change Details - Build System - Docker Containers - Restructure Windows docker container build (borrowed much from v3 - mostly automated) - use docker containers from v3 - or dont use msys docker containers - VS_17_7_1 in docker file - Cosmetic - make format-code with new version of clang-format - configure - Adjust configure genration of CWARNINGS_FLAGS for gcc/clang to fit more with v3-Stroika and use no-unqualified-std-cast-call - workaround https://stroika.atlassian.net/browse/STK-984 ASAN issue with 17.7.0 release of vis studio (for now disable ASAN by default) - https://bugs.launchpad.net/ubuntu/+source/gcc-9/+bug/2029910 a avoid tsan on Ubuntu 20.04 of only-if-compiler used in configure - Library - Misc - support _MSC_VER_2k22_17Pt7_ bug defines; lose support of deprecated errc::stream_timeout; - Foundation - Memory - lose unneeded unhelpful STLAllocator arg in LeakTrackingGeneralPurposeAllocator utility cuz breaks on clang++7 and unneeded/unuseful - RegressionTests and Sanitizers - in IO::Transfer regtest, also just warn - not fail - on timeouts - since remote network servers we ping often timeout (migrate from v3-branch) - ThirdPartyComponents - Use StrawberyPerl instead of ActivePerl for building openssl - OpenSSL - redo makefile using cmake, and StrawberryPerl (reason was compat with msys inside docker container) - zlib - redo makefile using cmake (reason was compat with msys inside docker container) - lose unneeed pragam comment lib zlib.lib (needed to lose due to rename, but pragma comment not needed anyhow) use strawberryperl instead of activeperl on windows - seems bug for bug compatible, but better installation story, and seems for free of encumbrances #### Release-Validation - Compilers Tested/Supported - g++ { 8, 9, 10, 11, 12 } - Clang++ { unix: 7, 8, 9, 10, 11, 12, 13, 14; XCode: 13, 14 } - MSVC: { 15.9.50, 16.11.25, 17.7.1 } - OS/Platforms Tested/Supported - Windows - Windows 10 version 22H2 - Windows 11 version 22H2 - mcr.microsoft.com/windows/servercore:ltsc2019 (build/run under docker) - WSL v2 - MacOS - 11.4 (Big Sur) - x86_64 - 13.0.1 (Ventura) - arm64/m1 chip - Linux: { Ubuntu: [18.04, 20.04, 22.04], Raspbian(cross-compiled) } - Hardware Tested/Supported - x86, x86_64, arm (linux/raspberrypi - cross-compiled), arm64 (macos/m1) - Sanitizers and Code Quality Validators - [ASan](https://github.com/google/sanitizers/wiki/AddressSanitizer), [TSan](https://github.com/google/sanitizers/wiki/ThreadSanitizerCppManual), [UBSan](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) - Valgrind (helgrind/memcheck) - [CodeQL](https://codeql.github.com/) - Build Systems - [GitHub Actions](https://github.com/SophistSolutions/Stroika/actions) - Regression tests: [Correctness-Results](Tests/HistoricalRegressionTestResults/2.1), [Performance-Results](Tests/HistoricalPerformanceRegressionTestResults/2.1) - Known (minor) issues with regression test output - raspberrypi - 'badssl.com site failed with fFailConnectionIfSSLCertificateInvalid = false: SSL peer certificate or SSH remote key was not OK (havent investigated but seems minor) - runs on raspberry pi with builds from newer gcc versions fails due to my inability to get the latest gcc lib installed on my raspberrypi - tests don't run when built from Ubuntu 22.04 due to glibc version - VS2k17 - zillions of warnings due to vs2k17 not properly supporting inline variables (hard to workaround with constexpr) - VS2k22 - ASAN builds disabled in vs2k22 builds due to [STK-984](https://stroika.atlassian.net/browse/STK-984) --- ### 2.1.13 {2023-04-14} #### TLDR - [STK-977](https://stroika.atlassian.net/browse/STK-977) - workaround for CORS issue with PATCH - Support Visual Studio.net 2022 17.5 release - Fix bug with Collection<>::Remove/RemoveAt, causing extremely rare crasher (patched iterator) which caused webserver to crash every few days #### Change Details - Build System - configure - Added VSVARS_WindowsSdkDir, VSVARS_WindowsSDKVersion, VSVARS_VSINSTALLDIR, VSVARS_VCToolsInstallDir to configuration (configure) on windows, and used VSVARS_VCToolsInstallDir to fix autodetect logic for FEATUREFLAG_ATLMFC to look for just the rihgt version of the compiler we are using - for atlmfc - dont emit FeatureFlag_ATLMFC on unix platforms (not windows) - For windows docker containers: Upped visual studio installer verison to VS_17_5_2; upped MSYS_20230127; and providered workaround to failed install of ATLMFC for vs2k22 17.5.x - Compiler and System Compatability - VS_17_5_2 - update bug defines for _MSC_VER_2k22_17Pt5_ - VS_16_11_24 - Library - Foundation - Characters - changed ToString (shared_ptr<> and unique_ptr<>) to print address, not indirect to value - Containers - DataStructures - Added a bunch of asertions that iterators match thier owning data object when opearting on data structures in apis taking one of those iterators - LinkedList - minor tweak to LinkedList remove code - sb no semantic diff, just docs, and clearer - Collection - fixed serious bug with framework webserver crashing rarely (every couple days) - issue was _SafeReadWriteRepAccessor intead of _GetWritableRepAndPatchAssociatedIterator in Collection remove function Besides this fix, also add more asserts to containers to detect better in the future - fixed Collection::Contains - compare with this->end not nullptr - Concreete - Collection_stdforward_list:... RemoveAt - fixed buggy Collection_stdforward_list:... RemoveAt, and re-enabled the RunTestsWithEquals_, equal_to> () test - Debug - emit flags kBuiltWithThreadSanitizer kBuiltWithUndefinedBehaviorSanitizer in Trace startup output - IO::Network::HTTP - new http status code kTooManyRequests - Frameworks - WebServer - [STK-977](https://stroika.atlassian.net/browse/STK-977) - workaround for now CORS issue with PATCH (but leave JIRA ticket open for v3 to do a better job dynamically) - ThirdPartyComponents - libcurl 7.88.1 - sqlite 3.41.1 - openssl 3.1.0 - RegressionTests and Sanitizers - workaround StatusCodes::kTooManyRequests error in regtests update regtest is e.IsServerErorr () - added or e.GetStatus () == IO::Network::HTTP::StatusCodes::kTooManyRequests - fixed collection TestWithContainersEquals testing; and added TestLotsOfAddsAndRemovesByValue_ to mimic what we do with framework/webserver and connections - turns out didn't capture real issue #### Release-Validation - Compilers Tested/Supported - g++ { 8, 9, 10, 11, 12 } - Clang++ { unix: 7, 8, 9, 10, 11, 12, 13, 14; XCode: 13, 14 } - MSVC: { 15.9.50, 16.11.25, 17.5.2} - OS/Platforms Tested/Supported - Windows - Windows 10 version 22H2 - Windows 11 version 22H2 - mcr.microsoft.com/windows/servercore:ltsc2019 (build/run under docker) - WSL v2 - MacOS - 11.4 (Big Sur) - x86_64 - 13.0 (Ventura) - arm64/m1 chip - Linux: { Ubuntu: [18.04, 20.04, 22.04], Raspbian(cross-compiled) } - Hardware Tested/Supported - x86, x86_64, arm (linux/raspberrypi - cross-compiled), arm64 (macos/m1) - Sanitizers and Code Quality Validators - [ASan](https://github.com/google/sanitizers/wiki/AddressSanitizer), [TSan](https://github.com/google/sanitizers/wiki/ThreadSanitizerCppManual), [UBSan](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) - Valgrind (helgrind/memcheck) - [CodeQL](https://codeql.github.com/) - Build Systems - [GitHub Actions](https://github.com/SophistSolutions/Stroika/actions) - Regression tests: [Correctness-Results](Tests/HistoricalRegressionTestResults/2.1), [Performance-Results](Tests/HistoricalPerformanceRegressionTestResults/2.1) - Known (minor) issues with regression test output - raspberrypi - 'badssl.com site failed with fFailConnectionIfSSLCertificateInvalid = false: SSL peer certificate or SSH remote key was not OK (havent investigated but seems minor) - runs on raspberry pi with builds from newer gcc versions fails due to my inability to get the latest gcc lib installed on my raspberrypi - tests don't run when built from Ubuntu 22.04 due to glibc version - VS2k17 - zillions of warnings due to vs2k17 not properly supporting inline variables (hard to workaround with constexpr) - VS2k22 - ASAN builds with MFC produce 'warning LNK4006: "void \* \_\_cdecl operator new...' ... reported to MSFT --- ### 2.1.12 {2022-12-12} #### TLDR - Fixed subtle issue with CORS and HTTP Cache setting - https://blog.keul.it/chrome-cors-issue-due-to-cache/ - Vary: Origin - Tweaked QUICK_BUILD settings, so rebuild significantly faster on windows (when you rebuild third party components), and slower for full Stroika regressions tests since now sets QUICK_BUILD=0. - Fixed small issue with In ApplyConfiguration updating .vscode/c_cpp_properties.json #### Change Details - Build System - Tweaked windows support for QUICK_BUILD- build time time make CONFIGURATION=Debug third-party-components dropped from realtime 9m50s to 5m54s - Set QUICK_BUILD=0 on regression tests in RegressionTests script - In ApplyConfiguration - added myDefaultIncludePath to env section and used ${myDefaultIncludePath} in include paths generated, in .vscode/c_cpp_properties.json generated; PURPOSE is to allow apps like IPAM to add extra include paths to config and not have them overwritten by apply-configuration calls. - set RASPBERRYPI_REMOTE_MACHINE in Regression-Tests.md so easier to remember (my current DNS not setup right on my new router) - added ScriptsLib/Shared/Skel-Templates/.vscode/.gitignore - Compiler and System Compatability - in docker file windows, use env:VS_17_4_2 - Library - Frameworks - WebServer - In WebServer/ConnectionManager CORS support, add HTTP response header Vary: Origin to fDefaultResponseHeaders to address probable issue with CORS (see https://blog.keul.it/chrome-cors-issue-due-to-cache/) - Lose WeakAssert fEffectiveOptions_.fDefaultResponseHeaders->vary () == nullopt cuz we now set it to not null - ThirdPartyComponents - sqlite 3.40.00 #### Release-Validation - Compilers Tested/Supported - g++ { 8, 9, 10, 11, 12 } - Clang++ { unix: 7, 8, 9, 10, 11, 12, 13, 14; XCode: 13, 14 } - MSVC: { 15.9.50, 16.11.21, 17.4.1 } - OS/Platforms Tested/Supported - Windows - Windows 10 version 22H2 - Windows 11 version 22H2 - mcr.microsoft.com/windows/servercore:ltsc2019 (build/run under docker) - WSL v2 - MacOS - 11.4 (Big Sur) - x86_64 - 13.0 (Ventura) - arm64/m1 chip - Linux: { Ubuntu: [18.04, 20.04, 22.04], Raspbian(cross-compiled) } - Hardware Tested/Supported - x86, x86_64, arm (linux/raspberrypi - cross-compiled), arm64 (macos/m1) - Sanitizers and Code Quality Validators - [ASan](https://github.com/google/sanitizers/wiki/AddressSanitizer), [TSan](https://github.com/google/sanitizers/wiki/ThreadSanitizerCppManual), [UBSan](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) - Valgrind (helgrind/memcheck) - [CodeQL](https://codeql.github.com/) - Build Systems - [GitHub Actions](https://github.com/SophistSolutions/Stroika/actions) - Regression tests: [Correctness-Results](Tests/HistoricalRegressionTestResults/2.1), [Performance-Results](Tests/HistoricalPerformanceRegressionTestResults/2.1) - Known (minor) issues with regression test output - raspberrypi - 'badssl.com site failed with fFailConnectionIfSSLCertificateInvalid = false: SSL peer certificate or SSH remote key was not OK (havent investigated but seems minor) - runs on raspberry pi with builds from newer gcc versions fails due to my inability to get the latest gcc lib installed on my raspberrypi - tests don't run when built from Ubuntu 22.04 due to glibc version - VS2k17 - zillions of warnings due to vs2k17 not properly supporting inline variables (hard to workaround with constexpr) - VS2k22 - ASAN builds with MFC produce 'warning LNK4006: "void \* \_\_cdecl operator new...' ... reported to MSFT --- ### 2.1.11 {2022-11-29} #### TLDR - Fixed Execution::Function (and std::function) ToString () support, and made Execution::Function resistent to issue with gcc 10 re-use of function target pointers, so operator== now works properly regardless - Several IntervalTimer cleanups / improvements (which turned out irrelevant, was mainly the Execution::Function::operator== issue that was causing trouble) - fix: https://stroika.atlassian.net/browse/STK-957 - URI parse with [] in authority/hostname - fixed https://stroika.atlassian.net/browse/STK-956 - was really issue with Cache/SynchronizedTimedCache - bogus assert warning (fix was already in the v3 branch for a while) #### Change Details - Build System - RaspberryPi remote scripting host specification - added RASPBERRYPI_REMOTE_MACHINE support to ScriptsLib/RunRemoteRegressionTests - hopefully fixed ScriptsLib/RunRemoteRegressionTests to pass along more remote args - Library - Docs/comments/examples - Foundation - Cache - fixed https://stroika.atlassian.net/browse/STK-956 - was really issue with Cache/SynchronizedTimedCache const stuff (already fixed better in v3 but hopefully OK workaround for now in v2.1) - Characters - Characters::ToString() support for std::function and Execution::Function - Debug - new Debug macro WeakVerify () - cosmetic cleanus to Debug::AssertExternallySynchronizedMutex - Execution - Function - https://stroika.atlassian.net/browse/STK-960 Fixed bug (only seen on g++-10 release occasionally) - where two different lambdas produced the SAME target address (probably an optimizer/thunk thing). Better documented how Function class works, and make it resistent to that sort of optimization/causing bug - IntervalTimer - new IntervalTimer::RegisteredTask with ToString method, and IntervalTimer::Manager::GetAllRegisteredTasks () mainly for the purpose of debugging - assertions in IntervalTimer::Manager code - MAYBE significant bugfix - IntervalTimer::Adder must not define fRepeatInterval_ as const& - IntervalTimer default impl - added assertions and debugging code, and supported hysteresis - fixed bug with Execution/IntervalTimer - must fDataChanged_.Set () on data changes - IntervalTimer: return/use RegisteredTaskCollection (KeyedCollection) and require/assert that tasks added unique, and related cleanups - IO::Networking - fix: https://stroika.atlassian.net/browse/STK-957 - URI parse with [] in authority/hostname - deprecate kMustRevalidatePrivate and kMustRevalidatePublic and added comments - Frameworks - SSDP - Allow handling Advertisements with corrupt fLocation (since we already supported one with a missing Location) - minor tweaks to UPnP/DeviceDescription ToString() method #### Release-Validation - Compilers Tested/Supported - g++ { 8, 9, 10, 11, 12 } - Clang++ { unix: 7, 8, 9, 10, 11, 12, 13, 14; XCode: 13, 14 } - MSVC: { 15.9.50, 16.11.21, 17.4.1 } - OS/Platforms Tested/Supported - Windows - Windows 10 version 22H2 - Windows 11 version 22H2 - mcr.microsoft.com/windows/servercore:ltsc2019 (build/run under docker) - WSL v2 - MacOS - 11.4 (Big Sur) - x86_64 - 13.0 (Ventura) - arm64/m1 chip - Linux: { Ubuntu: [18.04, 20.04, 22.04], Raspbian(cross-compiled) } - Hardware Tested/Supported - x86, x86_64, arm (linux/raspberrypi - cross-compiled), arm64 (macos/m1) - Sanitizers and Code Quality Validators - [ASan](https://github.com/google/sanitizers/wiki/AddressSanitizer), [TSan](https://github.com/google/sanitizers/wiki/ThreadSanitizerCppManual), [UBSan](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) - Valgrind (helgrind/memcheck) - [CodeQL](https://codeql.github.com/) - Build Systems - [GitHub Actions](https://github.com/SophistSolutions/Stroika/actions) - Regression tests: [Correctness-Results](Tests/HistoricalRegressionTestResults/2.1), [Performance-Results](Tests/HistoricalPerformanceRegressionTestResults/2.1) - Known (minor) issues with regression test output - raspberrypi - 'badssl.com site failed with fFailConnectionIfSSLCertificateInvalid = false: SSL peer certificate or SSH remote key was not OK (havent investigated but seems minor) - runs on raspberry pi with builds from newer gcc versions fails due to my inability to get the latest gcc lib installed on my raspberrypi - tests don't run when built from Ubuntu 22.04 due to glibc version - VS2k17 - zillions of warnings due to vs2k17 not properly supporting inline variables (hard to workaround with constexpr) - VS2k22 - ASAN builds with MFC produce 'warning LNK4006: "void \* \_\_cdecl operator new...' ... reported to MSFT --- ### 2.1.10 {2022-11-21} #### TLDR - Deprecated Iterable\::Select, and replaced with improved Iterable\::Map - Deprecated Iterable\::Accumulate, and replaced wtih Iterable\::Reduce - Significant improvements to ObjectVariantMapper::AddClass (and AddSubClass, and TypeMapping/etc declarations/constructors) code - more flexible/easy to use, but not 100% backward compatible (but with feature likely VERY rarely used). - Fixed startup bug/regression in LedIt/LedLineIt sample apps #### Change Details - Compiler and System Compatability - docker use VS_17_4_1 - Library - Docs/comments/notes - Foundation - Containers - Mapping::insert () added - DataExchange - ObjectVariantMapper - Significant change: use Mapping<> instead of map<> internally, and allow fFieldMetaInfo in StructFieldInf to be missing, and interpret that is a reference to whole object (to allow for - to be better documentd/cleaned up) - support for 'generic properties'; added (starter) example of such to Serialization sample (Try3) - simplified TypeMappingDetails constructors slightly (sb no semantic diff - just cleaned up declarations a bit) - TypeMappingDetails now allows nullptr mapper objects (to for from, and documented behavior for each); used in sample for readonly property; added one more overloaded CTOR for TypeMappingDetails - just specifying converter methods, and docuemtned jira ticket https://stroika.atlassian.net/browse/STK-955 - to further clean this up in v3 - **incompatible change to ObjectVariantMapper::AddClass/AddSubclass** (but improvement) - use const optional& extends instead of optional and nowhere I know of used optional preflightBeforeToObject parameter; and added MakeClassSerializer () method - IO::Networking - added CIDR::operator< for older C++ - Traversal - Iterable - Added new overloads of Iterable<>::Select, taking container to be mapped to directly (and regtest for same), and renamed Iterable::Select to Iterable::Map, and deprecated Iterable<>::Select name; and new arg to Iterable::Map, so you can directly specify Addable container to add into. - Deprecated name Iterable::Accumulate: use Iterable<>::Reduce instead (more standard/commonly used name) - Samples - fixed LedIt/LedLineIt app startup to now have Execution::Logger::Activator #### Release-Validation - Compilers Tested/Supported - g++ { 8, 9, 10, 11, 12 } - Clang++ { unix: 7, 8, 9, 10, 11, 12, 13, 14; XCode: 13, 14 } - MSVC: { 15.9.50, 16.11.21, 17.4.1 } - OS/Platforms Tested/Supported - Windows - Windows 10 version 22H2 - Windows 11 version 22H2 - mcr.microsoft.com/windows/servercore:ltsc2019 (build/run under docker) - WSL v2 - MacOS - 11.4 (Big Sur) - x86_64 - 13.0 (Ventura) - arm64/m1 chip - Linux: { Ubuntu: [18.04, 20.04, 22.04], Raspbian(cross-compiled) } - Hardware Tested/Supported - x86, x86_64, arm (linux/raspberrypi - cross-compiled), arm64 (macos/m1) - Sanitizers and Code Quality Validators - [ASan](https://github.com/google/sanitizers/wiki/AddressSanitizer), [TSan](https://github.com/google/sanitizers/wiki/ThreadSanitizerCppManual), [UBSan](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) - Valgrind (helgrind/memcheck) - [CodeQL](https://codeql.github.com/) - Build Systems - [GitHub Actions](https://github.com/SophistSolutions/Stroika/actions) - Regression tests: [Correctness-Results](Tests/HistoricalRegressionTestResults/2.1), [Performance-Results](Tests/HistoricalPerformanceRegressionTestResults/2.1) - Known (minor) issues with regression test output - raspberrypi - 'badssl.com site failed with fFailConnectionIfSSLCertificateInvalid = false: SSL peer certificate or SSH remote key was not OK (havent investigated but seems minor) - runs on raspberry pi with builds from newer gcc versions fails due to my inability to get the latest gcc lib installed on my raspberrypi - tests don't run when built from Ubuntu 22.04 due to glibc version - VS2k17 - zillions of warnings due to vs2k17 not properly supporting inline variables (hard to workaround with constexpr) - VS2k22 - ASAN builds with MFC produce 'warning LNK4006: "void \* \_\_cdecl operator new...' ... reported to MSFT ---- ### 2.1.9 {2022-11-12} #### TLDR - Support Visual Studio.Net 2022 17.4 - ObjectVariantMapper supports AddCommonType> - https://stroika.atlassian.net/browse/STK-951 - tag docker containers with v2.1, and github actions use that tag #### Change Details - Build Scripts - add v2.1 to the list of docker images TAGGED on release pushes - use the v2.1 tag in .github actions, so always builds with latest v2.1 containers (not latest overall since that could be v3). - Compiler and System Compatability - bug defines and workarounds for _MSC_VER_2k22_17Pt4_, updated build docs, and docker containers - update docker containers for windows VS_17_4_0 and VS_16_11_21 - Library - Foundation - DataExchange - ObjectVariantMapper - https://stroika.atlassian.net/browse/STK-951 - allow CountedValue to be default constructed (if T its counted value of) is default constructible - support MultiSet in Containers::Adapters::Adder<> (and added regtest for this) - Then added it to 'CommonSerializers' and regression tests #### Release-Validation - Compilers Tested/Supported - g++ { 8, 9, 10, 11, 12 } - Clang++ { unix: 7, 8, 9, 10, 11, 12, 13, 14; XCode: 13, 14 } - MSVC: { 15.9.50, 16.11.21, 17.4.0 } - OS/Platforms Tested/Supported - Windows - Windows 10 version 22H2 - Windows 11 version 22H2 - mcr.microsoft.com/windows/servercore:ltsc2019 (build/run under docker) - WSL v2 - MacOS - 11.4 (Big Sur) - x86_64 - 13.0 (Ventura) - arm64/m1 chip - Linux: { Ubuntu: [18.04, 20.04, 22.04], Raspbian(cross-compiled) } - Hardware Tested/Supported - x86, x86_64, arm (linux/raspberrypi - cross-compiled), arm64 (macos/m1) - Sanitizers and Code Quality Validators - [ASan](https://github.com/google/sanitizers/wiki/AddressSanitizer), [TSan](https://github.com/google/sanitizers/wiki/ThreadSanitizerCppManual), [UBSan](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) - Valgrind (helgrind/memcheck) - [CodeQL](https://codeql.github.com/) - Build Systems - [GitHub Actions](https://github.com/SophistSolutions/Stroika/actions) - Regression tests: [Correctness-Results](Tests/HistoricalRegressionTestResults/2.1), [Performance-Results](Tests/HistoricalPerformanceRegressionTestResults/2.1) - Known (minor) issues with regression test output - raspberrypi - 'badssl.com site failed with fFailConnectionIfSSLCertificateInvalid = false: SSL peer certificate or SSH remote key was not OK (havent investigated but seems minor) - runs on raspberry pi with builds from newer gcc versions fails due to my inability to get the latest gcc lib installed on my raspberrypi - tests don't run when built from Ubuntu 22.04 due to glibc version - VS2k17 - zillions of warnings due to vs2k17 not properly supporting inline variables (hard to workaround with constexpr) - VS2k22 - ASAN builds with MFC produce 'warning LNK4006: "void \* \_\_cdecl operator new...' ... reported to MSFT --- ### 2.1.8 {2022-11-04} #### TLDR - Use OpenSSL 3.0.7 - XCode 14 support (macos) - Fix problems building under standalone MSYS terminal - Changed how I compute / detect bug defines for libstdc++ - use _GLIBCXX_RELEASE instead of __GLIBCXX__ (fixes break on newest ubuntu 22.04) - fixed fatal bug with ObjectVariantMapper::MakeCommonSerializer (const optional*, const OptionalSerializerOptions& options) - Other small build system and assertion fixes #### Change Details - Build Scripts - Skel - in skel makefile, delegate a few more top level phony makefile targets - Building under MSYS - one more workaround for https://stroika.atlassian.net/browse/STK-941 /E:ON - Support MacOS XCode 14 (docs, compiler flags, etc) - using new clang-format 15 - make format-code - for ScriptsLib/RunRemoteRegressionTests - set /usr/local/bin first in path (needed to find right realpath in macos) - Compiler and System Compatability - qCompilerAndStdLib_locale_time_get_PCTM_RequiresLeadingZero_Buggy - cleanup regtests, and fixup definition so more aggressive - defaulting to always broken in using libstdc++ - with comments and tests for if it ever gets fixed - lose #define GLIBCXX_11x etc since numbers all over the place; instead switch bug defines from using __GLIBCXX__ to _GLIBCXX_RELEASE; no direct obvious mapping, so must retest everything (esp clang/macos etc) - https://stroika.atlassian.net/browse/STK-948 (new critical fix for openssl crashes VS2k19/22 compilers with delayed codegen) bug workaround - Library - Foundation - Cache - https://stroika.atlassian.net/browse/STK-944 -- use lock_guard not shared_lock in Cache/SynchronizedTimedCache (probably reverse in Stroika v3) - Debug - tweaked DbgTrace in AssertExternallySynchronizedMutex::lock_ () reporting about bad lock - DataExchange - fixed fatal bug with (somewhat new but obviously not well tested) MakeCommonSerializer_ (const optional*, const OptionalSerializerOptions& options) - Time - improved error checking in Date::LocaleFreeParseQuietly_kMonthDayYearFormat_ (and renamed private function) - ThirdPartyComponents - libcurl 7.86.0 - OpenSSL 3.0.7 (significant security fix) #### Release-Validation - Compilers Tested/Supported - g++ { 8, 9, 10, 11, 12 } - Clang++ { unix: 7, 8, 9, 10, 11, 12, 13, 14; XCode: 13, 14 } - MSVC: { 15.9.50, 16.11.20, 17.3.6 } - OS/Platforms Tested/Supported - Windows - Windows 10 version 21H2 - Windows 11 version 21H2 - mcr.microsoft.com/windows/servercore:ltsc2019 (build/run under docker) - WSL v2 - MacOS - 11.4 (Big Sur) - x86_64 - 13.0 (Ventura) - arm64/m1 chip - Linux: { Ubuntu: [18.04, 20.04, 22.04], Raspbian(cross-compiled) } - Hardware Tested/Supported - x86, x86_64, arm (linux/raspberrypi - cross-compiled), arm64 (macos/m1) - Sanitizers and Code Quality Validators - [ASan](https://github.com/google/sanitizers/wiki/AddressSanitizer), [TSan](https://github.com/google/sanitizers/wiki/ThreadSanitizerCppManual), [UBSan](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) - Valgrind (helgrind/memcheck) - [CodeQL](https://codeql.github.com/) - Build Systems - [GitHub Actions](https://github.com/SophistSolutions/Stroika/actions) - Regression tests: [Correctness-Results](Tests/HistoricalRegressionTestResults/2.1), [Performance-Results](Tests/HistoricalPerformanceRegressionTestResults/2.1) - Known (minor) issues with regression test output - raspberrypi - 'badssl.com site failed with fFailConnectionIfSSLCertificateInvalid = false: SSL peer certificate or SSH remote key was not OK (havent investigated but seems minor) - runs on raspberry pi with builds from newer gcc versions fails due to my inability to get the latest gcc lib installed on my raspberrypi - tests don't run when built from Ubuntu 22.04 due to glibc version - VS2k17 - zillions of warnings due to vs2k17 not properly supporting inline variables (hard to workaround with constexpr) - VS2k22 - ASAN builds with MFC produce 'warning LNK4006: "void \* \_\_cdecl operator new...' ... reported to MSFT --- ### 2.1.7 {2022-10-24} #### TLDR - Latest Xerces release (3.2.4) and a few security patches on systems that support it (newer cmake) and else fallback to older Xerces - FIXED https://stroika.atlassian.net/browse/STK-940 - Project built with Skel - by default - is DOA in visual studio 2022, due to quirks of loading .props files - FIXED https://stroika.atlassian.net/browse/STK-941 - which caused builds using MSYS default terminal/shell non-functional (configure script) - .props files (Visual Studio.net) handling generally improved #### Change Details - Build Scripts - new Scripts/VersionCompare - Configure bug broken on MSYS TTY shell - fix for bug https://stroika.atlassian.net/browse/STK-941. must run cmd shell with /E:ON to avoid failure (unclear why) - Project File Support - never checkin Workspaces/VisualStudio.Net/Microsoft.Cpp.stroika.user.props - Lose defaults in Microsoft.Cpp.stroika.user-default.props - better to use computed values from applyconfigurations by default - more cleanups to Skel template makefile - for https://stroika.atlassian.net/browse/STK-940 - so sets up project files properly on visual studio - Skel Utility - changed skel script so appRoot required, and call with no args prints out help - ./ScriptsLib/Skel built makefile supports make project-files - workaround https://stroika.atlassian.net/browse/STK-940 - issue with skel produced makefile not autoamtically calling make project-files and having project files not work properly due to import of non-existent .props file - workaround https://stroika.atlassian.net/browse/STK-943 (restore / checkout from git messes up profile stuff too) - fix recent Skel change so no default APP_ROOT - Library - Foundation - DataExchange - XML - https://github.com/SophistSolutions/Stroika/security/code-scanning/13 / https://owasp.org/www-community/vulnerabilities/XML_External_Entity_(XXE)_Processing workaround in xerces SAX parser code - Execution - Cosmetic cleanup/docs for LazyEvalActivity - lose unneeded using Characters::SDKString from Foundation/Execution/Throw.h - ThirdPartyComponents - Xerces - Xerces-C 3.2.4 (except on systems with older cmake - those still use Xerces 3.2.3) - use new VersionCompare to check installed cmake version - zlib 1.2.13 - SQLITE 3.39.4 #### Release-Validation - Compilers Tested/Supported - g++ { 8, 9, 10, 11, 12 } - Clang++ { unix: 7, 8, 9, 10, 11, 12, 13, 14; XCode: 13 } - MSVC: { 15.9.50, 16.11.20, 17.3.6 } - OS/Platforms Tested/Supported - Windows - Windows 10 version 21H2 - Windows 11 version 21H2 - mcr.microsoft.com/windows/servercore:ltsc2019 (build/run under docker) - WSL v2 - MacOS - 11.4 (Big Sur) - x86_64 - 12.0 (Monterey) - arm64/m1 chip - Linux: { Ubuntu: [18.04, 20.04, 22.04], Raspbian(cross-compiled) } - Hardware Tested/Supported - x86, x86_64, arm (linux/raspberrypi - cross-compiled), arm64 (macos/m1) - Sanitizers and Code Quality Validators - [ASan](https://github.com/google/sanitizers/wiki/AddressSanitizer), [TSan](https://github.com/google/sanitizers/wiki/ThreadSanitizerCppManual), [UBSan](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) - Valgrind (helgrind/memcheck) - [CodeQL](https://codeql.github.com/) - Build Systems - [GitHub Actions](https://github.com/SophistSolutions/Stroika/actions) - Regression tests: [Correctness-Results](Tests/HistoricalRegressionTestResults/2.1), [Performance-Results](Tests/HistoricalPerformanceRegressionTestResults/2.1) - Known (minor) issues with regression test output - raspberrypi - 'badssl.com site failed with fFailConnectionIfSSLCertificateInvalid = false: SSL peer certificate or SSH remote key was not OK (havent investigated but seems minor) - runs on raspberry pi with builds from newer gcc versions fails due to my inability to get the latest gcc lib installed on my raspberrypi - tests don't run when built from Ubuntu 22.04 due to glibc version - VS2k17 - zillions of warnings due to vs2k17 not properly supporting inline variables (hard to workaround with constexpr) - VS2k22 - ASAN builds with MFC produce 'warning LNK4006: "void \* \_\_cdecl operator new...' ... reported to MSFT --- ### 2.1.6 {2022-10-19} #### TLDR - Improve Cryptography to support return type Common::GUID better, and taking Iterable (so strings) as arg more easily - New ObjectVariantMapper::MakeCommonSerializer (OptionalSerializerOptions ...) - so can modify behavior of optional serializations more easily - TableConnection<> method renames (deprecating old names) - fixed internal assertion error in String2Int () - adjust .github action/workflows to accomodate various github script changes (deprecations) #### Change Details - Build Scripts - fixed ScriptsLib/ApplyConfiguration to do right separators for paths generated in visual studio project macro files - adjust .github action/workflows to accomodate various github script changes (deprecations) - Compiler and System Compatability - in windows docker containers, use VS_17_3_6 and VS_16_11_20 - Better docs about docker container windows build workarounds, and need to specify --network "Default Switch" in docker build script in one more place - fixed value for GLIBCXX_11x_ - was set for ubuntu g++11 glibc, but newer version with clang++-14 and a few other compilers - Lose PRIVATE_COMPILER_BUILDS_DIR use from regression tests, since released compilers stable enuf now, haven't built private builds in a while (and may have contributed to linux/docker instability) - Library - Foundation - Characters - fixed internal assertion error in String2Int () impl for bad arguments and added similar regtest for this case - Cryptography - Fixed Digester<> to fully support a RETURN_TYPE=Common::GUID - adding regression test and fixing template (worked with MD5 but now works with SuperFastHash and others) - Digest::ComputeDigest () and Digester<> etc - now support taking Iterable - so for example String - Database - ORM - TableConnection<> : renamed DeleteByID to Delete (and added overload) and renamed GetByID -> Get - deprecating old names - DataExchange - Added ObjectVariantMapper::MakeCommonSerializer (OptionalSerializerOptions ...) so it can take explicit T serializer - Debug - marked AssertExternallySynchronizedMutex SharedContext final (worked around clang bug and a good idea) #### Release-Validation - Compilers Tested/Supported - g++ { 8, 9, 10, 11, 12 } - Clang++ { unix: 7, 8, 9, 10, 11, 12, 13, 14; XCode: 13 } - MSVC: { 15.9.50, 16.11.20, 17.3.6 } - OS/Platforms Tested/Supported - Windows - Windows 10 version 21H2 - Windows 11 version 21H2 - mcr.microsoft.com/windows/servercore:ltsc2019 (build/run under docker) - WSL v2 - MacOS - 11.4 (Big Sur) - x86_64 - 12.0 (Monterey) - arm64/m1 chip - Linux: { Ubuntu: [18.04, 20.04, 22.04], Raspbian(cross-compiled) } - Hardware Tested/Supported - x86, x86_64, arm (linux/raspberrypi - cross-compiled), arm64 (macos/m1) - Sanitizers and Code Quality Validators - [ASan](https://github.com/google/sanitizers/wiki/AddressSanitizer), [TSan](https://github.com/google/sanitizers/wiki/ThreadSanitizerCppManual), [UBSan](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) - Valgrind (helgrind/memcheck) - [CodeQL](https://codeql.github.com/) - Build Systems - [GitHub Actions](https://github.com/SophistSolutions/Stroika/actions) - Regression tests: [Correctness-Results](Tests/HistoricalRegressionTestResults/2.1), [Performance-Results](Tests/HistoricalPerformanceRegressionTestResults/2.1) - Known (minor) issues with regression test output - raspberrypi - 'badssl.com site failed with fFailConnectionIfSSLCertificateInvalid = false: SSL peer certificate or SSH remote key was not OK (havent investigated but seems minor) - runs on raspberry pi with builds from newer gcc versions fails due to my inability to get the latest gcc lib installed on my raspberrypi - tests don't run when built from Ubuntu 22.04 due to glibc version - VS2k17 - zillions of warnings due to vs2k17 not properly supporting inline variables (hard to workaround with constexpr) - VS2k22 - ASAN builds with MFC produce 'warning LNK4006: "void \* \_\_cdecl operator new...' ... reported to MSFT --- ### 2.1.5 {2022-09-17} #### TLDR - Fixed issue with visual studio project files not working properly sometimes (ScriptsLib/ApplyConfiguration path separators) - https://stroika.atlassian.net/browse/STK-933 - INORDER_COMPARER for now use decat_t<> in container factory calls - ObjectVariantMapper revised assertions - new TableConnection::DeleteByID #### Change Details - Build Scripts - fixed ScriptsLib/ApplyConfiguration to do right separators for paths generated in visual studio project macro files - Compiler and System Compatability - docker containers for windows: use MSYS_20220904 (when using MSYS); - VS 16.11.19 - VS 17.3.4 - Library - Foundation - Containers - Template issue with containers call to factories - https://stroika.atlassian.net/browse/STK-933 - INORDER_COMPARER for now use decat_t<> in call to factory - Database - ORM - Added ORM TableConnection::DeleteByID - DataExchange - ObjectVariantMapper::MakeCommonSerializer_ForClassObject_ () changed check for alreadyInListOfFields to weak assert cuz there maybe some reasons to have entry in list twice - likely bug - but not definitely - Execution - Platform::Windows - fixed error handling bug with COMInitializer::CTOR - if worksWithAnyCoInitFlag argument passed - Frameworks - WebServices - ExpectedMethod() overload has extra default argument - ThirdPartyComponents - libcurl 7.85.0 - SQLite 3.39.3 #### Release-Validation - Compilers Tested/Supported - g++ { 8, 9, 10, 11, 12 } - Clang++ { unix: 7, 8, 9, 10, 11, 12, 13, 14; XCode: 13 } - MSVC: { 15.9.50, 16.11.19, 17.3.4 } - OS/Platforms Tested/Supported - Windows - Windows 10 version 21H2 - Windows 11 version 21H2 - mcr.microsoft.com/windows/servercore:ltsc2019 (build/run under docker) - WSL v2 - MacOS - 11.4 (Big Sur) - x86_64 - 12.0 (Monterey) - arm64/m1 chip - Linux: { Ubuntu: [18.04, 20.04, 22.04], Raspbian(cross-compiled) } - Hardware Tested/Supported - x86, x86_64, arm (linux/raspberrypi - cross-compiled), arm64 (macos/m1) - Sanitizers and Code Quality Validators - [ASan](https://github.com/google/sanitizers/wiki/AddressSanitizer), [TSan](https://github.com/google/sanitizers/wiki/ThreadSanitizerCppManual), [UBSan](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) - Valgrind (helgrind/memcheck) - [CodeQL](https://codeql.github.com/) - Build Systems - [GitHub Actions](https://github.com/SophistSolutions/Stroika/actions) - Regression tests: [Correctness-Results](Tests/HistoricalRegressionTestResults/2.1), [Performance-Results](Tests/HistoricalPerformanceRegressionTestResults/2.1) - Known (minor) issues with regression test output - raspberrypi - 'badssl.com site failed with fFailConnectionIfSSLCertificateInvalid = false: SSL peer certificate or SSH remote key was not OK (havent investigated but seems minor) - runs on raspberry pi with builds from newer gcc versions fails due to my inability to get the latest gcc lib installed on my raspberrypi - tests don't run when built from Ubuntu 22.04 due to glibc version - VS2k17 - zillions of warnings due to vs2k17 not properly supporting inline variables (hard to workaround with constexpr) - VS2k22 - ASAN builds with MFC produce 'warning LNK4006: "void \* \_\_cdecl operator new...' ... reported to MSFT --- ### 2.1.4 {2022-08-26} #### TLDR - Support Visual Studio.Net 17.3 compiler (several new bugs to workaround) - Updated SQLite/Boost to latest versions #### Change Details - Compiler and System Compatability - use vs2k 17.3.1 compiler in docker containers - lose #include since not needed anymore (except NEW qCompilerAndStdLib_need_ciso646_Buggy), and breaks on latest visual studio (deprecated) - workaround aligned_union_t now deprecated in C++23 - new bug workaroudn for qCompilerAndStdLib_sanitizer_annotate_contiguous_container_Buggy - breaks in msvc 17.3 - fixed qCompilerAndStdLib_ReleaseBld32Codegen_DateRangeInitializerDateOperator_Buggy bug define for vs2k17.3 - qCompilerAndStdLib_Debug32Codegen_make_pair_string_Buggy workaround new vs 2k 17.3.1 bug on x86 - qCompilerAndStdLib_Debug32_asan_Poison_Buggy bug define and workaround - RegressionTests and Sanitizers - another https://stroika.atlassian.net/browse/STK-774 helgrind workaround - Documentation - update readme docs - Library - Foundation - Database - SQLite WAL2 support - ORM - TableConnection::GetAll ( error handling overload) - Schema::CatchAllField::kDefaultMapper_CombinedToRaw* variants - treat missing data (empty string/blob) as producing empty mapping - DataExchange - ObjectVariantMapper support for KeyValuePair - Execution - Synchronized::operator= (T&& rhs) support - ThirdPartyComponents - sqlite - 3.39.2 - boost - 1.80.0 #### Release-Validation - Compilers Tested/Supported - g++ { 8, 9, 10, 11, 12 } - Clang++ { unix: 7, 8, 9, 10, 11, 12, 13, 14; XCode: 13 } - MSVC: { 15.9.50, 16.11.18, 17.3.1 } - OS/Platforms Tested/Supported - Windows - Windows 10 version 21H2 - Windows 11 version 21H2 - mcr.microsoft.com/windows/servercore:ltsc2019 (build/run under docker) - WSL v2 - MacOS - 11.4 (Big Sur) - x86_64 - 12.0 (Monterey) - arm64/m1 chip - Linux: { Ubuntu: [18.04, 20.04, 22.04], Raspbian(cross-compiled) } - Hardware Tested/Supported - x86, x86_64, arm (linux/raspberrypi - cross-compiled), arm64 (macos/m1) - Sanitizers and Code Quality Validators - [ASan](https://github.com/google/sanitizers/wiki/AddressSanitizer), [TSan](https://github.com/google/sanitizers/wiki/ThreadSanitizerCppManual), [UBSan](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) - Valgrind (helgrind/memcheck) - [CodeQL](https://codeql.github.com/) - Build Systems - [GitHub Actions](https://github.com/SophistSolutions/Stroika/actions) - Regression tests: [Correctness-Results](Tests/HistoricalRegressionTestResults/2.1), [Performance-Results](Tests/HistoricalPerformanceRegressionTestResults/2.1) - Known (minor) issues with regression test output - raspberrypi - 'badssl.com site failed with fFailConnectionIfSSLCertificateInvalid = false: SSL peer certificate or SSH remote key was not OK (havent investigated but seems minor) - runs on raspberry pi with builds from newer gcc versions fails due to my inability to get the latest gcc lib installed on my raspberrypi - tests don't run when built from Ubuntu 22.04 due to glibc version - VS2k17 - zillions of warnings due to vs2k17 not properly supporting inline variables (hard to workaround with constexpr) - VS2k22 - ASAN builds with MFC produce 'warning LNK4006: "void \* \_\_cdecl operator new...' ... reported to MSFT --- ### 2.1.3 {2022-08-12} #### TLDR - AddReplaceMode support in CallerStalenessCache - Logger::LogIfNew () deprecated, and new Logger 'dupplicate suppression' support (should work much better), including supressing all in time range - ConditionVariable default/constant change (makes stopping threads more responsive) - IntervalTimer::Adder takes optional RunImmediatelyFlag #### Change Details - Documentation - Added Release status to Documentation/Code-Status.md (and used a couple places) - Library - Foundation - Cache - Add optional AddReplaceMode arg to Add method of CallerStalenessCache (and SynchronizedCallerStalenessCache) - Execution - Logger - doc/comments and marked Logger::LogIfNew () deprecated - https://stroika.atlassian.net/browse/STK-450 - fixed (via new experimental implementation of Logger suppression that tracks all entries from the suppression window) - in Logger, added (equivilent of) using Priority::eDebug, using Priority::eInfo, etc to allow briefer usage - IntervalTimer - https://stroika.atlassian.net/browse/STK-929 : IntervalTimer::Adder takes optional RunImmediatelyFlag, and IntervalTimer::Adder::GetCallback () added - ConditionVariable - https://stroika.atlassian.net/browse/STK-930 (RELATED): sThreadAbortCheckFrequency_Default - NOT FIX/REMOVEAL - but switched from 2.5s to 0.25s - since makes service restart (really thread shutdown) much more responsive. And in (limited) testing had no (apprecable) impact on CPU percent usage (tested WTF only) #### Release-Validation - Compilers Tested/Supported - g++ { 8, 9, 10, 11, 12 } - Clang++ { unix: 7, 8, 9, 10, 11, 12, 13, 14; XCode: 13 } - MSVC: { 15.9.49, 16.11.17, 17.2.6 } - OS/Platforms Tested/Supported - Windows - Windows 10 version 21H2 - Windows 11 version 21H2 - mcr.microsoft.com/windows/servercore:ltsc2019 (build/run under docker) - WSL v2 - MacOS - 11.4 (Big Sur) - x86_64 - 12.0 (Monterey) - arm64/m1 chip - Linux: { Ubuntu: [18.04, 20.04, 22.04], Raspbian(cross-compiled) } - Hardware Tested/Supported - x86, x86_64, arm (linux/raspberrypi - cross-compiled), arm64 (macos/m1) - Sanitizers and Code Quality Validators - [ASan](https://github.com/google/sanitizers/wiki/AddressSanitizer), [TSan](https://github.com/google/sanitizers/wiki/ThreadSanitizerCppManual), [UBSan](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) - Valgrind (helgrind/memcheck) - [CodeQL](https://codeql.github.com/) - Build Systems - [GitHub Actions](https://github.com/SophistSolutions/Stroika/actions) - Regression tests: [Correctness-Results](Tests/HistoricalRegressionTestResults/2.1), [Performance-Results](Tests/HistoricalPerformanceRegressionTestResults/2.1) - Known (minor) issues with regression test output - raspberrypi - 'badssl.com site failed with fFailConnectionIfSSLCertificateInvalid = false: SSL peer certificate or SSH remote key was not OK (havent investigated but seems minor) - runs on raspberry pi with builds from newer gcc versions fails due to my inability to get the latest gcc lib installed on my raspberrypi - tests don't run when built from Ubuntu 22.04 due to glibc version - VS2k17 - zillions of warnings due to vs2k17 not properly supporting inline variables (hard to workaround with constexpr) - VS2k22 - ASAN builds with MFC produce 'warning LNK4006: "void \* \_\_cdecl operator new...' ... reported to MSFT --- ### 2.1.2 {2022-08-02} #### TLDR - Fixed bug with CallerStalenessCache - SQL/SQLite: various fixes/enhancements (journalmode, and stuff relating to busy timeouts) - Synchronized<> helper suports timed waits now - Debug::AppearsDuringMainLifetime () #### Change Details - Compiler and System Compatability - lose support for Ubuntu 2110 since cannot build docker containers anymore (deprecated OS version) - RegressionTests and Sanitizers - more aggressive workaround for Compiler_SanitizerDoubleLockWithConditionVariables_Buggy and https://stroika.atlassian.net/browse/STK-717 ; just dont use tsan on that platform - too buggy; another regtest RegressionTest24_qCompiler_SanitizerDoubleLockWithConditionVariables_Buggy_ - Documentation - Misc minor improvements - Library - Foundation - Cache - Fixed bug with CallerStalenessCache - regression due to (many months ago) change 'it' Remove/Safe iteration. Must use overload of Remove taking &i, and use updated I; and added relating comments in Mapping.h docs - Containers - fixed docs on Sequence<>::Update - so clearly does NOT advance iterator (just ensures valid/allowed to reuse nextI) and improved regtests - Database - SQL - SQL add to EngineProperties: RequireStatementResetAfterModifyingStatmentToCompleteTransaction () to address (possible/apparent) issue with SQLITE where I was seeing sporadic 'SQLITE_ERROR: cannot start a transaction within a transaction from' errors: docs ofr sqlite appear to suggest this CAN happen if no explicit transaction - SQL Statement::Bind() overload with no arguments to reset all bindings. Then enforce that Bind(iterables) first implicitly does Bind() to reset all bindnings. - SQL RequireStatementResetAfterModifyingStatmentToCompleteTransaction support (to workaround issue with SQLite - 'automatic transations not guaraneed to complete and no nested transactions so need extra reset) - so far untested - ORM - extra (exception_ptr) optional argument to OpertionCallbackPtr in SQL::ORM code - SQLite - SQLite - add new fJournalMode to Options, and pJournalMode to the Connection::Ptr object (cuz WAL has much better DB performance for WTF - multiple readers/writers/threads - Debug - new Debug::AppearsDuringMainLifetime () utility and added assertions calling it in a few places - Execution - new Execution::UniqueLock() utility - support in Synchronized<> class for timeout args to Lock calls (cget, load, rwget etc) - untested; and RegressionTest23_SycnhonizedWithTimeout_, and TimedSynchronized to test - fixed serious (shutdown) bug with new IntervalTimer::Manager - was improperly using Thread::CleanupPtr ; so better documented and fixed use (and a few releated code cleanups) - Frameworks - SystemPerformance - fixed usage of (demo) Capturer to respect new Require (Debug::AppearsDuringMainLifetime ()); rules; and imprved SystemPerformanceClient sample app to respect duration flag for -m mode of UI/Demo #### Release-Validation - Compilers Tested/Supported - g++ { 8, 9, 10, 11, 12 } - Clang++ { unix: 7, 8, 9, 10, 11, 12, 13, 14; XCode: 13 } - MSVC: { 15.9.49, 16.11.17, 17.2.6 } - OS/Platforms Tested/Supported - Windows - Windows 10 version 21H2 - Windows 11 version 21H2 - mcr.microsoft.com/windows/servercore:ltsc2019 (build/run under docker) - WSL v2 - MacOS - 11.4 (Big Sur) - x86_64 - 12.0 (Monterey) - arm64/m1 chip - Linux: { Ubuntu: [18.04, 20.04, 22.04], Raspbian(cross-compiled) } - Hardware Tested/Supported - x86, x86_64, arm (linux/raspberrypi - cross-compiled), arm64 (macos/m1) - Sanitizers and Code Quality Validators - [ASan](https://github.com/google/sanitizers/wiki/AddressSanitizer), [TSan](https://github.com/google/sanitizers/wiki/ThreadSanitizerCppManual), [UBSan](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) - Valgrind (helgrind/memcheck) - [CodeQL](https://codeql.github.com/) - Build Systems - [GitHub Actions](https://github.com/SophistSolutions/Stroika/actions) - Regression tests: [Correctness-Results](Tests/HistoricalRegressionTestResults/2.1), [Performance-Results](Tests/HistoricalPerformanceRegressionTestResults/2.1) - Known (minor) issues with regression test output - raspberrypi - 'badssl.com site failed with fFailConnectionIfSSLCertificateInvalid = false: SSL peer certificate or SSH remote key was not OK (havent investigated but seems minor) - runs on raspberry pi with builds from newer gcc versions fails due to my inability to get the latest gcc lib installed on my raspberrypi - tests don't run when built from Ubuntu 22.04 due to glibc version - VS2k17 - zillions of warnings due to vs2k17 not properly supporting inline variables (hard to workaround with constexpr) - VS2k22 - ASAN builds with MFC produce 'warning LNK4006: "void \* \_\_cdecl operator new...' ... reported to MSFT --- ### 2.1.1 {2022-07-24} #### TLDR - Foundation::IO::Network::Neighbors on windows, return : separated hardware addresses, and other small networking class improvements - Several ObjectVariantMapper improvements (CIDR, MakeCommonSerializer improvements for ranges) - Iterable cleanups: added Iterable<>::First() and Last() overloads which are much more convenient (callback return bool), and Count() etc overloads - Various fixes/cleanups to Logger (some not fully backward compatible) - SQLite and ORM improvements (mostly exception handling) - Fixed serious bug with ThroughTmpFileWriter - New IntervalTimer class / Mgr etc #### Change Details - Compiler and System Compatability - Visual Studio.net 2019 16.11.17 - Visual Studio.net 2022 17.2.6 - _MSC_VER_2k22_17Pt2_ (2 new bugs and nothing fixed) - RegressionTests and Sanitizers - Add suppression for Valgrind-Helgrind-qCompiler_lto_Buggy.supp - more https://stroika.atlassian.net/browse/STK-915 (sanitzer) workarounds - Documentation - Serveral small docs cleanups, method/class descriptions mostly - Library - Foundation - Configuration - new bug workaround and regression test qCompiler_vswprintf_on_elispisStr_Buggy - Containers - A little more docs on iterator patching in Sequence, COllection etc - Database - ORM - Added TableConnectionTraits::ID2VariantValue () method/factoring to Database/SQL/ORM/TableConnection - https://stroika.atlassian.net/browse/STK-919 - added draft impl of TableConnection::AddOrUpdate - SQL:ORM: Added optinal argument OperationCallbackPtr to TableConnection, use that to replace TRAITS::kTraceLogEachRequest with kDefaultTracingOpertionCallback as that callback (so that operation callback can be used for other logging/tracking) - Treat SQLITE_LOCKED the same way we treat SQLITE_BUSY: throws errc::device_or_resource_busy - Improved exception message/throws (mapping to hgiher level types better) in SQLIte call (vector through ThrowSQLiteErrorIfNotOK_ in one more place) - DataExchange - ObjectVariantMapper - new optional parameter RangeSerializerOptions for ObjectVariantMapper MakeCommonSerializer, and AddCommonType - OptionsFile - slightly improved error reporting - Debug - augmented initial tracelog output with Starting at, and qTraceToFile messages - Added Debug::TraceContextSuppressor suppressTraceInThisBlock in one place where tracelogs were needlessly noisy for WTF - new Debug::IsThisProcessBeingDebugged () - Debug::DropIntoDebuggerIfPresent () more aggressive, and now works on unix, but may do bad things (abort) if debugger not present - so dont call lightly ;-) - Execution - Workaround Logger::Shutdown issue - https://stroika.atlassian.net/browse/STK-917 - New IntervalTimer class / Mgr etc - Logger - **NOT BACKWARD COMPATIBLE** - replaced Logger::Get () with Logger::sThe (just deprecated)), but now REQUIRE use of Logger::Activator object in place of old shutdown code - IO::Filesystem - fixed serious regression/bug in ThroughTmpFileWriter - appending suffix was wrong since conversion to std::path code - IO::Network - Documentation on CIDR CTOR, and new As() method for CIDR (As () so produces save to externalize format) - https://stroika.atlassian.net/browse/STK-909: slight cleanup to CIDR constructors; added regtests for this issue; and ObjectVariantMapper serializer now uses As instead of ToString (); workaround https://stroika.atlassian.net/browse/STK-910 issue - with CIDR - construction of optional CIDR - Neighbors monitor code gets new option - fOmitAllFFHardwareAddresses - defaults true on windows - Neighbors computed on Windows use : instead of - to separate octets in hardware address - Math: - PinToMaxForType, IsOdd, IsEven constexpr - Added optional typename INORDER_COMPARE_FUNCTION to Math::Median - Traversal - Iterable - Added Iterable<>::First() and Last() overloads which are much more convenient (return bool) - as thats what I document anyhow, and use mostly, though other case returning optioanl function that functional also makes sense - Iterable<>::First() implemtation now uses kUseIterableRepIteration_ and Rep->Find() - so probably faster (testing); and related docs - operator+ (Sequence/Iterable or Iterable/Sequence or Sequence/Sequence - Added Iterable::Count - Iterable::Mean/Median use Math::Mean/Median routines(added #include but pulls in little), and is faster (uses nth instead of sort) - Frameworks - WebServer - ConnectionManager, renamed connections property to pConnections, and added pActiveConnections property - ThirdPartyComponents - sqlite 3.39.1 - openssl 3.0.5; - libcurl 7.83.1 (7.84.0 doesn't build on Ubuntu 18.04) #### Release-Validation - Compilers Tested/Supported - g++ { 8, 9, 10, 11, 12 } - Clang++ { unix: 7, 8, 9, 10, 11, 12, 13, 14; XCode: 13 } - MSVC: { 15.9.49, 16.11.17, 17.2.6 } - OS/Platforms Tested/Supported - Windows - Windows 10 version 21H2 - Windows 11 version 21H2 - mcr.microsoft.com/windows/servercore:ltsc2019 (build/run under docker) - WSL v2 - MacOS - 11.4 (Big Sur) - x86_64 - 12.0 (Monterey) - arm64/m1 chip - Linux: { Ubuntu: [18.04, 20.04, 21.10, 22.04], Raspbian(cross-compiled) } - Hardware Tested/Supported - x86, x86_64, arm (linux/raspberrypi - cross-compiled), arm64 (macos/m1) - Sanitizers and Code Quality Validators - [ASan](https://github.com/google/sanitizers/wiki/AddressSanitizer), [TSan](https://github.com/google/sanitizers/wiki/ThreadSanitizerCppManual), [UBSan](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) - Valgrind (helgrind/memcheck) - [CodeQL](https://codeql.github.com/) - Build Systems - [GitHub Actions](https://github.com/SophistSolutions/Stroika/actions) - Regression tests: [Correctness-Results](Tests/HistoricalRegressionTestResults/2.1), [Performance-Results](Tests/HistoricalPerformanceRegressionTestResults/2.1) - Known (minor) issues with regression test output - raspberrypi - 'badssl.com site failed with fFailConnectionIfSSLCertificateInvalid = false: SSL peer certificate or SSH remote key was not OK (havent investigated but seems minor) - runs on raspberry pi with builds from newer gcc versions fails due to my inability to get the latest gcc lib installed on my raspberrypi - tests don't run when built from Ubuntu 22.04 due to glibc version - VS2k17 - zillions of warnings due to vs2k17 not properly supporting inline variables (hard to workaround with constexpr) - VS2k22 - ASAN builds with MFC produce 'warning LNK4006: "void \* \_\_cdecl operator new...' ... reported to MSFT --- ### 2.1 {2022-05-20} #### TLDR - nothing changed #### Change Details - Build System - fix bug with ExtractVersionInfo call when VERSIONSUBSTAGE= (release) - set to 0 - RegressionTests and Sanitizers - saw sporadic (irreproducible) failures with Ubuntu 21.10 valgrind/helgrind, so added flags to valgrind to gen-supressions if it ever happens again. #### Release-Validation - Compilers Tested/Supported - g++ { 8, 9, 10, 11, 12 } - Clang++ { unix: 7, 8, 9, 10, 11, 12, 13, 14; XCode: 13 } - MSVC: { 15.9.41, 16.11.14, 17.2.0 } - OS/Platforms Tested/Supported - Windows - Windows 10 version 21H2 - Windows 11 version 21H2 - mcr.microsoft.com/windows/servercore:ltsc2019 (build/run under docker) - WSL v2 - MacOS - 11.4 (Big Sur) - x86_64 - 12.0 (Monterey) - arm64/m1 chip - Linux: { Ubuntu: [18.04, 20.04, 21.10, 22.04], Raspbian(cross-compiled) } - Hardware Tested/Supported - x86, x86_64, arm (linux/raspberrypi - cross-compiled), arm64 (macos/m1) - Sanitizers and Code Quality Validators - [ASan](https://github.com/google/sanitizers/wiki/AddressSanitizer), [TSan](https://github.com/google/sanitizers/wiki/ThreadSanitizerCppManual), [UBSan](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) - Valgrind (helgrind/memcheck) - [CodeQL](https://codeql.github.com/) - Build Systems - [GitHub Actions](https://github.com/SophistSolutions/Stroika/actions) - Regression tests: [Correctness-Results](Tests/HistoricalRegressionTestResults/2.1), [Performance-Results](Tests/HistoricalPerformanceRegressionTestResults/2.1) - Known (minor) issues with regression test output - raspberrypi - 'badssl.com site failed with fFailConnectionIfSSLCertificateInvalid = false: SSL peer certificate or SSH remote key was not OK (havent investigated but seems minor) - runs on raspberry pi with builds from newer gcc versions fails due to my inability to get the latest gcc lib installed on my raspberrypi - tests don't run when built from Ubuntu 22.04 due to glibc version - VS2k17 - zillions of warnings due to vs2k17 not properly supporting inline variables (hard to workaround with constexpr) - VS2k22 - ASAN builds with MFC produce 'warning LNK4006: "void \* \_\_cdecl operator new...' ... reported to MSFT --- ### 2.1r10 {2022-05-14} #### TLDR - Visual Stuido 2022 17.2 support - Updates to a few ThirdPartyComponents (libcurl, sqlite, zlib, boost) - Documentation cleanups - Important fix to debugger visualization specification (visual studio) #### Change Details - Documentation - update link to stroika bugs in readme - update comments/examples - Compiler and System Compatability - vs2k 17.1.6 and 16.11.13 - Updated vs2k versions to VS_17_2_0 and VS_16_11_14 for docker files - support visual studio compiler _MSC_VER_2k22_17Pt2_ (2 new bugs and nothing fixed) - Build System - refactored and disabled (by default) makefile configurations for private_compiler_versions_: myg++8.3, and my-clang++-7; left in makefile disabled so easy to re-include as needed if I need custom compiler build - Debugger tools - fixed (serious regrssion - string visualizer) was broken, and updated older visual studio natvis files to match - ThirdPartyComponents - libcurl 7.83.0 - zlib - 1.2.12 - disable ASM build for x64 windows zlib - and created jira ticket https://stroika.atlassian.net/browse/STK-905 to track future cleanup of makefile to reenable this (probably using cmake) - boost 1.79.0 - SQLite - 3380300 - fixed CompiledOptions::kThe.ENABLE_JSON1 for newwer sqlite - Samples - Service - Don't strip when building installer if IncludeDebugSymbolsInExecutables set #### Release-Validation - Compilers Tested/Supported - g++ { 8, 9, 10, 11, 12 } - Clang++ { unix: 7, 8, 9, 10, 11, 12, 13, 14; XCode: 13 } - MSVC: { 15.9.41, 16.11.14, 17.2.0 } - OS/Platforms Tested/Supported - Windows - Windows 10 version 21H2 - Windows 11 version 21H2 - mcr.microsoft.com/windows/servercore:ltsc2019 (build/run under docker) - WSL v2 - MacOS - 11.4 (Big Sur) - x86_64 - 12.0 (Monterey) - arm64/m1 chip - Linux: { Ubuntu: [18.04, 20.04, 21.10, 22.04], Raspbian(cross-compiled) } - Hardware Tested/Supported - x86, x86_64, arm (linux/raspberrypi - cross-compiled), arm64 (macos/m1) - Sanitizers and Code Quality Validators - [ASan](https://github.com/google/sanitizers/wiki/AddressSanitizer), [TSan](https://github.com/google/sanitizers/wiki/ThreadSanitizerCppManual), [UBSan](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) - Valgrind (helgrind/memcheck) - [CodeQL](https://codeql.github.com/) - Build Systems - [GitHub Actions](https://github.com/SophistSolutions/Stroika/actions) - Regression tests: [Correctness-Results](Tests/HistoricalRegressionTestResults/2.1), [Performance-Results](Tests/HistoricalPerformanceRegressionTestResults/2.1) - Known (minor) issues with regression test output - raspberrypi - 'badssl.com site failed with fFailConnectionIfSSLCertificateInvalid = false: SSL peer certificate or SSH remote key was not OK (havent investigated but seems minor) - runs on raspberry pi with builds from newer gcc versions fails due to my inability to get the latest gcc lib installed on my raspberrypi - tests don't run when built from Ubuntu 22.04 due to glibc version - VS2k17 - zillions of warnings due to vs2k17 not properly supporting inline variables (hard to workaround with constexpr) - VS2k22 - ASAN builds with MFC produce 'warning LNK4006: "void \* \_\_cdecl operator new...' ... reported to MSFT --- ### 2.1r9 {2022-04-28} #### TLDR - Support Ubuntu 22.04 (LTS), g++12, clang++14 - Documentation - Several minor API cleanups/deprecations (e.g. DNS::Default -> DNS::sThe, Memoizer use operator() syntax) - Reviewed my private todo file and closed everything or moved it to https://stroika.atlassian.net #### Change Details - Documentation - merged Coding Conventions.md into Design Document.md and related cleanups - more design overview docs - docs on http server - major cleanup to thread safety docs, changing many of the names of classifications and rolling together many duplicates - ugprade Stroika version docs - docs about Syncronized and upgradelocks - Compiler and System Compatability - ubuntu 22.04 support - Docker containers, github actions, and new compiler support - g++12 - clang++14 - VS 17.1.4 and 16.11.12 in docker containers - Build System - lose makefile deprecated StroikaLinkerSuffixArgs StroikaLinkerPrefixArgs - new ScriptsLib/CheckForLibrary, and used to cleanup curl makefile so works for ubuntu 22.04 cross compile and better on macos to address https://stroika.atlassian.net/browse/STK-759 on raspberrypi - Library - Overall - no longer use std::iterator<> - deprecated - avoid c++ 20 deprecation warning (ATOMIC_FLAG_INIT) - cosmetic code cleanups (uniform initialization mostly) - Foundation - Cache - (not backward compat) - Memoizer uses function call syntax - operator() now instead of .Compute() - Characters - renamed String::Match() to String::Matches() - not backward compatible, but better name just before public release - added nearly useless (helpful for some template cases) but harmless template <> String String::As () const; - Configuration - fixed version# for GLIBCXX_11x_ - for ubuntu 22.04 - Containers - Comments and simplified implementation of Bijection::Where() - https://stroika.atlassian.net/browse/STK-154 - regtests and samples for explicit sort function in SortedSet - Execution - ProcessRunner - https://stroika.atlassian.net/browse/STK-148 - fixed so throws on fail of process on unix too (if no process-return-value optional parameter provided - as with windows) - Networking - cosmetic/naming cleanup URI code - IO::Network::HTTP::Headers missing fHost from Collection> Headers::As () const - deprecated DNS::Default() and replaced wtih DNS::kThe (and other small related cleanups) - Traversal - https://stroika.atlassian.net/browse/STK-690 a couple more places to use move on iterators - RegressionTests and Sanitizers - fixed suppression line for helgrind in regtests for apps - Added https://stroika.atlassian.net/browse/STK-717 BWA in configure - qCompiler_SanitizerDoubleLockWithConditionVariables_Buggy - since still appears buggy there appars BOTH tsan and valgrind bug manifestations occur. - workaround https://stroika.atlassian.net/browse/STK-903 helgrind issue - Comments about regtest failures and made one not real failure into a warning #### Release-Validation - Compilers Tested/Supported - g++ { 8, 9, 10, 11, 12 } - Clang++ { unix: 7, 8, 9, 10, 11, 12, 13, 14; XCode: 13 } - MSVC: { 15.9.41, 16.11.11, 17.1.4 } - OS/Platforms Tested/Supported - Windows - Windows 10 version 21H2 - Windows 11 version 21H2 - mcr.microsoft.com/windows/servercore:ltsc2019 (build/run under docker) - WSL v2 - MacOS - 11.4 (Big Sur) - x86_64 - 12.0 (Monterey) - arm64/m1 chip - Linux: { Ubuntu: [18.04, 20.04, 21.10, 22.04], Raspbian(cross-compiled) } - Hardware Tested/Supported - x86, x86_64, arm (linux/raspberrypi - cross-compiled), arm64 (macos/m1) - Sanitizers and Code Quality Validators - [ASan](https://github.com/google/sanitizers/wiki/AddressSanitizer), [TSan](https://github.com/google/sanitizers/wiki/ThreadSanitizerCppManual), [UBSan](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) - Valgrind (helgrind/memcheck) - [CodeQL](https://codeql.github.com/) - Build Systems - [GitHub Actions](https://github.com/SophistSolutions/Stroika/actions) - Regression tests: [Correctness-Results](Tests/HistoricalRegressionTestResults/2.1), [Performance-Results](Tests/HistoricalPerformanceRegressionTestResults/2.1) - Known (minor) issues with regression test output - raspberrypi - 'badssl.com site failed with fFailConnectionIfSSLCertificateInvalid = false: SSL peer certificate or SSH remote key was not OK (havent investigated but seems minor) - runs on raspberry pi with builds from newer gcc versions fails due to my inability to get the latest gcc lib installed on my raspberrypi - tests don't run when built from Ubuntu 22.04 due to glibc version - VS2k17 - zillions of warnings due to vs2k17 not properly supporting inline variables (hard to workaround with constexpr) - VS2k22 - ASAN builds with MFC produce 'warning LNK4006: "void \* \_\_cdecl operator new...' ... reported to MSFT --- ### 2.1r8 {2022-04-05} #### TLDR - Added DataExchange::InternetMediaTypes::kJavascript - and added it to default InternetMediaTypeRegistry #### Change Details - Library - Added DataExchange::InternetMediaTypes::kJavascript - and added it to default InternetMediaTypeRegistry #### Release-Validation - Compilers Tested/Supported - g++ { 8, 9, 10, 11 } - Clang++ { unix: 7, 8, 9, 10, 11, 12, 13; XCode: 13 } - MSVC: { 15.9.41, 16.11.11, 17.1.1 } - OS/Platforms Tested/Supported - Windows - Windows 10 version 21H2 - Windows 11 version 21H2 - mcr.microsoft.com/windows/servercore:ltsc2019 (build/run under docker) - WSL v2 - MacOS - 11.4 (Big Sur) - x86_64 - 12.0 (Monterey) - arm64/m1 chip - Linux: { Ubuntu: [18.04, 20.04, 21.10], Raspbian(cross-compiled) } - Hardware Tested/Supported - x86, x86_64, arm (linux/raspberrypi - cross-compiled), arm64 (macos/m1) - Sanitizers and Code Quality Validators - [ASan](https://github.com/google/sanitizers/wiki/AddressSanitizer), [TSan](https://github.com/google/sanitizers/wiki/ThreadSanitizerCppManual), [UBSan](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) - Valgrind (helgrind/memcheck) - [CodeQL](https://codeql.github.com/) - Build Systems - [GitHub Actions](https://github.com/SophistSolutions/Stroika/actions) - Regression tests: [Correctness-Results](Tests/HistoricalRegressionTestResults/2.1), [Performance-Results](Tests/HistoricalPerformanceRegressionTestResults/2.1) - Known (minor) issues with regression test output - raspberrypi - 'badssl.com site failed with fFailConnectionIfSSLCertificateInvalid = false: SSL peer certificate or SSH remote key was not OK (havent investigated but seems minor) - runs on raspberry pi with builds from newer gcc versions fails due to my inability to get the latest gcc lib installed on my raspberrypi - VS2k17 - zillions of warnings due to vs2k17 not properly supporting inline variables (hard to workaround with constexpr) - VS2k22 - ASAN builds with MFC produce 'warning LNK4006: "void \* \_\_cdecl operator new...' ... reported to MSFT --- ### 2.1r7 {2022-04-01} #### TLDR - Deprecate Math::Overlap and docs/cleanups to Range #### Change Details - Library - Deprecate Math::Overlap and docs/cleanups to Range #### Release-Validation - Compilers Tested/Supported - g++ { 8, 9, 10, 11 } - Clang++ { unix: 7, 8, 9, 10, 11, 12, 13; XCode: 13 } - MSVC: { 15.9.41, 16.11.11, 17.1.1 } - OS/Platforms Tested/Supported - Windows - Windows 10 version 21H2 - Windows 11 version 21H2 - mcr.microsoft.com/windows/servercore:ltsc2019 (build/run under docker) - WSL v2 - MacOS - 11.4 (Big Sur) - x86_64 - 12.0 (Monterey) - arm64/m1 chip - Linux: { Ubuntu: [18.04, 20.04, 21.10], Raspbian(cross-compiled) } - Hardware Tested/Supported - x86, x86_64, arm (linux/raspberrypi - cross-compiled), arm64 (macos/m1) - Sanitizers and Code Quality Validators - [ASan](https://github.com/google/sanitizers/wiki/AddressSanitizer), [TSan](https://github.com/google/sanitizers/wiki/ThreadSanitizerCppManual), [UBSan](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) - Valgrind (helgrind/memcheck) - [CodeQL](https://codeql.github.com/) - Build Systems - [GitHub Actions](https://github.com/SophistSolutions/Stroika/actions) - Regression tests: [Correctness-Results](Tests/HistoricalRegressionTestResults/2.1), [Performance-Results](Tests/HistoricalPerformanceRegressionTestResults/2.1) - Known (minor) issues with regression test output - raspberrypi - 'badssl.com site failed with fFailConnectionIfSSLCertificateInvalid = false: SSL peer certificate or SSH remote key was not OK (havent investigated but seems minor) - runs on raspberry pi with builds from newer gcc versions fails due to my inability to get the latest gcc lib installed on my raspberrypi - VS2k17 - zillions of warnings due to vs2k17 not properly supporting inline variables (hard to workaround with constexpr) - VS2k22 - ASAN builds with MFC produce 'warning LNK4006: "void \* \_\_cdecl operator new...' ... reported to MSFT --- ### 2.1r6 {2022-03-29} #### TLDR - New Skel utility - to facilitate starting/building new Stroika-based applications #### Change Details - Build System Tests And Tools - **new** Skel tool Allows easy creation of 'cloned' sample - setting up links and Makefiles etc - Makefiles - top level makefile uses IntermediateFiles/ASSURE_DEFAULT_CONFIGURATIONS_BUILT instead of assure-default-configurations-exist_ - ScriptsLib/ApplyConfiguration can now be run from other folders (than top level) and takes optionally --only-vscode option - VS_17_1_2 and VS_16_11_11 in docker images - IDEs - Microsoft.Cpp.stroika.ConfigurationBased.props and Microsoft.Cpp.stroika.user.props" support updated all sample and library and test project files to refer to these - make project-files-visual-studio now cp --update Workspaces/VisualStudio.Net/Microsoft.Cpp.stroika.user-default.props - Workspaces/VisualStudio.Net/Microsoft.Cpp.stroika.user.props - rename ScriptsLib/MakeDirectorySymbolicLink -> MakeSymbolicLink (and make sure works with files too - used that way in skel/Makefiles) - Documentation/Comments - docs on vscode usage - Library - slight performance tweak to String compare code - Samples - lose obsoelte TEMPLATE sample project (obsoleted by Skel) - Tests - Valgrind - https://stroika.atlassian.net/browse/STK-774 helgrind workaround - https://stroika.atlassian.net/browse/STK-628 (same but for ARM)--diff function optimized out of callstack - https://stroika.atlassian.net/browse/STK-620 (remove 628 and use 620 and cleanups to wrokaround) - ThirdPartyComponents - curl - VERSION 7.82.0 - openssl makefile - VERSION 3.0.2 - ifeq ($(qFeatureFlag_ActivePerl), use) - anohther fix/workaround to MSYS makefile problem with openssl - MSYSTEM check and CHERE_INVOKING=1 #### Release-Validation - Compilers Tested/Supported - g++ { 8, 9, 10, 11 } - Clang++ { unix: 7, 8, 9, 10, 11, 12, 13; XCode: 13 } - MSVC: { 15.9.41, 16.11.11, 17.1.1 } - OS/Platforms Tested/Supported - Windows - Windows 10 version 21H2 - Windows 11 version 21H2 - mcr.microsoft.com/windows/servercore:ltsc2019 (build/run under docker) - WSL v2 - MacOS - 11.4 (Big Sur) - x86_64 - 12.0 (Monterey) - arm64/m1 chip - Linux: { Ubuntu: [18.04, 20.04, 21.10], Raspbian(cross-compiled) } - Hardware Tested/Supported - x86, x86_64, arm (linux/raspberrypi - cross-compiled), arm64 (macos/m1) - Sanitizers and Code Quality Validators - [ASan](https://github.com/google/sanitizers/wiki/AddressSanitizer), [TSan](https://github.com/google/sanitizers/wiki/ThreadSanitizerCppManual), [UBSan](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) - Valgrind (helgrind/memcheck) - [CodeQL](https://codeql.github.com/) - Build Systems - [GitHub Actions](https://github.com/SophistSolutions/Stroika/actions) - Regression tests: [Correctness-Results](Tests/HistoricalRegressionTestResults/2.1), [Performance-Results](Tests/HistoricalPerformanceRegressionTestResults/2.1) - Known (minor) issues with regression test output - raspberrypi - 'badssl.com site failed with fFailConnectionIfSSLCertificateInvalid = false: SSL peer certificate or SSH remote key was not OK (havent investigated but seems minor) - runs on raspberry pi with builds from newer gcc versions fails due to my inability to get the latest gcc lib installed on my raspberrypi - VS2k17 - zillions of warnings due to vs2k17 not properly supporting inline variables (hard to workaround with constexpr) - VS2k22 - ASAN builds with MFC produce 'warning LNK4006: "void \* \_\_cdecl operator new...' ... reported to MSFT --- ### 2.1r5 {2022-03-10} #### TLDR - Minor cleanups, vscode configuration/compatability scripting, and other build system cleanups #### Change Details - Build System Tests And Tools - configure - expand set of allowed args to --cppstd-version in configure - use \${ syntax not \$( sytnax for StroikaRoot in configure output so works in shells - for https://stroika.atlassian.net/browse/STK-717 - and simplication - new configure flag --include-default-TSAN_OPTIONS {true/false} - and have configure automatically add TSAN_OPTIONS for ThreadSanitizerSuppressions.supp OR ThreadSanitizerSuppressions_qCompiler_SanitizerDoubleLockWithConditionVariables_Buggy.supp as appriopriuate - and appearntly appropriate anytime using g++10 or 11 - or at least added case of on Ubuntu 20.04 (really only tested needed for TSAN, but probably also for valgrind) - Regression Test Script - export StroikaRoot=/cygdrive/c/Sandbox/Stroika/DevRoot in regressiontests script - Makefiles - top level IntermediateFiles/DEFAULT_PROJECT_FILES_BUILT so we run make project-files by default and dont get confused about missing files by default - cleanup definitions of various default configurations - vscode worskpaces/configuration - ApplyConfigurations update of vscode compilerPath now emits fullpath if possible - Build Scripts - fixed ScriptsLib/GetDefaultShellVariable to return a better answer for ECHO on MacOS - macos doesnt support cp --update so ifdef DETECTED_OS and use rsync which does seem to work/support --update on macos - Documentation/Comments - Library - Compiler Bug defines - fixed typo in qCompilerAndStdLib_valgrind_optional_compare_equals_Buggy (was accidentally applying to clang) - Minor code cleanups - mostly cosmetic cleanups to Led code (and lose obsolete bug define) - more use of {} syntax instead of () for object construction #### Release-Validation - Compilers Tested/Supported - g++ { 8, 9, 10, 11 } - Clang++ { unix: 7, 8, 9, 10, 11, 12, 13; XCode: 13 } - MSVC: { 15.9.41, 16.11.11, 17.1.2 } - OS/Platforms Tested/Supported - Windows - Windows 10 version 21H2 - Windows 11 version 21H2 - mcr.microsoft.com/windows/servercore:ltsc2019 (build/run under docker) - WSL v2 - MacOS - 11.4 (Big Sur) - x86_64 - 12.0 (Monterey) - arm64/m1 chip - Linux: { Ubuntu: [18.04, 20.04, 21.10], Raspbian(cross-compiled) } - Hardware Tested/Supported - x86, x86_64, arm (linux/raspberrypi - cross-compiled), arm64 (macos/m1) - Sanitizers and Code Quality Validators - [ASan](https://github.com/google/sanitizers/wiki/AddressSanitizer), [TSan](https://github.com/google/sanitizers/wiki/ThreadSanitizerCppManual), [UBSan](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) - Valgrind (helgrind/memcheck) - [CodeQL](https://codeql.github.com/) - Build Systems - [GitHub Actions](https://github.com/SophistSolutions/Stroika/actions) - Regression tests: [Correctness-Results](Tests/HistoricalRegressionTestResults/2.1), [Performance-Results](Tests/HistoricalPerformanceRegressionTestResults/2.1) - Known (minor) issues with regression test output - raspberrypi - 'badssl.com site failed with fFailConnectionIfSSLCertificateInvalid = false: SSL peer certificate or SSH remote key was not OK (havent investigated but seems minor) - runs on raspberry pi with builds from newer gcc versions fails due to my inability to get the latest gcc lib installed on my raspberrypi - VS2k17 - zillions of warnings due to vs2k17 not properly supporting inline variables (hard to workaround with constexpr) - VS2k22 - ASAN builds with MFC produce 'warning LNK4006: "void \* \_\_cdecl operator new...' ... reported to MSFT --- ### 2.1r4 {2022-03-01} #### TLDR - Fixed issue (regression) with windows docker containers compatability with github actions. Now always use servercore:ltsc2022 in containers and docker container windows actions. - Greatly improved tooling support for Stroika builds from Visual Studio Code - Renamed SmallStackBuffer<> to StackBuffer<> and or InlineBuffer<> #### Change Details - Build System Tests And Tools - Docker - added echo warning in DockerBuildContainers/Makefile when building MSYS2 stuff so easier to workaround bug with docker - redo Cygwin docker containers using choco instead of hack loading old private install/image of cygwin - test using servercore:ltsc2022 for windows docker configs - see if owrks on github actions now - try +ARG BASE_IMAGE=mcr.microsoft.com/windows/server:ltsc2022 for github actions compat; and for msys, use MSYS2_PATH_TYPE=inherit and set path in dockerfile (losing bashrc hack) github actions: say use windows runninger windows-2022 not windows-latest, since currently windows-latest documented to be 2019, but may not really be? unclear - they maybe transitioning? but be celar about expections so we can match in docker container docs on docker configs for windows: and trying servercore:ltsc2022 again (with 2022 .github action runner) - Supported Compiler Versions - support bug defines for _MSC_VER_2k22_17Pt1_ - added Xerces patch Patches/Char16Test_IOSTREAMCHANGE.PATCH for compatability with Visual Studio .Net 2022 17.1.0 compiler - Project Files - no longer hake make project-files build project-files-qt-creator; added project-files-vs-code and make project-files does that now instead; and use command:cpptools.activeConfigName in tasks.json file instead of hardwired configuraitons; and new .config-default.json to workaround bug/issue with extension which loads the file failing if its missing (done when you say make project-files) - VSCode - include jq tool in docker containers and docs / scripts etc - Used jq in ApplyConfiguration (WriteVSCodeCPPExtensionConfigFile) script to auto-add stuff to .vscode/c_cpp_properties.json - big cleanup of ./vscode/tasks.json - using /.config.json for some falgs, and command:cpptools.activeConfigName for config name - lose default .vscode/c_cpp_properties.json - Documentation - Doxygen - lose Documentation/Doxygen/RunDoxygen.pl and cleanup build of doxygen docs - added docs/docker file code about installing the right stuff by default, like doxygen - added FAQ entry on building - Library - Renanmed Memory::SmallStackBuffer -> Memory::InlineBuffer, and created Memory::StackBuffer (similar to SmallStackBuffer but REQUIRES on stack and no copying); **deprecated** old name, and deprecated SmallStackBufferCommon, and instead moved UninitializedConstructorFlag to Memory namespace (toplevel) and similarly for eUninitialized - now simpler, better documented; and used eUninitialized in ALOT of places it should have been, but wasn't til now (partly cuz PITA with other class prefix) #### Release-Validation - Compilers Tested/Supported - g++ { 8, 9, 10, 11 } - Clang++ { unix: 7, 8, 9, 10, 11, 12, 13; XCode: 13 } - MSVC: { 15.9.41, 16.11.10, 17.1.0 } - OS/Platforms Tested/Supported - Windows - Windows 10 version 21H2 - Windows 11 version 21H2 - mcr.microsoft.com/windows/servercore:ltsc2019 (build/run under docker) - WSL v2 - MacOS - 11.4 (Big Sur) - x86_64 - 12.0 (Monterey) - arm64/m1 chip - Linux: { Ubuntu: [18.04, 20.04, 21.10], Raspbian(cross-compiled) } - Hardware Tested/Supported - x86, x86_64, arm (linux/raspberrypi - cross-compiled), arm64 (macos/m1) - Sanitizers and Code Quality Validators - [ASan](https://github.com/google/sanitizers/wiki/AddressSanitizer), [TSan](https://github.com/google/sanitizers/wiki/ThreadSanitizerCppManual), [UBSan](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) - Valgrind (helgrind/memcheck) - [CodeQL](https://codeql.github.com/) - Build Systems - [GitHub Actions](https://github.com/SophistSolutions/Stroika/actions) - Regression tests: [Correctness-Results](Tests/HistoricalRegressionTestResults/2.1), [Performance-Results](Tests/HistoricalPerformanceRegressionTestResults/2.1) - Known (minor) issues with regression test output - raspberrypi - 'badssl.com site failed with fFailConnectionIfSSLCertificateInvalid = false: SSL peer certificate or SSH remote key was not OK (havent investigated but seems minor) - runs on raspberry pi with builds from newer gcc versions fails due to my inability to get the latest gcc lib installed on my raspberrypi - VS2k17 - zillions of warnings due to vs2k17 not properly supporting inline variables (hard to workaround with constexpr) - VS2k22 - ASAN builds with MFC produce 'warning LNK4006: "void \* \_\_cdecl operator new...' ... reported to MSFT - WSL-Regression tests - Ignoring NeighborsMonitor exeption on linux cuz probably WSL failure --- ### 2.1r3 {2022-02-15} #### TLDR - Lose Centos support - Improve MSYS support, regression tests, samples, and documentation #### Change Details - Documentation - Small docs cleanups (mostly typos, obsolete comments removeal) - install cygwin via choco install - Build System Tests And Tools - Docker & Regression Tests & Build System - Remove support for Centos, since Centos 8 no longer builds and both deprecated by IBM - Scripts - use winsymlinks:nativestrict in env variables to fix issues with ScriptsLib/MakeDirectorySymbolicLink (helps MSYS/Cygwin interop) - RegressionTests - Several more sample tests in SAMPLE_APPS_2_TEST (part of regression tests) - Valgrind etc - updated Tests/Valgrind-Helgrind-qCompiler_SanitizerDoubleLockWithConditionVariables_Buggy.supp with one more (rarely needed) workaround for ununtu 21.10 helgrind (basically useless at this point on unubut 20.10) - Supported Compiler Versions - vs2k19 16.11.10 - vsk2k22 17.0.6 - Library - Foundation - Cache - Cleanups to LRUCache code - const_cast / threadsafety - Lookup method really should be const (though not the SynchronizedLRUCache subclass); and use NO_UNIQUE_ADDRESS_ATTR instead of subclassing trick for stats (clarity) - Execution - Minor (not totally backward compatible) chagne to Thread::IndexRegistrar (use sThe instead of ::Get) and static inline and store data directly in it rather than in GetIndex method - addressed (maybe) ASAN issue on windows during shutdown (maybe luck, maybe untrue) but cleaner code anyhow - try this way - Frameworks - Service - Service Framework (and sample): lose Main::RunTilIdleService, but add const optional& runFor param to RunDirectly, and lose obsolete run2Idle commandline arg; --run-directly optional timeout arg (and used in regtests) - Samples \--quit-after support in SSDPClient, SSDPServer, and cleanup said in WebServer/WebService samples, and re-enabled in regression tests the calls to these first two. #### Release-Validation - Compilers Tested/Supported - g++ { 8, 9, 10, 11 } - Clang++ { unix: 7, 8, 9, 10, 11, 12, 13; XCode: 13 } - MSVC: { 15.9.41, 16.11.10, 17.0.6 } - OS/Platforms Tested/Supported - Windows - Windows 10 version 21H2 - Windows 11 version 21H2 - mcr.microsoft.com/windows/servercore:ltsc2019 (build/run under docker) - WSL v2 - MacOS - 11.4 (Big Sur) - x86_64 - 12.0 (Moneterey) - arm64/m1 chip - Linux: { Ubuntu: [18.04, 20.04, 21.10], Raspbian(cross-compiled) } - Hardware Tested/Supported - x86, x86_64, arm (linux/raspberrypi - cross-compiled), arm64 (macos/m1) - Sanitizers and Code Quality Validators - [ASan](https://github.com/google/sanitizers/wiki/AddressSanitizer), [TSan](https://github.com/google/sanitizers/wiki/ThreadSanitizerCppManual), [UBSan](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) - Valgrind (helgrind/memcheck) - [CodeQL](https://codeql.github.com/) - Build Systems - [GitHub Actions](https://github.com/SophistSolutions/Stroika/actions) - Regression tests: [Correctness-Results](Tests/HistoricalRegressionTestResults/2.1), [Performance-Results](Tests/HistoricalPerformanceRegressionTestResults/2.1) - Known (minor) issues with regression test output - raspberrypi - 'badssl.com site failed with fFailConnectionIfSSLCertificateInvalid = false: SSL peer certificate or SSH remote key was not OK (havent investigated but seems minor) - runs on raspberry pi with builds from newer gcc versions fails due to my inability to get the latest gcc lib installed on my raspberrypi - VS2k17 - zillions of warnings due to vs2k17 not properly supporting inline variables (hard to workaround with constexpr) - vs2k19 and vs2k22 - ASAN builds with MFC produce 'warning LNK4006: "void \* \_\_cdecl operator new...' ... reported to MSFT - WSL-Regression tests - Ignoring NeighborsMonitor exeption on linux cuz probably WSL failure --- ### 2.1r2 {2022-02-03} #### TLDR - On Windows, support using *either* Cygwin or MSYS (in fact can interoperate between the two). Support autodetect and configuring which used in Visual Studio Project/SLN files. - Improved documentation - especially around installing dependent tools and building on windows #### Change Details - Build System Tests And Tools - Build Scripts - New DetectedHostOS script, and use to assign to new (make and script) variable DETECTED_HOST_OS, and used in MANY places to simplify / unify code (findstrings and uname etc calls); simplify output of uname into categories - MSYS2 support - throughout all the scripts (esp configure and makefiles and projectfiles) - support either MSYS2 or Cygwin (on windows). - lose support TOOLS_PATH_ADDITIONS_BUGWORKAROUND - switch build scripts to use '-arg' intead of '/arg' even on windows for command line arguments since works much better with MSYS - set MSYS2_ARG_CONV_EXCL=* for MSYS in a number of key scripts/places - configure - use glob instead of ls to fix so works both with msys and cygwin - better error messages from configure - fixed typo in handling of configure --wix - configure script (**not fully backward compatible**) now stored files/paths in config file as cygpath --mixed format (so that can be used on both msys and cygwin transparently) - and used that to delelete obsolete WIN_xxx flags. - use $(TOOLSET_CMD_ENV_SETS) for cab build tool in ActiveLedIt makefile (so works with msys) - ScriptsLib/RunPerformanceRegressionTests sb same for cygwin and msys - tweaked ScriptsLib/RunLocalWindowsDockerRegressionTests print of names of performance results files - use new DETECTED_HOST_OS define from (now) Makefile-Common.mk instead of explicit calls to uname to simplify makefile scripts - Visual Studio Solutions, and Project Files - fixed a number of visual studio SLN file issues (configuraitons) - major cleanup of projects files for visual studio - setting ; and in ApplyConfigurations script setting JOBS_FLAGS and StroikaBuildToolsExtraPath variables into Microsoft.Cpp.stroika.AllConfigs.props (so net effect is with one config variable set in our script we can set path to cygwin or msys for vs project based builds - Makefiles - tweak makefiles for foundation/framework so if Configuraiton.mk not there, run make apply-configuration instead of reporting erorr (and respect gnu make syntax rules and dont inetnd if defsevne though ti really looks better) - fixed CachedOBJSFile_ in makefiles to write objs in cygpath --mixed (on windows) - so cache file works beack and forth between cygwin and msys - Supported Compiler Versions - vs2k19 16.11.9 - vsk2k22 17.0.5 - Regression Tests - Sanitizers - https://stroika.atlassian.net/browse/STK-702 no longer exists so remove valgrind workaround - no longer worakrounds for https://stroika.atlassian.net/browse/STK-674 - needed - github actions - rebaseall hack to try and workaround sporadic failure of msys under docker in github actions - add (windows) builds of msys configurations - various cleanups (sh usage etc) - disable LTO for github action build for code andalyze cuz doesnt help analysis and just slower - docker calls on github (for windows) - try not using run --tty - since that maybe causing some of my github action flakies - DockerFiles - dockerfile cosmetic cleanups - CodeQL + use g++-10 for CodeQL - Documentation - Many cleanups, especially surrounding installation/building - Library - Miscellaneous - use std::destroy_at instead of ->~T() - remove a few legacy references to qStroika_Foundation_Traveral_IterableUsesSharedFromThis_ - lose useless (probably performance counter productive) use of enable_shared_from_this with VariantValue and BLOB - lose deprecated Stroika_Foundation_DataExchange_StructFieldMetaInfo macro - Tests - fixed Tests/Makefile-Test-Template.mk so only depends on StroikaFoundationLib - upped performance limits for runningunder docker (silence warnings) - ThirdPartyComponents - boost - Cleanups to boost makefile, including getting it working with MSYS - openssl - version 3.0.1 - BASH_ENV hack for MSYS2 - added LDFLAGS override in openssl makefile, and filter-out workaround for ?? issue there - Xerces - refactor Xerces makefile os much of the CMake specific stuff now in ScriptsLib/Makefile-CMake-Common.mk - many fixes for msys2 - zlib - attempt at converting zlib makefile to using cmake (Makefile-CMake-Common.mk), but failed so gave up (for now) - cleanups - sqlite - version 3.37.2 - curl - version 7.81.0 - Docker - Renamed containers for windows to include name -cygwin, and added new containers for -msys, and to working - added those MSYS builds - Miscellaneous - Lose Archived old code (revert in v3 branch) #### Release-Validation - Compilers Tested/Supported - g++ { 8, 9, 10, 11 } - Clang++ { unix: 7, 8, 9, 10, 11, 12, 13; XCode: 13 } - MSVC: { 15.9.41, 16.11.9, 17.0.5 } - OS/Platforms Tested/Supported - Windows - Windows 10 version 21H2 - Windows 11 version 21H2 - mcr.microsoft.com/windows/servercore:ltsc2019 (build/run under docker) - WSL v2 - MacOS - 11.4 (Big Sur) - x86_64 - 12.0 (Moneterey) - arm64/m1 chip - Linux: { Ubuntu: [18.04, 20.04, 21.10], Centos: [7, 8], Raspbian(cross-compiled) } - Hardware Tested/Supported - x86, x86_64, arm (linux/raspberrypi - cross-compiled), arm64 (macos/m1) - Sanitizers and Code Quality Validators - [ASan](https://github.com/google/sanitizers/wiki/AddressSanitizer), [TSan](https://github.com/google/sanitizers/wiki/ThreadSanitizerCppManual), [UBSan](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) - Valgrind (helgrind/memcheck) - [CodeQL](https://codeql.github.com/) - Build Systems - [GitHub Actions](https://github.com/SophistSolutions/Stroika/actions) - Regression tests: [Correctness-Results](Tests/HistoricalRegressionTestResults/2.1), [Performance-Results](Tests/HistoricalPerformanceRegressionTestResults/2.1) - Known (minor) issues with regression test output - raspberrypi - 'badssl.com site failed with fFailConnectionIfSSLCertificateInvalid = false: SSL peer certificate or SSH remote key was not OK (havent investigated but seems minor) - runs on raspberry pi with builds from newer gcc versions fails due to my inability to get the latest gcc lib installed on my raspberrypi - Centos 7 - two warnings about locale issues, very minor - VS2k17 - zillions of warnings due to vs2k17 not properly supporting inline variables (hard to workaround with constexpr) - vs2k19 and vs2k22 - ASAN builds with MFC produce 'warning LNK4006: "void \* \_\_cdecl operator new...' ... reported to MSFT - WSL-Regression tests - Ignoring NeighborsMonitor exeption on linux cuz probably WSL failure --- ### 2.1r1 {2022-01-08} #### TLDR - Lose deprecated beta API support, in preparation for release (see [Documentation/Upgrading.md](Documentation/Upgrading.md) ) - Fixed a few ThirdPartyComponents versions (zlib, and libcurl issues) - Small performance tweaks/review/assessment - Docs improvements #### Change Details - Build System Tests And Tools - Build System - tweaked RunPerformanceRegressionTests for windows run x86 and x86_64 tests - fixed RunLocalWindowsDockerRegressionTests to copy out right performance regtests files - workaround https://stroika.atlassian.net/browse/STK-761 - Ubuntu 21.10 (apparent ASAN) - but really I think lto - issue - Compiler bug defines - qCompiler_ASanitizer_global_buffer_overflow_Buggy compiler bug define and workaround - New Compiler Versions - in docker, use vs2k22 17.0.4 - Regression Tests - tweak performance regtests numbers for running under windows/docker (so no warnings) - Documentation - cleanups and prepare for release - Library::Foundation - Characters - String code cleanups due to the fact (now better documented) that String::IRep instances are always IMMUTABLE. Simplfiies alot of things. - Common - **not backward compatible** - changed Common::ThreeWayComparer so it is not templated, but operator() () is templated so args do perfect forwarding - Containers - DataStructures::LinkedList/DoubleLinkeLIst::Link renamed Link_ and made private, and added and used LinkedList::PeekAt () - Fixed Collection_stdmultiset and SortedCollection_stdmultiset to use the argument in-order comparer (and fixed a few names in that code) - Collection_Factory::Default_ () set back to using Colleicton_LinkedList cuz faster (for many cases) than Collection_stdmultiset - and updated regression performance tests to relfect this - DataExchange - fixed https://stroika.atlassian.net/browse/STK-601 - ubsan warning clang call to function (unknown) through pointer to incorrect function type - correct, but intentional - qCompiler_SanitizerFunctionPtrConversionSuppressionBug - Time - replaced Date/TimeOfDay/DateTime::PrintFormat with NonStandardPrintFormat (now that we lost most of the standard ones - clearer name) - Traverasal - **not backward compatible** - but easy - lose Iterator<> postfix ++ support, so that I can have Iterator::operator* (and Current ()) return internal pointer/refernece as small performance tweak - Miscellaneous - removed most deprecated (beta) APIs - **not backward compatible** - (see [Documentation/Upgrading.md](Documentation/Upgrading.md) ) - Coding Style changes (applied throughout code) - mostly cosmetic (I think) - but may have some performance implications (some +, some -) - use much more for (const T& or for (const auto& - replacing just for (T, or other things less clear / appropriate; haven't found clear docs on web about universally what is best here, but I if performance diff unclear (less a win for Stroika than other systems due to COW and maybe more cost due to how iterators return by value not reference) - use MOVE ctors in one more place - change const auto&& to auto&&; and frequently use const auto& in ranged for - use in ranged for loops in a few places (I think works better but not 100% sure) - ThirdPartyComponents - libcurl - fixed libcurl Makefile to include /ScriptsLib/SharedMakeVariables-Default.mk so FUNCTION_QUOTE_QUOTE_CHARACTERS_FOR_SHELL now works right; and added CPPFLAGS in addition to CFLAGS to configure script - fixed missing zlib usage from build of libcurl - workaround https://stroika.atlassian.net/browse/STK-759; and now use curl VERSION=7.80.0 even on macos - sqlite - Version: 3.37.1 - zlib - https://stroika.atlassian.net/browse/STK-568 (update to latest zlib (1.2.8 works fine but 1.2.9 and later crash on win32) - Version: 1.2.11 #### Release-Validation - Compilers Tested/Supported - g++ { 8, 9, 10, 11 } - Clang++ { unix: 7, 8, 9, 10, 11, 12, 13; XCode: 13 } - MSVC: { 15.9.41, 16.11.8, 17.0.4 } - OS/Platforms Tested/Supported - Windows - Windows 10 version 21H2 - Windows 11 version 21H2 - mcr.microsoft.com/windows/servercore:ltsc2019 (build/run under docker) - WSL v2 - MacOS - 11.4 (Big Sur) - x86_64 - 12.0 (Moneterey) - arm64/m1 chip - Linux: { Ubuntu: [18.04, 20.04, 21.10], Centos: [7, 8], Raspbian(cross-compiled) } - Hardware Tested/Supported - x86, x86_64, arm (linux/raspberrypi - cross-compiled), arm64 (macos/m1) - Sanitizers and Code Quality Validators - [ASan](https://github.com/google/sanitizers/wiki/AddressSanitizer), [TSan](https://github.com/google/sanitizers/wiki/ThreadSanitizerCppManual), [UBSan](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) - Valgrind (helgrind/memcheck) - [CodeQL](https://codeql.github.com/) - Build Systems - [GitHub Actions](https://github.com/SophistSolutions/Stroika/actions) - Regression tests: [Correctness-Results](Tests/HistoricalRegressionTestResults/2.1), [Performance-Results](Tests/HistoricalPerformanceRegressionTestResults/2.1) - Known (minor) issues with regression test output - raspberrypi - 'badssl.com site failed with fFailConnectionIfSSLCertificateInvalid = false: SSL peer certificate or SSH remote key was not OK (havent investigated but seems minor) - runs on raspberry pi with builds from newer gcc versions fails due to my inability to get the latest gcc lib installed on my raspberrypi - Centos 7 - two warnings about locale issues, very minor - VS2k17 - zillions of warnings due to vs2k17 not properly supporting inline variables (hard to workaround with constexpr) - vs2k19 and vs2k22 - ASAN builds with MFC produce 'warning LNK4006: "void \* \_\_cdecl operator new...' ... reported to MSFT - WSL-Regression tests - Ignoring NeighborsMonitor exeption on linux cuz probably WSL failure --- ### 2.1b15 {2021-12-25} #### TLDR - Fixed docker compatability issue with github actions - Lose support for Circle CI. Limitations for opensource projects, plus painful debugging, plus github actions working so well just make it not worth supporting. #### Change Details #### Release-Validation - Compilers Tested/Supported - g++ { 8, 9, 10, 11 } - Clang++ { unix: 7, 8, 9, 10, 11, 12, 13; XCode: 13 } - MSVC: { 15.9.36, 16.11.8, 17.0.3 } - OS/Platforms Tested/Supported - Windows - Windows 10 version 21H2 - Windows 11 version 21H2 - mcr.microsoft.com/windows/servercore:ltsc2022 (build/run under docker) - WSL v1 & WSL v2 - MacOS - 11.4 (Big Sur) - both running x86_64 and arn64/m1 chips - Linux: { Ubuntu: [18.04, 20.04, 21.10], Centos: [7, 8], Raspbian(cross-compiled) } - Hardware Tested/Supported - x86, x86_64, arm (linux/raspberrypi - cross-compiled), arm64 (macos/m1) - Sanitizers and Code Quality Validators - [ASan](https://github.com/google/sanitizers/wiki/AddressSanitizer), [TSan](https://github.com/google/sanitizers/wiki/ThreadSanitizerCppManual), [UBSan](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) - Valgrind (helgrind/memcheck) - [CodeQL](https://codeql.github.com/) - Build Systems - [CircleCI](https://app.circleci.com/pipelines/github/SophistSolutions/Stroika) - [GitHub Actions](https://github.com/SophistSolutions/Stroika/actions) - Regression tests: [Correctness-Results](Tests/HistoricalRegressionTestResults/2.1), [Performance-Results](Tests/HistoricalPerformanceRegressionTestResults/2.1) - Known (minor) issues with regression test output - raspberrypi - 'badssl.com site failed with fFailConnectionIfSSLCertificateInvalid = false: SSL peer certificate or SSH remote key was not OK (havent investigated but seems minor) - runs on raspberry pi with builds from newer gcc versions fails due to my inability to get the latest gcc lib installed on my raspberrypi - Centos 7 - two warnings about locale issues, very minor - VS2k17 - zillions of warnings due to vs2k17 not properly supporting inline variables (hard to workaround with constexpr) - vs2k19 and vs2k22 - ASAN builds with MFC produce 'warning LNK4006: "void \* \_\_cdecl operator new...' ... reported to MSFT - WSL-Regression tests - Ignoring NeighborsMonitor exeption on linux cuz probably WSL failure --- ### 2.1b14 {2021-12-22} #### TLDR - Major revsion / cleanups to containers - Unified constructors; major improvments to 'concept' usage on constructors; IsAddable, etc - new KeyedCollection, SortedKeytedCollection, Association, and SortedAssociation containers (along with related factories/concrete types) - No more Iterator patching (and related API changes to containers). - XCode 13 support, including support for M1 native/cross compiling - Visual Studio 2022 support - Performance and polish improvements #### Change Details - Build System And Tools - Build Scripts - PARALLELMAKEFLAG arg support in RunRemoteRegressionTests script - ScriptsLib/RunLocalWindowsDockerRegressionTests now defaults to vs2k22, but example runs shows both run 2k19 and 2k22 - Compiler versions - MSVC - (vs 2k 17) 15.9.41 - (vs 2k 19) 16.11.8 - (vs 2k 22) 17.0.3 - XCode - XCode 13.1 - Clang - added clang++-13 - Compiler bug defines - qCompilerAndStdLib_ASAN_windows_http_badheader_Buggy - another workaround for https://developercommunity.visualstudio.com/t/mfc-application-fails-to-link-with-address-sanitiz/1144525 - added BWA qCompiler_Sanitizer_ASAN_With_OpenSSL3_LoadLegacyProvider_Buggy and a few other changes for last minute openssl 3.0 - qMacUBSanitizerifreqAlignmentIssue_Buggy still buggy on XCode 13 - qCompilerAndStdLib_lambdas_in_unevaluatedContext_Buggy bug workarounds - fixed qCompiler_LimitLengthBeforeMainCrash_Buggy bug define for macos xcode 13 - qCompilerAndStdLib_to_chars_FP_Buggy workaround - qCompilerAndStdLib_SpaceshipOperator_x86_Optimizer_Sometimes_Buggy bug workaround - qCompilerAndStdLib_to_chars_INT_Buggy new define and BWA - qCompilerAndStdLib_deduce_template_arguments_CTOR_Buggy bug define and BWA - qCompilerAndStdLib_from_chars_FP_Precision_Buggy - removed obsolete one - qCompilerAndStdLib_optional_value_const_Buggy etc - qCompilerAndStdLib_if_constexpr_annoyingly_evaluates_untaken_path_Buggy bwa for vs2k17 - qCompilerAndStdLib_explicitly_defaulted_threeway_warning_Buggy is broken for clang++-13 - qCompilerAndStdLib_template_value_type_ambiguous_confusion_Buggy abd workaround - qCompilerAndStdLib_MoveCTORDelete_N4285_Buggy bug define and workaround - Configurations - configure script - fixed cross-compiling flag for configure on macos x86 when setting corss compile for arm - fix confugre to not default to using LTO on clang++6 since that fails on ubuntu for libcurl (not worth debugging why) - Improved configure error reporting if it cannot open configuration output file - fixed configure script calculate of default FEATUREFLAG_ATLMFC (esp for vs2k22) - cleaned up sematnics of --no-sanitize flag to configure and store list as array and now writes out SanitizerFlags to configuration file; and ApplyConfiguration now writes SanizerFlags and ConfigTags to the Configuration.mk file - configure script cleanups: and switch default compiler (if all present) to msvc2k22 (for visual studio versions) - Support for vs2k22 in configure - Docker - workaround https://stroika.atlassian.net/browse/STK-742 issue with docker desktop on windows - updated docker build code to have both builds of vs2k19 and vs2k22 - Switch from support of Ubuntu 21.04 to 21.10 (only support latest short term release); and updated regtests mostly - MacOS Builds - Build / pass regtests on M1 MacOS (alot of fixes rolled into this) - macos default configurations - now also build Release-x86_64 and Release-arm64e - CI Systems - in github action builds, print xcode version - Debugger - Scripts - Cross-Compiled-Only flag optionally to GetConfigurations and --quiet - codeql support added (inside github actions) - Regression Tests - use --cross-compiled-only flags in RegressionTests call to GetConfigurations to correctly count expected number of passed tests - fixed regressiontest sample app test loop to not run local tests when cross compiling - new std::shared_ptr (make_shared) versus Memory::SharedPtr performance test - Documentation - Lots of docs cleanups - Major cleanup of Containers docs - All code cleanups - cleanup use of operator= (...) = default and a few defaulted CTORS - likely/unlikely attr cleanups - in a few placse, use if constexpr instead of #ifdef for bug defines, but still cannot use everywhere - in part due to bugs iwth older GCC versions - Use ++prefix instead of postfix++ preferentially (and --prefix) - **not backward compatible** - decorated all Invariant/Invariant_ methods with noexcept - use Containers::Support::ReserveTweaks code instead of manually doing similar stuff through out stroika - Foundation Library - Cache - Cache/CallerStalenessCache: docs and cleanups, and more careful about setting timestamp at END of fillerCache call, in case that takes real time - MOVE declarations on LRUCache CTOR fixes - Characters - String - new AsASCIIQuietly () method, along with new conversion type it supports (SmallStackBuffer), and used that to refactor String::AsASCII (adding extra conversion type it supports - smallstackbuffer) - various cleanups to String code: SubString_ special case of full string optimizaiton, lose obsolete threadSafeCopy code (earlier thread safety model), and optimized String::Replace - make a few String constructors explicit (2 arg ones) so constructor of pair<> from initializerlist doesnt map to these accidentally - Number Conversion - internal changes in String2Float() to make it run faster (using new std::from_chars) - maybe 30% speedup from this - new String2Int and String2Float overloads taking 2 args (iterators instead of String) as performance tweak and use it JSON reader (and also other JSON reader perf cleanups) - experimental use of __cpp_lib_format - but had worse performance, so ignore for now - use new std c++ to_chars - THAT is much faster than snprintf, for converting float to string (in limited testing) - String2Int and String2Float iterator overloads now implemented using from_chars (where possible) - and with asserts saying same results as before; and for String2Int, new require of no surrounding whitespace - cleanup FloatingConversion code (esp use if constexpr instead of #if for workarounds) - Refactoring: renmaed Float2StringOptions -> FloatConversion::ToStringOptions and Float2String -> FloatConversion::ToString - More cleanups to FloatConversion code - deprecating String2Float and replacing with FloatConversion::ToFloat, and deprecating Float2String and replacing with FloatConversion::ToString - incomplete but better - Added additional regtest for FloatConversion::ToFloat - handling &remainder code/test case - attempt at getting FloatConversions stuff working with locale specific tranforms like japanese numbers and european ,/. confusion; Created https://stroika.atlassian.net/browse/STK-747 and https://stroika.atlassian.net/browse/STK-748 issues to track (total failure) on this front; also created FindLocaleNameQuietly () helper to find locales - deprecated CString::String2Float and CString::Float2String () - and replaced with overloads in FloatConversion (toFloat/ToString) - StringBuilder - CTOR (const wchar_t* start, const wchar_t* end) - Common - refactored operator==/operator<=> code slightly for KeyValuePair/CountedValue to check if Configuration::has_eq and Configuration::has_spaceship on PARTS before providing said operators on WHOLE - Configuration - Concepts - draft/experimental support for Configuration::IsIterableOfPredicateOfT_v with Collection<>::IsAddable (or _t) - fixed test for Configuration::IsIterableOfPredicateOfT_v - new typetraits helper ExtractValueType_t - Added Configuration::is_callable_v utility template - New Configuration::IsTPredicate () - support has_equal_to, HasUsableEqualToOptimization () , has_spaceship tester, and fided issue https://stroika.atlassian.net/browse/STK-749 - deprecated STROIKA_FOUNDATION_CONFIGURATION_DEFINE_HAS and use Configuration::is_detected_v instead (related https://stroika.atlassian.net/browse/STK-749) - Lots of cleanups, deprecating old/unused concepts and redoing a lot using is_detected_v, and added regression tests for several of the concept testers - new utility Configuration::function_traits<> and used that in regression tests, and DeclareEqualsComparer static assertion - Completed switch of order of parameters (**not backward compatible**) for IsPotentiallyComparerRelation<> template function, and a few other related cleanups - Configuration::ExtractValueType_t - not backward compatible* - but rename Configuration::is_iterator_v -> Configuration::IsIterator_v - new Concept 'has_size_v' - Containers - All Containers Constructors - major cleanup of all CTORS - more uniform across archetypes and concrete - Use IsAddable_v in CTORSs and "Add()/AddAll()" methods (static_assert). - **Lose Iterator Patching** - major change to all containers, well document rules of iterator lifetime - https://stroika.atlassian.net/browse/STK-744 - rethink details of Stroika Container constructors - in most containers with comparison relations, replace the restriction to Common::IsPotentiallyComparerRelation with IsEqualsComparer or IsStrictInOrderComparer as appropriate; SOME code that used lambdas might no longer compiler and require a DeclareEqualsCOmparer or DeclareStrictInorderComparer wrapper (so not 100% backward compatible but probably quite close) - replacing enable_if_t of IsAddable_v in container CTORS with just doing in body of CTOR: advantage better error messages, so long as doing so produces no ambiguous ctor sitations and avoids messy qCompilerAndStdLib_template_enableIf_Addable_UseBroken_Buggy workaround - redid concrete container CTORS based on archetype CTORs - https://stroika.atlassian.net/browse/STK-651, https://stroika.atlassian.net/browse/STK-652 , https://stroika.atlassian.net/browse/STK-744 - many (array based) container CTORS call SetCapacity() as makes sense - All Containers other - not totally backward compatible change to all container templates - renamed (for example) _BijectionRepSharedPtr to _IRepSharedPtr (or similar) - use [[NO_UNIQUE_ADDRESS_ATTR]] in MANY places (factories, concretes) to save space/performance - added value_type using declaration in containers (subclassing from Iterable) - _GetWriterRepAndPatchAssociatedIterator helper added to help with new Remove (I, &nextI) apis - lose _APPLY_ARGTYPE, _APPLYUNTIL_ARGTYPE, and use explicit types, and cleanup use of forward declared using typedefs in various mixins (simpler) - and heavy switch to using value_type - ESPECAIALLY as arg to Iterator<> - so much simpler/clearer code in container impls - CloneAndPatchIterator - cleanup Container Clone code - no longer need const cast - various cleanups - losing uneeded const_cast code with iterators - so Stroika Iterators ALWAYS have CONST ptr to underlying data - new ContainerDebugChangeCounts_ used in Containter code - so all the concrete containers use that to track if iterator used after initialized. That debugging found serveral cases where still an issue, so those fixed too so all regtests pass - rewrite of calls to CloneEmpty in Containers - Fixed significant performance bug with container RemoveAll calls (and small bugs with Bijection other apis losing attributes) and deprecated Iterable<>::_UpdateRep - use prepend on a few LinkedList containers instead of Append, and fixed regression tests to not check for order and comment on a few related performance issues - more static asserts in Container::Factory classes, and that uncoverd (and fixed) a bug with Set<> CTOR - Simplified Factory code to not use SFINAE, but use if contexpr insaetd (more readable); then used this to fix Factory for mutlisets to al souse the stdmap impl if needed. And probably fixed bugs where we were doing wrong ithng in some factory cases - renamed array-based containers 'Compact' method to 'shrink_to_fit' - as in stl vector (NOT backward comatpible but nobidy used the API) - Containers::Update (iterator) method now also takes optional Iterator<>* nextI (like remove) - Significant sized change to containers, and NOT fully **backward compatible**: Remove() API now requires it FINDS what is being removed, and RemoveIf() API allows missing values to be removed, and returns bool or count (depending on API) to indicate success. Changed internal Rep methods even more, to accomodate this API change. Affects Set, KeyedColleciton, Mapping, Collection - small docs and semstics cleanups on Containers RemoveAll methods (mostly just returning number removed) - new use of enable_if_t () in Container::... RemoveAll() calls with predicate, and defined additional ones iwth that predicate in most appropriate containers - cleanup CTORs for the various containers - more uniform use of copy/move etc. Prepare to doc all this. And re-opened and solved https://stroika.atlassian.net/browse/STK-541 - just a bad test case and going to document why not allowed\\ - use the names capacity/reserve instead of GetCapacity/SetCapacity () --- I hink hte older names, but it just caused trouble with interoperability - Private::PatchingDataStructures REMOVED - DataStructures - Lots of mostly cosmetic, naming, private cleanups - but also removed suppress support, and other attempts to make more uniform - STLContainerWrapper uses const_iterator for iterator itself, and const ptr to data in iterator, cleaned up remove_constness code, and other data strucutres cleaned up docs/comments (mostly about complexity) - more cleanups of Containers::DataStructures code - especially STLContainerWrapper - losing protected stuff and making things private (a few that were public) and require accessors - lose SupressMore logic, and hack in IteratorImplHelper to workaround it. **NOT BACKWARD COMPATIBLE** (only for code directly iterating using low level data structures), and other related contianer cleanups - Simplified DataStructures iterator 'More' functions - Lose Containers::DataStructures Iterator::More () calls (not backward comaptible but on LOW LIKELIHOOD USE API) - name unification (not 100% backward compatible but nobody uses datastructure apis directly); GetUnderlyingIteratorRep/SetUnderlyingIteratorRep; and optional UnderlyingIteratorRep arg to backend ForwardIterator objects (still not used) - fixed serious bug with Array<>::reserve that happened to go unnoticed due to quirks of how I had scaled before on adding - Support - new refactor - deprecating Containers::ReserveSpeedTweekAddN etc and using new Containers::Support::ReserveTweaks::Reserve4AddN () instead; new performance regtets for Sequence_stdvector and Sequence_Array; and docs cleanups - Association, AssociationCollection (and related concretes and factories) - all new - https://stroika.atlassian.net/browse/STK-49 - Bag - Lose obsolete Bag<> temlpte- container - never implemented and documented why not implemented (at least for now) - Collection - support Collection_stdmultiset<> and integrated it into regtests and Collection_Factory (new default if less present) - KeyedCollection, SortedKeyedCollection (and related concretes and factories) - all new - Mapping - fixed (I think longstanding) bug with Mapping_Array - copying / cloning - not copying comparer (so rarely relevant) - new method: Update() to accomodate new lack of automatic iterator patching in Stroika containers - new Mapping_stdmap::CTOR (map&& src) for performance - Lose initailizer_list etc ctor calls with simpler initializer lists (see docs for Mapping CTOR and examples in regression tests - Multiset - MultiSet_Factory now uses Multiset_LinkedList as default (when no ordering); and lots of comments and performance characteristics of different concrete containers - fixed (long standing) bug with MultiSet_Array:: default constructor (not sure why asan just started warning about this) - Sequence - Sequence<>::erase method - regression test BugWithWhereCallingAdd_Test20_ and fix for Sequence<>::Where - Set - cleanup Set operator overloads, work more/better with Iterable<> and probably performance tweak a few cases - Set:: deprecated Contains (list overload) and replacedwith ContainsAll/ContainsAny - changed (not backward compat but internal) - Set::IRep API - losing Contains, and genrealizing Lookup api to optionally return either value or Iterator (again just internal API); then used that to implement Set::find (...) that returns iterator - SortedCollection - new Containers\Concrete\SortedCollection_stdmultiset., and make it the default in the SortedCollectionFactory - Cryptography - OpenSSL - LibraryContext - fixes to load/unload logic to fix issues found by TemporarilyAddProvider cleanups; and fixed Load/Unload issues - better docs and a few renames of available openssl digest algorithms (and added a few more named mappings) - warn/report if cannot load openssl provider - dont fail in openssl regtests - Additional workaround for https://stroika.atlassian.net/browse/STK-679 on openssl3" - rewrite use of openssl md5 (now deprecated) with Stroika local copy of algorithm - library context code switched from Mapping<> to Association<> use - DataExchange - https://stroika.atlassian.net/browse/STK-558 - ObjectVariantMapper uses KeyedCollection<> - KeyedCollection/SortedKeyedCollection<> now supported in ObjectVariantMapper default mappers - ObjectVariantMapper - performance tweaks - Debug - Debug::UncheckedDynamicCast (use everywhere in place of dynamic_cast, as performance tweak when used just to CHECK/ASSERT) - AssertExternallySynchronizedMutex - cleaned up (made uniform) container support for scoped_lock and shared_lock writeLock/readLock - renamed Debug::AssertExternallySynchronizedLock -> Debug::AssertExternallySynchronizedMutex, class and modules, and deprecated old name - Debug::AssertExternallySynchronizedMutex - https://stroika.atlassian.net/browse/STK-752 - fix move / assign semantics - much simpler implementation now - more self-documenting - DataExchange - Foundation/DataExchange/Atom now uses Concrete::Mapping_stdmap<> for case insensitive map - Execution - renamed BlockingQueue::EndOfInput -> SignalEndOfInput () - Synchronized - Deprecated UpgradeLockAtomically variants now all deprecated because I think the non-atomically way safer; and changed API UpgradeLockNonAtomically (and Quietly variant) to have 2 arg callback return bool - slight cleanup of API, NOT fully backward compatible - IO::Network - mark and workaround stroika bug (?) https://stroika.atlassian.net/browse/STK-750 - with noexcept on Host & Authority and fixed noexcept usage for URI - IO::Networking::HTTP::Headers updated to support Association<> and various overloads/cleanups and docs improvements - Math - workaround apparent bug with fabs () on windows, or just quirky edge case undocumented behavior - in mkElsipolon for NearlyEquals test - Memory - replaced NEltsOf macro with Memory::NEltsOf() function - SharedByValue - added new AssureNOrFewerReferences and GetAndMaybeCopySavingOriginal member functions - revised/new rwget (); and deprecated CONST overload of get (use cget) - SharedByValue_CopyByDefault more efficient for common case of shared_ptr - use make_shared - lots of cleanups to SharedByValue, including performance improvements. SOMEWHAT risky - losing SharedByValue_CopySharedPtrExternallySynchronized abstraction - changed timing threshold on new shared_ptr performance regtest (with make_shared); but more importantly, now switched kSharedPtr_IsFasterThan_shared_ptr to always false - so we really don't need SharedPtr anymore (though may keep around for a little bit) - BlockAllocation - Memory::BlockAllocator<> now supports https://en.cppreference.com/w/cpp/named_req/Allocator - **NOT BACKWARD COMPATIBLE** - but not in a way that should matter since probably not used directly (deprecated BlockAllocator::Deallocate/Allocate - added helper UsesBlockAllocation (), and used it in IterableBase::MakeSmartPtr () to use allocate_shared<> where appropriate, and several other places now uses BlockAllocation - new optional andTrueCheck parameter to UseBlockAllocationIfAppropriate<> template (defaults to true); allows more terse short-cutting when we include block allocation. Used in a couple places as UseBlockAllocationIfAppropriate - https://stroika.atlassian.net/browse/STK-746 draft attempt at using block allocation allocator within std::map<>/set etc usage, instead Stroika containers - fixed Stroika_Foundation_Debug_ValgrindMarkAddressAsAllocated in BlockAllocator code, so hopefully will have corrected rare, hard to reproduce issue on Ubuntu 1804 with helgrind (will take more testing to see) - SmallStackBuffer - Added clear () method - move constructor support for SmallStackBuffer - Traveral - Iterator - Added Refresh() method - **not backward compatible** - but only an issue if someone wrote Container backends - no more IteratorOwnerID and related Iterator Owner stuff - new (debug only) Invariant () support in Iterator<> class, and used it to hook into container class iterator validationchangecount logic, so iterators should be more systemcatilcaly safe to use (meaning debug versions will detect more cases of invalid use automatically); fixed one small bug with compliance to new iterator rules found by stricter assertion checking - small tweaks to Iterator CTOR (no longer explicit on rep, and handle both copy and move of rep and Iterator itself - https://stroika.atlassian.net/browse/STK-690 - use perfect forwarding for MANY cases of iterator arguments - mostly to stroika container ctors and a few key methods (like AddAll) - slight performance tweak - as avoids needless iterator clone - Iterable - deprecated _APPLY_ARGTYPE and _APPLYUNTIL_ARGTYPE and fixed a few remaining uses - marked qStroika_Foundation_Traveral_IterableUsesSharedFromThis_ as DEPRECATED feature flag - qIterationOnCopiedContainer_ThreadSafety_Buggy https://stroika.atlassian.net/browse/STK-535 fixed - Lose obsolete qStroika_Foundation_Traveral_OverwriteContainerWhileIteratorRunning_Buggy https://stroika.atlassian.net/browse/STK-570 - and imrpoved test code a bit - cleanup Iterable CTORs - losing initalizer_list CTOR (cuz CONTAINTER&&) and other cleanups and hten removed remaining workarounds in COntainers CTOR calling () and instead using {} - so far seems to be working (but must test more) - Renamed Iterable<>::FindFirstThat to just Iterable<>::Find() (deprecating old name) - Use Configuration::IsTPredicate () in making Iterable::Find() now a templated function taking templated function object - More Iterable<>::Find () overloads (to find by value) - use move(result) in place of returning it in several places where return type differs (often iterable) from container used to create - so efficent move and not COPIED redundantly through Iterable CTOR (note different types prevents normal return call optimization) - Iterable::mk_ (CONTAINER_OF_T&& from) now hopefully more efficient - not always copying to array (just for initializer_list); and not using array indexing, but a single iterator - use size() instead of GetLength () - deprecated name GetLength () - deprecated Iterable<>::IsEmpty () call, and replaced with just using name empty () (STL name) - Iterable<>::Sequential/Set/EtcEquals methods take default template arg of initializer_list<> so we can say c.Skip (3).SequentialEquals ({4, 5, 6}) etc and updated docs accordingly - IterableFromIterator significant internal code cleanups - replacing many of the template specailizations iwth a few specific methods being enable_if_t and data member same trick - Cleanup/simplify impl of MakeIterableFromIterator and CreateGeneratorIterator () - Samples - updated Container sample to have better docs, and more accurately reflect recent changes to Iterator safety design - fixed Samples/AppSettings projhect files - Sanitizers - tweaked workaround for https://stroika.atlassian.net/browse/STK-644 (helgrind suppression) - https://stroika.atlassian.net/browse/STK-644 valgrind tweaks - so works more - https://stroika.atlassian.net/browse/STK-736 helgrind/tsan supressions (I THINK) no longer needed - just my misunderstandin gbaout debug flag on building sqlite - Quite a few qCompiler_SanitizerDoubleLockWithConditionVariables_Buggy / https://stroika.atlassian.net/browse/STK-717 cleanups - so separate file for valgrind workarounds, and much less blanket disabling and write qCompiler_SanitizerDoubleLockWithConditionVariables_Buggy to .mk file, and then use in Tests Makefile to augment the set of supression files and put all teh supressions for that bug into that one file, so we can surgically apply those suppressions on OSes idnetified as haivngt this problem: related to https://stroika.atlassian.net/browse/STK-717 - https://stroika.atlassian.net/browse/STK-751 valgrind issue supression - https://stroika.atlassian.net/browse/STK-755 valgrind workaround - helgrind suppressions - simplify and document regtest BWA for https://stroika.atlassian.net/browse/STK-632 - re-added workaround for (re-opened) https://stroika.atlassian.net/browse/STK-644 - Tests - added std::set vs Set performance test - cleanup regression test SimpleClassWithoutComparisonOperators and SimpleClass code, and adjust use to verify VerifyTestResult (SimpleClass::GetTotalLiveCount () == 0 and SimpleClassWithoutComparisonOperators::GetTotalLiveCount () == 0); - fix regtest so helgrind uses right set of configs for apps helgrind - ThirdPartyComponents - boost - https://dl.bintray.com no longer supported for boost downloads - lose old complex code for setting --jobs flag in BOOST build - never really worked/helped, so needless complexity - finally got working with vs2k22 (when get new boost) - use boost 1.78.0 (which fixes build issue with VS2k22) - various version processing / chopping cleanups - curl - Simplify / fix invoke submake in libcurl thirdpartycomponents makefile so should work for raspbeerypi cross config and macos m1 cross compiles - cleanup curl makefile (macos bug workaround) - and use curl 7.80.0 (except still not on macos) - LZMA - fixed LZMA TPC makefile to use configure-based linker, so cross-compilers work on macos - openssl - https://stroika.atlassian.net/browse/STK-427 (Get OpenSSL working with cross-compile...) workaround appears no longer needed for raspberrypi and causes problems on macos - OpenSSL 3.0 - Many fixes/changes to build for different OSes etc and openssl 3 support - fix builds for raspberrypi - machine arm-linux-gnueabihf - set target config for that machine so builds properly and no -m64 errors - openssl 3.0 builds need configure --libdir=lib(still untested)??? - fixed cross compiling on m1/i86 machines for macos - Comments, and made ReturnType public in each Digester - moved KeyLength.IVLength methods to CipherAlgorithm - redo EVP_BytesToKey usage so cleaner and avoids warnings from openssl3 - sqlite - Fixed makefile logging to BUILD_LOG.txt - Version 3.37.0 - https://stroika.atlassian.net/browse/STK-632 sqlite threading bug workaround - re-enable sqlite 3.37.0 and a few fixes to makefile, all related to fix to https://stroika.atlassian.net/browse/STK-753 (did a while back but somehow the commit didn't get pushed) - Xerces - fixed build for vs2k22 - zlib - fixed zlib makefile to pass along AR/RANLIB build flags to lower makefile (for build of with clang/lto on ubuntu) #### Release-Validation - Compilers Tested/Supported - g++ { 8, 9, 10, 11 } - Clang++ { unix: 7, 8, 9, 10, 11, 12, 13; XCode: 13 } - MSVC: { 15.9.36, 16.11.8, 17.0.3 } - OS/Platforms Tested/Supported - Windows - Windows 10 version 21H2 - Windows 11 version 21H2 - mcr.microsoft.com/windows/servercore:ltsc2022 (build/run under docker) - WSL v1 & WSL v2 - MacOS - 11.4 (Big Sur) - both running x86_64 and arn64/m1 chips - Linux: { Ubuntu: [18.04, 20.04, 21.10], Centos: [7, 8], Raspbian(cross-compiled) } - Hardware Tested/Supported - x86, x86_64, arm (linux/raspberrypi - cross-compiled), arm64 (macos/m1) - Sanitizers and Code Quality Validators - [ASan](https://github.com/google/sanitizers/wiki/AddressSanitizer), [TSan](https://github.com/google/sanitizers/wiki/ThreadSanitizerCppManual), [UBSan](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) - Valgrind (helgrind/memcheck) - [CodeQL](https://codeql.github.com/) - Build Systems - [CircleCI](https://app.circleci.com/pipelines/github/SophistSolutions/Stroika) - [GitHub Actions](https://github.com/SophistSolutions/Stroika/actions) - Regression tests: [Correctness-Results](Tests/HistoricalRegressionTestResults/2.1), [Performance-Results](Tests/HistoricalPerformanceRegressionTestResults/2.1) - Known (minor) issues with regression test output - raspberrypi - 'badssl.com site failed with fFailConnectionIfSSLCertificateInvalid = false: SSL peer certificate or SSH remote key was not OK (havent investigated but seems minor) - runs on raspberry pi with builds from newer gcc versions fails due to my inability to get the latest gcc lib installed on my raspberrypi - Centos 7 - two warnings about locale issues, very minor - VS2k17 - zillions of warnings due to vs2k17 not properly supporting inline variables (hard to workaround with constexpr) - vs2k19 and vs2k22 - ASAN builds with MFC produce 'warning LNK4006: "void \* \_\_cdecl operator new...' ... reported to MSFT - WSL-Regression tests - Ignoring NeighborsMonitor exeption on linux cuz probably WSL failure --- ### 2.1b13 {2021-08-15} #### TLDR - Database (SQL) refactoring - new SQL namespace, improvements to ORM code, versioning (still alpha), ODBC (not usable yet) - Support MacOSX M1 machines - New Configuration names on Windows (Debug, Debug-x86_64, etc) #### Change Details - Build System And Tools - Build Scripts - use GetConfigurations --all-default in RegressionTest script - Compiler versions - use vs2k19 VS_16_10_4 in docker contianer - compiler bug defines - qCompilerAndStdLib_ASAN_initializerlist_scope_Buggy (updated link) - qCompilerAndStdLib_linkerLosesInlinesSoCannotBeSeenByDebugger_Buggy bug define so .natvis files work better for some types in VS2k19 - Configurations - **not fully backward compat**: changed default names of windows configurations from Debug-U-32 etc to Debug, Debug-x86, Debug-x86_64, etc - so a bit more like unix world - new configure feature - build-by-default; can be set to always, never, or (uname -o or if that fails uname); then in builds when no args to make specified for configuration, by default just buold GetConfigurations --all-default instead of GetConfigurations --all (except for clobber which defaults to all); idea is to amke it easier to make one directory with multiple sets of builds from differnt hosts (like WSL) - disable Release-Logging configuration in make-default-configurations by default (still generated but not make of make all) - fixed matching logic in ScriptsLib/GetConfigurations for --config-tags case (now --config-tags x86 works correctly) - Configure support for MACOSX_DEPLOYMENT_TARGET - with sensible (but not great) defaulting. Seems needed to build for m1 macos processor machine - make defualt-configurations now uses --only-if-has-compiler - (for ubuntu 18.04) - if you do make default-configurations - configure will default to gcc-8 instead of gcc (which wont work) - Docker Containers - Build more containers for Stroika-Dev-{1804,2004,2010} - fixed dockerfile for centos8 (change in name of cmake package) - MacOS Builds - gsed not /usr/local/opt/gnu-sed/libexec/gnubin/sed - support checking for gsed on MacOS X - configuraiton changes to allow build for m1 - CI Systems - switched macos- github action runner from macos-10.15 to macos-latest (still maps to same thing but will switch to macos-11l when github actions support it) - Debugger - Added datetime visualiizers for VisualStudio-Stroika-Foundation-Debugger-Template.natvis - Documentation - quasi-namespace design pattern - docs cleanups; and notes for issues with building on m1 MacOS - Foundation Library - Containers - Added Set<>::Intersects(), Intersect/Insersection,Difference cleanups - Database - Refactor SQL code into Database::SQL namespace (includes ORM, SQLite, ODBC code) - new abstraction SQL::Connection (used in SQL::SQLite::Connection as base-class) (and statement and transaction) - SQL::EngineProperties - **new** - SQL::ORM - new TableConnection class (wraps connection and adds logic based on ORM Schema) - schema code - fIsKeyField and fNotNull now boolean instead of optional\; better error logging; and use INTEGER not INT with autoincrement (for sqlite) - ORM::Provisioning - new module Database/SQL/ORM/Versioning, and used new ProvisionForVersion () in the samples, to avoid dbInit() arg to SQLIte::Connection::New() - instead separate provision of DB after connection created - fixed bug with handling of nullable fields in ORM::Schema::Table::MapFromDB: dont force coerece them to their target type - ORM::Schema::Field change in fields - lose fNotNull and just use fRquired - means same thing - and better documented details (and suggestions for next steps) and updated samples/regtests - SQL::ORM::Schema::Field - lose fAutoIncrement and replace with fDefaultExpression = Schema::Field::kDefaultExpression_AutoIncrement - SQL::SQLite - many cleanups / **old names deprecated** - cleaned up semantics of SQLite Statement::GetAllRows() and added GetRemainingRows() method - SQLite::Connection::New ()/2 deprecated (use provisionveriosn) - SQL::ODBC - refactor of ODBCClient code to use Database::SQL::Connection and renamed to SQL::ODBC - Not enough there to really work/use, but enough so you could do a simple connection to ODBC database but untested - DataExchange - fixed VariantValue convert to int support to being allowed (used to throw) - IO::Network - InternetAddress::As> templates now documented to allow cases were size not known (and return empty vector) - Samples - SQL (renamed from SQLite sample) - refactored to use new connection API - still only runs with SQLite, but now COULD be used with ODBC connections too - sample now has ORMEmployeesDB sample code - Tests - draft of RegressionTest3*sqlite_EmployeesDB_with_ORM_and_threads* regtest - valgrind helgrind suppression - ThirdPartyComponents - libcurl - use libcurl 7.78.0 (EXCEPT ON MACOS - where its broken so use 7.76.1) - openssl - notes on openssl 3 beta2 test - not working - SQLite - sqlite 3.36.0 #### Release-Validation - Compilers Tested/Supported - g++ { 8, 9, 10, 11 } - Clang++ { unix: 7, 8, 9, 10, 11, 12; XCode: 12 } - MSVC: { 15.9.36, 16.10.4 } - OS/Platforms Tested/Supported - Windows - version 21H1 - mcr.microsoft.com/windows/servercore:ltsc2019 (build/run under docker) - WSL v1 - MacOS - 11.4 (Big Sur) - both running x86_64 and arn64/m1 chips - Linux: { Ubuntu: [18.04, 20.04, 21.04], Centos: [7, 8], Raspbian(cross-compiled) } - Hardware Tested/Supported - x86, x86_64, arm (linux/raspberrypi - cross-compiled), arm64 (macos/m1) - Sanitizers - [ASan](https://github.com/google/sanitizers/wiki/AddressSanitizer), [TSan](https://github.com/google/sanitizers/wiki/ThreadSanitizerCppManual), [UBSan](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) - Valgrind (helgrind/memcheck) - Build Systems - [CircleCI](https://app.circleci.com/pipelines/github/SophistSolutions/Stroika) - [GitHub Actions](https://github.com/SophistSolutions/Stroika/actions) - Regression tests: [Correctness-Results](Tests/HistoricalRegressionTestResults/2.1), [Performance-Results](Tests/HistoricalPerformanceRegressionTestResults/2.1) - Known (minor) issues with regression test output - raspberrypi - 'badssl.com site failed with fFailConnectionIfSSLCertificateInvalid = false: SSL peer certificate or SSH remote key was not OK (havent investigated but seems minor) - runs on raspberry pi with builds from newer gcc versions fails due to my inability to get the latest gcc lib installed on my raspberrypi - Centos 7 - two warnings about locale issues, very minor - VS2k17 - zillions of warnings due to vs2k17 not properly supporting inline variables (hard to workaround with constexpr) - vs2k19 - ASAN builds with MFC produce 'warning LNK4006: "void \* \_\_cdecl operator new...' ... reported to MSFT - WSL-Regression tests - Ignoring NeighborsMonitor exeption on linux cuz probably WSL failure --- ### 2.1b12 {2021-06-17} #### TLDR - Overall ReadMe docs improvements - Fixed horrible build-system issue - was not actually testing with VS2k17: fixed regression tests and all bug compatability logic to work wtih vs2k17 again - new compilers (g++11, clang++12) and OSes (MacOS 11.4, Ubuntu 21.04) - Database infrastructure improvements (incomplete) - new ptr-to-member CTOR for StructFieldMetaInfo (using new Memory::OffsetOf), and change Stroika_Foundation_DataExchange_StructFieldMetaInfo() - to not use offsetof() - with Stroika_Foundation_DataExchange_StructFieldMetaInfo now deprecated - Led and SystemPerformance framework cleanups - OpenSSL API wrapper improvements - Default to using ASAN on windows debug builds #### Change Details - Build System And Tools - support for Ubuntu 21.04, g++11, clang++12 - fixed calls to cygpath to use --ignore so they behave reasonably when you call with no path arguments (eg. when StroikaLibs is the empty string/list) - ScriptsLib/ApplyConfigurations now also sets NMakeIncludeSearchPath so we can find all the included libraries/headers from visual studio that are part of the stroika thirdpartycomponents too (and others); also had to update each project file to use inheirted values - compiler bug defines - specifically related to getting VS2k17 working again - lose no longer needed bug define qCompilerAndStdLib_TemplateIteratorOutOfLineTemplate_Buggy (we only support vs2k17 back to 15.7.x (and maybe only back to 15.9.x); and lose most of the intermediate bug version defines for in between FULLVERSIONS - bug defines qCompilerAndStdLib_usingOfEnumFailsToBringIntoScope_Buggy for vs 2k 17 compat - qCompilerAndStdLib_initializer_list_sometimes_very_Buggy bug workaround vs2k17 - qCompilerAndStdLib_uniformInitializationsFailsOnIntSize_t_Buggy bug define for vs2k17 - new bug define qCompilerAndStdLib_const_extern_declare_then_const_define_namespace_Buggy - new qCompilerAndStdLib_constexpr_call_constexpr_sometimes_internalError_Buggy, qCompilerAndStdLib_MemInitializerWithBitfield_Buggy vs2k17 BWA - new qCompilerAndStdLib_startupAppMagicStaticsNotWorkingFully_Buggy bug workaround for vs2k17 - lose no longer needed bug define qCompiler_cpp17ExplicitInlineStaticMemberOfTemplate_Buggy (for vs2k17 but not referenced anymore) replaced places still needed with better named bug define qCompiler_cpp17InlineStaticMemberOfClassDoubleDeleteAtExit_Buggy - tweak bug defines for g++ - 10.3 (and GLIBCXX*10x* and AND 11x bug define comments), fixed qCompilerAndStdLib_explicitly_defaulted_threeway_warning_Buggy define for clang++12, qCompilerAndStdLib_regexp_Compile_bracket_set_Star_Buggy already broken in clang12, broken for clang++12 too - lose qCompilerAndStdLib_static_const_inline_struct_with_LTO_Buggy bug define and workaround - I think was a mistake and order of CTOR before main bug - new compiler bug workaround qCompilerAndStdLib_enum_with_bitLength_opequals_Buggy; and updates for gcc-11 bug defines - qCompiler_HasNoMisleadingIndentation_Flag bug define for SQLITE - One worakround marked qCompilerAndStdLib_static_const_inline_struct_with_LTO_Buggy really has nothing todo with LTO - want to avoid deadly startup (before main const ref) ordering bug - so use function / magic inits to lazy create instead of file scope global - These instances of qCompiler_cpp17InlineStaticMemberOfClassDoubleDeleteAtExit_Buggy where a PITA to find all of and workaround (and still cannot fully) - but enuf so it all works/runs (just lots of linker warnings still and ugly BWAs) - Deal with static inline constexpr definitions - which dont really work right with vs2k17: /FORCE:MULTIPLE - new bug defines qCompilerAndStdLib_relaxedEnumClassInitializationRules_Buggy, qCompilerAndStdLib_default_constructor_initialization_issueWithExplicit_Buggy - new qCompilerAndStdLib_ASAN_initializerlist_scope_Buggy bug workaround for visual studio ASAN - qCompilerAndStdLib_maybe_unused_b4_auto_in_for_loop2_Buggy bug define and workaround - deprecated use of Ubuntu2010 and instead use Ubuntu2104 - fixed serious bug in ScriptsLib/Configure-VisualStudio-Support.pl - was always using vs2k19 compilers - not vs2k17 - so havent been testing vs2k17 since I rewrote that script - tweak basic-unix-test-configurations*valgrind_configs* so uses valgrind on latest / default compiler, not specificialy g++-8 (excpet on ububtu 1804 where that selection needed) - Configure - by default, on msvc > 16.10 msvc - and apply-default-flags- turn on asan by default - Docker - small dockerfile cleanups/simplifations (lose DEBIGNA_FRONTEEND=nonointeractive doesnt seem needed anymore - RegressionTests - in regressiontests - print version of XCode installed, and where its installed - Documentation - top level readme docs big improvement (especailly introduction) - readme on docker containers improvements - Foundation Library - Common - new ConstantProperty\<> template replaces old **deprecated** VirtualConstant\<>, and lots of cleanups/improvements in the newly named class. - new GUID As<> template overloads, and docs, and regression tests - Configuration - fixed **serious bug** in GetSystemConfiguration_CPU ()- check backwards and was never capturing CPU info for Linux - new utility Configuration::GetNumberOfLogicalCPUCores () - Containers - docs/requires on a Queue Dequeue/RemoveHead - Added Set\::Contains (const Iterable\& items) overload - use more uniform initialization - fixed - bad enable_if in CTOR Mapping\<> overloads - Also dont restruct/prevent is_base_of for other containers like Set etc - to do comparer/otherset args - resolved (mostly) : documented in Iterable::CTOR (initializer_list<>) issue and why often not safe/desirable (with templates) to use {} cuz interpretted as list-initialization - Cryptography - OpenSSL changes (inspired by testing openssl 3.0 alpha) - **not backward compatible** - renamed (CipherAlgorithm::e\* to CipherAlgorithms:k\*, making them VirtualConsants, instead of enums. - CipherAlgorithm is now a using of the openssl type (may not be where we end up on this). - deprecated OpenSSL::Convert2OpenSSL - Added kAllLoadedCiphers, AllCiphers, kDefaultProviderCiphers, kLegacyProviderCiphers (draft impl still must fix) - OpenSSL LibraryContext support - GetCipherByName () support and other openssl cleanups - wrap CipherAlgorithm as a class (instead of enum or string); giving it handy methods; LibraryContext::pAvailableAlgorithms property, and progress supporting openssl3 better - DigestAlgorithm now class and no longer enum, so reference **not backward compatoble** predefined ones as DigstAlgorithms::kMD5 instead of DigestAlgorithm::eMD5 - Fix a couple small virtual/leak issues - Database - SQLite - various improvements, including Transaction support, CompiledOptions, and improvemnts to Bind() logic/overloads, named memory DBS - Debug::AssertExternallySynchronizedLock - (DRAFT) ORM module (not really but functionally similar) - improved error reporting and automation tests - ENABLE_JSON1 flag for SQLITE and begin exploring use of the extension - DataExchange - New method: VariantValue::ConvertTo - VariantValue - Constructors now several of them explicit (to avoid confusing implicit conversions with containers) - had to change several code calls to react to this - added operator= overloads to compoensate, a bit - (**not backward compatible but minor**) - Several VariantValue CTORS now explicit, so you need to wrap calls with VariantValue{}; helps make less likely trouble with Iterable\ or other types with initializer_list\ that might be used with VariantValue (and cause issues like ) - CTOR for StructFieldMetaInfo (using new Memory::OffsetOf), and change Stroika_Foundation_DataExchange_StructFieldMetaInfo() - to not use offsetof() - with **Stroika_Foundation_DataExchange_StructFieldMetaInfo now deprecated** - ObjectVariantMapper - AddCommonType now does forwarding of arguments, and MakeCommonSerializer for GUID now takes optional type arg for how to store (still stores by default as string) - Fixed bug with InternetMediaType CTOR where it could lose proper mapping comparer; todo had to workaround stroika bug 738 with mapping class, and added jira ticket for that bug, along with regression test case - Execution - WaitableEvent::Wait overload - more careful/restrictive CTOR template overload for Execution::Function class - IO::Network - HTTP - Removed Headers::CopyFlags (KLUDGE); added/respected property 'autoComputeContentLength' - restructure IO::Netwowrk::Interface weindows code to get wirelessinfo based on feedback from ASAN: new code LOOKS worse, but corresponds more precseily to example docs - Memory - Memory::AccumulateIf () - more overloads/docs; and in Memory namespace: optional operator+-\*/ functions CHANGED SEMANTICS INCOMPATIBLY (**apichange**) - now if ither lhs or rhs is nullopt, returns nullopt - **not backward compatible** reversed args for Memory::CopyToIf() - now assign right to left, so destinition always required and first argument (address of arg) - Memory::OffsetOf() (to replace std c++ macro offsetof()) - new utility Memory::ValueOf(std::optional) - Traversal - Iterator\ - Added a few static_asserts () to Iterator\ make clearer error messages - Iterable\ - Added a few static_asserts () to Iterable\ to make clearer error messages - Added Iterable\::operator bool () - deprecated Iterable::First/Last/1 overloads and replaced with a slightly better definition (templated) - documented ambiguity on subclasses of Iterable\<> calling base class Iterable CTOR - be carefuly to select inherited&& CTOR - Frameworks Library - Led - Lots of miscellaneous cleanups, especailly to GDI code, cleaning up names used etc (sb nothing functional changed) - SystemPerformance - Misc. - fixed bug with capturing context stats in performance framework process instrument (which was used to compute ave cpu) - Added Frameworks/SystemPerofmrance::Instrument::fType2MeasurementTypes, which enabled Instrument::MeasurementAs () overloads - cleanups to Instruments API (not backward compat but should be irrelevant) - In Frameworks/SystemPerformance::Capturer - if constructed wtih explicit capture sets, then run once immediately - Documented thread safety for various classes (and cleaned up sample/use of Captuere cuz was already internally synchronized) - MeasurementSet::MergeAdditions() - Capturer now CORRECTLY handles multiple capturesets and sychronizes each appropriately (with just one thread as well as you can). - Instrument, Capturer etc uses properties - Added property pContext to Instrument - a shared_ptr context object. This is handled internally as internally synchronized. - Thread safety checks (using private Debug::AssertExternallySynchronizedLock) - Serveral fixes - context/catpured - support to respoect fMinimumAveragingInterval - SystemPerformance::Instruments::CPU::... deprecated GetInstrument () - replaced with Instrument class, and deprecated GetObjectVariantMapper replaced with Instrument::kObjectVariantMapper - Frameworks/SystemPerformance/Support/InstrumentHelpers: CapturerWithContext_COMMON\::cContextPtr/rwContextPtr - helper to cleanup code in frameworks/instruments and lots of related refactoring - FileSystem::GetAvailableDisks uses FILE_SHARE_READ not FILE_SHARE_WRITE | FILE_SHARE_READ, still seems to work, but still seems to require admin permissions - Frameworks/SystemPerformance/Instruments/CPU **incompatible change** - fAverageCPUTimeUsed now returns 1..#logical cores and new field in returned data - # logical cores. - WebServer - Response: watch ETag change, and if set, the automatically lear the autoComputeEtag property - Samples - SystemPerformanceClient - improve - SQLite - new sample - ThirdPartyComponents - boost - 1.76.0 - libcurl - use libcurl 7.77.0 (EXCEPT ON MACOS - where its broken so use 7.76.1) - SQLite - big changes to sqlite makefile (now builds the sqlite commandline utility); Also now includes SharedBuildRules-Default.mk and uses DEFAULT_CC_LINE and DEFAULT_LINK_LINE (patching approproriate config variables they reference). - use SQLITE version 3.35.5 - openssl - version 1.1.1k - (tested v3 alphas up to alpha17, kind of work but with issues) #### Release-Validation - Compilers Tested/Supported - g++ { 8, 9, 10, 11 } - Clang++ { unix: 7, 8, 9, 10, 11, 12; XCode: 12 } - MSVC: { 15.9.34, 16.10.2 } - OS/Platforms Tested/Supported - Windows - version 21H1 - mcr.microsoft.com/windows/servercore:ltsc2019 (build/run under docker) - WSL v1 - MacOS - 11.4 (Big Sur) - Linux: { Ubuntu: [18.04, 20.04, 21.04], Centos: [7, 8], Raspbian(cross-compiled) } - Hardware Tested/Supported - x86, x86_64, arm (linux/raspberrypi - cross-compiled) - Sanitizers - [ASan](https://github.com/google/sanitizers/wiki/AddressSanitizer), [TSan](https://github.com/google/sanitizers/wiki/ThreadSanitizerCppManual), [UBSan](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) - Valgrind (helgrind/memcheck) - Build Systems - [CircleCI](https://app.circleci.com/pipelines/github/SophistSolutions/Stroika) - [GitHub Actions](https://github.com/SophistSolutions/Stroika/actions) - Regression tests: [Correctness-Results](Tests/HistoricalRegressionTestResults/2.1), [Performance-Results](Tests/HistoricalPerformanceRegressionTestResults/2.1) - Known (minor) issues with regression test output - raspberrypi - 'badssl.com site failed with fFailConnectionIfSSLCertificateInvalid = false: SSL peer certificate or SSH remote key was not OK (havent investigated but seems minor) - runs on raspberry pi with builds from newer gcc versions fails due to my inability to get the latest gcc lib installed on my raspberrypi - Centos 7 - two warnings about locale issues, very minor - VS2k17 - zillions of warnings due to vs2k17 not properly supporting inline variables (hard to workaround with constexpr) - vs2k19 - ASAN builds with MFC produce 'warning LNK4006: "void \* \_\_cdecl operator new...' ... reported to MSFT - WSL-Regtests - Ignoring NeighborsMonitor exeption on linux cuz probably WSL failure --- ### 2.1b11 {2021-03-23} #### TLDR - Adjusted circleci build file to not emit debug symbols to avoid running out of disk space on circleci builds #### Change Details - Adjusted circleci build file to not emit debug symbols to avoid running out of disk space on circleci builds #### Release-Validation - Compilers Tested/Supported - g++ { 8, 9, 10 } - Clang++ { unix: 7, 8, 9, 10, 11; XCode: 12 } - MSVC: { 15.9.34, 16.9.2 } - OS/Platforms Tested/Supported - Windows - version 20H2 - mcr.microsoft.com/windows/servercore:ltsc2019 (build/run under docker) - WSL v1 - MacOS - 10.15.5 (Catalina) - Linux: { Ubuntu: [18.04, 20.04, 20.10], Centos: [7, 8], Raspbian(cross-compiled) } - Hardware Tested/Supported - x86, x86_64, arm (linux/raspberrypi - cross-compiled) - Sanitizers - [ASan](https://github.com/google/sanitizers/wiki/AddressSanitizer), [TSan](https://github.com/google/sanitizers/wiki/ThreadSanitizerCppManual), [UBSan](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) - Valgrind (helgrind/memcheck) - Build Systems - [CircleCI](https://app.circleci.com/pipelines/github/SophistSolutions/Stroika) - [GitHub Actions](https://github.com/SophistSolutions/Stroika/actions) - Regression tests: [Correctness-Results](Tests/HistoricalRegressionTestResults/2.1), [Performance-Results](Tests/HistoricalPerformanceRegressionTestResults/2.1) - Known (minor) issues with regression test output - runs on raspberry pi with builds from newer gcc versions fails due to my inability to get the latest gcc lib installed on my raspberrypi - badssl.com site failed on raspberripi (havent investigated but seems minor) --- ### 2.1b10 {2021-03-21} #### TLDR - New C++ "Property" classes, aping the C# property mechanism - New IO::Network::HTTP::Headers class (using properties), like the C#/.net WebServer headers object (collection + smart properties) - Major improvements to Frameworks::WebServer, including use of new IO::Netwoks::HTTP::Headers class, thread safety checks, CacheControl, CORS (more properly/completely), Cookies, ETag, Transfer-Coding chunked support and more - Date/locale Parse/Format improvements - VSCode settings, so you can now easily remote ssh workspace to docker ssh (or wsl) container, to edit and remote debug #### Change Details - Build System And Tools - fixed regression in (so far just ubuntu 1804 regtests) - not printing any performance test results - minor tweaks to make clean so it doesnt' blow away Configuration.mk Stroika-Current-Version.h files - added g++-10-release-c++17 to list of configs in ScriptsLib/RunPerformanceRegressionTests that can be used to run performance tests, and improed logging if we call ScriptsLib/RunPerformanceRegressionTests without a valid configuraiton built - Debugger - Added StringBuilder to VisualStudio-Stroika-Foundation-Debugger-Template.natvis - .vscode Several cleanups, to build scripts etc, but MOSTLY got working remote connection to ssh unix systems either under WSL, or remote (docker) ssh systems - Visual Studio Project files - for sample projects that only depend on Foundation library, update Makefile setting of StroikaLibs to only refer to that library so when I do a rebuildall, and frameworks lib not yet built (cuz visaul studio told those apps dont depend on it) - they dont erronously fail to build cuz that dopendency doesnt exist when they are ready to link - Docker - docker stroika-dev and stroika-dev-2004 containers support lldb and ssh, and macro to allow building stroika-dev and stroika-dev-2004 - make clobber with no config/tags, then also deelte all under Builds - Documentation - went through jira db and cleaned up what is reported there. http://stroika-bugs.sophists.com - Improved docs on samples - document 'Quietly' namining convention in Stroika - Library Miscellaneous - replaced a bunch of uses of constexpr wchar_t[] with constexpr wstring_view, and used that to lose (simplify) various \_Array classes I had to define for Strings, like static constexpr wstring_view kLocaleStandardAlternateFormat replaces static inline const String kLocaleStandardAlternateFormat AND static constexpr wchar_t kLocaleStandardAlternateFormat_AsArray[] - replaced several out of line static const initializations with inline ones - Foundation Library - Characters - new utility function String::Join - a few more String::EqualsComparer::operator() and String::operator== and String::operator<=> overloads - Common - new (somewhat experimental) Property implementation (but used heavily in IO::HTTP::Headers, and Framework::WebServer), including regrssion tests - cleanups for bool IsPotentiallyComparerRelation (const FUNCTOR&) - fixed https://stroika.atlassian.net/browse/STK-720: IsEqualsComparer<> fix (using decay) allows Set (EqualsCompare which is constnat) - ArgByValueType does decay_t so doesnt fail if given reference type - renamed Common/EmptyObjectForConstructorSideEffect to Common/ObjectForSideEffects - Configuration - Compiler Bug Defines - lose qCompilerAndStdLib_std_get_time_pctx_Buggy workaroudn in Dete code - only needed for time code (now) - NEW qCompilerAndStdLib_stdOptionalThreeWayCompare_Buggy bug definition workaround - qCompilerAndStdLib*stdOptionalThreeWayCompare_Buggy CompilerAndStdLib_AssumeBuggyIfNewerCheck* (\_LIBCPP_VERSION <= 11000) - qCompilerAndStdLib_template_enable_if_operator_conversion_notUsedInOverloadsforOpEquals_Buggy also broken in gcc10 - qCompilerAndStdLib_template_enable_if_const_nonconst_overload_Buggy also broken for clang - Lose uneeded qCompilerAndStdLib_template_enable_if_operator_conversion_notUsedInOverloadsforOpEquals_Buggy (really was operator== needed) - fixed the bug that was causing crash on property code for unix (!qCompilerAndStdLib_template_enable_if_const_nonconst_overload_Buggy) - support Visual studio.net 16.9.2 (vs2k19 latest), with caveat that cannot tell difference by compiler MSC_VER easily for this release) - Found a cleaner workaround for qCompilerAndStdLib_template_enable_if_const_nonconst_overload_Buggy, so I can lose the define (never was sure it was a bug anyhow) - **not backward compatible change**: Configuration::EnumNames::PeekValue() now returns optional instead of const ENUM_NAME\* - fits neater with modern c++ - qCompilerAndStdLib_locale_time_get_PCTM_RequiresLeadingZero_Buggy bug define, workaround and reported to GCC developers - qCompilerAndStdLib_locale_time_get_date_order_no_order_Buggy bug define, (reported to gcc folks), and regtest created - renamed qCompilerAndStdLib_locale_time_get_loses_part_of_date_Buggy -> qCompilerAndStdLib_locale_time_get_reverses_month_day_with_2digit_year_Buggy, cleaned up regression tests, and reported to microsoft - read /etc/os-release with IO::FileSystem::FileInputStream::New instead of iostream - Containers - LockFree - new lock-free Containers/LockFreeDataStructures/forward_list (appears to mostly work, but documented things todo), original from internet, and hints from internet, and passing regression tests (but not totally for valgrind, probably OK) - Collection - Collection\::Remove (ArgByValueType\ item, const EQUALS_COMPARER& equalsComparer) now returns bool instead of void - simplified CTOR for one overload of Set<> template overload CTOR (fixed Set\ CTOR arg when its the second arg cuz not confusable with copy CTOR) - Fixed overload of Collection::RemoveAll() to add extra enable_if_t restriction to avoid ambiguity - Cryptography - Digtest - new (refactoring but largely unused) Cryptography/Digest/Algorithm API - Only CHANGE was changed the definition of SuperFastHash algorithmn so that its windowable. (and changed hardwired examples of results). - And added interal asserts that new and old APIS produce the same results. - cleanup to Digester algorithm support. For USERS of these classes, no change, except that you can use the Digester algorithm in a windowed way - new Digest::ComputeDigest() template function overload (preferred way to use when not incormemental - new IncrementalDigester wrapper. - Factored API for algorithjms into Digest/Algorithm/Algorithms.h - Debug - Change to AssertExternallySynchronizedLock: now extension point SharedContext/SetAssertExternallySynchronizedLockContext, to allow a set of objects to share a common 'these all must be accessed together' from within one thread (e.g. HTTP Connection Request/Response/Headers/etc) - Improved docs on AssertExternallySynchronizedLock, and improved DbgTrace messages for when this locker error detector finds a failure - Debug/AssertExternallySynchronizedLock switched to using forward_list instead of multiset, as probably faster for common cases and closer to a lock-free implementation I may switch to soon) - Stroika_Foundation_Debug_ValgrindDisableHelgrind, and various related cleanups to helgrind usage/suppressions - Execution - Synchronized Renamed TRAITS::kIsRecursiveMutex to TRAITS::kIsRecursiveLockMutex, and TRAITS::kIsRecursiveReadMutex (so broken apart - read case more freqenlty doable cuz use shared_lock) - WaitForIOReady - use unique_ptr intead of shared_ptr in Execution/WaitForIOReady - IO::Network - redid IO::Network::Interface::Bindings change from last release - bundled fBoundAddressRanges and fBoundAddresses into new class Bindings with members fAddressRanges/fAddresses - IO::Network::HTTP - new IO::Network::HTTP::Headers class - to smartly capture HTTPHeaders, support multipamp functionailty - Use new Properties system - Includes ETag, IfNoneMatch, CacheControl, Cookies,CookieList,Host, Date, TransferEncoding, Vary, Origin and AccessControlAllowOrigin and tons of others as builtin properties - IO/Network/HTTP/Methods (changed namespace for regexp to MethodsRegEx), and lose kOptions/kANY from MethodsRegEx; added kHead to HTTP::Headers - HTTP::Status support 204/kNoContent and cleanup such usage of HTTP::Exception support for these and other excpetion numbers - Socket: renamed BindFlags::fReUseAddr to fSO_REUSEADDR, added docs, and lose CTOR (so can be used with .fSO_REUSEADDR=) - Memory - new utility Memory_ObjectFieldUtilities - **deprecated** Memory::ValueOrDefault, and Memory::OptionalValue, replaced with (basically just new name) overloaded NullCoalesce - fixed serious bug in SmallStackBuffer (ITERATOR_OF_T start, ITERATOR_OF_T end) CTOR: was resizing to argument size and then doing uninitialized_copy () - which meant we overwrote 'initialized' objects as if they were uninitialized (caused issue with copying StackedBuffer\ for example - Time - Date/Time/etc internal code cleanups - Migrated some date format tests to regression tests - Improved docs and handling of locales - new StdCPctxTraits object, and regression tests to check it, to document certain aspects of undefined behavior in c++ locale date/time formatting code. - Date - Added ::tm Date::As\ () const method - **deprecated** Date::....eJavascript and replaced wtih format string kFormatMonthDayYear - more overloads for Date::Parse (no locale variants for locale-free format strings) and overloads for just a single format string - new Date::ParseQuietly () support - renamed (recent)Date::kFormatMonthDayYear => Date::kMonthDayYearFormat; Date::kDefaultParseFormat now uses Date::kMonthDayYearFormat instead of %d (so 4 digit year) - Date::Parse with no locale parameter loosened to assume current locale - use Date::kISO8601Format instead of **deprecated** Date::PrintFormat::eISO8601 - TimeOfDay - Tons of cleanups to TimeOfDay class: - Clearer more conssitent behavior for Parse/Format ; locale default; - **deprecated** TimeOfDay::ParseFlags: use kISO8601Format - DateTime - **deprecated** DateTime::ParseFormat::eCurrentLocale - instead just use {} or omit the locale and it defaults to the current; and other cleanups to DateTime code. - new DateTime::QuietParse() overloads - related DateTime parsing cleanup/factoring - **deprecated** DateTime::ParseFormat::eISO8601 and PrintFormat and RFC1123 ... and replaced with SpecialFormat enum (used for parse and format) and consts DateTime::kISO8601Format and DateTime::kRFC1123Format - Traversal - changed qStroika*Foundation_Traveral_IterableUsesSharedFromThis* from 1 to zero by default - fixed bug with Bijection implementation of !qStroika*Foundation_Traveral_IterableUsesSharedFromThis* and other cleanups to Foundation_Traveral_IterableUsesSharedFromThis - Frameworks Library - WebServer - Major cleanup and many enhancements for HTTP/1.1 compliance - FileSystem 'routes' - Frameworks/WebServer/FileSystemRouter RENAMED (old name **deprecated**) to Frameworks/WebServer/FileSystemRequestHandler - WebServer/FileSystemRequestHandler improved support for options and **deprecated** old CTOR API. - Supported CacheControl mapping in OPTIONS object, and added test case in sample to show regexp matching and adding cache control headers. - Much rewritten to use IO::Network::HTTP::{Headers/Request/Response}; completed https://stroika.atlassian.net/browse/STK-725 - factor Frameworks::WebServer::{Message,Connection,Request,Response} to use properties and other cleanups, and many old accessor methods **deprecated** - HTTP WebServer HEAD Method supported - Much more elaborate and correct CORS support - Support Transfer-Coding: chunked (on response, nyi request) - Message::SetAssertExternallySynchronizedLockContext() method, and Frameworks/WebServer/Connection now inherites from AssertExternallySynchronizedLock - Connection - write the Connection: header earlier so its before the interceptor chain runs and (potentially/likely) changes response state so we cannot write to headers anymore. - unique_ptr instead of shared_ptr for MyMessage in WebServer/Connection; Characters::ToString() support for unique_ptr<> and other small ToString cleanups - Various internal assertion checks - ConnectionManager - Cache-Control headers: support immutable, and add static constexpr predefined values for several helpful Cache Control settings, and document exapments (with ptrs to reference websties) for why they make sense in certian situations - Tons of cleanups/incompatible (though probably not noticable) changes to ConnectionManager (setting options/options handling and started adding properties instead of accesors for configuraiton options - new class CORS (refactoring, little new logic); **incompatible change** - ConnectionMgr now takes sequence\ instead of Router - fixed a (subtle) bug in shutdown of Frameworks::WebServer::ConnectionsManager - must put threads at END of member list - so objects threads reference destroyed after the threads, and better documented this dependency - Interceptors - **incompatible change** - interceptors methods HandleMessage() etc all now const and better documented the polciies for const/thread safety - InterceptorChain (http webserver) replaced of use Get/SetInterceptors with interceptors property - Response - ContentSizePolicy REMOVED (replaced with correct support for transfer endcoding on response) - clear/empty/GetBytes **deprecated** - Support transferEncoding = TransferEncoding::eChunked now works on response a little more care on rules for transitioning states. - Response::Redirct (now takes URI class not string); and pLocation header support in IO::Network::HTTP::Headers - autoComputeETag Support - write response Date - Router - now CORS handled internally - **incompatible change**: function based router matcher takes METHOD/hostRelPath BEFORE request now - **incompatible change** - Route{path,handler} now interpretted as GET; and quite a few ohter internal restructing of ROuter code - UPnP - SSDP::Advertisement only defines operator== not operator<=> - ThirdPartyComponents - libcurl - new version 7.75.0 - openssl - new version 1.1.1j - sqlite - new version 3.34.1 - fixed FETCHURLS for sqlite download #### Release-Validation - Compilers Tested/Supported - g++ { 8, 9, 10 } - Clang++ { unix: 7, 8, 9, 10, 11; XCode: 12 } - MSVC: { 15.9.34, 16.9.2 } - OS/Platforms Tested/Supported - Windows - version 20H2 - mcr.microsoft.com/windows/servercore:ltsc2019 (build/run under docker) - WSL v1 - MacOS - 10.15.5 (Catalina) - Linux: { Ubuntu: [18.04, 20.04, 20.10], Centos: [7, 8], Raspbian(cross-compiled) } - Hardware Tested/Supported - x86, x86_64, arm (linux/raspberrypi - cross-compiled) - Sanitizers - [ASan](https://github.com/google/sanitizers/wiki/AddressSanitizer), [TSan](https://github.com/google/sanitizers/wiki/ThreadSanitizerCppManual), [UBSan](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) - Valgrind (helgrind/memcheck) - Build Systems - [CircleCI](https://app.circleci.com/pipelines/github/SophistSolutions/Stroika) - [GitHub Actions](https://github.com/SophistSolutions/Stroika/actions) - Regression tests: [Correctness-Results](Tests/HistoricalRegressionTestResults/2.1), [Performance-Results](Tests/HistoricalPerformanceRegressionTestResults/2.1) --- ### 2.1b9 {2021-01-17} #### TLDR - Fixed design flaw with IO::Network::Interface bindings (fBindings->fBoundAddressRanges, added fBoundAddresses) - DataExchange::VariantValue() now takes optional<> overload CTOR, and a few additions to ObjectVariantMapper predefined mappers - Frameworks::WebServer construction enhancements #### Change-Details - Build System And Tools - fixed makefile typo - must use = in bash to compare strings (when using [) - .clang-format - .clang-format various cleanups, comments and docs - newer version of clang-format (11 => 12 pre-release) - VisualStudio-Stroika-Foundation-Debugger-Template.natvis - remove a few obsolte type entries, and add a few new ones (GUID, SocketAddress, CIDR, etc) - Compiler Versions - Visual Studio 16.8.4 - Compiler bug workarounds - Slightly embellished qCompilerAndStdLib_static_const_inline_struct_with_LTO_Buggy workaround needed - Foundation Library - Common - docs about GUID CTOR, and **deprecated** GUID::Zero - DataExchange - VariantValue() now takes optional<> overload CTOR - ObjectVariantMapper - MakeCommonSerializer \ supported - InternetMediaType also supported by MakeCommonSerialzer and included in default mapper - fewer direct #includes in .h (forward declare) - Debug - Cleanups to TimingTrace so it takes advantage of Execution::WhenTimeExceeded optimization so when qDefaultTracingOn off, this will generally disappear from the code (in addition to doing nothing). - Execution - **incompatible change** to VirtualConstant - major rewrite - Cleanups to WhenTimeExceeded code - so can be nearly completly optimized away when you pass in nullptr argument (maybe completely). - IO::Network - Added a few 'well known ports' (VNC, etc) - Renamed IO::Network::Interface::fBindings -> fBoundAddressRanges (**not backward compatible but rarely used**) - Added IO::Network::Interface::fBindings -> fBoundAddresses - Renamed CIDR::GetInternetAddress ()->CIDR::GetBaseInternetAddress () - **deprecated** old name. - Fixed bug in IO::Network::ConnectionOrientedStreamSocket(TIMEOUT) - POSIX only bug - throw Execution::TimeOutException::kThe on timeout, don't mistakenly report success! - Frameworks Library - UPnP - added a few ObjectVariantMapper kMapper definitions to facilitate serializing these objects - WebServer - cosmetic cleanups - Options: - webserver api fMaxConcurrentlyHandledConnections support; and updated samples (api change not backward compat UNLESS using **cpp_designated_initializers - so started using **cpp_designated_initializers - ThirdPartyComponents - Added mirror for lzma sdk zip - WIX 3.112rtm #### Release-Validation - Compilers Tested/Supported - g++ { 8, 9, 10 } - Clang++ { unix: 7, 8, 9, 10, 11; XCode: 12 } - MSVC: { 15.9.31, 16.8.4 } - OS/Platforms Tested/Supported - Windows - version 20H2 - mcr.microsoft.com/windows/servercore:ltsc2019 (build/run under docker) - WSL v1 - MacOS - 10.15.5 (Catalina) - Linux: { Ubuntu: [18.04, 20.04, 20.10], Centos: [7, 8], Raspbian(cross-compiled) } - Hardware Tested/Supported - x86, x86_64, arm (linux/raspberrypi - cross-compiled) - Sanitizers - [ASan](https://github.com/google/sanitizers/wiki/AddressSanitizer), [TSan](https://github.com/google/sanitizers/wiki/ThreadSanitizerCppManual), [UBSan](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) - Valgrind (helgrind/memcheck) - Build Systems - [CircleCI](https://app.circleci.com/pipelines/github/SophistSolutions/Stroika) - [GitHub Actions](https://github.com/SophistSolutions/Stroika/actions) - Regression tests: [Correctness-Results](Tests/HistoricalRegressionTestResults/2.1), [Performance-Results](Tests/HistoricalPerformanceRegressionTestResults/2.1) --- ### 2.1b8 {2020-12-24} #### TLDR - Deprecated DateTimeRange, DurationRange, etc, and instead greatly improved Traits<> handling for Range, and DiscreteRange<> so they can be used directly (e.g Range\{}) #### Details - Build System - make all no longer invokes make check (unneeded, can do explicitly, and we often do make all, no point in check) - Git Actions: merge Unix, Windows, MacOS workaflows into one (3 jobs instead of 3 workflows) - configure - better error message (really just warning instead of failure when configure on windows without --arch - new configure option --no-third-party-components; and used it in Makefile for similarly named configuration test - Compilers Used/Supported - g++ { 8, 9, 10 } - Clang++ { unix: 7, 8, 9, 10, 11; XCode: 12 } - MSVC: { 15.9.30, 16.8.3 } - Changes - use vs 16.8.3 - update readme.md links to github actions (new smaller number of worflows) - Library/Foundation - Foundation::Common - renamed Common/Immortalize.h to Common/TemplateUtilites.h (deprecating old name); - added several new utilities there like UnsignedOfIf DifferenceType LazyType and Identity<> - several regtests for new Identity/DifferenceType/UnsignedOfIf templates - Foundation::Configuration - fixed _DeprecatedFile_ () macro - Foundation::Traversal - Range (and DiscreteRange) - Deprecated DurationRange, DateTimeRange, DateRange, SimpleDateRange, and InternetAddressRange: instead use Range\ or DiscreteRange\ directly for the appropriate contained type. Specailizations of RangeTraits classes like DefaultBounds<> etc provided for some special classes (like InternetAddress, Duration etc). - Range<>: renamed Circle -> Ball (deprecated old name); and re-implemnted Contains(Range) and added regtests - MAJOR cleanup of RangeTraits - all the existing tratis replaced with - DefaultOpenness, DefaultBounds, DefaultDifferenceTypes - and ExplicitDifferenceTypes, ExplicitOpenness, ExplicitBounds - DiscreteRange now just uses regular RangeTraits - RangeTraits default renamed to just Default (and have Default_Enum, Default_Integral etc) - tighten semantics and clean definitions of GetPrevious/GetNext - better document edge condition about illegal single point with half open/half closed; better assertion checking in CTORs for range and fixes (related) to Range::Pin code - now correct and has better asertions; lose range CTOR constexpr explicit Range (Openness lhsOpen, Openness rhsOpen);progress on range Explicit/ExplicitOpenness, but not in great shape yet - fixed Range<>::Interaction to hanlde stricter Range constructor about empty args - static asserts for DiscreteRange - Foreach stroika type whwere we specialize RangeTraits::Default, also specialize DefaultOpenness, and DEfaultDifferenceType, and DefaultDifferenceType takes just one arg, and ExplicitDifferenceTypes second arg now can be defaulted - Documentation - fixed readme link to github actions summary badges - lose remaining support for travisci: they sent email (support) saying I could use the free acount for my opensource project, but then didnt actually change anything - Samples Small code cleanups - ThirdPartyComponents changes - boost 1.75 - libcurl 7.74 - openssl 1.1.1i - sqlite 3.34 --- ### 2.1b7 {2020-12-06} #### TLDR - Switched from TravisCI to GitHub Actions for CI - Major cleanup of workarounds / suppressions for valgrind/sanitizers - Support Ubuntu 20.10 (except tsan/helgrind broken on 20.10) #### Details - Build System - CI Systems - TravisCI - Deprecated support for TravisCI, since the appear to no longer support free usage for opensource projects (their site says they do, but my support requests for more credits were never answered) - Github Actions - Implemented support for MacOS/Windows/Unix - **very nice**, mostly docker based - Docker works poorly but acceptably on windows - Docker UNAVAILABLE on MacOS (Crapple fault, not github) - so directly built code for macos - Build Scripts / Makefiles - several cleanups to make clean/clobber (e.g aggressive in top level make to assure intermediatefiles/builds dirs approrpiately cleaned/clobbered) - workaround Add '+' to parent make rule issue - workaround at bug define qCompiler_SanitizerDoubleLockWithConditionVariables_Buggy from configure script - and document in https://stroika.atlassian.net/browse/STK-717 - Docker/Windows - sync up Windows-MinGW-VS2k19/Dockerfile with cygwin version - tested and still broken installing msys under docker on windows - got rid of explicit set of --no-sanitize in makefile due to https://stroika.atlassian.net/browse/STK-601 and instead check and add automatically inside configure script (I already had that before so dont need the makefile changes) - Compilers Used/Supported - g++ { 8, 9, 10 } - Clang++ { unix: 7, 8, 9, 10, 11; XCode: 12 } - MSVC: { 15.9.25, 16.8.2 } - Changes - Bug Defines: - qCompilerAndStdLib_warning_explcitly_defaulted_threeway_compare_implictly_deleted_Buggy deleted since no longer refernced anyplace - lose obsolete bug defines qCompiler_noSanitizeAttribute_Buggy and qCompiler_noSanitizeAttributeForLamdas_Buggy - document qMacUBSanitizerifreqAlignmentIssue_Buggy ubsan macos workaround a bit - new bug define qCompilerAndStdLib_maybe_unused_b4_auto_in_for_loop_Buggy - new qCompilerAndStdLib_static_initializer_lambda_funct_init_Buggy workaround - new workaround qCompilerAndStdLib_altComPtrCvt2ComQIPtrRequiresExtraCast_Buggy - had to expand workaround for qCompilerAndStdLib_ReleaseBld32Codegen_DateRangeInitializerDateOperator_Buggy - lose obsolete qCompilerAndStdLib_constexpr_somtimes_cannot_combine_constexpr_with_constexpr_Buggy reference - lose qCompiler_SanitizerFunctionPtrConversionSuppressionBug (since workaround differently - see https://stroika.atlassian.net/browse/STK-601) - lose workaround for qCompilerAndStdLib_ASAN_Issue_665_Buggy and https://stroika.atlassian.net/browse/STK-665 - since can no longer reproduce on any platform - OS/Platforms Used/Supported - Windows - version 2004 - WSL v1 - MacOS - 10.15.5 (Catalina) - Linux: { Ubuntu: [1804, 2004, 2010], Centos: [7, 8], Raspbian } - Hardware Used/Supported - x86 - x64 - arm (linux/raspberrypi - cross-compiled) - Sanitizers & Valgrind - Added TSAN suppression for apparent ubuntu tsan bug - https://stroika.atlassian.net/browse/STK-716 - experiemntal Stroika_Foundation_Debug_ATTRIBUTE_NO_SANITIZE_THREAD for https://stroika.atlassian.net/browse/STK-717 - Stroika_Foundation_Debug_ATTRIBUTE_NO_SANITIZE_THREAD - @todo DOCS - overall what we did to cleanup valigrind/sanitizers - Many fewer valgrind/sanitizer supressions in supressions files (retested most) - CLeanup use of valgrind supressions in BlockAllocator, HOPEFULLY enuf to cure occasional warnings abStroika_Foundation_Debug_ValgrindMarkAddressAsAllocatedout races (since sporadic and not well documented, must test more to be sure) - marked https://stroika.atlassian.net/browse/STK-672 https://stroika.atlassian.net/browse/STK-695 as no longer reproducible, and resolved in jira and lost the valgrind workarounds - Documentation - Many improvements to per-directory summaries of modules/overviews/ReadMe.md - Library/General - avoid a few compiler warnings about iterating over a range and declaring iterator variable const T&, and just declare const T (since iterator doesnt return references, it returns values so no advantage in declarting const T& and slightly misleading - Library/Foundation - Characters - moved operator \_k from String_Constant.h to String.h and changed return type to String - this way - no need for extra include (its logically part of String) - if you need return type = String_Constant use that CTOR explicitly (cannot imageine why needed) - only downside is loss of inline, but thats probably taken care of by modern LTO anyhow - So now much simpler stroika code - rarely including String_Constant.h - Cryptography - renamed Cryptography::DefaultSerializer to DataExchange::DefaultSerializer - more logical place for the type - **not backward compat** but hard to deprecate old names and only released that way for one version - DataExchange - simplify InternetMediaTypes namespace in InternetMediaTypesRegistry - no more use of virtualconstnat **not fully backward compatible but easy to react to** (replace function call with access of global constant) - Debug - Cleanup macros/defines in Debug/Sanitizer.h - Execution - lose call to siginterrupt - was uneeded due to call to sigaction with no SA_RESTART, and now deprecated - NEARLY deprecate ModuleInit - use call_once and atexit() inslide Atom library in place of ModuleInit (and most other places) - document where/why it may still be useful, so keep, but dont use (as much) - use static inline magic init - Time - deprecate a few constexpr wchar_t kLocaleStandardAlternateFormatArray elements and use static line const String instead - Library/Frameworks - Led - Led_MFC - OnPerformCommand_MSG () - catch exceptions and suppress them (logging) - to avoid crash that occurs when exceptions are propagates through a wndproc (caused LedIt/LedLineIt to sometimes crash on bad clipboard state during paste) - Samples - ThirdPartyComponents - openssl - tested openssl 3.0 alpha8 - openssl 1.1.1h --- ### 2.1b6 {2020-10-19} #### TLDR - Bloom Filter implementation - Improved Cryptographic Digest library / hash support - Fixed rebuild all makefile bug #### Details - Library - Foundation::Cache - Bloom Filter - Decent implementation, with automatically derived hash functions (or explicltly specified) - Good support for autoconfigure number of bits - Support for stats reporting/regression tests, and docs/examples (e.g. GetFractionFull ()), manage false positive rates and test limits - use new Cryptography::Digest::HashCombine and Cryptography::Digest::Hash\ by default in BloomFilter due to complete unsuitablity of std::hash<> from libstdc++ - Foundation::Characters - Added overload for ToString() function for dec/hex parameter **_not backeard compat (minor)_** ToString for unsinged int types now shows as dec instead of hex (except still hex for bytes) - Foundation::Common - Compare - replaced Common::compare_three_way with Common::ThreeWayComparer (since I noticed funny choice for where templates go in C++20 compare_three_way ThreeWayComparer is still useful - I think); and cleanup various uses (no need for deprecation warnings cuz never really used and primarily encourging people to use ThreeWayCompare for now and std::compare_three_way{} (lhs, rhs) starting in C++20 - GUID - for GUID class - static assert size is 16; and add iterators so can be treated as container of bytes - Foundation::Configuration - Endian: comments and added define for x86 Endian value - Foundation::Cryptography - Cryptography::Hash DEPRECATED (use Cryptography::Digest::Hash) - new Cryptography::Digest::Hash - mimicing std::hash<> - deprecated Digester<>::ComputeDigest and instead make Digester a function-object - so invoke with (overloaded) operator() - refactored some of the Hash<> return converstion code into ConvertResult in Digest namepsace - Improved Crypto/Digest ConvertResult code so it handles cases like uint32_t <-> byte-array, and added regression tests to that effect (works with direct digester use or hash template) - some of hash / digest values depend on sizeof wchar_t and endianness, so tried to update hardwired values in tests to accomodate this - deprecated DigestDataToString - can use Digester or Hash directly specifying String result now - and related fixes to Format<> template for digests - Factored new class/module DefaultSerializer\ out of the Hash<> code and use it as extra paraemter to Hash template: this will allow more narrow specialization - instead of specailaing the Hash code - we just speacialize the Serializer code in classes that need special serialization (like String, InternetAddress etc) - remove no longer needed Hash<> specializations (cuz done through DefaultSerializer), and did String, InternetAddress etc specialiations on new DefaultSerializer<> - Foundation::Execution - re-enabled supression for https://stroika.atlassian.net/browse/STK-677 - signal:Stroika::Foundation::Execution::SignalHandlerRegistry::FirstPassSignalHandler\_(int) - ubuntu 1910 sporadic issue - Foundation::Traversal - new Iterable\Repeat () function as well as regression tests - Added Range\::Times() support, and operator\* and operator+ overloads for Offset/Times - Range\ - Range (etc) docs, regression tests, and cleanups - new DisjointRange::Closure () - Compilers Used/Supported - windows docker test - VS_16_7_5 - support gcc 10.2 - Bug defines - qCompilerAndStdLib_SpaceshipAutoGenForOpEqualsForCommonGUID_Buggy condition and regression test and workaround - some fixes for newer version of g++-10 c++20 support comparison operator more picky fixed **cpp_lib_three_way_comparison bug with **cpp_lib_three_way_comparison >= 201907 - Build System - Fixed bug with Foundation makefile that caused 'REBUILD' command from visual studio to fail, due to creating a correupted cached-list-objs - new make feature - TEST_FAILURES_CAUSE_FAILED_MAKE=0/1 (default 1 new behavior) so make run-tests stops when we get a failure - optional QUICK_BUILD=1 makefile parameter to make which should speed some builds - TravisCI - fix passing MAKEFLAGS to docker container - Tests - renamed regression tests to add 'Common' to the list of tests, and moved test for qCompilerAndStdLib_SpaceshipAutoGenForOpEqualsForCommonGUID_Buggy into that new regression test file - ThirdPartyComponents - openssl - tested 3.0 alpha7 - libcurl Use 7.73.0 --- ### 2.1b5 {2020-09-12} #### TLDR - Updated VS2k19 compiler, and a few ThirdPartyComponents #### Details - Compiler versions - vs2k19 16.7.3 docker config - workaround qCompiler_LimitLengthBeforeMainCrash_Buggy macos issue - ThirdPartyComponents - use 3.33 sqlite - 7.72.0 libcurl - tested openssl 3.0 alpha 6 - Boost 1.74.0 - Library - dbgtrace print EXEPath on app startup - Build System - travisci: up xcode version using on macos; and checkout TRAVIS_COMMIT not TRAVIS_BRANCH - makefile cleanups: use - in front of include IntemediateFiles/...Configuraiton.mk so we no longer need the > /dev/null on make list-objs (and fixes other issues) --- ### 2.1b4 {2020-09-07} #### TLDR - fixed bug DateTime::AsLocalTime() - which also meant that DateTime::Now () was returning the wrong results on POSIX systems - new TraceContextSuppressor - ConnectionOrientedStreamSocket::Ptr::Connect () overload taking timeout parameter #### Details - Compiler versions - use VS2k19 16_7_2 - Compiler bug defines - Close https://stroika.atlassian.net/browse/STK-635 Lose qCompilerAndStdLib_static_constexpr_Of_Type_Being_Defined_Buggy Deprecate Date::min/max, DateTime::min/max functions etc and instead use kMin/kMax and got constexpr stuff working correctly (and timezone). Cannot do similar to Duration yet - requires C++20 - I think). - (Mostly) Cosmetic code cleanups - use more uniform-initialization syntax use - {} - use TimeOfDay/3 rathern than computing \*60 - Library - Cache - complete draft of Bloom Filter (but not tests and need more code to support configuration) - Debug - New experimental TraceContextSuppressor support - Execution - because Handle_ErrNoResultInterruption alread does throw if < 0 (and not eintr) - lose calls to ThrowPOSIXErrNoIfNegative () surrounding it in a number of places - IO::Network - Added ConnectionOrientedStreamSocket::Ptr::Connect () overload taking timeout parameter - new Port.h with wellknownports defined (for a few), and PortType define - Time - timeval Duration::As () - enhanced DataTime regression tests - **fixed serious bug with DateTime::AsLocalTime ()** - when it has UTC - it was computing wrong LocalTime value (happened all the time on UNIX for DateTime::Now) - and added regtests to hopefully detect this issue sometimes - Traversal - Experimental Iterable<>::Join () --- ### 2.1b3 {2020-08-10} #### TLDR - Fixed CircleCI issue, so builds there - Support Visual Studio.Net 2019 build - 16.7.0 - Code cleanups: uniform initialization; const auto&, omit base class empty mem-initializers in many cases #### Details - Release Test Summary - OS/Platform - Windows - version 2004 - WSL v1 - MacOS - Linux: { Ubuntu: [1804, 1910, 2004], Centos: [7, 8]} - Hardware - x86 - x64 - arm (linux/raspberrypi - cross-compiled) - Compilers - MSVC: {15.9.25, 16.7.0} - gcc: {8, 9, 10} - clang { unix: 7, 8, 9, 10; XCode: 11.6 } - Docker - Windows: { mcr.microsoft.com/windows/servercore:ltsc2019, cygwin, VS_16_7_0 } - Ubuntu { 1804, 1910, 2004 } - Centos {7, 8} - CI - TravisCI (Mac, Unix, Windows) - CircleCI (Unix, Windows) - CircleCI - better (homefully equivilent) formatting - different vscode formatter - for circleci file - hopefully fixed compile issue with gcc7/8 on circleci build - RegressionTests - tweaked output for regressiontests - ScriptsLib/RunLocalWSLRegressionTests run with just -j2, since where i run this test doesnt have much virtual memory (nor logical cores) - Compiler Support - Support vs 2k 19 16.7.0 - Library - Foundation::Containers - Sequence\::AppendAll () simplification (one overload) - more tweaks to Collection (and all containers) template (minor but related to uniform init mostly) - Foundation::Debug - in DbgTrace TraceContextBumper - use ... in name in brackets when overflowing - Foundation::Memory - BlockAllocator.inl - cosmetic cleanups and comments about (not easy to reproduce) helgrind failure - Foundation::Traveral - respect issue https://stroika.atlassian.net/browse/STK-541 - and dont do move inside Iterable\ - for now - Iterable\: lose MOVE constructors/operator= and better docs for why (COW intrisic to Iterable) - Frameworks/SystemPerformance - Stroika/Frameworks/SystemPerformance/Instruments: cleanups - Instruments/Process: fixed permission checking issue with OptionallyResolveShortcut\_ () so it doesn't throw on bad filenames (before it used IgnoreExceptionsExceptThreadInterruptForCall to suppress and now error_code& arg); and dbgtrace cleanups - Instruments/Process cleanups: cosmetic, and fixed several regressions due(dbgtrace due to swithc to std::filesystem), and use directory_iterator directly instead of Stroika wrapper, and improved failuremode on WSL2 (still not fixed) - Code Style / Cleanups - uniform initializaiton - document when using {} vs () for initializaiton - generally use uninform initialization throughout Stroika, instead of = or () initialization (except where implicit conversions needed - like maybe for now perfect forwarding templates) - for const auto& instead of auto&& or auto i (especailly with ranged for loop) - maybe better to use const auto vs. auto&& for range based for (when common case just referencing) - not clear thats best for fundemental types though? - avoid memcpy of zero bytes with nullptr arg - react with if \_\_cpp_lib_atomic_shared_ptr >= 201711 on atomic load/store shared_ptr deprecation in c++20 --- ### 2.1b2 {2020-08-03} #### TLDR - **NOT BACKWARD COMPATIBLE** switch from Stroika 'IO::FileSystem' related classes to **required** use of std::filesystem classes - implied de-support gcc-7 and X-Code 10 (and pre-catalina MacOS - use older Stroika if you need pre-catalina MacOS support) - Improved regression tests (including testing samples) and valgrind/santizer coverage - Improved InternetMediaType and InternetMediaTypeRegistry #### Details - Release Test Summary - OS/Platform - Windows - version 2004 - WSL v1, v2 (one sample fails) - MacOS - Linux: { Ubuntu: [1804, 1910, 2004], Centos: [7, 8]} - Hardware - x86 - x64 - arm (linux/raspberrypi - cross-compiled) - Compilers - MSVC: {15.9.25, 16.6.5} - gcc: {8, 9, 10} - clang { unix: 7, 8, 9, 10; XCode-Clang: 11 } - Docker - Windows: { mcr.microsoft.com/windows/servercore:ltsc2019, cygwin, VS_16_6_5 } - Ubuntu { 1804, 1910, 2004 } - Centos {7, 8} - CI - TravisCI (Mac, Unix, Windows) - CircleCI (Unix, Windows) - Build System - Configure script - Improved error reporting - configure XXX --only-if-has-compiler fixed so if using gcc, assure using gcc 8.0 or later - GCC - De-support gcc-7 for Stroika v2.1, because it only supports experimental/filesystem, not std::filesystem and not important enuf to retain backward compat with gcc-7 to have all the conditional includes. - XCode - **Lose support for XCode 10 on MacOS** because it doesn't support \ code and trying to swtich to using that in a more thorough way. - xcode 11.5 - Compiler Bug defines - Lose qCompilerAndStdLib_stdfilesystemAppearsPresentButDoesntWork_Buggy bug workarounds (using experimental or boost filesystem) - all in - require new c++17 filesystem code from now on - Lose qCompilerAndStdLib_optional_value_const_Buggy - Lose qCompiler_cpp17InlineStaticMemberOfTemplateLinkerUndefined_Buggy - new qCompilerAndStdLib_static_const_inline_struct_with_LTO_Buggy - CI Systems - TravisCI - changed one the configure include flags for one travisci macos configuration that was failing due to not building fast enuf - limit builds for macos test configuration to avoid 50 minute timeout - try --jobs=3 to see if faster. Maybe. Not much difference - Code Patterns - sThe/kThe/Get/Set - deprecate sThe in SystemFirewall class (and make a few methods const) - InternetMediaTypeRegistry::sThe and replace with InternetMediaTypeRegistry::Get () - MessageUtiltiesManager class (with Get/Set) - Dependencies - Large change - **NOT BACKWARD COMPATIBLE** Switched to using filesystem::path instead of String all over the place for pathnames. Changed TONS of APIs. No good way to do compatibly, because supporting both path and String as argumnets would lead to "", etc not working, due to ambiguous conversions. So at this version boundary - you just must swtich your code to using std::filesystem. - dangerous change on UNIX - where we used to use String and String x; x.c_str() used to be wchar_t and now that we switched to path, its char\* on POSIX (and some other) systems. So be careful when used with Format (especially common with DebugTrace calls so we maybe debugging this for a while) - Documentation - ReadMe.md - Cleanups - update ReadMe.md with pretty docs on CI systems uses - coding convensions docs about Singletons - Docker - cleanup Windows docker file test; and workaround issue with cygwin not working on latest docker (https://github.com/moby/moby/issues/41058#issuecomment-653865175) - add locale support for centos8 (not sure why not there by default anymore) - Added ARG DEBIAN_FRONTEND=noninteractive to debian dockerfiles - RegressionTests - Fixed a variety issue with RegressionTests - hardwired config names for running valgrind tests and loop running over all valgrind configurations (memcheck/helgrind) - Run regression tests on a variety of samples, and likewise with valgrind (valgrind configs) - fix to RegressionTest code to use RUN_PREFIX running samples - Configurations - added explicit configs g++-8-debug-sanitize_leak etc (about 8) - really only for ubuntu1804 but others others may get this too (not good) - Added g++--8-valgrind-debug-SSLPurify for ubuntu 1804 - Added --only-if-has-compiler to most configurations - fixed the configure append-run-prefix to use absolute path for tsan supressions - Foundation - Cache - fixed bugs in Cache/SynchronizedLRUCache - case where no value returned; and must use unique_lock instead of lock_guard to unlock - Characters - ToString() for path invokes ToString(String) - and changed ToString(String) to use LimitLength (as hinted in docs) - cleanup use of String::Tokenize - Containers - Change to Mapping::Add() to take optional AddReplaceMode (enum) parameter (matching STL insert vs insert_or_assign), and returning bool indicating if actaul addition done. - DataExchange - InternetMediaType and InternetMediaTypeRegistry - **MAJOR CHANGES** - https://stroika.atlassian.net/browse/STK-312 InternetMediaTypes – add ability to add externally specified mappings - FIXED - https://stroika.atlassian.net/browse/STK-576 - Lots more work todo on InternetMediaTypeRegistry- FIXED - Improved (but not final/perfected) caching logic/thread safety (docs and enforcement) - define std::hash<> specialization for InternetMediaType - UsrSharedDefaultBackend now looks in more places, etc (local/~) - Added InternetMediaTypeRegistry::BakedInDefaultBackend - so regtests pass on MacOS (without warning) - cuz it doesnt have a mapper for content types otehrwise - InternetMediaTypeRegistry::GetAssociatedContentType - changed sematnics - requires file suffix argument - not file or suffix - lose obsolete (and I think never really used cuz never implemetned and I now see probably doesnt make sense) GetMoreGeneralTypes GetMoreSpecificTypes for InternetMediaTypeRegistry - improved regexp for InternetMediaType parsing - I'm sure still not right because I cannot find any clear reference for this. But hopefully closer (and a few links in code for possible starting points to find reference - Made InternetMediaTypeRegistry copyable using SharedByValue; Then lose InternetMediaTypeRegistry::sThe and replace with InternetMediaTypeRegistry::Get (), InternetMediaTypeRegistry::Set () - speed tweak and dbgtrace cleanups for DataExchange/InternetMediaTypeRegistry - refactoring EtcMimeTypesRep\_ so no extra parse of file on call to GetMediaTypes - InternetMediaType: deprecated text/xml, and instead map XML to application/xml; support GetSuffix() on InternetMediaType and properly parse it (and regtests) - deprecated InternetMediaType::IstextFormat/IsImageFormat and moved those to IntenrMediaTypeRegistry object (adding IsXMLFormat there too) - fixed InternetMediaTypeRegistry::Get ().IsXMLFormat () for case of +xml - deprecated InternetMediaType::Match - deprecated InternetMediaType::IsA and replaced with InternetMediaTypeRegistry::IsA - cleanup/refactoring of InternetMediaType code - mostly moving TYPES namespace into InternetMediaTypeRegistry.h - lots more cleanups to InternetMediaTypeRegistry: for windows, return GetAllFileSuffixes properly; Fixed baked in html type definition, and a few other cleanups - Debug - use Debug:: module use of Execution::ModuleDependency referncing string module because no longer needed (I think) - maybe so for a long time - but test and verify - define Stroika_Foundation_Debug_ValgrindMarkAddressAsAllocated() utility and use in blockallocation to see if it addresses helgrind warnings - use Stroika_Foundation_Debug_Valgrind_ANNOTATE_HAPPENS_BEFORE/Stroika_Foundation_Debug_Valgrind_ANNOTATE_HAPPENS_AFTER to silence helgrind warnings with blockallocation - Added Stroika_Foundation_Debug_ValgrindMarkAddressAsDeAllocated - cleanups to Valgrind macros/ DOCS - define Debug::kBuiltWithThreadSanitizer flag; and use that in regtest 39 (thresafetybuildinobject) - to reduce test count like we do for valgrind, so runs in acceptable timeframe - new trace logging feature: qStroika_Foundation_Debug_ShowThreadIndex in Debug Trace code - Execution - DLLLoader - Cleanup code: enforce GetProcAddress() cannot return nullptr (throws); better throw behavior in CTOR. - Platform::Windows::RegistryKey - lots of cleanups and new methods, refactoring - new method EnumerateSubKeys() - new method EnumerateValues() - new method RegistryKey::GetFullPathOfKey () utility - Threads - Thread classes: moved private stuff inside Thread::Ptr, and deprecated Get/Set SignalUsedForThreadInterrupt and replaced with single dual-function call SignalUsedForThreadInterrupt - Switch Thread code from using Quasi-namespace to actual namespace (use of private not that compelling, and otherwise I think will work more naturally and as users would expect with true namespace - Threads: tons of cleanups; deprecated Get/Set ThrowInterruptExceptionInsideUserAPC and replaced with one name ThrowInterruptExceptionInsideUserAPC; similarly lose Get/Set DefaultConfiguration and replaced with function DefaultConfiguration() that gets and sets - new Thread::IndexRegistrar: use in Thread::Ptr::ToString () and in Trace code (in place of local code I put there to do index dumping); and defined qStroika_Foundation_Debug_ShowThreadIndex to control if we do this in tracelog - if qStroika*Foundation_Debug_Trace_ShowThreadIndex - also changed output of sRunningThreads* to show threadindex (so easier compare in tracelog file) - moved Execution::FormatThreadID_A to Execution::Thread::FormatThreadID_A () adding extra param and changing default behavior - Moved a few more Thread related Execution namespace functions under Thread namespace (CheckForThreadInterruption, Yield, GetCurrentThreadID) - renmaed Thread::CheckForThreadInterruption to Thread::CheckForInterruption - SignalHandlerRegistry: cosmetic cleanups; and fixed small bug with accessing sTheRep\_ - use atomic_load/atomic_store (though must replace that with plain atomic in c++20; this fixes tsan warning - Linguistics - rewrite alot of Library/Sources/Stroika/Foundation/Linguistics/MessageUtilities: deprecating CurrentLocaleMessageUtilities functions and replacing with MessageUtiltiesManager class (with Get/Set). - IO::FileSystem - **tons of changes due to (above) switch to using std::filesystem** - deprecated FileSystem::GetFileSuffix() and reimplemented using FromPath (ToPath (fileName).extension ()); - IO::Filesystem::WellKnownLocations::GetTemporaryT () now marked deprecated - FileSystem::WellKnownLocations::GetMyDocuments () now returns filesystem::path (**NOT BACKWARD COMPATIBLE CHANGE**) - lose obsolete temporary overload of Exception::ThrowIfZeroGetLastError() - with string instead of filesystem::path - FileSystem::GetFileDirectory now deprecated; and incompatible change to Module functions GetEXEPath/GetEXEDir etc now returning filesystem::path instead of String (and deprecated T variants of said functions) - ExtractDirAndBaseName () file routine marked deprecated (with replacement suggested) - IO::FileSystem::GetFileBaseName deprecated - deprecated IO::FileSystem::Directory and any remaining function associated with it - use filesystem::create_directories () instead of deprecated IO::FileSystem::CreateDirectoryForFile - use filesystem::file_size in place of deprecated IO::FileSystem::Default ().GetFileSize; and a suppress some deprecation warnings - IO::Network - places where we call sockAddr.As\ () - pass to socket API sa.GetRequiredSize() not sizeof (sadata) - since MacOS generates error 22 for this (and I think other sock stacks are similarly unhappy though works on LINUX with sizeof(socket_storage) - Memory - Simplified and more correct Stroika **Foundation_Debug_Valgrind_ANNOTATE_HAPPENS** usage in BlockAllocator.inl: now appears to work properly (though maybe not 100%) with qStroika_Foundation_Memory_BlockAllocator_UseLockFree\* - test more - Traversal - Overload of Select to handle 'subselection/selectif' funtionality and added regtest - Frameworks - SystemPerformance - WSL1 fails to read /proc/vmstat - so handle that more appropriately and quietly fail to gather the appropriate info (under wsl1) - IgnoreExceptionsExceptThreadAbortForCall in Frameworks/SystemPerformance/Instruments/Network for WSL1 - Samples - ArchiveUtility - --no-fail-on-missing-library option on Samples-ArchiveUtility/ArchiveUtility so no error from regressiontests when building without those libraries (which we test) - LedIt - In LedIt/LedLineIt samples - delay construction of SpellCheckEngine til InitInstance method since uses locks which caused msvc runtime to crash cuz called before main () - MFC pattern for constructing app objects - LedLineIt - fix bug in LedLineIt app (MFC issue) with document opening (assert/infinite recurse) - SystemPerformanceCapturer - tweak assertions/enusure calls in SystemPerformanceCapturer for Memory (for macos assert) - WebServer - when we get timeout i webserver sample - return with exist success (thats not an error) - Tests - regression testing cleanups: TestHarness::WarnTestIssue() now has overload taking wchar_t\* - improved logging - lower test sizes in a couple places when running under valgrind, to make valgrind (really helgrind) tests a little quicker - **WARNING** - changed RunTest\_ counting code in performance regression tests: shoudl NOT make any difference to real tests, but should make cut-off tests due to valgrind/helgrind slowness issues run much faster - parameterize some tests in Sequence<> regression test suite bsaed on whether we are using valgrind or not so they run a bit faster under valgrind - performacne regtest now also looks at Debug::kBuiltWithThreadSanitizer to adjust intensity/speed of runnign that test - ThirdPartyComponents - boost - dont think I need sophists backup for boost downloads anymore, so comment out - libcurl - use 7.71.1 - openssl - Comments on failed test of up-to 3.0.0-alpha5 - sqlite - 3.32.03 - Support a mirror for sqlite due to mysterious problem downloading from the main source on travisci macos machines --- ### 2.1b1 {2020-06-07} #### TLDR - Docs - Lose old deprecated code #### Details - Documentation Various docs cleanups/reviews - Builds / Misc - Remove old deprecated code - lose deprecated code from configure script - lose deprecated files Library/Projects/Unix/SharedBuildRules-Default.mk and Library/Projects/Unix/SharedMakeVariables-Default.mk - lose most things which had been deprecated - configuration definitions (e..g WIN_CXX=WIN_LIBTOOL= etc, and Iterable\::SequenceEquals, etc... - Check prerequisites - tweak makefile for checking prerequisites, so works better on Windows/WSL systems (check more) - ThirdPartyComponents - OpenSSL - experimented with openssl 3.0 alpha Didn't fully work, but built and mostly worked; didn't change what version we build with - RegressionTest output Ignoring warnins about boost download - it periodically has issues with 'forbidden' http errors, but I've setup sourceforge backup mirror and that seems to work well. A few other minor warnings/false positive errors also ignorable in the regression test output --- ## 2.1a5 {2020-05-31} #### TLDR - New comparison API (spaceship operator) - Docker (windows builds, and much more) - CI systems (builds on travisci, and circleci, multiple platforms) - WaitForIOReady improvements, which make webserver much faster #### Details - new Comparison API Support new C++20 spaceship operator, but in a way that is backwards compatible with C++17 - Documented approach in - use _cpp_impl_three_way_comparison_ instead of _cpp_lib_three_way_comparison_ EXCEPT where counting on std c++ library support, as in optional<> usage in default implementations; and upped version# compare to 201907 (according to https://en.cppreference.com/w/User:D41D8CD98F/feature_testing_macros) - #include \ as appropriate - use compare_three_way{} if available - Containers, Strings, DateTime, many with parameterized compare classes, and many others without - renamed CompareResultNormalizeHelper -> CompareResultNormalizer and deprecated old name - deprecated ThreeWayCompareNormalizer - deprecate mkEqualsComparerAdapter, mkInOrderComparerAdapter, mkThreeWayComparerAdapter - and use class adapters directly now that class deduction works better in C++17 - renamed Common::OptionalThreeWayCompare -> Common::OptionalThreeWayComparer - struct ExtractComparisonTraits\\> - resolved https://stroika.atlassian.net/browse/STK-692 - threewaycompare/spaceship operator cleanups - Stroika::Foundation::Common::compare_three_way helper - deprecated ThreeWayComparerDefaultImplementation - DEPRECATED ThreeWayComparer (just use compare_three_way instead) - fancier ComparisonRelationDeclaration with two template args intead of one - Build System - ApplyConfigurations - modified ApplyConfigurations to write new file Library/Projects/VisualStudio.Net-2019/Microsoft.Cpp.stroika.AllConfigs.props from configuration info; then added import of that props file into Stroika-Frameworks.vcxproj and Stroika-Foundation.vcxproj : This LARGELY **fixes intellensense for the new configuration/makefile build process** (in visual studio - still simlar todo for vs2k17 and vscode) - lose remnants of Stroika-Current-Configuration.h - no longer generate the file, and no longer (even conditionally) include it - lose configure flag ENABLE_GLIBCXX_DEBUG (from file and ApplyConfiguraitons and .mk file - still works with -- flags to configure) - build docs improvements - Slightly more aggressive make clobber - Configure - configure process now (for visual studio.net only so far) stores BUILD_TOOLS_ROOT default value --build-tools-root parameter - configure: fixed docstring on argment --target-platforms (was --targetPlatforms); - _BIG IMRPVOEMENT_ renamed: Library/Projects/VisualStudio.Net-2019(and 2017)/SetupBuildCommonVars.pl -> ScriptsLib/Configure-VisualStudio-Support.pl Updated configure to use this, and handle via extra args VSDIR (soon sb able to spec that on cofnigure cmd line). - a little caching in configure script so runs 4x faster on window (visual studio) - GetDefaultToolsBuildDir() now supports platform with version# like VisualStudio.Net-2017 or none VisualStudio.Net - lose ENABLE_TRACE2FILE flag from configure (file format) and Configuration.mk - etc - just sets a /D build flag - improve --only-if-has-compiler warning message generation in configure - use Library/Projects/VisualStudio.Net instead of Library/Projects/VisualStudio.Net-2019 and support vs2k17 - cygpath gets unahppy with empty strings, so handle that in cygpath wrappers - Makefile shared variables/templates - renamed FUNCTION_CONVERT_FILES_TO_COMPILER_NATIVE -> FUNCTION_CONVERT_FILEPATH_TO_COMPILER_NATIVE (deprecating older name) - RegressionTests - in regressiontest script output OS version info for macos, systeminfo call (for windows), and vswhere to print version of visual studio being used/tested - new ScriptsLib/RunLocalWSLRegressionTests - cleanup regression tests Test*5_SSLCertCheckTests*: workaround issue with https://testssl-valid.disig.sk/index.en.html and use badssl.com intead; - upped timeout in regtests to avoid failures under docker windows (esp debug builds) - workaround WSL bug that arp -a doesnt work - just in regression test so warning not failure - translate (most) HTTP 500 errors in the curl tests to WARNINGS (not test failures) - added docker ubuntu 20.04 to regression tests - lost regression tests for ubuntu 1810 since 1810 - Test*RegressionDueToBugInCompareURIsC20Spaceship* / qCompilerAndStdLib_operatorCompareWithOperatorBoolConvertAutoGen_Buggy docs and test but no longer need a workaround - Added WSL build to Documentation/Regression-Tests.md - Docker - DockerBuildContainers/Windows-Cygwin-VS2k19/Dockerfile (sophistsolutionsinc/stroika-buildvm-windows-cygwin-vs2k19) - Also have draft for msys/mingw, but this not working - Getting-Started-With-Stroika.md - VS2k19 docker windows container to use VS_16_6_0 - cleanup makefile for docker images so builds windows specific ones iff on windows - docker build on windows does NOT require -m 2G flag - improved docs/examples on running docker on windows - dockerfiles for ubuntu 20.04 - dockerfile centos8 dockerfile fixes - lose dockerfiles for ubuntu 18.10 since we desupported (cuz desupported on dockerhub) - lose support for Ubuntu 1904, since no longer a supported version of Ubuntu - CircleCI - Got working on ubuntu1804, ubuntu1910, g++ and clang, and windows builds. - MacOS not supported on free tier - A single run per week is about all their budget plan supports so I configured to only run release branch builds (except occasionally I force a quick build to test by checking in with a trigger on dev branch) - Generally - because of the cost / budget limits, this isn't very useful, and I may abandon. - Nice thing about the CircleCI builds, is they are all done with docker - ScriptsLib - changed GetMessageForMissingTool messages for apt-get to include suggested -y - migrated (and cleaned up) code for RunSystemWithVCVarsSetInEnvironment to RunArgumentsWithCommonBuildVars script - ScriptsLib/RunLocalWindowsDockerRegressionTests - refactored WebGet script a little (subroutine); and made it support file:/// urls (since wget doesn't apparently) - Tests (Makefile) - automate computing variable USING_BLOCK_ALLOCATION and having the tests makefile automatically add the blockallocation suppressions so no need to hardwire in RegressionTest script - TravisCI () - got builds / CI working fairly well with TravisCI - Windows, Unix and MacOS - Main issue here is the limit of 50 minute build+test, so we need to trim down set of libs etc to get it to complete without timing out' - and some issue executing EXEs on Windows - https://stroika.atlassian.net/browse/STK-712 https://stroika.atlassian.net/browse/STK-708 - windows only - Compiler Suported and bug workarounds - Compilers - MSVC - 15.9.x compiler bug define support - MSVC - 16.5.x compiler bug define support - GCC - LIBCXX*9x* library bug define support - gcc 9.3 compiler bug define support - g++10 compiler bug define support - Support clang-9 for basic-unix-test-configurations - Support clang-10 for basic-unix-test-configurations - Bug workaround defines changes - attempt workaround for qCompilerAndStdLib_template_template_argument_as_different_template_paramters_Buggy - qCompilerAndStdLib_strong_ordering_equals_Buggy bug workaround - qCompilerAndStdLib_template_template_call_SequentialEquals_Buggy bug workaround - qCompilerAndStdLib_ReleaseBld32Codegen_DateRangeInitializerDateOperator_Buggy bug define and workaround - qCompilerAndStdLib_TemplateEqualsCompareOverload_Buggy - ThirdPartyComponents - Boost - use 1.73.0 - small cleanups to boost/Makefile (e.g use of revised RunArgumentsWithCommonBuildVars API) - changed mirror for boost to sophists.com cuz I cannot find another working one - tweak boost/ConfigureAndBuild file and user-config.jam - workaround https://stroika.atlassian.net/browse/STK-711 - issue g++-10 --std=c++2a with building boost 1.72 - use qStroika_HasComponent_boost check not \_\_has_include() because of we compiled with !qStroika_HasComponent_boost - dont use boost even if system installed - libcurl - use 7.70.0 - OpenSSL - use 1.1.1g - makefile cleanups - makefile use of ScriptsLib/RunArgumentsWithCommonBuildVars - fixed build backup FETCHURL dir for old versions of openssl - sqlite - use 3.32.1 - Xerces - use 3.2.3 - tweaks to windows xerces makefile - fixed x86 config cmake args for xerces makefile - CMAKE_CURRENT_SOURCE_DIR/CMAKE_PER_TARGET_BUILD_DIR - small cleanups to xerces makefile so builds using vs2k19 instead of 17, which may make windows docker builds fully work - ZLib - simplify makefile for zlib (and fixed so using more of config with nmake and much simpler way to pass args - using nmake /E so env vars with env script passed along instead of quoting nightmare with RunArgumentsWithCommonBuildVars - Code Cleanups - fixed use of const && - doesnt make sense to use - replace use of is_pod\ with is_trivial\<\> && is_standard_layout\<\> since is_pod<> deprecated in C++20 (and that is equiv) - fixes for c++20 - new clang-format 11 - lose use of std:: result_of_t which was deprecated and removed in C++20 (and broken in msvc 16.6 - but they may not be wrong) - and replaced with roughly equivilent invoke_result_t - Library/Foundation - Containers - fixed Bijection<> image/preimage iterators to properly manage shared vs non-shared context in their lambda closures - Added Collection<>::Remove(PREDICATE) and RemoveAll(PREDICATE) functions - USE Iterable\::SequentialEqualsComparer as the implementation for EqualsComparer in Stack, Queue, Sequence - renamed Set\<\>GetEqualsComparer -> GetElementEqualsComparer and deprecated old name - renamed Multiset GetEqualsComparer -> GetElementEqualsComparer and renmaed SortedMultiset GetInOrderComparer -> GetElementInOrderComparer - renamed Set\<\> EqualityComparerType -> ElementEqualityComparerType (deprecating old name) - renamed MultiSet\<\>::EqualityComparerType -> ElementEqualityComparerType and deprecate old name - Debug - BackTrace - try using boost preferentially for Debug::BackTrace() - Debug::BackTrace() replaced with Debug::BackTrace::Capture () - and new options argument (allowing param to skip initial; and implementation using boost provided (if available) - which works on windows; **NOT BACKWARDS COMPATIBLE API CHANGE** - replace call to Debug::BackTrace() with Debug::BackTrace::Capture() - added static inline defaults (not const so easy to change per app/inside app defaults for showing source lines etc) for Debug::BackTrace code, and added regtests so it gets executed each way (but you ahve to look at logs to see if its working) - define BOOST_STACKTRACE_GNU_SOURCE_NOT_REQUIRED to build stacktrace code on macos (still testing) - for building windows - set BOOST_STACKTRACE_USE_WINDBG_CACHED when building BackTrace.cpp, since dramatically faster - DataExchange - Support fExactTypeMatchOnly on VariantValue::ThreeWayComparer - Execution - Execution::Sleep() - See https://github.com/microsoft/WSL/issues/4898 - workaround nanosleep EINVAL on Windows/WSL 1 (triggers on ubuntu 20.04) - Synchronized\<\> - Added Synchronized\::try_lock () implementation - WaitForIOReady - _Major change_ - DEPRECATED IO/Network/WaitForSocketIOReady (in favor of direct use of Execution/WaitForIOReady - Execution/WaitForIOReady\<\> is now a TEMPLATE on type T - Execution/WaitForIOReady uses TRAITs which are overidden (template specialized) for the various socket types. - WaitForIOReady no longer updatable and no longer threadsafe. Instead use new Execution::UpdatableWaitForIOReady class which does this stuff - WaitForIOReady code - lose default CTOR; add optional Pollable2Wakeup parameter - new UpdatableWaitForIOReady module - Added new EventFD and used in Execution/UpdatableWaitForIORead - mostly cosmetic cleanups to WaitForIOReady code but also upped qStroika_Foundation_Exececution_WaitForIOReady_BreakWSAPollIntoTimedMillisecondChunks and lose unused EventFD method - added new utility Execution::Platform::Windows::COMInitializer; and used it in Firewall code, and LedIt/LedLineIt samples (in place of direct calls to CoIniitializeEx/OleInitialize() - IO::FileSystem - added new overload of IO::FileSystem::Exception::ThrowSystemErrNo() taking no errno (using thread-local global errno/GetLastError()); and some costmetic docs/cleanups to trace messages - In FileInputStream/FileOutputStream - on open - use FileSystem::Exception::Throw* calls intead of Execution::Throw* calls, so we throw an std::filesystem_error (subclasss) - and pass along path objects, so that can be caught and examined in the failure - IO::Network - draft regression tests Test6*Neighbors* - added IO::Network::Interface::SystemIDType - cleanup networks regression tests - simplified IO/Network/Listener use of WaitForIOReady now that its templated (no longer need bijection) - fixed listener move CTOR to not use const - added IsCleintError/IsServerError methods to IO/Network/HTTP/Exception - URI - make IO::Network::Uri operator bool EXPLICIT operator bool to workaround appearent qCompilerAndStdLib_operatorCompareWithOperatorBoolConvertAutoGen_Buggy - not sure if this is best - lookinginto - Sockets - new utility helper ConnectionOrientedStreamSocket::NewConnection() - SocketAddress: added kAnyPort member; made it default arg for one SocketAddress CTOR (with internetaddress) and made that CTOR explicit (since down to one required param) - Added ConnectionOrientedStreamSocket::Ptr::Write() overload - Interfaces - new class IO::Network::SystemInterfacesMgr (part of refactoring) - [[deprecated ("use SystemInterfacesMgr{}.GetAll - deprecated in in 2.1a5")]]Traversal::Iterable\ GetInterfaces () - [[deprecated ("use SystemInterfacesMgr{}.GetById - deprecated in in 2.1a5")]optional\ GetInterfaceById - New API SystemInterfacesMgr::GetContainingAddress() - lose class IO::Network::Interface::Binding (and replace it with deprecated using = CIDR for backward compat); and change the fBindings list in the Interace to be a list of CIDR (thats what the old bindings class amounted to) - various fixes to reporting - WLANAPI - Added support for WLANAPI\_ wrapper on wlanapi.dll instead of calling apis directly. These dont work and cause link error (runtimebinding failure) on docker cuz of absense of lan services module being installed. Untested so far, but this should work either way - InternetAddress - refactoring - moved private utilitiy from CIDR class to InternetAddress::KeepSignifcantBits () - NeighborManager - now maps to proper interface ids - cleanups designed so it will try fallback strategies; goal was to workaround lack of /proc/net/arp on WSL. But sadly that didnt help cuz it turns out arp-a and ip show neighbors dont work either - CIDR - CTOR now takes optional\ second arg, so a few construction cases a little simpler to call (and unix code compiles with less change) - use new InternetAddress::KeepSignifcantBits to fix CIDR compare <=> and == methods to only check significant bits - Transfer - changed IO::Network::Transfer::Connection::Options fMaxAutomaticRedirects default from 0 to 1 (with docs explanations) - probably fixed https://stroika.atlassian.net/browse/STK-706 sporadic corruption with webserver ConnectionManager (issue was incomplete object passed as this lambda to start of new thread) - IO::Network::Transfer::Connection GET/Send etc document Ensure (result.GetSucceeded ()) - IO::Network::Transfer Response ToString() (and other related sub-element) support - Memory - lose some obsolete (old) Memory::Optional code - Time - datetime cleanups; and slightly change in sematnics for DateTime::ThreeWayComparer in non-default case (irrelevant) - Traversal - docs about iterators - docs / design note about iteratables\<\> - not necessarily doing COW the way containers do - simplified, and corrected **serious bug**, with CreateGeneratorIterator/CreateGenerator - Test19*CreateGeneratorBug* with regtest ; closure handling in getNext CreateGenerator usage - all fixed now I htink - Fixed several Iterable\<\> methods, Select(), Where: to properly manage shared vs non-shared context in their lambda closures - code cleanups - using Traversal::Iterator2Pointer () in place of &\* in a few places - Range/DiscreteRange etc cleanups (mostly constexpr) - Deprecate Iterable\<\>::SequenceEquals () - use SequentialEquals instead - NEW Iterable\::SequentialEqualsComparer class - use constexpr in a few more places Iterator2Pointer - Frameworks - WebServer - cleanup ugly code in Frameworks/WebServer/FileSystemRouter which I BELIEVE triggered VS2k compiler bug(bad codegen) - but horrible code so no point in tracking it down - Simplify Frameworks/WebServer/ConnectionManager now that we have improved WaitForIOReady: no longer need the bijection - Frameworks/WebServer/ConnectionManager code cleanups: use Synchonized not RWSynchonized for openconnecitons (active/inactive) since must write as often as read; and started adding scoped_lock use but realized I need to fix something in Syncrhonized class first" - in Frameworks/WebServer/ConnectionManager - re-enable use of scoped_lock now that we have implemented Synchronized::try_lock () - ConnectionManager now uses new UpdatableWaitForIOReady<> - to eliminate thread interrupts and **greatly impove webserver performance** - Led - fixed version# macro generation for Led so about boxes show the right Led version - Samples - ActiveLedIt - lose extra rm rule that fails in Samples/ActiveLedIt/Makefile - cuz not in other samples anyhow - Fixed registration, .def file link and other build issues - Document more clearly how to run / test - document status of ActiveLedIt and that its all working - *Led*It - Execution::Platform::Windows::COMInitializer workaround for LedItMFC / LedLineItMFC - (due to interaction wtih boost stacktrace code) --- ### 2.1a4 {2020-01-10} #### TLDR - lose support for configuration Release-DbgMemLeaks-U-32 from vs2k projects - IO::Network::NeighborsMonitor improvements - Added clang and ubuntu1910 builds to circleci - fixed regression in 2.1a3 - which broke clang builds (boost build issue on linux) #### Details - Build System - predefined configurations - lose support for configuraiton Release-DbgMemLeaks-U-32 from vs2k project files and default-configurations - deprecated WIN_CXX, , WIN_AS, WIN_CC, WIN_Linker, WIN_LIBTOOL: since now the non-WIN_prefix versions come out in unix mixed dos format c:/foo - Added clang builds to circleci - fixed regression in 2.1a3 - which broke clang builds (boost build issue on linux) - Compiler versions - support vs2k17 15.9.18 - support vs2k19 16.4.2 - ThirdPartyComponents - libcurl 7.68.0 - Foundation::IO - Network::NeighborsMonitor - Imporved ToString - for IO/Network/Neighbors: on unix use arp -an (add -n), and skip incomplete entries (for now) - support new IO/Network/Neighbors option fIncludePurgedEntries - support Options::Strategy::eProcNetArp for NeighborsMonitor - output InterafceID in ION::Network::Neighbors modules --- ### 2.1a3 {2020-01-04} #### TLDR - Integrate with online CI systems TravisCI, and CircleCI - Attempt at windows docker build support - Small fixes to configuration code - Small improvements to SSDP code #### Details - Online CI System Integration - CircleCI - Got basic linux builds working. Nicely done using docker containers. But they don't support free builds with macos so not tried, and not been able to get windows working yet. - TravisCI - Got Linux builds working (moderately) - a few configurations. Not great. Not full regtests (like no valgrind). MacOS and Windows not working, but started scripting them. - Bug defines - if **ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED** >= 101500 check for qCompilerAndStdLib_stdfilesystemAppearsPresentButDoesntWork_Buggy and change .travis.yml macos build back to setting -mmacosx-version-min=10.15 undo attempts at debugigng qCompilerAndStdLib_stdfilesystemAppearsPresentButDoesntWork_Buggy with travisci - track issue with https://stroika.atlassian.net/browse/STK-705 and retry mid december - Build System - configure - fixed UNIX regression setting --Xerces no in configure - fixed configure --append-extra-compiler-and-linker-args handling - lose restriction on configuration name for windows (from applyconfiguration - lingering check) - lose extra-linker-args arg from confiure (was not implemented - instead use append-extra-suffix or prefix linker args - BootstrapToolsSrc - renamed BuildToolsSrc/realpath.cpp BootstrapToolsSrc/realpath.cpp - first draft of vswhere scripting - Compiler versions - support vs2k17 15.9.18 - support vs2k19 16.4.2 - Docker based builds - start work on windows docker images - Foundation::Debug - https://stroika.atlassian.net/browse/STK-706 assertions to help debug/trace the source issue - Foundation::Execution - Tracing_Synchronized_Traits - use TimeOutException::kThe instead of TimeOutException ()) one place - Added WaitForSocketIOReady::WaitQuietlyUntil () - new function Execution::GetAssociatedErrorCode () - fixed HRESULT default_error_condition () so maps to right conditions and works with if errCode == ercc:permission_denied etc - Foundation::IO - New module Stroika::Foundation::IO::Network::SystemFirewall to help setup system firewall - Frameworks::SSDP - Added comparison operator on SSDP::Advertisement, and started with checks for \_\_cpp_impl_three_way_comparison < 201711 - operator!= for SSDP::Advertisement - cleanup SSDP Search retry logic (fixed bug was searching too often) - Fixed SSDP search code to set Host header properly for IPV6 sends - bump buffer size for packet read for ssdp to 8k - ssdp search - do quick retry on search first time - ThirdPartyComponents - boost 1.72.0 - and had to cleanup/fix makefile so we built boost with the correct/configured version of MSVC (fixing issue about link error from mixing compilers) - libcurl 7.67.0 --- ### 2.1a2 {2019-11-25} - **Major Changes** - Visual Studio.net build uses makefile instead of not MSBuild - Visual studio.net project (both 2k17 and 2k19) just indirect to makefile builds now (makefile project files) - Build System - Visual Studio Changes - Visual Studio.net build uses makefile - not MSBuild - Visual studio.net project files (both 2k17 and 2k19) just indirect to makefile builds now (makefile based project files) - lose more x64 arch settings and A-32 configuration support - smaller set and means nothign since now all semantics indirected to ConfigurationFiles configfiles - use UserMacros for JOBS_FLAG - follow (mostly) https://docs.microsoft.com/en-us/cpp/build/reference/vcxproj-file-structure?view=vs-2019 - use cygpath --mixed instead of cygpath --windows in a bunch of places (forward slashes work better in bash based scripting so see if we can get away with this switch) - new LIBTOOL configuration variable (more or less replacing AR - but so easier to script in makefile lib with diff sets of options); ifeq (\$(USE*MSBUILD*),0) prelim test for building on vs2k without msbuild (off still) - ApplyConfigurations - now emits OUT_ARG_PREFIX_NATIVE and use that in DEFAULT_LINK_LINE - hopefully better workaroudn for https://stroika.atlassian.net/browse/STK-677 (tsan noise) - Makefile cleanup - New macros (defined and used): - DEFAULT_CC_LINE - DEFAULT_CXX_LINE - DEFAULT_LIBRARY_GEN_LINE - DEFAULT_LINK_LINE macro in makefile, and use it in regetests, samples, etc build makefiles - Makefile performance tweak for Library makefiles: CachedOBJSFile - use FUNCTION_CONVERT_FILES_TO_COMPILER_NATIVE makefile macro to repolace direct cygpath call - deprecated Library/Projects/Unix/SharedBuildRules-Default.mk replacing with ScriptsLib/SharedBuildRules-Default.mk; and seprecated Library/Projects/Unix/SharedMakeVariables-Default.mk replacing with ScriptsLib/SharedMakeVariables-Default.mk - lose StroikaLinkerPrefixArgs += -g since done in configure now (for a while) - Scripts - Lose obsolete script ScriptsLib/GetVisualStudioConfigLine - Lose obsolete ScriptsLib/MakeBuildRoot.sh (use without .sh) - Configure - support new variables RC/MIDL (windows only/msvc) - lose/deprecate support for --c-define on configure - document / use --append-CPPFLAGS intead - deprecated OptimizerFlag/--cpp-optimize-flag for configure script and lose from docs - add EXTRA_SUFFIX_LINKER_ARGS /bigobj for visual studio - in configure (for visual studio) - only do /FS flag if WinFlag_DebugProgramDatabase - since I think only needed there - workaround HasMakefileBugWorkaround_lto_skipping_undefined_incompatible for lto not working building openssl - support new configuration variable TARGET_PLATFORMS (properly defaulting) - fixed configure --fto enable/disable for windows/visual studio; and fix it (and apply-release-settings) to set /LGCG for linker as well - for visual studio.net - default INCLUDE_SYMBOLS_EXE = true (even release builds) since we write to separate .pdb file - new configure feature - PackageConfigLinkLines - and used that to eliminate manual expansion of a few dependencies, and to dynamically invoke pkg-config at runtime in the makefile based on feedback from the (built) third party components - Valgrind - break out some suppressions into Valgrind-MemCheck-Common-x86_64.supp - disable valgrind testing on raspberrypi (by removing valgrind configs) - another minor https://stroika.atlassian.net/browse/STK-699 valgrind workaround - https://stroika.atlassian.net/browse/STK-702 - avoid another warning attempted patch - tweaked https://stroika.atlassian.net/browse/STK-704 workaround - Bug defines - qCompilerAndStdLib_attributes_before_template_in_Template_Buggy workaround - qCompilerAndStdLib_locale_pctX_print_time_Buggy changes (eg broken xcode 11) - Code cleanups - replace use of empty optional<>{} CTOR with nullopt in a few places becaues of (probably misplaced) g++ warnings, but also because the nullopt code is probably clearer - Removed Deprecated classes/components (so checkout v2.1a1 and try building with that if upgrading) - Compiler versions - support vs2k17 15.9.16 - support vs2k19 16.3.5 - changed warnings so only done on MSC_VER not \_MSC_FULL_VER so I dont need to do this update as often - compiler bug define support for Apple Clang++ 11 (MacOS XCode 11.1) - updated bug defines for gcc 9.2 - tweak qCompiler_cpp17InlineStaticMemberOfTemplateLinkerUndefined_Buggy bug worakround for macos - Docker based builds - ununtu 1910 docker images, and used in regtests - Draft windows docker build image (for vs2k19) but not working yet - centos 8 support - Foundation::Characters - tweak NLToCRLF() impl - not just performance - but also fixed so if run on existing CRLF text, it does nothing - Foundation::DataExchange - several (POSIX only) bugfixes to InternetMediaTypeRegistry reading dbs: DOCUMENT we try one and then the other (and that maybe not good idea); and fixed a couple bugs with LoadFromEtcMimeDotTypes (wrong separator, sometimes have multiple suffixes on a line); read from both LoadFromUserShare and LoadFromEtcMimeDotTypes; and improved USE*NOISY_TRACE_IN_THIS_MODULE* display - Foundation::Execution - **fixed serious bug in Syncrhonized** class (noticed by g++ compiler warning); fWriteLockCount\_ left uninitialized (now zero initialized) - Foundation::IO - better error handling in ~MemoryMappedFileReader for POSIX - DNS GetHostAddress/GetHostAddresses by family overload - Foundation::Time - fixed bug in Date::operator++ (int) - returned wrong value - Added Duration::min ()/max() and notes about making it constexpr and deprecated Duration::kMin/kMax - Duration now inherits from std::duration<>, so we no longer need conversion operator, nor many comparison operators, etc. - docs strings for Duration::PrettyPrintAge () - Frameworks::Led - Led framework code cleanups/factoring (simple mostly adding .inl files) - Several small Led code cleanups - defined new qStroika_FeatureSupported_XWindows; and updated Led code to depend on that (still nowhere near compiling); and adjust makefile to accomodate that most Led code only compiles for windows - lose Led code from Archive (always around in git history if I need it) - but unlikely to return to any of that code so just polutes searches - RegressionTests - re-org placement of regtession test output into subfolders - New Ubuntu1910_x86_64 regtests - fixed a few places in regtests to use VerifyTestResult instead of Assert() - Tests on Centos8 - add build of \$TEST_TARGET=Ubuntu1910-Cross-Compile2RaspberryPi; and lose a few regular builds of raspberrypi on older non-long-term ubuntus - use default-configurations instead of basic-unix-test-configurations for ubuntu 1810 and 1904 (intermediate not long term older) releases - to save disk space and testing time - Samples - Got all samples (including Led - ActiveLedIt) - working with new makefile based build, including RC, and MIDL. Updated docs on how to run ActiveLedIt when built from cmdline and now have 64 bit builds of all these - including activeledit, and other small cleanups. - ThirdPartyComponents - Big changes to makefiles - all heavily cleaned up; no more msbuild, no more dependencies on configuration names. Much more uniformly using CFLAGS etc make configure settings. - libcurl version 7.66.0 - openssl 1.1.1d - SQLite 3300100 - Note/Clean workarounds https://stroika.atlassian.net/browse/STK-697 openssl issue fixed (FIXED in openssl 1.1.1d) --- ### 2.1a1 {2019-09-04} - - Removed all past deprecated code. For upgrading from older versions of Stroika, its recommended you first build with Stroika 2.1d27 - Compilers/Flags/Bug workarounds - many fewer default warnings configured for UNIX compilers (testing to a degree), and in some cases other workarounds for warnings - new qCompilerAndStdLib_attributes_before_template_in_Template_Buggy workaround - Foundation::Memory - better error handling in ~MemoryMappedFileReader for POSIX - Foundation::Time - fixed bug in Date::operator++ (int) - returned wrong value - Added Duration::min ()/max() and notes about making it constexpr and deprecated Duration::kMin/kMax - HistoricalPerformanceRegressionTestResults/ PerformanceDump-{Windows_VS2k17, Windows_VS2k19, Ubuntu1804_x86_64, Ubuntu1810_x86_64, Ubuntu1904_x86_64, MacOS_XCode10}-2.1a1.txt - Tested (passed regtests) - OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Windows_VS2k17, Windows_VS2k19, Ubuntu1804_x86_64,Ubuntu1804-Cross-Compile2RaspberryPi, Ubuntu1810_x86_64, Ubuntu1810-Cross-Compile2RaspberryPi, Ubuntu1904_x86_64, Ubuntu1904-Cross-Compile2RaspberryPi, MacOS_XCode10, Centos7_x86_64}-2.1a1-OUT.txt - vc++2k17 (15.9.15) - vc++2k19 (16.2.3) - MacOS, XCode 10 (Apple LLVM version 10.0.1) - Ubuntu 18.04, Ubuntu 18.10, Ubuntu 19.04, Centos 7 - gcc 7, gcc 8, gcc 9 - clang++-6, clang++-7, clang++-8 {libstdc++ and libc++} - valgrind Tests (memcheck and helgrind), helgrind some Samples - cross-compile to raspberry-pi(3/stretch+testing): --sanitize address,undefined, gcc7, gcc8, gcc9 (gcc9 not passing tests cuz libc version mismatch on test machine) and valgrind:memcheck/helgrind - gcc with --sanitize address,undefined,thread and debug/release builds on tests - Known issues - Bug with regression-test - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - See https://stroika.atlassian.net/secure/Dashboard.jspa for many more. --- ### 2.1d27 {2019-08-27} - - Foundation::Common - Common::GUID::GenerateNew () - Foundation::Cryptography - fix (i hope) corner case in Cryptography/Digest/Algorithm/MD5.cpp logic - if padding comes out to 64 bytes, none needed - Foundation::DataExchange - ObjectVariantMapper: docs/cleanups; and operator+= support (alias) - Atom<> - small cleanups to Atom<> class, and addition of supported AtomManager_CaseInsensitive - InternalAtonType public, and added Atom<>::ToString() method - InternetMediaType: - added regressiontests - Store data in parts (parsed) type/subtype, parameters (ignore comments) - case insensitive treat type/subtype/parameter names - renamed namespace DataExchange::PredefinedInternetMediaType -> DataExchange::InternetMediaTypes - CTOR now more strict parsing - IsSubTypeOf, IsSubTypeOfOrEqualTo deprecated - New GetType/GetSubType/GetParemters methods - Refactoring of InternetMediaTypeRegistry; implemented much more of it for unix/non-windows, and added regression tests (incomplete and not fully backward compatible, but probably close enuf) - Foundation::Execution - Syncrhonized<> - Much improved UpgradeLockNonAtomically () and UpgradeLockNonAtomicallySilently () - draft support for boost/thread/shared_mutex for shared locking/upgrade locking (UpgradableRWSynchronized) - using boost::upgrade_mutex also appears to require -lboost_chrono - **really not working yet** - cleaned up Synchronized_Traits (**not backward compat**, but not likely directly used) - redo CTORs for Synchronized Readable/Writable reerence to take Synchronized\* as arg instead of bits and pieces (so easier to grab other pieces as needed) - keep track of write count in Synchronized class; and use it to pass 'intervenningwritelock' flag to upgradelocknonatomically callback - wrote/use Syncrhonized::WritableLock::CTOR overload (&&WriteLockType so cleaner and pass lock in) - added optional\ fDbgTraceLocksName to Syncrhonized<> class depending on TRAITS::kDbgTraceLockUnlockIfNameSet, which defaults to qTraceLog enabled (DbgTrace enabled); and use it to log lock/unlock calls on Syncrhonized objects. Turn on/off per object by setting 'name' field - changed Execution::ThrowTimeoutExceptionAfter to use kThe instead of a local static object (if some reason this needs to be callable before main document it but I dont think so and since it was inline that caused object bloat) - added ThrowTimeoutException () utility for use in avoiding deadly include embrace in stroika (since easier to forward declare than class) - Foundation::IO::FileSystem - changed default for FileInputStream to be seekable (not backward compat, but probably OK) - Foundation::IO::Network - tweak tweak IO/Network/Interface compute of transmit/recive speed for windows - multiply by undocumented 1000x factor so numbers match - URI - URI::GetSchemeAndAuthority () - added URI URI::GetAuthorityRelativeResource () const specialization; and nonvirtual operator bool () const; for URI - change semantics of URI::Combine() so allows special case of empty \*this and then just returns right side argument - simplifies alot of coding so better definition - fixed more bugs with CIDR construction (from number of bits) and added more regtests to capture - InternetAddressRange::...traits...::Difference - InternetAddress::Offset () - upgraded to take uint64_t (but that wasnt enough to solve me problems); So added InternetAddress::PinLowOrderBitsToMax () and used that in Network::CIDR::GetRange () - Foundation::IO::Network::Transfer - IO::Transfer::Cache module, working and integrated into WinHTTP and CURL connection subclasses - support for etag/lastmodified Cache control - conditional gets - IO::Transfer::Options now has an optional (really nullable) Cache object you can use to share a cache among Connections - **_NOT BACKWARD COMPATIBLE CHANGE_** Change all uses of Connection (object) to Connection::Ptr and change all uses of(rarer) Connection_LibCurl::CTOR to Connection_LibCurl::New Connection_WinHTTP::CTOR to Connection_WinHTTP::New - deprecate CreateConnection () and use Connection::New () instead - renamed Client_WinHTTP.cpp -> Connection_WinHTTP.cpp and Client_libcurl.cpp -> Connection_libcurl.cpp - a few more http headers defined - added fAuthorityRelativeURL to IO/Network/Transfer/Request - added new methods Connection::GetSchemeAndAuthority () and Connection::SetSchemeAndAuthority () - still not really used - Added IO::Network::Transfer::Connetion overloads for PUT, GET, etc taking URI, and combining with SchemeAndAuthority on the connection - Big changes to IO::Transfer::Connection - use GetSchemeAndAuthority/SetSchemeAndAuthority in place of GetURL / SetURL () - and pass in authoritiyrelativeurl to Request in SEND argument. - Use helpers GET/PUT/POST etc to wrap this - you can pass full url there. - IO\Network\Transfer\ConnectionPool - Foundation::Memory - changed default BLOB::ToString (maxBytesToShow) arg to 80 - from infinite - Foundation::Time - Added (temporary) Duration::operator chrono::duration\ () and todo item saying to instead SUBCLASS from this duration<> class - Regression Tests/Compiler Bug Workarounds/Compilers Supported - another qCompilerAndStdLib_arm_openssl_valgrind_Buggy workaround for raspberrypi/valgrind - new bug workaround for existing bug https://stroika.atlassian.net/browse/STK-662 (they updated dll version name in latest debian/raspbian release); and new raspberry pi valgrind workaorund needed - https://stroika.atlassian.net/browse/STK-698 - workaround bug qCompiler_cpp17InlineStaticMemberOfClassDoubleDeleteAtExit_Buggy for VS2k17 - set regtest max-redirects to 2 (from 1) to works with cache/cnn example - qCompilerAndStdLib_template_DefaultArgIgnoredWhenFailedDeduction_Buggy workaround - qCompilerAndStdLib_template_DefaultArgIgnoredWhenFailedDeduction_Buggy broken in gcc9 - qCompilerAndStdLib_error_code_compare_condition_Buggy now depends on **GLIBCXX** value (so catches clang++ using libstdc++) - added -lboost_thread to dependencies when including boost (so can use upgrade_mutex); and changed default build flags for boost to NOT say 'without-chrono' since that doesnt cuase boost to use std::chono - workaround new qCompilerAndStdLib_locale_utf8_string_convert_Buggy - several cosmetic changes to Cryptography/Encoding/Algorithm/RC4.cpp to avoid an msvc internal compiler error - support new compiler - _MSC_VER_2k19_16Pt2_ - broke Tests/Valgrind-MemCheck-Common.supp into itself and Tests/Valgrind-MemCheck-Common-armhf.supp and fixed defaults for makefile to include that extra file (Valgrind-MemCheck-Common-\$(ARCH).supp) - qCompilerAndStdLib_GenericLambdaInsideGenericLambdaAssertCall_Buggy workaround, and additional regtests for new upgradelock code - wrap warning suppression around include of afxole.h because of internal issue with latest MSFT compiler release (16.2) - they now warn about issues internal to their includes - building activeledit we got warning (msvc2k19 only) warning MIDL2015: failed to load tlb in importlib: : olepro32.dll so remove include - not obviously need (may need to retest ocx) - workaround qCompilerAndStdLib_template_GenericLambdaInsideGenericLambdaDeductionInternalError_Buggy bug; and added extra UpgradableRWSynchronized<> regtest - remove suppression for https://stroika.atlassian.net/browse/STK-548 - tweak helpgrind suppressions for https://stroika.atlassian.net/browse/STK-628 - https://stroika.atlassian.net/browse/STK-632 workaround now needed on x86 too - https://stroika.atlassian.net/browse/STK-644 suppression not needed anymore - https://stroika.atlassian.net/browse/STK-699 - valgrind raspberrypi memcheck workarounds/suppressions - https://stroika.atlassian.net/browse/STK-701 helgrind suppression for arm - ThirdPartyComponents - libcurl 7.65.3 - sqlite - use 3.29 - HistoricalPerformanceRegressionTestResults/ PerformanceDump-{Windows_VS2k17, Windows_VS2k19, Ubuntu1804_x86_64, Ubuntu1810_x86_64, Ubuntu1904_x86_64, MacOS_XCode10}-2.1d27.txt - Tested (passed regtests) - OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Windows_VS2k17, Windows_VS2k19, Ubuntu1804_x86_64,Ubuntu1804-Cross-Compile2RaspberryPi, Ubuntu1810_x86_64, Ubuntu1810-Cross-Compile2RaspberryPi, Ubuntu1904_x86_64, Ubuntu1904-Cross-Compile2RaspberryPi, MacOS_XCode10, Centos7_x86_64}-2.1d27-OUT.txt - vc++2k17 (15.9.15) - vc++2k19 (16.2.3) - MacOS, XCode 10 (Apple LLVM version 10.0.1) - Ubuntu 18.04, Ubuntu 18.10, Ubuntu 19.04, Centos 7 - gcc 7, gcc 8, gcc 9 - clang++-6, clang++-7, clang++-8 {libstdc++ and libc++} - valgrind Tests (memcheck and helgrind), helgrind some Samples - cross-compile to raspberry-pi(3/stretch+testing): --sanitize address,undefined, gcc7, gcc8, gcc9 (gcc9 not passing tests cuz libc version mismatch on test machine) and valgrind:memcheck/helgrind - gcc with --sanitize address,undefined,thread and debug/release builds on tests - Known issues - Bug with regression-test - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - See https://stroika.atlassian.net/secure/Dashboard.jspa for many more. --- ### 2.1d26 {2019-06-17} - - Execution - change one assert in thread code to WeakAssert () since triggered and INNOCUOUS race (just in logical coherence test) - cosmetic, and WaitForIOReady has Wait/WaitQuietly overloads taking Duration And incompatible change to WaitQuietly so it no longer returns optional but just empty list - WaitForSocketIOReady now has WaitQuietly overload, and Wait () overload taking Duration - Framework/UPnP - Added optional autoRetryInterval to SSDP Search Client and a few other small cleanups to the module - Time - Added Duration operator overload taking DurationSecodns and a duration - Build/RegTests - Fix RunPerformanceRegressionTests for Linux when we dont have all linux basic regtest configurations - use Release build - changed suppression for https://stroika.atlassian.net/browse/STK-677 since triggered again (still very rare) - generalize valgrind workaround for https://stroika.atlassian.net/browse/STK-695 - HistoricalPerformanceRegressionTestResults/ PerformanceDump-{Windows_VS2k17, Windows_VS2k19, Ubuntu1804_x86_64, Ubuntu1810_x86_64, Ubuntu1904_x86_64, MacOS_XCode10}-2.1d26.txt - Tested (passed regtests) - OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Windows_VS2k17, Windows_VS2k19, Ubuntu1804_x86_64,Ubuntu1804-Cross-Compile2RaspberryPi, Ubuntu1810_x86_64, Ubuntu1810-Cross-Compile2RaspberryPi, Ubuntu1904_x86_64, Ubuntu1904-Cross-Compile2RaspberryPi, MacOS_XCode10, Centos7_x86_64}-2.1d26-OUT.txt - vc++2k17 (15.9.13) - vc++2k19 (16.1.3) - MacOS, XCode 10 - Ubuntu 18.04, Ubuntu 18.10, Ubuntu 19.04, Centos 7 - gcc 7, gcc 8, gcc 9 - clang++-6, clang++-7, clang++-8 {libstdc++ and libc++} - valgrind Tests (memcheck and helgrind), helgrind some Samples - cross-compile to raspberry-pi(3/stretch+testing): --sanitize address,undefined, gcc7, gcc8, gcc9 (gcc9 not passing tests cuz libc version mismatch on test machine) and valgrind:memcheck/helgrind - gcc with --sanitize address,undefined,thread and debug/release builds on tests - Known issues - Bug with regression-test - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - See https://stroika.atlassian.net/secure/Dashboard.jspa for many more. --- ### 2.1d25 {2019-06-07} - - Characters - in ToString() for pair/keyvaluepair no need to put QUOTES on first item, as its tostring generally already does that if appropriate - Common - Docs, examples and constexpr cleanups on EnumNames/DefaultNames usage - Failed attempt to simplify CTOR issue with EnumNames<> initializing fEnumNames\_: disable but comment on possible fixes for EnumNames<> CTOR / std::array initializer issue (only prevents constexpr) - Containers - Add Sequence_stdvector MOVE CTOR taking std::vector arg - new Sequence<>::OrderBy method and rettest - IO - IO::Network::Neighbors module - fixed bug with CIDR class when number of significant bits != 0 mod 8; and added regression test for this case - Query::ToString () (In URI class) implemented - URI and UniformResourceIdentification namespace helper classes now use the new ThreeWayComparer pattern more fully (sb no real difference sematnically for users) - support InternetAddress::min/max constexpr functions and use that to simplify (constexpr) InterntAddressRangeTraits - Traversal - Define Iterable::OrderBy and Sequence::OrderBy to use stable_sort (and document why) - Build/RegTests - https://stroika.atlassian.net/browse/STK-695 valgrind suppression - Update RunRemoteRegressionTests to pass along optional CMD2RUN, and document how to use that in Regression-Tests.md to run centos7 regtests - dump details of each configuration to TEST_OUT_FILE in running RegressionTests so easier to see changes in configs between regression tests - Compiler Bugs/Workarounds - defined new bug workaround qCompilerAndStdLib_template_specialization_internalErrorWithSpecializationSignifier_Buggy; and used it to simplify all DefaultNames<> definitions. Still could use more simplification but cannot see how yet - https://stroika.atlassian.net/browse/STK-440 - Support building for Centos7 - improved readme file for centos7 (getting started in docker instance) - Added to regression tests - worakround https://stroika.atlassian.net/browse/STK-696 - disable build of xerces on centos by default - lose includes (cuz failed on centos6 and not needed) and a few others unneeded on Foundation/IO/Network/Interface.cpp - missing libraries added to DockerBuildContainers/Centos-7-Small/Dockerfile - dont set Address sanitizer on for centos by default, cuz appears broken - ThirdPartyComponents - TRIED openssl 1.1.1c, but failed, due to https://stroika.atlassian.net/browse/STK-697 - too many valgrind failures. Have to disable almost everything. Wait for next openssl release. - HistoricalPerformanceRegressionTestResults/ PerformanceDump-{Windows_VS2k17, Windows_VS2k19, Ubuntu1804_x86_64, Ubuntu1810_x86_64, Ubuntu1904_x86_64, MacOS_XCode10}-2.1d25.txt - Tested (passed regtests) - OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Windows_VS2k17, Windows_VS2k19, Ubuntu1804_x86_64,Ubuntu1804-Cross-Compile2RaspberryPi, Ubuntu1810_x86_64, Ubuntu1810-Cross-Compile2RaspberryPi, Ubuntu1904_x86_64, Ubuntu1904-Cross-Compile2RaspberryPi, MacOS_XCode10, Centos7_x86_64}-2.1d25-OUT.txt - vc++2k17 (15.9.12) - vc++2k19 (16.1.2) - MacOS, XCode 10 - Ubuntu 18.04, Ubuntu 18.10, Ubuntu 19.04, Centos 7 - gcc 7, gcc 8, gcc 9 - clang++-6, clang++-7, clang++-8 {libstdc++ and libc++} - valgrind Tests (memcheck and helgrind), helgrind some Samples - cross-compile to raspberry-pi(3/stretch+testing): --sanitize address,undefined, gcc7, gcc8, gcc9 (gcc9 not passing tests cuz libc version mismatch on test machine) and valgrind:memcheck/helgrind - gcc with --sanitize address,undefined,thread and debug/release builds on tests - Known issues - Bug with regression-test - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - See https://stroika.atlassian.net/secure/Dashboard.jspa for many more. --- ### 2.1d24 {2019-05-24} - - Threeway Compare (and EqualsComparer) - Threeway compare is work in progress for c++20 and not yet avail anyhow. But move in that direction as I understand it. That means move towards each class owning its own TWC (spaceship) function. - Toward that end, each class I want comparable, now has a ThreeWayComparer member (and sometimes if more performant an EqualsComparer member). - Occasionally – like with String class – these take extra optional parameters in comparer CTOR. - These DEPRECATE existing methods CLASS::Compare() and CLASS::Equals() - Each class – for now – defines global (in containg namespace) operator==, operator< etc functions that vector to Common::ThreeWayCompare(), or to CLASS:EqualsComparer{} if its better. These will soon be ifdefed so only there before C++20 – see https://stroika.atlassian.net/browse/STK-692 and #if \_\_cpp_lib_three_way_comparison < 201711 - New class Common::ThreeWayComparer meant to be called NEARLY ALWAYS – when you want to three way compare. It automatically delegates to T::ThreeWayComparer if available (and eventually in C++20 to spaceship operator). New function Common::ThreeWayCompare which is trivaial wrapper on Common::ThreeWayComparer helping with argument deduction issue (but only usable when no extra args needed to threewaycomparer). - Misc - performance tweek - String::ThreeWayComparer takes overloads with wstring_view - string equals/etc comparison cleanups: deprecated LessCI, EqualsCI, and replaced with LessComparer and EqualsComparer that take (constexpr) comparison arg - Backward compatabilty Generally there is nothing todo. If you compare with <, or == etc - no change. But if you called Equals() or Compare() explicitly, these are deprecated and now you should use Common::ThreeWayCompare - probably, or T::ThreeWayComparer perhaps if you need to pass arguments. For example, use of String::LessCI should be replaced with String::Less - Cache - Simplify Cache::Memoizer<> code to use apply - instead of manual implementation of something similar - Characters - more \_\_cpp_char8_t support - Common - Refactored Concept/ConceptBase modules (mutual include friendliness) - use constexpr in CountedValue(); and refactored Equals (deprecated) in that class to EqualsComparer and ThreeWayComparer, and added operator relops for the class - Containers - Improved Set::\_IRep::\_Equals_Reference_Implementation - now takes weaker argument, and slightly more performant - DataHyperRectangleN support (variadic) and same for other hyperrectangle subclasses, deprecating stuff like DataHyperRectangle1, 2, etc - Debug - minor code cleanups of Debug/AssertExternallySynchronizedLock: move GetSharedLockMutexThreads\_ () to CPP file so one copy of static mutex - Docs - docs on Debugging - Math - lose Math::Angle/1 overload and instead require using stuff like \_deg or \_rad to be more explicit (or Angle::eDegrees etc arg) - delete obsolete Math_LinearAlgebra_Tensor - just use DataHyperRectangle - Memory - new Memory::MemCmp () utility (a constexpr std::memcmp) - deprecate Memory::Optional - Traversal - Iterable<> - SequenceEquals, SequentialEquals, MultiSetEquals, and SetEquals all with static 2 container arg - versions, and other cleanups/docs - cleanup Iterable<>::Median - to use INORDER_COMPARE function, but not requested (worksa round bug in latest VC2k19 C++ compiler) - Build/RegTests - update version for centos7 image; and added make target docker-pull-base-images; almost have building under centos7 (pita cuz comes with gcc4) - Compiler Bugs/Workarounds - workaround qCompilerAndStdLib_make_from_tuple_Buggy bug - lose obsolete qCompilerAndStdLib_stdinitializer_of_double_in_ranged_for_Bug bug workaround - workarounds for qCompilerAndStdLib_TemplateUsingOfTemplateOfTemplateSpecializationVariadic_Buggy - new bug qCompilerAndStdLib_constexpr_KeyValuePair_array_stdinitializer_Buggy workaround; and support for vs2k19 16.1 - Support Compilers Changes - VS2k19 16.1.0 - ThirdPartyComponents - use curl 7.65.0 - HistoricalPerformanceRegressionTestResults/ PerformanceDump-{Windows_VS2k17, Windows_VS2k19, Ubuntu1804_x86_64, Ubuntu1810_x86_64, Ubuntu1904_x86_64, MacOS_XCode10}-2.1d24.txt - Tested (passed regtests) - OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Windows_VS2k17, Windows_VS2k19, Ubuntu1804_x86_64,Ubuntu1804-Cross-Compile2RaspberryPi, Ubuntu1810_x86_64, Ubuntu1810-Cross-Compile2RaspberryPi, Ubuntu1904_x86_64, Ubuntu1904-Cross-Compile2RaspberryPi, MacOS_XCode10}-2.1d24-OUT.txt - vc++2k17 (15.9.12) - vc++2k19 (16.1.0) - MacOS, XCode 10 - Ubuntu 18.04, Ubuntu 18.10, Ubuntu 19.04 - gcc 7, gcc 8, gcc 9 - clang++-6, clang++-7, clang++-8 (ubuntu) {libstdc++ and libc++} - valgrind Tests (memcheck and helgrind), helgrind some Samples - cross-compile to raspberry-pi(3/stretch+testing): --sanitize address,undefined, gcc7, gcc8, gcc9 (gcc9 not passing tests cuz libc version mismatch on test machine) and valgrind:memcheck/helgrind - gcc with --sanitize address,undefined,thread and debug/release builds on tests - Known issues - Bug with regression-test - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - See https://stroika.atlassian.net/secure/Dashboard.jspa for many more. --- ### 2.1d23 {2019-04-27} - https://github.com/SophistSolutions/Stroika/compare/v2.1d22...v2.1d23 - URI - Major rewrite/replacement for (now deprecated URL class) - https://tools.ietf.org/html/rfc3986 - new support classes Authority, SchemaType, Host, UserInfo etc for the parts of a URI - namespace UniformResourceIdentification - Support relative URLs, and Combine() - Properly support normalizing, and compare (case insenitive or sensitive for the right parts) - Properly support encoding/decoding (PCT encode and UTF8) - Major improvement to regression tests - based on RFC and docs on python urlparse - Complete support of operator<=> etc (threewaycompare) for all the URI related classes - Support URI in VisualStudio-Stroika-Foundation-Debugger-Template.natvis - Deprecated URL class, and switched all the samples and (most tests) and internal use in frameworks to URI - MOSTLY backward compatible, but not 100% - URI class uses AssertExternallySynchronizedLock for thread safety checking - String/CodePage - varidadic version of String::Match() - Deprecated CheckedConverter<> and instead documented that String methods AsAscii, FromAscii, and FromUTF8 THROW if invalid characters in conversion (and in some cases changed code to check/throw) - Added String::ThreeWayCompare - Added String::Match (const RegularExpression& regEx, Containers::Sequence\* matches) const overload - fixed some #if \_\_cpp_char8_t support (e.g. Length (const char8_t\* p) specialization) - UTFConvert support for C++20 char8_t - AsUTF8 now template only (defualt using char, but also support char8_t if C++ 20 or > - constexpr use in CodePage module - Frameworks::UPnP - DeviceDescription improved UPnP::DeSerialize() to read services and list of icons (but still not complete) - Lots of cleanup of the Frameworks/UPnP/DeviceDescription code. Closer data structure conformance to spec (optional) - and added UDN element to Device Description instead of storing it in Device Only. - NOTE - **_NOT BACKWARD COMPATIOBLE CHANGE_** Users of SSDP SERVER code - MUST add setting device description UDN field (see example code - with prefix of uuid). - lose unneeded move() in SSDP/Server/BasicServer - fixed GetAdjustedAdvertisements\_ () to merge top level URL with advertisments urls (combine) and cleanup docs - Exceptions - DeclareActivity now supports optional nullptr value for argument to CTOR (allowing for optionally declared activities) - IO::Network::Transfer Connection::GetOptions method, and field fDeclareActivities in that options object, and if effecively true, sometimes DeclareActivty of sending request to URL - Documentation - Lots of varied cleanups, but especially new URI code - DataExchange/StructuredStreamEvents/ObjectReader - supports Collection in MakeCommonReader - Support new registry.AddCommonReader_SimpleStringish<> helper, to ObjectReader code, and related docs, and regression tests. - added AddCommonReader_NamedEnumerations, AddCommonReader_EnumAsInt - Deprecated AddClass, using new AddCommonReader_Class instead - IO::Networking misc - use assert not null, not if return " for ::inet_ntop results - cuz should never be bad result (we pass in buffer, and its mechanical, and only listed erorr returns are bad args) - Socket::Ptr has deleted default CTOR, so ConnectionlessSocket::Ptr, ConnectionOrientedMasterSocket::Ptr (subclasses) should too (inconsistency detected by clang8) NOTE, though the change is not backward compatible, its trivial to fix code (just add initializer to nullptr) - Compiler Bugs/Workarounds - define and workaround qCompiler_Sanitizer_stack_use_after_scope_asan_premature_poison_Buggy bug - qCompilerAndStdLib_valgrind_optional_compare_equals_Buggy workaround - another helgrind workaround for https://stroika.atlassian.net/browse/STK-620 on ubuntu1904 - qCompiler_MisinterpretAttributeOnCompoundStatementAsWarningIgnored_Buggy for g++-9 - Supported Compilers - Now that vs2k19 is released, make that the default platform to look for when configuring (if not specified on cmdline or env var) - VS2k19 16.0.2 - gcc-9 - clang-8 - Memory support - rough draft class OptionalThreeWayCompare\ - Frameworks::WebServer - start of big improvement to WebServer Router - using regexp matches to add extra parameters to RequestHandler functions (with those matches) - Samples - WebService - enhanced webservice sample to show example use of CRUD - Regression Tests - tweak error reporting in a regtest(38) - Ubuntu1904-RegressionTests/Dockerfile and regtests now run under Ubuntu1904 too - further tweak Ubuntu1904-RegressionTests/Dockerfile for issue with clang libc++ versions - lose manual setting of --no-sanitize undefeind and instead count on configure setting qCompiler_SanitizerFunctionPtrConversionSuppressionBug - simplify/generalize helgrind workaround for fun:\_ZNSt18condition_variable10notify_allEv https://stroika.atlassian.net/browse/STK-620 issue - tweak Helgrind_WARNS_EINTR_Error_With_SemWait_As_Problem_Even_Though_Handled for ubuntu1904 - Test50*Utf8Conversions* regtests uppdates for \_\_cpp_char8_t - Foundation::Cache - overload Cache object CTOR so takes Duration, and more docs/examples - lose unhelpful move() on return value in TimedCache - Build System - adjust configure -dont generate if not there code to handle checking for libc++ for clang builds - tweak configure code for https://stroika.atlassian.net/browse/STK-601 for macos - Foundation::Execution - mark ThreadPool as not moveable since move never implemetned properly (detected by clang++-8) - added todo to maybe someday make movable - ThirdPartyComponents - libcurl 7.64.1 - disable ZSH patch when upgrading to curl 7.64.1 since no longer works (and may not be needed) - sqlite 3.28 - tried boost 1.70.0 but it had a problem, so reverted to 1.69.0 for now - HistoricalPerformanceRegressionTestResults/ PerformanceDump-{Windows_VS2k17, Windows_VS2k19, Ubuntu1804_x86_64, Ubuntu1810_x86_64, Ubuntu1904_x86_64, MacOS_XCode10}-2.1d23.txt - Tested (passed regtests) - OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Windows_VS2k17, Windows_VS2k19, Ubuntu1804_x86_64,Ubuntu1804-Cross-Compile2RaspberryPi, Ubuntu1810_x86_64, Ubuntu1810-Cross-Compile2RaspberryPi, Ubuntu1904_x86_64, Ubuntu1904-Cross-Compile2RaspberryPi, MacOS_XCode10}-2.1d23-OUT.txt - vc++2k17 (15.9.11) - vc++2k19 (16.0.2) - MacOS, XCode 10 - Ubuntu 18.04, Ubuntu 18.10, Ubuntu 19.04 - gcc 7, gcc 8, gcc 9 - clang++-6, clang++-7, clang++-8 (ubuntu) {libstdc++ and libc++} - valgrind Tests (memcheck and helgrind), helgrind some Samples - cross-compile to raspberry-pi(3/stretch+testing): --sanitize address,undefined, gcc7, gcc8, gcc9 (not passing tests cuz libc version) and valgrind:memcheck/helgrind - gcc with --sanitize address,undefined,thread and debug/release builds on tests - Known issues - Bug with regression-test - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - See https://stroika.atlassian.net/secure/Dashboard.jspa for many more. --- ### 2.1d22 {2019-03-23} - https://github.com/SophistSolutions/Stroika/compare/v2.1d21...v2.1d22 - Foundation::Configuration - new Configuration::Platform::Windows::RegistryKey (readonly windows registry access api); Redo various bits of code that had custom registry access to vector to this; redo sample apps that used Led::OptionsFileXXX to use DataExchange::OptionsFile - Deprecated fOperatingSystem and GetSystemConfiguration_OperatingSystem () functions: replaced wtih fActualOperatingSystem and fApparentOperatingSystem, and GetSystemConfiguration_ActualOperatingSystem () and GetSystemConfiguration_ApparentOperatingSystem () - added fPrettyNameWithVersionDetails to Configuraiton::OperatingSystem object; and print it in debug output; and decent cut at printing different os versions/info for actual versus apparent (on windows) - static_assert on EnumNames to try and make for clearer compiler error messages - Foundation::DataExchange - Added VariantValue::operator bool () - returns true if value is not null (not same as !empty()); because we define empty sensibly but broadly - ObjectVarinatMapper::MakeCommonSerializer<> support for Memory::BLOB - Debug - **fixed assert code in Debug/AssertExternallySynchronizedLock for case of self-assign**; and addred regtest for this - Foundation::Exceptions - translate a few more exceptions into warnings in IO::Network::Transfer regtest - Execution - ModuleGetterSetter now uses RWSyncrhonized, so for gets, will just use shared_lock (except first time when initializing) - Foundation::Memory - **fixed MAJOR bug with SmallStackBuffer** - copying operator= (const SmallStackBuffer& rhs) - neglected to set fSize!!!; triggered subtlie bug in LedIt of all places (with its caching code cuz LRUCache uses SmallStackBuffer); and added regtest - BLOB::As ()/0/1 supports converting to T whwere T is trivially_copyable (and a few more) - documented - BLOB::Raw() object overloads all check is_trivially_copyable, and better overloads of Raw (trivailly copyable object) (not backward compatible change to BLOB::Raw() template overload - instead of taking iterator (T), take T itself and assume T is trivially_copyable (require it). Never worked right with actual iterator) - allow operator= (MOVE) for SmallStackBuffer (still not optimized) - Traversal - DELETED support for qStroika_Foundation_Traversal_Iterator_UseSharedByValue; kIteratorUsesStroikaSharedPtr: the former I broke accidentally and decdied no worth resurrecting. I improved docs on iterators; and opened jira ticket to track fixing MOVE ctors (slight performance improvement) - https://stroika.atlassian.net/browse/STK-690 - Frameworks::Led - Mark OptionsSupport.h (Led and OptionsFileHelper as deprecated - was windows only using registry - minor tweak to PartitioningTextImager cache size use (3 instead of 1 for small cuz we do grab a few different even on small buffer - RegressionTests - new test harness TestHarness::WarnTestIssue and VerifyTestResultWarning(); used these to just issue warning on network errors and timing result failures - use activity code in IO::Network::Transfer regression test (43) - to make for better warning messages - Compilers & Components - Versions - gcc 8.3 support - vs2k19-preview 4.3 support - Bug workarounds - qCompilerAndStdLib_atomic_bool_initialize_before_main_Buggy and workaround - fixed qCompilerAndStdLib_TemplateTemplateWithTypeAlias_Buggy workarounds - still needed on VS2k19, but they bad workarounds preventing tested turning kSharedPtr_IsFasterThan_shared_ptr off - Samples - new AppSettings sample - rewrote Options support for LedIt, ActiveLedIt, LedLineIt samples to use OptionsFile/ModuleGetterSetter instead of soon to be deprecated OptionsFileHelper - docs on ActiveLedIt (running under debugger) - lose DemoMode support from ActiveLedIt - since its no longer commercial - Build System Scripts - Add configure option EXTRA_CONFIGURE_ARGS, and tabified configure source - lose top level makefile support for DEFAULT_CONFIGURATION_ARGS, and instead DOCUMENT that configure supports EXTRA_CONFIGURE_ARGS that does about the same thing - ThirdPartyComponents - openssl 1.1.1b - HistoricalPerformanceRegressionTestResults/ PerformanceDump-{Windows_VS2k17, Windows_VS2k19, Ubuntu1804_x86_64, Ubuntu1810_x86_64, MacOS_XCode10}-2.1d22.txt - Tested (passed regtests) - OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Windows_VS2k17, Windows_VS2k19, Ubuntu1804_x86_64,Ubuntu1804-Cross-Compile2RaspberryPi, Ubuntu1810_x86_64, Ubuntu1810-Cross-Compile2RaspberryPi, MacOS_XCode10}-2.1d22-OUT.txt - vc++2k17 (15.9.8) - vc++2k19 (16.0.0-preview4.3) - MacOS, XCode 10 - Ubuntu 18.04, Ubuntu 18.10 - gcc 7, gcc 8 - clang++-6, clang++-7 (ubuntu) {libstdc++ and libc++} - valgrind Tests (memcheck and helgrind), helgrind some Samples - cross-compile to raspberry-pi(3/stretch+testing): --sanitize address,undefined, gcc7, gcc8, and valgrind:memcheck/helgrind - gcc with --sanitize address,undefined,thread and debug/release builds on tests - Known issues - Bug with regression-test - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - See https://stroika.atlassian.net/secure/Dashboard.jspa for many more. --- ### 2.1d21 {2019-03-10} - https://github.com/SophistSolutions/Stroika/compare/v2.1d20...v2.1d21 - qCompilerAndStdLib*Winerror_map_doesnt_map_timeout_Buggy bug define and workaround (in SystemErrorExceptionPrivate*::TranslateException\_); and related minor docs changes on TimeoutExcpetion - in Test*5_SSLCertCheckTests* translate errc::timeout and libcurl cannot connect web communication test with WARNING output - not test failure (may want to do that more) - Added a few mapped errors in LibCurl*error_category* - HistoricalPerformanceRegressionTestResults/ PerformanceDump-{Windows_VS2k17, Windows_VS2k19, Ubuntu1804_x86_64, Ubuntu1810_x86_64, MacOS_XCode10}-2.1d21.txt - Tested (passed regtests) - OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Windows_VS2k17, Windows_VS2k19, Ubuntu1804_x86_64,Ubuntu1804-Cross-Compile2RaspberryPi, Ubuntu1810_x86_64, Ubuntu1810-Cross-Compile2RaspberryPi, MacOS_XCode10}-2.1d21-OUT.txt - vc++2k17 (15.9.8) - vc++2k19 (16.0.0-preview4.1) - MacOS, XCode 10 - Ubuntu 18.04, Ubuntu 18.10 - gcc 7, gcc 8 - clang++-6, clang++-7 (ubuntu) {libstdc++ and libc++} - valgrind Tests (memcheck and helgrind), helgrind some Samples - cross-compile to raspberry-pi(3/stretch+testing): --sanitize address,undefined, gcc7, gcc8, and valgrind:memcheck/helgrind - gcc with --sanitize address,undefined,thread and debug/release builds on tests - Known issues - Bug with regression-test - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow - See https://stroika.atlassian.net/secure/Dashboard.jspa for many more. --- ### 2.1d20 {2019-03-09} - https://github.com/SophistSolutions/Stroika/compare/v2.1d19...v2.1d20 - Add URL support to DataExchange/StructuredStreamEvents/ObjectReader (AddCommonType) - Slight improvement to SSDP reader - reading presenation url and icon url - HistoricalPerformanceRegressionTestResults/ PerformanceDump-{Windows_VS2k17, Windows_VS2k19, Ubuntu1804_x86_64, Ubuntu1810_x86_64, MacOS_XCode10}-2.1d20.txt - Tested (passed regtests) - OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Windows_VS2k17, Windows_VS2k19, Ubuntu1804_x86_64,Ubuntu1804-Cross-Compile2RaspberryPi, Ubuntu1810_x86_64, Ubuntu1810-Cross-Compile2RaspberryPi, MacOS_XCode10}-2.1d20-OUT.txt - vc++2k17 (15.9.8) - vc++2k19 (16.0.0-preview4.1) - MacOS, XCode 10 - Ubuntu 18.04, Ubuntu 18.10 - gcc 7, gcc 8 - clang++-6, clang++-7 (ubuntu) {libstdc++ and libc++} - valgrind Tests (memcheck and helgrind), helgrind some Samples - cross-compile to raspberry-pi(3/stretch+testing): --sanitize address,undefined, gcc7, gcc8, and valgrind:memcheck/helgrind - gcc with --sanitize address,undefined,thread and debug/release builds on tests - Known issues - Bug with regression-test - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow - See https://stroika.atlassian.net/secure/Dashboard.jspa for many more. - Failure in Visual Studio.net 2k19 regression tests due to network timeout plus (mostly innocuous windows specific) bug to be fixed in next release. --- ### 2.1d19 {2019-03-08} - https://github.com/SophistSolutions/Stroika/compare/v2.1d18...v2.1d19 - fixed Version::Version (Binary32BitFullVersionType fullVersionNumber) CTOR and added regtest to validate - More Exceptions cleanups - TryToOverrideDefaultWindowsSystemCategoryMessage\_ () tweak to windows system_category () messages since they frequently suck for common cases (unknown) - so use this to lookup better - change many cases of throw Execution::Exception () to throw RuntimeErrorException (); and a few more converts of String_Constant {..} tp ...sv for brevity - DNS code: fix one more place was using 'stringexception' to use (SystemErrorException (... DNS_error_category); and fixed DNS_error_category message report to look a little better on widnows - HistoricalPerformanceRegressionTestResults/ PerformanceDump-{Windows_VS2k17, Windows_VS2k19, Ubuntu1804_x86_64, Ubuntu1810_x86_64, MacOS_XCode10}-2.1d19.txt - Tested (passed regtests) - OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Windows_VS2k17, Windows_VS2k19, Ubuntu1804_x86_64,Ubuntu1804-Cross-Compile2RaspberryPi, Ubuntu1810_x86_64, Ubuntu1810-Cross-Compile2RaspberryPi, MacOS_XCode10}-2.1d19-OUT.txt - vc++2k17 (15.9.8) - vc++2k19 (16.0.0-preview4.1) - MacOS, XCode 10 - Ubuntu 18.04, Ubuntu 18.10 - gcc 7, gcc 8 - clang++-6, clang++-7 (ubuntu) {libstdc++ and libc++} - valgrind Tests (memcheck and helgrind), helgrind some Samples - cross-compile to raspberry-pi(3/stretch+testing): --sanitize address,undefined, gcc7, gcc8, and valgrind:memcheck/helgrind - gcc with --sanitize address,undefined,thread and debug/release builds on tests - Known issues - Bug with regression-test - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow - See https://stroika.atlassian.net/secure/Dashboard.jspa for many more. --- ### 2.1d18 {2019-03-06} - https://github.com/SophistSolutions/Stroika/compare/v2.1d17...v2.1d18 - Major refactoring of **Stroika Exception classes (and exception handling)** - https://stroika.atlassian.net/browse/STK-361 (New exception system_error and error_category code) - This was a HUGE change - but done so mostly backward compatible (deprecated not removed most things likely used). - Overview of change: - New Execution class hierarchy to mimic std::runtime_exception, std::system_error, and std::filesystem::filesystem_error - Stroika variants done as templates inheriting from C++ corresponding classes (so you can throw std exceptions or catch them, and they work interoperably) - Stroika exception classes add two important features: - proper Stroika/UNICODE handling - Activity support (delcare activity and nested by thread and incorporated in message) Current Activity objects copied into constructed exceptions (from current thread) - Old code changes implied: - old code should still compile with hopefully clear deprecation warnings about what to change - StringException -> Exception<> (or maybe RuntimeErrorException<>) - replace catch (FileBusyException etc) with catch (const std::system_error&) typically and look at e.code () (erorr_code) Note - can also do catch (SystemErrorException<>) which is about the same thing but gives access to some details like Activities - deprecated HRESULTException (renamed to) -> SystemErrorException<> (with HRESULT_error_category()) - use IO::FileSystem::Exception (subclasses from std::filesystem::filesystem_error) to access paths associated with exceptions. - StringException.h now deprecated - include Exception.h - renamed old Execution/Exception.h to Throw.h; - ThrowPOSIXErrNo () and ThrowSystemErrNo () - corresponding to std::generic_category, std::system_category and for IO::FileSystem::Exception use FileSystem::Exception::ThrowPOSIXErrNo () overload which takes paths as arguments etc - Lower priority excepetion related changes - renamed qStroika_Foundation_Exection_Exceptions_TraceThrowpoint -> qStroika_Foundation_Exection_Throw_TraceThrowpoint (cuz define moved files) - qCompilerAndStdLib_stdfilesystemAppearsPresentButDoesntWork_Buggy XCode 10 workaround attempts - Exception::TranslateBoostFilesystemException2StandardExceptions () helper (for boost) - ThrowErrNoIfNegative (INT_TYPE returnCode) now deprecated - deprecated Execution::Platform::Windows::ThrowIfFalseGetLastError - deorecated Execution::Platform::Windows::Exception - simplified ThrowIfFalseGetLastError (now takes anyting arg can be compared to zero). - use Execution::ThrowSystemErrNo intead of Execution::Platform::Windows::Exception::Throw (dwRetVal); - new ThrowWSASystemErrorIfSOCKET_ERROR () and use that to replace use of template spcialization ThrowPOSIXErrNoIfNegative - defined private getaddrinfo*error_category*; and use that to change throw of plain Exception to Throw (SystemErrorException (errCode, getaddrinfo*error_category* ())); for ::getaddrinfo results - deprecated Platform::Windows::StructuredException () and replaced it with use of SystemErrorException and StructuredException_error_category, and RegisterStructuredExceptionHandler () - LibCurlException now deprecated - use SystemErrorException{ hr, LibCurl_error_category () } instead - renamed RegisterStructuredExceptionHandler to RegisterDefaultHandler_StructuredException - cleanup/simplify Socket::Ptr::Bind () exception handling code to use condition comparison and new Exception code, and activities - deprecated Stroika_Foundation_IO_FileAccessException_CATCH_REBIND_FILENAME_ACCCESS_HELPER and Stroika_Foundation_IO_FileAccessException_CATCH_REBIND_FILENAMESONLY_HELPER(USEFILENAME) - FileBusyException marked deprecated; - OpenInputFileStream OpenOutputFileStream now also set flag in iostream so it throws exceptions on failures - Foundation::Characters - String::Match overload taking multiple match/capture arguments (must redo with variadic templates but this will play for now) - String_Constant and String_ExternalMemoryOwnership_ApplicationLifetime now accept basic_string_view CTOR args - meaning String_Constant sc = Lxxsv should work - String (and StringBuilder and String_Constant) support for basic_string_view - which means we can use Lblahsv to create String_Constant objects (better to use C++ standard notation since amounts to same thing); but still keep \_k around for few cases (overload ambiguity) where its handy - ToString support std::filesystem::path - String operator" \_ASCII - Samples - Readme and TODO docs improvements - WebService - Much improved WebService sample - now arithmatic all works and formatting complex numbers/ parsing. Still alot of work todo to improve, but now a good palce to experiemnt! - Documentation - convert docs Coding Conventions and Design Overview docs from docx/pdf to .md - updated thread safety docs link from thread_safety.html to Thread-Safety.md - IO::Network::HTTP - new class: IO::Network::HTTP::ClientErrorException Use that in samples, and document its how you wrap what should be treated as client exceptions as such so the right message is propagated - new ClientErrorException::TreatExceptionsAsClientError () helper; and GUID CTOR throws DataExchange::BadFormatException{L"Badly formatted GUID" - better more specific failure - Frameworks::WebServer: - deprecate Frameworks::WebServer::ClientErrorException use and replace with use of new IO::Network::HTTP::ClientErrorException (and use it in a few more places we used the wrong exception) - used ClientErrorException::TreatExceptionsAsClientError in Frameworks/WebService/Server/VariantValue module - so it treats errors parsing arguments as CLIENT ERROR - not 500 error - IO::FileSystem - IO::FileSystem::Common with fewer #includes to avoid circular includes (they were unneeded) - renamed IO::FileAccessMode to IO::AccessMode and deprecated old FileAccessMode name - new FromPath/ToPath filesystem path helper functions (early step towards addressing https://stroika.atlassian.net/browse/STK-685) - IO::Network - new InternetAddress::Offset () - InternetAddressRangeTraits\_::kUpperBound now set to largest ipv6 address - CIDR::GetRange () fixed - added new networking Interface::Type::eDeviceVirtualInternalNetwork; and returned that for virtualbox and hyperv special adapters - Better docs on DNS::GetHostEntry () and related APIs, and support [] around numeric IP addresses - Build System - fixed toplevel make clean - configure support --shared-symbol-visibility to hopefully silence warnings conflict with boost on MacOSX - Moved #defines from Stroika-Config.h to being included as -DXXX args through Makefile; FULLY SWITCHED OVER for PLATFROMSUBDIR=Unix, but for visualstdio - still cannot because not using makefiles for running C++ compiler yet. So JUST THERE we write both - re-enabled tsan workaround for https://stroika.atlassian.net/browse/STK-677 - fixed regresion with configure --trace2file - must also set qDefaultTracingOn=1 if true - Allow reading Configure-Command-Line from ScriptsLib/GetConfigurationParmeter and then used that in makefile to support make reconfigure and automatic make reconfigure when STROIKA_VERSION file changes - GetConfigurations now takes an optional --quiet flag which suppressing warning about no matching tags; this is then used in ./ScriptsLib/RegressionTest to suppress a pointless warning - Execution::DLLLoader - dllsupport - UNIX - NOT BACKWARD COMPAT - changed default for LoadDLL to not say RTLD_GLOBAL - ThirdPartyComponents - boost - patch include/boost/config/user.hpp and vs2k project files to load Builds/\$(Configuration)/ThirdPartyComponents/lib; so that apps now work right with boost automatically (now that stroika pulls in more boost code) - boost makefile: try using user-config.jam instead of project-config.jam; and include more properties - apply same user-config.jam simplification to mac side of boost makefile - better default output level for boost build - on unix no noticable slowdown and can see actual compile lines if I need to debug build - boost makefile cleanups - HasMakefileBugWorkaround_lto_skipping_undefined_incompatible workaround now needed for boost - libcurl - libcurl 7.64.0 - include curl.h in Client_libcurl.h for CURLCode - sqlite - slight parallel make issue fixed with sqlite - too many references to CURRENT - sqlite 3.27.2 - Configuration / Supported Compilers and Bug Defines - fixed https://stroika.atlassian.net/browse/STK-663 #define BOOST_NO_CXX14_CONSTEXPR - major cleanup of CompileTimeFlagChecker_HEADER: used it to delete (replace) old qLedCheckCompilerFlagsConsistency code; and used for many more variables to check for inconisitent builds - Support vs2k17 15.9.7, vs2k17 15.9.8 - Support vs2k19 - up to preview 4.1 - test 'my gcc' builds 7.4 and 8.3 - fixed typo with qCompilerAndStdLib_TemplateTypenameReferenceToBaseOfBaseClassMemberNotFound_Buggy - qCompilerAndStdLib_error_code_compare_condition_Buggy define and tests and workarounds - Common code - new EmptyObjectForConstructorSideEffect utility - Added utility Common::Immortalize () - Containers - Mapping operator[] returns const object, and docs improvements on this - Frameworks::UPnP: - SSDP client Search is movable - Linguistics - new draft Linguistics_MessageUtilities and used it (RemoveTrailingSentencePunctuation) in / Execution/Exceptions.cpp - Foundation::Time - big refactoring of Duration class: now caches fNumericRepOrCache\_; tried to make constexpr but ran into trouble, but nearly there (documented approaches that might work) - Added operator" \_duration -> Duration support - Execution::Logger - Logger::LogIfNew and SetSuppressedDuplicates now use Duration (instead of DurationSecondsType). So callers must change (not backward compatible) ``` Logger::Get ().SetSuppressDuplicates (15); TO Logger::Get ().SetSuppressDuplicates (15s); (similarly for LogIfNew: append an s) ``` - HistoricalPerformanceRegressionTestResults/ PerformanceDump-{Windows_VS2k17, Windows_VS2k19, Ubuntu1804_x86_64, Ubuntu1810_x86_64, MacOS_XCode10}-2.1d18.txt - Tested (passed regtests) - OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Windows_VS2k17, Windows_VS2k19, Ubuntu1804_x86_64,Ubuntu1804-Cross-Compile2RaspberryPi, Ubuntu1810_x86_64, Ubuntu1810-Cross-Compile2RaspberryPi, MacOS_XCode10}-2.1d18-OUT.txt - vc++2k17 (15.9.8) - vc++2k19 (16.0.0-preview4.1) - MacOS, XCode 10 - Ubuntu 18.04, Ubuntu 18.10 - gcc 7, gcc 8 - clang++-6, clang++-7 (ubuntu) {libstdc++ and libc++} - valgrind Tests (memcheck and helgrind), helgrind some Samples - cross-compile to raspberry-pi(3/stretch+testing): --sanitize address,undefined, gcc7, gcc8, and valgrind:memcheck/helgrind - gcc with --sanitize address,undefined,thread and debug/release builds on tests - Known issues - Bug with regression-test - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow - See https://stroika.atlassian.net/secure/Dashboard.jspa for many more. - Windows vsk217 and vsk219 regtests had failures due to temporary DNS resolution problems - not real issues (though bad error messages are slight issue to be fixed for next release). --- ### 2.1d17 {2019-01-28} - https://github.com/SophistSolutions/Stroika/compare/v2.1d16...v2.1d17 - fixed uninitialized variable (detected by sanitizers in WTF) - for fSeekable\_ in Stream<> class - vsCode support - for now, allow checking of .vscode folder - draft vscode/tasks file - to do makefile builds - Docker Builds - renamed BuildContainers/ DockerBuildContainers/ - building stroika docs now better documents issues with and how to build/develop with docker - Compiler Versions - Support VS2k19 preview 2 - Support VS2k17 - 15.9.6 - Workaround raspberrypi glibc dll version issue - https://stroika.atlassian.net/browse/STK-675 - wroteup docs (Building Stroika.md) on how to overcome the `GLIBC_2.28' issue on raspberrypi - Samples - service sample deb (.control file) renamed to .static and also add architecture field based on \${ARCH} config variable (so can build for raspberrypi etc) - installer default name based on ARCH, not uname -m for service sample - draft WebService sample application - Build System / Makefiles / Configure - ScriptsLib/GetConfigurations now warns if given TAGS= arg with nothing that matches (since often a typo/mistake) - EXE_SUFFIX, LIB_SUFFIX, and OBJ_SUFFIX now defined in Scripts/GetConfigurationParameter and just cached in ApplyConfigurations - use \$(StroikaRoot) more thouroughly and initialize at top of each Makefile - in toplevel Foundation makefile, use Objs instead of ALL_OBJS just for uniformity (can use inherited list-objs instead of make all-objs) - Makefile cleanups (subdirs .phony) - attempt at better formatting of ScriptsLib/SubstituteBackVariables for StroikaRoot - normalize where Tests binaries are stored across windows/unix - Tests/TestNN\${EXE_SUFFIX} - makefiles - replace shell realpath with builtin abspath for StroikaRoot - makefile - replace export StroikaRoot?= with StroikaRoot= since no longer performance costly - experiment with different OUTPUT_WORKDIR_PRETTYNAME in ThirdPartyComponents makefiles - Added utility ScriptsLib/MapArch2DebFileArchitecture - fixed ScriptsLib/GetCompilerArch to manually map arm-linux-gnueabihf to armhf (needed in .deb as arhcitecure so can be installed) - qCompilerAndStdLib_arm_openssl_valgrind_Buggy bug got slightly worse (maybe cuz of change I made to raspberrypi - updating libc version and maybe incompate iwth older valgrind on that system) - Foundation::Characters - String CTOR (const char8_t\*) when available - added operator " \_RegEx - Added String_Constant operator" \_k and used that in a few places to test (replacing use of String_Contant {xx} syntax with xx_k roughly: cleaner and more readable but with trickiness about namespaces - HistoricalPerformanceRegressionTestResults/ PerformanceDump-{Windows_VS2k17, Windows_VS2k19, Ubuntu1804_x86_64, Ubuntu1810_x86_64, MacOS_XCode10}-2.1d17.txt - Tested (passed regtests) - OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Windows_VS2k17, Windows_VS2k19, Ubuntu1804_x86_64,Ubuntu1804-Cross-Compile2RaspberryPi, Ubuntu1810_x86_64, Ubuntu1810-Cross-Compile2RaspberryPi, MacOS_XCode10}-2.1d17-OUT.txt - vc++2k17 (15.9.6) - vc++2k19 (16.0.0-preview2) - MacOS, XCode 10 - Ubuntu 18.04, Ubuntu 18.10 - gcc 7, gcc 8 - clang++-6, clang++-7 (ubuntu) {libstdc++ and libc++} - valgrind Tests (memcheck and helgrind), helgrind some Samples - cross-compile to raspberry-pi(3/stretch+testing): --sanitize address,undefined, gcc7, gcc8, and valgrind:memcheck/helgrind - gcc with --sanitize address,undefined,thread and debug/release builds on tests - Known issues - Bug with regression-test - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow - See https://stroika.atlassian.net/secure/Dashboard.jspa for many more. - REPRODUCED https://stroika.atlassian.net/browse/STK-647 - possible deadlock/bug detected by tsan (debug iterators and FirstPassSignalHandler\_) so changed TSAN suppression - can safely ignore. --- # OLD FORMAT REVISION HISTORY ---
Version
Release Date
Changes
v2.1d16
2019-01-21
  • https://github.com/SophistSolutions/Stroika/compare/v2.1d15...v2.1d16
  • Make/Build system and ThirdPartyComponents/Makefiles
    • slight refactor - adding extra indirection in thirdpartycomponents makefiles - so no need to rebuild all of third party components after make clean but still works with parallel make
    • fixed thirdpartycompoentns stuff to work with clean/clobber and parallel make
    • added $(Objs): $(ObjDir) rule to Unix/SharedBuildRules-Default.mk
    • makefile fix : string = intead of == bash
    • deprecate OBJSUFFIX, LIBSUFFIX, and use OBJ_SUFFIX, LIB_SUFFIX, and EXE_SUFFIX (gen from ApplyConfigurations) and use those new vars in place of .o, .a, .exe - so that makefiles between windows and unix will be more uniform
  • Frameworks::Service
    • Replace Thread::Ptr t; t.WaitForDone () followed by t.t.ThrowIfDoneWithException () in several places (essentially a no-op).
    • Replace fRunThread.WaitForDone () with .Join () in a few places - in one case a critical bug fix - fixing issue in WTF - where failure on startup wasn't reported - because it failed in one thread and that failure never got propagated to the calling thread.
    • Cleanup some IgnoreExceptionsExceptThreadInterruptForCall () and those waits - get rid of most of them and document that the RunDirectly etc methods all propagate service thread exceptions
    • Likewise for Main::WindowsService::_Start () - but also set fServiceStatus_.dwWin32ExitCode to 1 on caught propagated exception
    • must include Type=forking for stroika-sampleservice.service (else systemd thinks failed to start)
    • fixed bad PIDFILE name and docs in Samples/Service/Installers/stroika-sampleservice.service
  • Execution
    • new methods Thread::Ptr::Join () and Thread::Ptr::JoinUntil () - ***PREFERRED OVER Thread::Ptr::WaitForDone () ***
    • In Execution::ProcessRunner - replace t.WaitForDone ()/t.ThrowIfDoneWithException () with t.Join () - so semantically no change - just cleanup
    • ProcessRunner: WaitForDoneAndPropagateErrors DEPRECATED: replaced with Join (); and JoinUntil
  • Frameworks/UPNP/SSDP listener/notifier - use fListenerThread.Join () instead of .WaitForDone () - so exceptions they experience in their guts maybe propagated to their caller
  • Small fix to ToString () code so Characters::ToString (vector (argv, argv + argc)): now works with argv from main () of apps, and then used that in most sample apps: Debug::TraceContextBumper ctx{Stroika_Foundation_Debug_OptionalizeTraceArgs (Lmain, Largv=%s, Characters::ToString (vector (argv, argv + argc)).c_str ())};
  • HistoricalPerformanceRegressionTestResults/PerformanceDump-{Windows_VS2k17,Windows_VS2k19,Ubuntu1804_x86_64,Ubuntu1810_x86_64,MacOS_XCode10}-2.1d16.txt
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Windows_VS2k17,Windows_VS2k19,Ubuntu1804_x86_64,Ubuntu1804-Cross-Compile2RaspberryPi,Ubuntu1810_x86_64,Ubuntu1810-Cross-Compile2RaspberryPi,MacOS_XCode10}-2.1d16-OUT.txt
    • vc++2k17 (15.9.5)
    • vc++2k19 (16.0.0-preview)
    • MacOS, XCode 10
    • Ubuntu 18.04, Ubuntu 18.10
    • gcc 7, gcc 8
    • clang++-6, clang++-7 (ubuntu) {libstdc++ and libc++}
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • cross-compile to raspberry-pi(3/stretch+testing): --sanitize address,undefined, gcc7, gcc8, and valgrind:memcheck/helgrind
    • gcc with --sanitize address,undefined,thread and debug/release builds on tests
  • Known issues
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
    • https://stroika.atlassian.net/browse/STK-675 failures/warnings testing on raspberrypi build on ununtu 1810
    • See https://stroika.atlassian.net/secure/Dashboard.jspa for many more.
v2.1d15
2019-01-16
  • https://github.com/SophistSolutions/Stroika/compare/v2.1d14...v2.1d15
  • New Target Compilers
    • support _MS_VS_2k17_15Pt9Pt5_
  • Non-Backward-Compatible changes to watch out for
    • Fixed Cache overloads of Lookup to be named LookupValue if they return the value (so they fit with existing patterns and Memoizer class); note - this is not backward compatible -but easy to correct as upgrading
    • fix any code that did INCLUDES+= xxxx or CLFAGS+= probably should be CXXFLAGS+= XXXX
    • lose $intermediateFiles$activeConfiguration/Library/Configuration.mk' (use $intermediateFiles$activeConfiguration/Configuration.mk)
  • Configure {many changes}
    • imporved warnings on configure script for old versions of gcc/clang
    • big configure change - now register in Configuration file CFLAGS and CXXFLAGS; instead of computing these in SharedMakeVariables-Default.mk; and severl places in other makefiles, musta djust; aslso - !!!! - so code that said CFLAGS += ... worked; IT NO LONGER WILL WORK - MUST DO CXXFLAGS += isntead!!!
    • EXTRA_COMPILER_ARGS **DEPRECATED** so must use configure --append-CXXFLAGS or --append-CPPFLAGS (or a few others)
    • get rid of more legacy CFLAGS/CXXFLAGS/INCLUDES_PATH_COMPILER_DIRECTIVES support
    • new configure append/remove/replace-all CFLAGS or CXXFLAGS arguemnts
    • deprecated --compiler-warning-args and --append-compiler-warning-args parameters to configure - use --append-CXXFLAGS instead
  • Installers
    • Added WIX ThirdPartyComponent support
    • WIX based installer for Sample Service - https://stroika.atlassian.net/browse/STK-614
  • Makefile cleanups
    • Fixed so they basically all can run in parallel (lost .NOTPARALLEL for the most part and build everything - even windows - with -j10)
    • *** not backward compat *** - lose $intermediateFiles$activeConfiguration/Library/Configuration.mk' (use $intermediateFiles$activeConfiguration/Configuration.mk)
    • mostly performance (use :=, and Configuration.mk in place of (ScriptsLib\GetConfigurationParameter)
    • make clobber should only delete CURRENT if you make clobber CONFIGURATION=
    • Makefile cleanups; and include ScriptsLib/Makefile-Common.mk in all the stroika library makefiles
    • lose trailing / on PER_CONFIGURATION_THIS_INTERMEDIATEFILES_DIR_NOSLASH_ because on macos make THATDIR doesn't work with trailing slash - ThirdPartyComponents makefiles
    • fix patching of project-config.jam so re-entrant (now that we re-run without deleting everything)
    • use of (new) LIBSUFFIX in ThirdPartyComponents makefiles
    • cleanups for JOBS/JOBS_FLAG handling for b2 in boost makefile
    • restructure parallel makes slightly - with making of ZIPFILE in all before CURRENT and PRODUCED_PRODCUTS - cuz of race - start unziping before fully downloaded (cuz file exists for second one); COULD fix in WebGet - but then we would still have a slight issue with downloading twice and overwriting second - so not idea (but maybe should do also)
    • .DEFAULT_GOAL = all in ScriptsLib/Makefile-Common.mk
    • use ScriptsLib/CheckFileExists instead of loop in several makefiles
    • FIXED BUG - so CPP build rule files sometimes used the CFLAGS variable - ***NOT BACKWARD COMPAT***; fix any code that did INCLUDES+= xxxx or CLFAGS+= probably should be CXXFLAGS+= XXXX
    • makefile fixups (trying to workaround clang issues with lto)- support for HasMakefileBugWorkaround_lto_skipping_undefined_incompatible and used to cleanup makefile bug workaround
    • makefile robustness tweaks for make clobber CONFIGURATION=blah - in that case - allow for failure to load include $(StroikaRoot)IntermediateFiles/$(CONFIGURATION)/Configuration.mk; and other small cleanups to make clobber/clean
    • hacks to get parallel builds working to some small degree on Xerces (due to quirks of msbuild/cmake tough). Fix better at some point, but helped (20% win; 50% unix)
    • lose IntermediateFiles/$(CONFIGURATION)/APPLIED_CONFIGURATION and replace with IntermediateFiles/$(CONFIGURATION)/Configuration.mk (dependency in makefile)
    • delete some commented out makefile variables in SharedMakeVariables/BuildRules*.mk
    • check using at least version 3.81 of gnu make (what we use on macos - oldest I've tested - and should hopefully trigger good warning if used with non gnu make
    • ApplyConfigurations clenaups - lose force flag, and lose deleting everything in IntermediateFiles/CONFIG ; @todo only update .mk and .h file if changed
    • Cleanup Tests makefiles - losing needless scripted building of Tests makefile (not used in a while anyhow) - and furhter simplify the test makefile template structure
  • Cache
    • CallerStalenessCache<> now suppors void KEY argument
    • NEW SynchronizedCallerStalenessCache; use new in Logger code in place of Synchronized
    • cosmetic cleanups for CallerStalenessCache<> changes
    • note https://stroika.atlassian.net/browse/STK-449 - Cache::CallerStalenessCache should support second template argument VALUE=void NOW FIXED
    • Added template static constexpr bool IsKeyedCache ... to Cache code to help clarify some declarations. fixed function handling in CallerStalenessCache with is_invokeable. Added regression tests for CallerStalenessCache.
    • docs, header cleanups, and threadsafety (mostly doc) change for Memoizer class
    • Fixed cache overloads of Lookup to be named LookupValue if they return the value (so they fit with existing patterns and Memoizer class); note - this is not backward compatible -but easy to correct as upgrading
    • GetTimeout method added to TimedCache<>
    • fixed double lock/hang bug in Cache/SynchronizedTimedCache
  • Documentation
    • replace Building Stroika.docx/pdf with Building Stroika.md, and major rewrite of Building Stroika.md
  • Script deprecations and renames (to lose explicit distributed script type dependencies so I can transparently rewrite to get away from perl)
    • ScriptsLib/ApplyConfiguration.pl -> ScriptsLib/ApplyConfiguration
    • ScriptsLib/GetVisualStudioConfigLine.pl -> ScriptsLib/GetVisualStudioConfigLine -
    • ScriptsLib/RunArgumentsWithCommonBuildVars.pl -> ScriptsLib/RunArgumentsWithCommonBuildVars
    • Tests/ScriptsLib/PrintTestName.pl -> Tests/ScriptsLib/PrintTestName
    • rename BuildProjectsFiles.pl BuildProjectsFiles
    • ExtractVersionInformation.sh -> ExtractVersionInformation
    • CheckValidConfiguration.sh -> CheckValidConfiguration
    • FormatCode.sh -> FormatCode
    • GetCompilerArch.sh -> GetCompilerArch
    • GetDefaultShellVariable.sh -> GetDefaultShellVariable
    • GetMessageForMissingTool.sh -> GetMessageForMissingTool
    • SubstituteBackVariables.sh -> SubstituteBackVariables
    • MakeDirectorySymbolicLink.sh -> MakeDirectorySymbolicLink
    • rename RunPerformanceRegressionTests.sh -> RunPerformanceRegressionTests
    • RunRemoteRegressionTests -> RunRemoteRegressionTests
    • RegressionTests.sh -> RegressionTests
    • ScriptsLib/MakeVersionFile.sh -> ScriptsLib/MakeVersionFile
    • and no more explicit call to perl - let #!perl force that.
  • Samples
    • service sample - print version# info
    • Sample service installer refactoring (unix) and NEW WIX based installer
    • improved sample service makefile so doesn't rebuild installer if already built
    • use versionfile and versionstring in webserver versionstring in WebServer example
    • Cleanup several ThirdPartyComponents makefiles/builds to build via IntermedateFiles intstead of inside CURRENT so they can be now fully run in parallel (diff configs at once)
    • Folder names consistency: fixed samples to use Samples- instead of Samples_ for IntermediateFiles dir (consistency with windows and output Builds folder)
  • ThirdPartyComponents
    • Huge makefile cleanups (covered in makefiles)
    • use boost 1.69.0
    • use curl VERSION=7.63.0
  • Documentation
    • Major rewrite of 'Building Stroika' docs - now a .md file
  • Memory::AccumulateIf () added overloads, and fixed bug(s) - enable_if_t checks
  • cleanups foward/move usage
  • warn in comments about debugger spamming from calls to ::GetAdaptersAddresses
  • fixed typo (rename of Syncrhonized to Synchronized)
  • lose cmake from thirdpartycomponents (now using one from visual studio as needed)
  • primitive ToString(tuple) support
  • ObjectVariantMapper::MakeCommonSerializer support for pair<> and tuple<> (though tuple just 1-3 not fully variadic yet)
  • ObjectVariantMapper: DOCS about AddCommonType, and assert checks with AssertDependentTypesAlreadyInRegistry_() that items already present if dependent; and fixed one typo
  • DNS::GetHostAddress () utility added; and InternetAddress (string/String) now explicit
  • Added Version::AsMajorMinorString ()
  • supprot Win32FourDot for ScriptsLib/ExtractVersionInformation.sh
  • default windows configs DEBUG-U...xx - now enable trace2File by default
  • HistoricalPerformanceRegressionTestResults/PerformanceDump-{Windows_VS2k17,Windows_VS2k19,Ubuntu1804_x86_64,Ubuntu1810_x86_64,MacOS_XCode10}-2.1d15.txt
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Windows_VS2k17,Windows_VS2k19,Ubuntu1804_x86_64,Ubuntu1804-Cross-Compile2RaspberryPi,Ubuntu1810_x86_64,Ubuntu1810-Cross-Compile2RaspberryPi,MacOS_XCode10}-2.1d15-OUT.txt
    • vc++2k17 (15.9.5)
    • vc++2k19 (16.0.0-preview)
    • MacOS, XCode 10
    • Ubuntu 18.04, Ubuntu 18.10
    • gcc 7, gcc 8
    • clang++-6, clang++-7 (ubuntu) {libstdc++ and libc++}
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • cross-compile to raspberry-pi(3/stretch+testing): --sanitize address,undefined, gcc7, gcc8, and valgrind:memcheck/helgrind
    • gcc with --sanitize address,undefined,thread and debug/release builds on tests
  • Known issues
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
    • https://stroika.atlassian.net/browse/STK-675 failures/warnings testing on raspberrypi build on ununtu 1810
    • See https://stroika.atlassian.net/secure/Dashboard.jspa for many more.
v2.1d14
2018-12-17
  • https://github.com/SophistSolutions/Stroika/compare/v2.1d13...v2.1d14
  • New Target Compilers
    • support visualstudio.net 2k19 (preview 1): do "PLATFORM=VisualStudio.Net-2019 make default-configurations" to generate configuration files targetting VS2k19
    • support _MS_VS_2k17_15Pt9Pt4_
  • Major revamping of configure scripts/process and related Makefile changes
    • Can now specifiy CC=x PLATFROM=y to set environment variables (CC, CCX, PLATFORM, ARCH, AS, AR, RANLIB) and they apply to configure as if passed as arguments to configure
    • LIBS_PATH and INCLUDES_PATH (configure --append-libs-path, and --append-includes-path) now are ':' separated, stored in UNIX format always, and converted to windows format as needed (cygpath -p -w), and several related changes
    • Updated calls to configure for windows to pass in --arch argument, since cannot be automatically inferred on windows; configure script warning if no arch and document when we guess arch on windows; Got rid of any (known) remaining code that parsed NAMES of configurations (e.g. -32) and instead keys off this ARCH configuration attribute
    • Library/Projects/Unix/SharedMakeVariables-Default.mk; Lose RANLIB/AR defs here since they are generated in Configure.mk; comment out variables marked earlier as deprecated (StroikaSupportLibs, StroikaLibsWithSupportLibs)
    • Makefile - lose explicit calls to set AR/RANLIB to shell ../../ScriptsLib/GetConfig...Param CONFIG AR etc, since now GUARANTEED in include .../CONFIG/Lib../Configuration.mk
    • configure: IF_STATIC_LINK_GCCRUNTIME_USE_PRINTPATH_METHOD = 0 and add if ($STATIC_LINK_GCCRUNTIME == 1) in case someday fixed and does something (-static-libgcc)
    • better docs about https://stroika.atlassian.net/browse/STK-676 - gcc -static-libgcc
    • restructure parts of thirdpartycomponents makefiles to have StroikaRoot setting, and if neq CONFIGURATION," then include config.mk and load any extra per-config variables by script
    • use _PREFIX_LINKER for -static-libstdc and static-libgcc just cuz not well documented about ordering of this param and others are listed PREFIX; -static-libasan etc only works for gcc, not clang - there use -static-libsan
    • normalize(harmonize) the starts of each makefile - starting with the same sequence - StroikaRoot and then per-config includes/defines
    • PrintEnvVarFromCommonBuildVars.pl now DEPRECATED - use configure directly or GetConfigurationParameter or #include Configuration.mk
    • print to stderr when running deprecated scripts
    • configure: configure $STATIC_LINK_SANITIZERS default to 1 - and add -static-libtsan etc; makefile lose --append-run-prefix 'LD_PRELOAD=/usr/l... for asan on raspberrypi configs since we now statically link these
    • Add ProjectPlatformSubdir and ENABLE_ASSERTIONS to things emitted in Configuration.mk, THEN, lose the explicit script call in makefiles to load these values (big makefile speedup); AND MANY SIMILAR CHANGES
    • replace export StroikaRoot=$(shell realpath ... with export StroikaRoot?=$(shell realpath... so passed down from makefile to submake, and dont have to call realapth again (make speed tweak)
    • a few more makefile cleanups of config vars - moving defines to ApplyConfigurations.pl/Configurations.mk and losing runtime load of those params from makefile
    • cleanup / reduce duplicitvate param passing with makefiles- values inherited dont need to be specified on CMDLINE redundantly; include $(StroikaRoot)ScriptsLib/Makefile-Common.mk in a few that were missing it; lose MAKE_INDENT_LEVEL?, ECHO?=, SHELL= etc, cuz set in ScriptsLib/Makefile-Common.mk now
    • makefile cleanups - replacing use of GetConfigurationParameter with cached valeus genreated by ApplyConfiguraiton.pl
    • ApplyConfigraitons shouldnt wrap strings in quotes (for makefile)
    • Always generated CXX/CC defines in ApplyConfigurations and use those instead of (I think I will deprecate) CompilerDriver-C/CompilerDriver-CXX
    • re-org / depreaction of several makefile variables (CPlusPlus, etc) - and isntead use more standard names; (CXXFLAGS and CXX instead of CFLAGS for C++ and CplusPlus)
    • renamed include (StroikaRoot)IntermediateFiles/$(CONFIGURATION)/Library/Configuration.mk to $(StroikaRoot)IntermediateFiles/$(CONFIGURATION)/Configuration.mk in usage (did a while back in generation)
    • dont add INCLUDES_PATH to CFLAGS/CXFLAGS (got away with it before because I didnt emit INCLUDES_PATH into Configuration.mk)
    • new TOOLS_PATH_ADDITIONS (really for now just for visual studio.net but could easily extend) - added to configure script - automatically added
    • VisualStudio.Net-2017/SetupBuildCommonVars.pl now emits Hostx64 on windows (could autodetect but assuming 64bit host fine for now).
    • emit TOOLS_PATH_ADDITIONS in ApplyConfiguration, and use in a few places: "PATH=$(TOOLS_PATH_ADDITIONS):$(PATH)"; Sort TOOLS_PATH_ADDITIONS in windows genreated configs - so regular each time (not ideal - should preserve original order probably)
    • Commented out more of - and made more private in Projects/VisualStudio.Net-2017/SetupBuildCommonVars.pl; GetConfig32Or64_() now takes ARCH as argument - not config name, and same with other routines in this file (so changed calling scripts
    • Also, command line no longer written in COMMENT (which was an unsyntactic comment due to xml def quirks -- INstead its written to the element Configure-Command-Line - which it turns out - allows stuff like easily re-running the configuration. which is huge - cuz it means you can now use Stroika-based apps with things like mabu, bitbake etc, and it will automatically configure the appropriate compilers etc.
    • deprecated file StringUtils.pl - included trim() function in those directly; and mark better several deprecated scripts
  • Makefile cleanups
    • minor tweak to Tests project file, and tweak to buildprojectfiles script so it doesnt overwrite (change date) if no real change (common)- so avoids annoying reload in visual studio
    • Comment out sleeps on build of openssl for libopenssl - maybe not needed anymore - test more
    • sleep hacks in windows boost makefile no longer appear needed
    • Lose ThirdPartyComponents/cmake and configuration variable FeatureFlag_PrivateOverrideOfCMake: instead use simple trick of running off cmake that comes with visual studio; simplifies build of Xerces (and fixes on vs2k19)
  • builds/regression tests/valgrind/sanitizers
    • TSAN suppressions: another workaround for https://stroika.atlassian.net/browse/STK-673 - Ubuntu 1810 only, and a woarkound for new issue https://stroika.atlassian.net/browse/STK-677 - sem_post() called from inside signal handler
    • added possible tsan supression for +#https://stroika.atlassian.net/browse/STK-647 - but very hard to test since happens so rarely
    • renamed ThreadSanitizerSuppressions-Ubuntu1810-x86_64.supp to ThreadSanitizerSuppressions.supp because you can only pass in ONE supression file to TSAN and not worth effort to script combining them (though cat would do it)
    • valgrind suppression for https://stroika.atlassian.net/browse/STK-678
    • https://stroika.atlassian.net/browse/STK-679 raspberrypi openssl workaround
    • Added helgrind raspberry pi suppression: https://stroika.atlassian.net/browse/STK-680
    • updated script for creating regttests to allow vs2k17 and vs2k19 testing
    • try possible fix for https://stroika.atlassian.net/browse/STK-677 (and disabled tsan workaround)
  • Samples
    • tweak webserver sample, and remove response.end () call (which caused crash til we can cleanup api/code)
  • Execution::SignalHandlers/etc
    • signalHandler API now takes noexcept overload and requires that (for doc/hint purposes) for eDirect signal handlers
  • MISC
    • Mark AssertionHandlerType and WeakAssertionHandlerType as noexcept
    • Debug::RegisterDefaultFatalErrorHandlers () now uses noexcept too, and fixed regtests to use noexcept for its assertionahnlder
    • fixed docs on TimedCache and added matching regression test to help keep the docs compiling ;-))
  • Execution::Thread
    • weakassert on macos Thread::Rep_::ApplyPriority ()
    • test using pthread_setschedparam instead o fpthread_setschedprio so works on macos
    • EnumNames for Thread::Priority; better debugtrace messages in Thead::ApplyPriority (); Cleanup/simplify/better document/dbgtrace ApplyPrioirty method for POSIX so I realized we can lose qHas_pthread_setschedprio define and pthread_setschedprio () use - use pthread_setschedparam () instead (so works on macosx)
  • Foundation::Memory
    • BLOB[] array indexing supported
  • Docker/RegressionTests/Build System
    • start adding dockerfile centos support (INCOMPLETE)
    • WEIRD_MACOS_MAKEFILE_DIR_BUG bug define and workaround
    • sqlite makefile - fixed clobber
  • IO::Networking
    • InternetAddress::As> ()
    • fix socket bind issue on macos - set ss_len on fSocketAddress; Added SocketAddress::GetRequiredSize ()- and fSocketAddress_.ss_len set for qPlatform_MacOS (sb for all BSD?)
    • fixed serious bug in InternetAddress::GetAddressSize () - ipv6 addrs are 16 bytes not 32
    • fixed serious bug with SocketAddress (regression) - must clear out (zero) unused fields for socketaddress_v6
    • in socketaddress code: remove use of casts and replace with a union on socketaddress type (conform better to quirks in https://www.freebsd.org/doc/en/books/developers-handbook/ipv6.html - dont refernce ss_len)
    • fixed bug with Socket::Ptr::Bind() - rethrow on failure (other than WSAEACESS) - windows bug only
    • fix/workaround major bug with bind (or macos) - it would fail with einval if you pass in sizeof(sockaddr_storage) - so pass in size of right type (_in or _in6 sockaddr) with new helper GetRequiredSize (); and in bind, print full socketaddress on fail - not just port#
    • fixed tostring() on SOcketAddress to grab right bytes
    • DNS API now uses Sequence instead of Colleciton for addresses and Aliases: because http://man7.org/linux/man-pages/man3/getaddrinfo.3.html says the application should try using the addresses in the order
    • inet_pton returns 0 on failure, not negative, so fix calls to throw exception proplery on failed parse
    • fixed regression in SocketAddress::SocketAddress (const SOCKET_ADDRESS& sockaddr)
    • Big cleanup of IO::Network::Interfaces (and getInteraces): fixed Status (check carrier flag on linux to see if connected but not running); refactoring; added getDefaultGateweay macos/unix; and dnsServer (linux); and get netmask-as-prefix for MacOS/Linx using SIOCGIFNETMASK; restructure of Interface GetInterfaces ()IO::Network - code - to support macos where ::ioctl (sd, SIOCGIFCONF...) returns the same interface multiple times ;
    • docs/notes about fNetworkGUID in Network Interface object (doesnt appear useful)
  • Third-Party-Components
    • sqlite 3.26.0
  • HistoricalPerformanceRegressionTestResults/PerformanceDump-{Windows_VS2k17,Windows_VS2k19,Ubuntu1804_x86_64,Ubuntu1810_x86_64,MacOS_XCode10}-2.1d14.txt
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Windows_VS2k17,Windows_VS2k19,Ubuntu1804_x86_64,Ubuntu1804-Cross-Compile2RaspberryPi,Ubuntu1810_x86_64,Ubuntu1810-Cross-Compile2RaspberryPi,MacOS_XCode10}-2.1d14-OUT.txt
    • vc++2k17 (15.9.3)
    • vc++2k19 (16.0.0-preview)
    • MacOS, XCode 10
    • Ubuntu 18.04, Ubuntu 18.10
    • gcc 7, gcc 8
    • clang++-6, clang++-7 (ubuntu) {libstdc++ and libc++}
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • cross-compile to raspberry-pi(3/stretch+testing): --sanitize address,undefined, gcc7, gcc8, and valgrind:memcheck/helgrind
    • gcc with --sanitize address,undefined,thread and debug/release builds on tests
  • Known issues
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
    • https://stroika.atlassian.net/browse/STK-675 failures/warnings testing on raspberrypi build on ununtu 1810
    • See https://stroika.atlassian.net/secure/Dashboard.jspa for many more.
v2.1d13
2018-12-03
  • https://github.com/SophistSolutions/Stroika/compare/v2.1d12...v2.1d13
  • IO::Network::Interfaces
    • API now returns (so far just on windows) Network-GUID and subnet-mask (really CIDR equiv - nbits valid for network prefix)
    • renamed print-string for Network::Interface::Type::eWiredEthernet
    • slight refactoring of Network::GetInterfaces ()
    • Added (windows only support so far) WirelessInfo capture on NetworkInterface API
    • IO/Network/Interface.cpp GetInterfaces_Windows_ () - handle ERROR_SERVICE_NOT_ACTIVE better - just suppress error
    • return attached dns servers and gateways to results of GetInterfaces ()
  • InternetAddress
    • now can use uint8_t or byte
    • REPLACE (deprecated tuple) tuple access with array (or array byte
    • more constexpr methods
    • kAddrAny; etc constexpr fields more cleanly portably (OBSOLETES qCompilerAndStdLib_constexpr_union_variants_Buggy)
    • use new As intead of As for InternetAddress test
    • InternetAddress CTOR and As methods work wtih vector byte/vector/uint8_t
    • added IPv6AddressOctets to InternetAddress
  • Frameworks/WebService
    • Big cleanups
    • deprecated WebService/Server/VariantValue overloads with optional>& namedParams; and added OrderParamValues () overloads and documented that a bit more
    • Fixed VariantValue::PickoutParamValue () for case of empty body.
    • Deprecated GetWebServiceArgsAsVariantValue ()
    • Server::VariantValue::CombineWebServiceArgsAsVariantValue () added (not sure good idea but replaces GetWebServiceArgsAsVariantValue
    • Cleanup docs/overloads of mkRequestHandler ()
    • redid mkRequestHandler () using variadic templates
    • WebServiceMethodDescription: fAllowedMethods now optional
    • deprecated CallFAndWriteConvertedResponse
    • Use if constexpr to handle return type void not writing anything
    • WriteResponse now handles missing return type or JSON (or asserts) except for overload with BLOB in which case any return type OK
    • variadic template supprt for ApplyArgs
    • support WebService::Server::VariantValue::WriteResponse () for content-type text/plain
  • Common::GUID class
    • Added new GUID support
    • support for PARSING GUIDs
    • added ObjectVariantMapper support for AddCommon () and made it also a builtin default for object mappers
    • added operator==/etc overloads to compare
    • GUID API for Zero and construct from array<uint8_t,16>
  • Cryptography::Format() now supports returning Common::GUID
  • fixed small bug with parsing URLs with ? and no / after hostname
  • simplfiy template overload params (maybe not fully backward compat) for CheckedConverter (no more references)
  • URL::Equals () cleanup - doc differences between URL::Equals and URL::GetFullURL().Equals()
  • CIDR class automatically adjusts argument ip address to be at the start of the range (defined by mask argument)
  • BitSubstring() extended to support zero-bit selections (returns zero)
  • Iterable
    • Added Iterable::Slice () and some small regresison test improvements (related)
  • String/Characters
    • String::SafeSubstring() now also supports 'circular' part of API
    • ToString() on STRING surrounds with quotes (looks better in debugging output)
  • Compiler / Target SDK Version
    • updated projects from windowstargetplatformversion 10.0.17134.0 to latest: 10.0.17763.0
    • Support MSVC2k17 (15.9.3)
  • Third-Party-Components
    • openssl 1.1.1a
    • fixed xerces windows build issue with missing .pdb file (just caused lots of linker warnings)
  • Build System
    • Makefile
      • Mostly faster, parallel make
      • restructured ThirdPartyComponents makefile so different parts can run in parallel: now build time (time make CONFIGURATION=Debug third-party-components -j20) - realtime - dropped from 8:44 minutes to 4:20 minutes. Output looks uglier (can try to cleanup next). But appears to still work as well (and keep the CPU warm).
      • added ScriptsLib/Makefile-Common.mk with helpful makefile macro function refactored/structured output of the thirdpartycomponents makefiles so it looks better with -jN - lots of lines running at once
      • Lose some extra parameters to submakefiles which are already taken care of by $(MAKE)
      • In Foundation/Framework top level makefiles, changed them to use same SUBDIRS trick (not foreach but make all the subdirs with .phony etc) - so we get faster makes with -j25 (time make CONFIGURATION=Debug libraries -j25 went from 3:35 to 1:50)
      • Visual studio.net 2k17 15.9: lose obsolete MinimalRebuild option from project files
    • use get_script_dir () script I found on #https://www.ostricher.com/2014/10/the-right-way-to-get-the-directory-of-a-bash-script/ instead of thing i had before to find path to script
    • lose -lto from a few regression test configs (e.g. g++-valgrind-release-SSLPurify-NoBlockAlloc) : caused some noise/issues and not needed
    • tweak makefile clean/clobber code (mostly merged/simplified)
    • valgrind/sanitizer suppressions/tweaks
      • another instance of Helgrind_WARNS_EINTR_Error_With_SemWait issue
      • lose some unneeded warnign suppression for https://stroika.atlassian.net/browse/STK-627 but keep some still around
      • workaround https://stroika.atlassian.net/browse/STK-673 - Ubuntu 1810 only (tsan)
      • workaround https://stroika.atlassian.net/browse/STK-672 valgrind suppression
      • Loosen https://stroika.atlassian.net/browse/STK-626 valgrind check - so filters out a few more false positives
      • generalize match on valgrind suprpession for https://stroika.atlassian.net/browse/STK-672
      • Added TSAN_OPTIONS to config for g++-debug-sanitize_thread - since the same (https://stroika.atlassian.net/browse/STK-673) issue happened there once too (again - still only on ubuntu 1810)
    • Tweak WebGet script to do oneline output instead of incremental starting ... done (for make -JN support)
    • RunInDockerEnvironment
      • docker by default passes along all groups for the specified user to dont override this with -u:
      • new dockerfiles for Ubuntu1810, added support for it to regular regression tests (ubuntu cross compile and direct test)
      • pass along CONTAINER_IMAGE arg through remote regression test scripts to runindocker
      • generalize mount for sandbox in ScriptsLib/RunInDockerEnvironment so can setup better for dev docker env
    • Stroika-Dev
      • new PERSONAL_FILE_MOUNTS/INCLUDE_EXTRA_PERSONAL_MOUNT_FILES config option sin RunInDockerEnvironment to make it easier to use Stroika-Dev system
      • a few improvements to RunInDockerEnvironment including docs example (in file) for Stroika-Dev, and USER_FLAGS env option and works by default to include all groups
      • new dockerfile for Stroika-Dev; add /etc/shadow to PASSWORD_FILE_MOUNTS (hope fixes sudo issue) in runindocker script (and refactor a bit);
      • BuildContainers/Stroika-Dev/Dockerfile - dev environment scripted - and cmdline to create in RunInDockerEnvironment
    • Regression-tests
      • print UNAME in regressiontest output
      • print lsb_release -d output in Regresion test
      • Many more config variables printed out at start of each regression test output file
  • ObjectVariantMapper
    • LOSE support for MakeCommonSerializer - trouble is it matched OTHER types as well (the way I have it coded) - if they were unknown which produced confusing behavior
    • ObjectVariantMapper MakeCommonSerializer<> now supports Network::InternetAddress
  • Compile bug defines
    • qCompilerAndStdLib_constexpr_union_variants_Buggy REMOVED - no longer needed
    • new bug define: qCompilerAndStdLib_lambda_expand_in_namespace_Buggy and regtests for it
    • qCompilerAndStdLib_locale_constructor_byname_asserterror_Buggy really still broken (just different symptom) on vs2k17 15.9
  • Docs
    • docs on objectvariantmapper/webservices/webserver::request::getbody, more
    • docs on how to setup new raspberry pi to run remote regression tests
  • HistoricalPerformanceRegressionTestResults/PerformanceDump-{Windows_VS2k17,Ubuntu1804_x86_64,Ubuntu1810_x86_64,MacOS_XCode10}-2.1d13.txt
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Windows_VS2k17,Ubuntu1804_x86_64,Ubuntu1804-Cross-Compile2RaspberryPi,Ubuntu1810_x86_64,Ubuntu1810-Cross-Compile2RaspberryPi,MacOS_XCode10}-2.1d13-OUT.txt
    • vc++2k17 (15.9.3)
    • MacOS, XCode 10
    • gcc 7, gcc 8
    • clang++-6, clang++-7 (ubuntu) {libstdc++ and libc++}
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • cross-compile to raspberry-pi(3/stretch+testing): --sanitize address,undefined, gcc7, gcc8, and valgrind:memcheck/helgrind
    • gcc with --sanitize address,undefined,thread and debug/release builds on tests
  • Known issues
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
    • https://stroika.atlassian.net/browse/STK-675 failures/warnings testing on raspberrypi build on ununtu 1810
    • Ignore one-time failures on some curl tests from raspberrypi
    • See https://stroika.atlassian.net/secure/Dashboard.jspa for many more.
v2.1d12
2018-11-10
  • https://github.com/SophistSolutions/Stroika/compare/v2.1d11...v2.1d12
  • Containers::Collection<> CTOR (ADDABLE&) no longer explicit
  • HistoricalPerformanceRegressionTestResults/PerformanceDump-{Windows_VS2k17,Ubuntu1804_x86_64,Ubuntu1804-Cross-Compile2RaspberryPi,MacOS_XCode10}-2.1d12.txt
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Windows_VS2k17,Ubuntu1804_x86_64,Ubuntu1804-Cross-Compile2RaspberryPi,MacOS_XCode10}-2.1d12-OUT.txt
    • vc++2k17 (15.8.9)
    • MacOS, XCode 10
    • gcc 7, gcc 8
    • clang++-6, clang++-7 (ubuntu) {libstdc++ and libc++}
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • cross-compile to raspberry-pi(3/stretch+testing): --sanitize address,undefined, gcc7, gcc8, and valgrind:memcheck/helgrind
    • gcc with --sanitize address,undefined,thread and debug/release builds on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
v2.1d11
2018-11-09
  • https://github.com/SophistSolutions/Stroika/compare/v2.1d10...v2.1d11
  • Characters::String
    • new String::Replace () method, and ReplaceAt overload, and String docs
    • String::FilteredString (regexp) overload implemented, and String::Find (regesx) overload with startAt fixed/implemented
    • new overloads for String::ReplaceAll () and used to deprecate FilteredString()
  • Compiler Support
    • support msvc 2k17 15.8.9
  • ThirdPartyComponents
    • use SQLLite 3.25.2
    • use Xerces 3.2.2
    • Added Xerces patch for ...src/xercesc/internal/ElemStack.cpp:496:11: runtime error: null pointer passed as argument 2, which is declared to never be null
    • use libcurl 7.62.0
  • Docker/RegressionTests/BuildScripts/Valgrind
    • Big changes/improvements to running (UBUNTU) build process under Docker (transition completed for Ubuntu)
    • BuildContainers support for ubuntu1804 basic and regression test images
    • ScriptsLib/RunInDockerEnvironment now works well (lots of changes/fixes)
    • cleanup regtest output
    • renamed ScriptsLib/GenerateConfiguration.pl -> configure
    • CheckFileExits.sh script now supports multiple arguments
    • small test makefile cleanups - use direct execute of commnand instead of explicit perl call
    • big simplification (and bugfix for tags support with apply-configurations) - using variable APPLY_CONFIGS=$(or for top level makefile
    • Big changes to RegressionTest: refactoring, printing config variables in output - clarifies beheavior and now those variables applied more uniformly in behavior; BUILD_EXTRA_COMPILERS_IF_MISSING and other commandline options to RegressionTest.sh script (autobuild clang)
    • Xerces Makefile build cleanups
    • regression tests for local linux and remote/raspberrypi broken into separate lists in RegressionTest.sh process
    • changed directory where .lib files emitted on windows builds (to mimic unix builds): fixed visual studio project files; and fixed StroikaFrameworksLib and StroikaFoundationLib variables to point to right file(s) - files for windows for now as tmp workaround cuz never implemetned merge of framework libs
    • fixed unix makefile dependencies so Tests, Tools, and Samples executables all depend on $(StroikaLibs) (so they relink automatically when changes to stroika libs)
    • make check library makefile uses $(StroikaFoundationLib) $(StroikaFrameworksLib)
    • refactor GetConfigurationParameter to support CompilerDriver-C, CXX, and AR, AS and RANLIB for Windows/VisualStudio in various thirdpartylibs makefiles
    • fixed macos realpath implementation to support eliminating /../ in canonicalize-missing mode; then undo (errant) worakround attempt on xerces patch call
    • https://stroika.atlassian.net/browse/STK-669 -- ARM ONLY valgrind memcheck workaround (I think not my bug)
    • fixed issue with make clobber on library for particular configuraiton when that config not built
  • Time::Date,DateTime etc
    • ***Deprecated empty () and no-arg constructors*** - mostly done backward compatibly, but not 100% (applies to Date/DateTime/TimeOfDay - and already was true for Timezone); use optional to capture concept of empty
    • Big change to Parse/Format code in Date/TimeOfDay/DateTime etc - using formatString specifiers (like strptime, time_get). LOTS of library workarounds, but better scheme.
    • support new datetime parse format DateTime::ParseFormat::eRFC1123 - used in ancient sendmail, and still used in HTTP (at least for cookies)
    • cleanups to timezone support in RFC-822 date-time
    • Timezone::ToString () const support; DateTime::ToString () changed to also display the timezone
    • a few more TimeOfDay/Date/etc constexpr methods
    • new helper function Timezone::ParseTimezoneOffsetString ()
    • DateTime etc Format (PrintFormat::eCurrentLocale_WithZerosStripped - fixed regexp code better to delete just the right zeros
    • mark all LCID based Date/Time APIs deprecated, since MSFT appears to be abandoing them (as near as I can tell from their docs) - cited in https://docs.microsoft.com/en-us/windows/desktop/api/datetimeapi/nf-datetimeapi-getdateformata - Microsoft is migrating toward the use of locale names instead of locale identifiers
    • (not backward compat change) Date/TimeOfDay/DateTime::Parse () throws if arg is empty string (or otherwise fails to parse) - never returns empty date
    • Support Datetime::Format(RFC1123) and added regrssion tests to check. Not 100% perfrect, but 98% - and I think 100% legal/compliant
    • lose TimeOfDay operator overloads for optional - stdc++ already provides these just fine (as part of optional) with teh same / desired sematncis empty < any value
    • timespec is now portable in C++ since c++17 (so supported in windows) - so remove the #if qPlatform_POSIX around references to it in time code
    • Added helpers Timezone::AsHHMM and Timezone::AsRFC1123
    • fixed setting tm_wday on DateTime::As () const
    • Added Date::GetDayOfWeek () method, and use that to fix a regression test and fixed tm DateTime::As () const to fill in tm_wday;
    • Added IsLeapYear (), and a few more arithmetic operators on DayOfMonth, etc. DayOfWeek I redid to start with sunday/zero.
    • use optional instead of DateTime in a couple regression tests (to silence warnings and prepare to lose DateTime default CTOR
    • tons of progress on https://stroika.atlassian.net/browse/STK-107 - datetime related locale parsing, but cannot close cuz still alot broken
    • ***NOT FULLY BACKWARD COMPATIBLE***: New DateTime::kShortLocaleFormatPattern, DateTime::kDefaultFormatPattern; (and default locale 'Format' code now uses kDefaultFormatPattern) - which is a materially different format. To get the old behavior Replace DateTime {}.Format (DateTime::PrintFormat::eCurrentLocale) with DateTime {}.Format (locale {}, DateTime::kShortLocaleFormatPattern)
    • DateTime::ToString () for DateTime now uses this as well, and automatically appends a timezone indicator if tied to the DateTime
    • new DateTime::AsTimezone () helper function
    • On Windows, repalced DateTime::Parse () calll for (eCurrentLocale) - used to call non-portable windows parser. NOW portably calls Parse (rep, locale {});
    • DateTime code now uses portable/factored Timezone::ParseTimezoneOffsetString ();
    • define constexpr bool kRequireImbueToUseFacet_ = false and use that to document if we need to use imbue (I think not).
    • New DateTime DateTime::Parse (const String& rep, const locale& l, const String& formatPattern) with significant refactoring from older DateTime::Parse (locale) overload (and lots of bug workarounds).
    • DateTime:AsUTC () refacotred to use new DateTIme::AsTimezone();
    • DateTime::Format (PrintFormat::eCurrentLocale_WithZerosStripped) rewriten to use base class Print (with regular currnet locale) and then do zero stripping. Produces better results
    • String DateTime::Format (const locale& l, const String& formatPattern) const had MUCH rewriting and clean and documentation and bug workaround
    • DateTime now uses optional internally, and no longer calls TimeOfDay empty CTOR or timeofday::empty ()
    • TimeOfDay/0 CTOR deprecated, along with TimeOfDay::empty (): use optional instead; And overload operators (<=, ==, etc) for TimeOfDay - so they work with optional or TimeOfDay
    • added a few more named format strings to Date eg. Date::kLocaleStandardFormat, Date::kISO8601Format
    • Time::Date cleanups: Mark eXML (in date class) as deprecated - use eISO8601; Documentation;Added assert/test that Parse(eISO861) works like parse(classic_local,kISO8601Format)
    • deprecate kMin/kMax (just use min()/max() all that will work in C++ for years).
    • deprecate eXML (in datetime, etc, parseformat, and printformat)
    • added static constants for Date/DateTime/TimeOfDay kISO8601Format, kLocaleStandardFormat, kLocaleStandardAlternateFormat etc
    • Date GetFormattedAge/GetFormattedAgeWithUnit now mostly done with optional
  • C++20
    • define WAG at kStrokia_Foundation_Configuration_cplusplus_20, and #if __cplusplus < kStrokia_Foundation_Configuration_cplusplus_20 define remove_cvref_t
    • For pre C++20, to get _GLIBCXX_RELEASE define conditionally include <bits/c++config.h>
  • Traversal::Iterable/Iterator/Containers
    • Minor cosmetic cleanups to Iterable
    • simplify Iterable (templated CONTAAINER) CTOR - and added Test18_IterableConstructors_ () to make sure all working ok. Not sure change OK (must test more) - but seems oK
    • Iterable/Iterator, Containers, Sequence, and Set use perfect forwarding for appropriated template CTOR, and Add methods (not really helpful).
    • More cleanups to Containers - using is_base_of_v/remove_cvref_t: Stack etc
    • https://stroika.atlassian.net/browse/STK-541 - Iterable (Iterable&&) now does COPY, and documented rationale in headers for Iterable, and added regtrest to make sure move(m) for mapping now works properly; because of change/fix - lose a bunch of mvoe calls with IO::Network::Transfer::Response ctors
    • new bool Iterable<T>::All (const function<bool(ArgByValueType<T>)>& testEachElt) const Linq-like function
    • *not 100% backward compatible: use explicit on forward (any-container-type) CTOR for base Container ArchTypes, and a few other related cleanups/fixes; and used optional instead of Memory::Optional in one place in regression test
  • ObjectReader
    • ObjectReader MakeCommonReader_ code uses READER::AsFactory() instead of explicit creating factory
    • Added kDefaultValue to RepeatedElementReader TRAITS - so we can specify it externally and deal with types with no default constructor
    • Moved private OptionalTypesReader_ to public OptionalTypesReader<> Add TRAITS mechanism to it, so it has kDefaultTraits and can handle types with no default constructor. Registry::MakeCommonReader_() template specialization for DateTime to use new TRAITS so works without default CTOR
  • VariantValue
    • VariantValue::empty () for case of Date/DateTime now always returns false and doesnt call date/time empty
    • VariantValue: ***not backward compat*** - As () now throws format exception when called with empty string/value (instead of returning empty datetime)
  • Compile bug workarounds
    • qCompilerAndStdLib_template_template_argument_as_different_template_paramters_Buggy define and workaround
    • qCompilerAndStdLib_static_constexpr_Of_Type_Being_Defined_Buggy broken for clang6 too
    • qCompilerAndStdLib_template_template_argument_as_different_template_paramters_Buggy is broken for clang7 as well
    • redefined qCompilerAndStdLib_locale_get_time_needsStrptime_sometimes_Buggy to depend on _GLIBCXX_RELEASE since its a stdc++ lib issue - not a compiler issue, and shared by clang when compiled with libstdc++
    • new bug define qCompilerAndStdLib_locale_pctC_returns_numbers_not_alphanames_Buggy
    • new bug define qCompilerAndStdLib_locale_time_get_loses_part_of_date_Buggy
    • fixed qCompilerAndStdLib_static_constexpr_Of_Type_Being_Defined_Buggy define
    • added qCompilerAndStdLib_locale_get_time_needsStrptime_sometimes_Buggy bug define
  • Foundation::Execution
    • cleanup code for calculating kMaxFD_ (In ProcessRunner) and change max# where we assert out from 1Meg, to 4Meg, since under docker it often gets up to 1meg (maybe should be more or better - find a better way to do closes)
  • IO::Networking::HTTP
    • Draft HTTP Cookie support
  • Documentation
    • readmes
    • More progress on inline API documentation
  • lose some unneeded move() calls - as they were on function results so not needed
  • DEFAULT_CACHE in MemoizerSupport is now deprecated - since C++17 does better with type deducation iwth template template params
  • cosmetic, and small auto&& fixes
  • generalize valgrind suppression rule for https://stroika.atlassian.net/browse/STK-626
  • small change to DataExchange/VariantValue private TIRep_ (simplification/perfect forwarding); and change form of call to Sequence CTOR call to not using {} since that confused (I think incorrectly but didnt dig into it - worekd on gcc) - into thinking its arg was an initializer_list instead of a regular CTOR call
  • ObjectVariantMapper::ResetToDefaultTypeRegistry now REMOVES AddCommonType () - until I can understnad why it was there; ADDS optional for all the predefined types; Remove unneeded AddCommonType() calls (due to this change) from the tests and samples;
  • HistoricalPerformanceRegressionTestResults/PerformanceDump-{Windows_VS2k17,Ubuntu1804_x86_64,Ubuntu1804-Cross-Compile2RaspberryPi,MacOS_XCode10}-2.1d11.txt
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Windows_VS2k17,Ubuntu1804_x86_64,Ubuntu1804-Cross-Compile2RaspberryPi,MacOS_XCode10}-2.1d11-OUT.txt
    • vc++2k17 (15.8.9)
    • MacOS, XCode 10
    • gcc 7, gcc 8
    • clang++-6, clang++-7 (ubuntu) {libstdc++ and libc++}
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • cross-compile to raspberry-pi(3/stretch+testing): --sanitize address,undefined, gcc7, gcc8, and valgrind:memcheck/helgrind
    • gcc with --sanitize address,undefined,thread and debug/release builds on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
v2.1d10
2018-10-04
  • https://github.com/SophistSolutions/Stroika/compare/v2.1d9...v2.1d10
  • Builds
    • Created Dockerfiles and containers to build under docker (still debugging running valgrind/sanitizers, and no macos/windows)
    • **big new feature for builds - configuration tags** - https://stroika.atlassian.net/browse/STK-666
      • configure [--config-tag {TAG-NAME}]*
      • make list-configuration-tags
      • make list-configurations
      • make list-configurations TAGS=Windows; (NOTE CONFIGURATION_TAGS or TAGS same thing)
      • make list-configurations TAGS="Windows 32"; (just the 32-bit configs)
      • make all run-tests TAGS=Windows
      • make run-tests TAGS=valgrind VALGRIND=memcheck (run regression tests on all the tagged valgrind configs with memcheck)
      • This now makes it much easier to keep windows and UNIX builds in the same Stroika (or Stroika-based-project) - so you can make all the appropraite ones from a single make call (or clean/clobber etc)
      • use config tags on top level makefile default configurations, and regression test configurations, and redo regtest script to use those tags
      • updated docs for build system changes (make TAG= etc)
    • push rpmbuild warning into output file (not main output)
    • deprecated ScriptsLib/PrintConfigurationVariable.pl and replaced it with ScriptsLib/GetConfigurationParameter; and added more error checking; Simplify call to ScriptsLib/GetConfigurationParameter from makefiles
    • renamed ScriptsLib/GetConfigurations.sh to ScriptsLib/GetConfigurations
    • .gitattributes for ScriptsLib
    • change set of regression tests: added my-clang++-7-debug-libc++-c++2a configuration; lost raspberrypi-valgrind-g++-7-SSLPurify-NoBlockAlloc and raspberrypi-valgrind-g++-7-SSLPurify-NoBlockAlloc (since ahve these configs for g++8 and good enough - dont need every combination - we test g++7 on arm)
    • Lose build with my-g++-8.2-debug-c++2a (regressiontest configs) cuz now that version is part of ubuntu
    • added ScriptsLib/CheckValidConfiguration.sh configuration makefile checks
  • String
    • https://stroika.atlassian.net/browse/STK-506: rewrote neatly (using new UTFConverter module) String::mk_ () overloads for char32_t and char16_t; use UTFConvert instead of wrong code for breaking up char32_t char16_t in AsUTF32/AsUTF16
    • Big changes to UTFConverter
      • Support wchar_t type overloads for all the appropriate methods, mapping to utf16 or utf32 as appropriate (if constexpr).
      • Private_::DoThrowBadSourceString_ThrowSourceIllegal_() and Private_::DoThrowBadSourceString_ThrowSourceExhausted_ ()
      • define UTF8_ as UNSIGNED in implementation, since that's whats required to work properly, but keep the public API using UTF8=char, since that will work better with things like basic_string, u8string, etc.
      • UTF8Converter is deprecated, so swtiched a few calls to it to use UTFConvert.
    • cleanup the UTFConvert code. It's still based on unicode.org code (wish I could find good reference there). But now in a more C++ish form (templated API). And better documented and usable outside (public API) the CodePage module; refactored code that had used this internally use [[likely]]/[[unlikely]] in new CodePage/UTFConversion code
    • Support UTFConvert::QuickComputeConversionOutputBufferSize<>
    • UTFConvert::ConvertQuietly, and added UTFConvert::Convert which does throw on errors instead of returing bad result; and it does asserts input string large enough
    • minor cleanups to String::FromUTF8(); docs/comments; rewrote String::FromUTF8 () to use UTFConvert::Convert () instead of deprecated UTF8Converter
    • Added a few more UTF string conversion regression tests
    • String::AsUTF8 (string* into) uses UTFConvert::Convert now instead of WideStringToNarrow()
    • added CodePageConverter::CodePageNotSupportedException::GetCodePage ()
    • CodePageConverter::CodePageNotSupportedException now inherits from std::exception
    • fixed CodePageConverter::MapFromUNICODE to use new UTFConvert::Convert () - and fixed invalid (buggy) cast we had warning about for a while; and added docs to headers
  • DateTime
    • Improve docs on DateTime::AsLocalTime/AsUTC(): make clear these always return a DateTime with the given timezone (localetime/utc).
    • THEN - fixed AsLocalTime() so it DID always return in localtime **BUG FIX** - not backward compat; It used to sometimes return *this
  • Exceptions
    • **Slightly incompatible change**
    • SilenctException now inherits from std::exception (and produces what = "Silent Exception"
    • And Execution::Throw() overloads / templates all static_assert argument excpetion type inherits from std::exception
    • And documented the stroika deisgn that what() returns text in SDKString code page (current locale) and best to use StringException as a base if you may have characters not representable in that codepage.
    • And that Stroika will always do this (your code may - but need not - just has to to call Execution::Throw() - but even that doesnt really matter (you can template specialize and it does nothing but logging).
  • Debug
    • Added extra trace messages to Trace module - on startup/shutdown - saying if address sanitizer and valgrind are running
    • Sanitizers and sanitizer configurations
      • Reviewed regression tests and which bug reports we had open to workaround issues with sanitizers. Some still broken/left open, but a few closed.
      • workaround https://stroika.atlassian.net/browse/STK-665 address sanitizer warning (probably spurrious): work around address sanitzer bug (or my bug - unclear) with 'watcher' (really probably with Syncrhonized) in ReadMountInfo_FromProcFSMounts_ () - gcc8
      • Stroika_Foundation_Debug_ATTRIBUTE_NO_SANITIZE (address) for workaround https://stroika.atlassian.net/browse/STK-665, https://stroika.atlassian.net/browse/STK-500 - ARM ONLY
      • marked https://stroika.atlassian.net/browse/STK-654 resolved - so re-enable asan running on g++8 (narrower workaround)
      • Debug/Sanitizer.h conditionally includes <sanitizer/asan_interface.h>etc
      • notes in configurae script about -asan stuff not working on WSL; and about https://stroika.atlassian.net/browse/STK-601 still broken on XCode 10
  • Several fixes to IO::Network::Interfaces::GetInterfaces ()
    • rollup interfaces returned multiple times (at least happens alot on macos)
    • Workaround 'misfeature' of MacOS impl of SIOCGIFCONF, so it works with variable offset between records; This was ESPECAILLY tricky cuz it produces non-aligned accesses whcih produce warnings from clang undefined behavior sanitizer (which I had to silence)
    • Only record addresses for bindings if they are internet addresses (on unix - already did for windows)
    • Better detection for wireless interfaces on linux.
    • Finally can use Stroika_Foundation_Debug_ATTRIBUTE_NO_SANITIZE ("undefined") at least on xcode 10. Must test more...
  • new Stroika_Foundation_Debug_ATTRIBUTE_ForLambdas_NO_SANITIZE and qCompiler_noSanitizeAttributeForLamdas_Buggy; tweak qCompiler_noSanitizeAttributeForLamdas_Buggy
  • fixed DISABLE_COMPILER_MSC_WARNING_START (4701) suppression
  • more tweaks to samples
  • restructure AssertExternallySynchronizedLock::fSharedLockThreads_ (optional) to try and workaround sanitizer bug
  • SortedCollection<> provides overloads to call its builtin Contains/Remove methods
  • HistoricalPerformanceRegressionTestResults/PerformanceDump-{Windows_VS2k17,Ubuntu1804_x86_64,MacOS_XCode10}-2.1d10.txt
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Windows_VS2k17,Ubuntu1804_x86_64,MacOS_XCode10}-2.1d10-OUT.txt
    • vc++2k17 (15.8.6)
    • MacOS, XCode 10
    • gcc 7, gcc 8
    • clang++-6, clang++-7 (ubuntu) {libstdc++ and libc++}
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • cross-compile to raspberry-pi(3/stretch+testing): --sanitize address,undefined, gcc7, gcc8, and valgrind:memcheck/helgrind
    • gcc with --sanitize address,undefined,thread and debug/release builds on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
v2.1d9
2018-09-25
  • https://github.com/SophistSolutions/Stroika/compare/v2.1d8...v2.1d9
  • Sample Apps
    • Lose obsolete Samples/SimpleSequenceUsage
    • Add Containers Sample App
    • Add Serialization Sample App
    • renamed sample SimpleService to just Service (and some places sample.service for unix)
  • workaround for qCompilerAndStdLib_valgrind_fpclassify_check_Buggy
  • fixed Iterable<>::Distinct to work with explicit equals comparer, and work right with default behavior when EqualsComparer not equal_to (dont use less then)
  • HistoricalPerformanceRegressionTestResults/PerformanceDump-{Windows_VS2k17,Ubuntu1804_x86_64,MacOS_XCode10}-2.1d9.txt
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Windows_VS2k17,Ubuntu1804_x86_64,MacOS_XCode10}-2.1d9-OUT.txt
    • vc++2k17 (15.8.5)
    • MacOS, XCode 10
    • gcc 7, gcc 8
    • clang++-6, clang++-7 (ubuntu) {libstdc++ and libc++}
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • cross-compile to raspberry-pi(3/stretch+testing): --sanitize address,undefined, gcc7, gcc8, and valgrind:memcheck/helgrind
    • gcc with --sanitize address,undefined,thread and debug/release builds on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
v2.1d8
2018-09-21
  • https://github.com/SophistSolutions/Stroika/compare/v2.1d7...v2.1d8
  • Compilers
    • Support vs2k 17 15.8.5
    • Support clang-7 (no sanitizers cuz private build and missing libraries)
    • XCode 10 (final release)
  • Performance Improvements
    • rewrote Function<> object storing void* - we can use to compare later- instead of shared_ptr - so slight performance improvment - and I think safe
    • use conditional_t<Execution::kSpinLock_IsFasterThan_mutex, Execution::SpinLock, mutex> instead of just mutex in PatchingDataStructures/PatchableContainerHelper - pretty big speed improvmenet (30% maybe) for performance regression tests involving containers
    • PatchableContainerHelper: small optimizaiton - make fActiveIteratorsListHead_ atomic and in _ApplyToEachOwnedIterator () dont check lock
    • Added optional ReadAhead parameter to TextReader - which allows it (defaults true) to readahead binary data more at a time, allowing fewer copies/reallocs, so its noticably faster (10-20% ish or more).
    • improved performance on Mapping_stdmap/SortedMapping_stdmap to use insert_or_assign instead of find/insert
    • kUseMemCmpAsSpeedTweek_ for String (case sensative) compare optimizaiton
    • performance tweak String::FromASCII
    • Rewrote much of Float2String() to run faster: using thread_local static stringstream instead of constructing new one each time, and variant that directly calls sprint for common cases
    • Change many performance regression test warning thresholds (downward/tighter/noiser): reacting to various performance improvements.
    • Wrap many more if tests in [[LIKELY_ATTR]] or [[UNLIKELY_ATTR]] - e.g when about to throw which we know is unlikely and going to bubble pipeline anyhow
  • Thread
    • Simplify Thread::New () 'constructor', overload allows omit thread name but specify thread config, etc
  • Regression Tests/Valgrind
    • tweak Helgrind_WARNS_EINTR_Error_With_SemWait_As_Problem_Even_Though_Handled regtest for raspberrypi (helgrind workaround)
    • another probable https://stroika.atlassian.net/browse/STK-483 (ARM - I THINK EQUIV) helgrind workaround
    • fixed regressiontest (performance) runner to always do at least one loop for debug builds
    • fixed a couple spots in regtests (could affect timing slightly) - change assert to VerifyTestResult
    • fixed bug with performance regtest where we were never properly comparing read/write result for spectrum roundtrip - now done correctly with NearlyEquals - so forgive slower time!!! - REALLY sped up this release - just slower cuz of this extra testing in release build
    • improved performance of Test_JSONReadWriteFile_ performacne test using Containers::Concrete::Mapping_stdmap<double, double>{CompareNumbersLess_{}} for Spectrum object - not as good as before (for this) but more accurate since uses nearlyequals for both compares
  • use auto&& crit_sec = lock_guard instead of explicly typed lockgurad in PatchingDataStructures_PatchableContainerHelper to faciliate chaning types
  • minor tweaks to Archive/Zip/Reader code to silence warnings
  • fixed has_minus concept
  • README.md updates to note integration with other libraries
  • HistoricalPerformanceRegressionTestResults/PerformanceDump-{Windows_VS2k17,Ubuntu1804_x86_64,MacOS_XCode10}-2.1d7.txt - NOTE - ignoring irreproducible (hard to repro) rasppi valgrind issue and 2 temp networking issues on retetsts)
  • Tested (passed regtests)
    • Ignore one windows failure due to virus checker false positive
    • Ignore (several instances of same problem) failures due to valgrind false assertion error about nans
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Windows_VS2k17,Ubuntu1804_x86_64,MacOS_XCode10}-2.1d8-OUT.txt
    • vc++2k17 (15.8.5)
    • MacOS, XCode 10
    • gcc 7, gcc 8
    • clang++-6, clang++-7 (ubuntu) {libstdc++ and libc++}
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • cross-compile to raspberry-pi(3/stretch+testing): --sanitize address,undefined, gcc7, gcc8, and valgrind:memcheck/helgrind
    • gcc with --sanitize address,undefined,thread and debug/release builds on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
v2.1d7
2018-09-17
  • https://github.com/SophistSolutions/Stroika/compare/v2.1d6...v2.1d7
  • ThirdPartyComponents
    • openssl 1.1.1 (TLS 1.3 support)
  • Time
    • Add support for kBiasInMinutesFromUTCTypeValidRange - for docs and assertions
    • ***not backward compatible*** - DateTime::Parse () returns missing timezone if its mising from input string
    • renamed Timezone::GetBiasInMinutesFromUTCType to Timezone::GetBiasInMinutesFromUTC (deprecating old name)
    • FIXED that routine to return the right answer for localtime (was returning seconds instead of minutes)
  • Major OutputStream<> performance optimization (like I already had for InputStream) - using reinterpret_cast instead of dynamic_pointer_cast<> for shared_ptr
  • Added Thread GetThrowInterruptExceptionInsideUserAPC/SetThrowInterruptExceptionInsideUserAPC option to optionally re-enable this feature (helpful for when using gsoap)
  • Concrete/Private/String_BufferedStringRep now has 3 block sizes - 16 32 and 64
  • renamed (protected - not bacwkward compat but OK cuz probablynever used outside stroika) - Seqeunce::_kBadSequenceIndex to Seqienece::_kSentinalLastItemIndex
  • HistoricalPerformanceRegressionTestResults/PerformanceDump-{Windows_VS2k17,Ubuntu1804_x86_64,MacOS_XCode10}-2.1d7.txt - NOTE - ignoring irreproducible (hard to repro) rasppi valgrind issue and 2 temp networking issues on retetsts)
  • Tested (passed regtests)
    • one small helgrind/raspberrypi regression ignored - because the introduction was just cuz we recently started running valgrind on raspberrypi and looks innocuous)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Windows_VS2k17,Ubuntu1804_x86_64,MacOS_XCode10}-2.1d7-OUT.txt
    • vc++2k17 (15.8.3)
    • MacOS, XCode 10 (GM-seed)
    • gcc 7, gcc 8
    • clang++6 (ubuntu) {libstdc++ and libc++}
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • cross-compile to raspberry-pi(3/stretch+testing): --sanitize address,undefined, gcc7, gcc8, and valgrind:memcheck/helgrind
    • gcc with --sanitize address,undefined,thread and debug/release builds on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
v2.1d6
2018-09-09
  • https://github.com/SophistSolutions/Stroika/compare/v2.1d5...v2.1d6
  • Compiler Versions supported
    • XCode 10 beta 6
    • Support _MSC_VER_2k17_15Pt7_,_MSC_VER_2k17_15Pt8_
    • added bug workaround define for qCompilerAndStdLib_TemplateTemplateWithTypeAlias_Buggy
    • gcc 8.2 instead of 8.1 (still ubuntus default gcc8 - 8.0)
    • switch VS bug tests to using _MSC_VER <= _MSC_VER_2k17_15Pt7_ instead of _MSC_FULL_VER <= _MS_VS_2k17_15Pt7Pt5_ so less need to recheck with each build change
  • ***breaking changes***
    • move (not backward compatible) ThrowIfErrorHRESULT to namespace Execution::Platform::Windows; (from Exection)
    • renamed the const overload of GetRep() on Iterator to ConstGetRep() - and fixed various calls to it. Rarely called except by implementers of Iterators so change should rarely cause problems (and be obvious - not compiling)
    • @see LRUCache declaration/traits changes below
    • ***not backward compatible*** change to SharedByValue - changed COPIER template argument to be functor style () instead of method Copy()
    • comments and major semantics change on Date::AddDays () - **not backward compatible** - empty now treated as kMin not GetToday() for purpose of AddDays (already treated that way everplace else)
    • Replace use of using Byte = uint8_t to just using std::byte throughout Stroika. NOT PERFRECT switch. NOT going to be backward compatible. But probably a good idea. AND INCOMPLETE - but testable
    • ***not backward compatible*** - new Streams::SeekableFlag replacing SeekableFlag in FileStream - rarely used directly - use kSeekableFlag_DEFAULT intead of SeekableFlag::eDEFAULT
    • ***INCOMPATIBLE CHANGES*** - SharedByValue<> template now takes T as first argument, and TRAITS as default. OK to change existing code to just have T as first arg; then added new CTOR for SharedByValue, defaulted TRAITS type, and added docs examples on usage, and regression test
  • Prelim C++21 support
    • Defined NO_UNIQUE_ADDRESS_ATTR conditionally, and used it in a few places
    • new LIKELY_ATTR and UNLIKELY_ATTR - and used in a few places (and comment cleanups)
  • Memory
    • ***not backward compatible*** change to SharedByValue - changed COPIER template argument to be functor style () instead of method Copy()
    • SharedByValue_CopySharedPtrAtomicSynchronized deprecated
  • Documentation
    • readme comments
    • require and readme comments on Cache code
    • Improved docs on Debug/AssertExternallySynchronizedLock
  • Samples
    • fixed name of sample html file in WebServer sample
    • update Archive sample to use optional instead of Memory::Optional
  • std::hash support
    • Added class hash specialization
  • Speed Tweaks
    • use for (const auto&& in a few places for for loops - in hopes of speedup
    • ReserveSpeedTweekAdjustCapacity () tweak - so grows faster initially. That should help more than it hurts, but I dont have good empirical data for this (and the added computation cost could outweigh)
    • very slight performance tweak - TextReader::CachingSeekableBinaryStreamRep_ now uses SmallStackBuffer instead of vector
    • use ArgByValueType in a few more places, and related minor tweaks
  • make run-tests and regression tests
    • get make run-tests REMOTE= and VALGRIND= working togehter
    • Use that to update regression tests to include remote running valgrind helgrind/memcheck on raspberrypi (and lots of work to get passing)
  • get raspberrypi regtests passing with valgrind/helgrind
    • test fix for boost/xcode10beta issue with Undefined symbols boost::system::detail::generic_category_instance
    • sslpurify on valgrind/raspberrypi config
    • https://stroika.atlassian.net/browse/STK-662 (ARM/DEBIAN/RASPBERRYPI) suppression added to workaround likely arm/raspberrypi distro bug
    • start trying to workaround qCompilerAndStdLib_arm_openssl_valgrind_Buggy bug
    • anohter workaround for https://stroika.atlassian.net/browse/STK-620 but for linux/arm/raspberrypi
    • https://stroika.atlassian.net/browse/STK-628 (same but for ARM)
    • Helgrind_WARNS_EINTR_Error_With_SemWait_As_Problem_Even_Though_Handled heldgrind suppression for ARM compiler
    • arm workaround for https://stroika.atlassian.net/browse/STK-483 - helgrind suppression
    • https://stroika.atlassian.net/browse/STK-661 valgrind memcheck raspberrypi suppression
  • Cache classes
    • refactor LRUCache<> code a bit so LRUCache_ private object gone and other small cleanups
    • redid LRUCache to use SmallStackBuffer instead of explicit array, so can pass in argument hashtable size instead of template param, and then lose template params for hashtablesize
    • LOSE DEfaultTraits support for LRUCache - and TRAITS altogehter - and instead re-organized template parameters **NOT BACKWARD COMPATIBLE** FOR USERS USING TEMPLATE TRAITS!
    • Imporved deduction guide/overloads/docs for LRUCache
    • new SynchronizedLRUCache class
    • Lots of cleanups, and docs improvements to various cache classes/methods, esp the synchonized verisons: not 100% backeard compatible, but mostly (one TimedCache Lookup overload deleted, and one TimedCache::Lookup overload new delets items - as it should have all along)
    • fixed thread safety checks (debug exterally sync) in LRUCache (they were wrong)
    • added overload to LRUCache<>::Add - taking one argument. I may have a use case in HF that makes this make sense. Testing/trying and will revisit with more data
    • SynchronizedLRUCache<> issue with Lookup and thread santizer fixed: Lookup is logically const, but does change the accounting object (stored inline). So make the caller use a lock_guard or shared_lock depending on the STATS_TYPE.
  • SmallStackBuffer<> changes
    • use qCompiler_cpp17InlineStaticMemberOfTemplateLinkerUndefined_Buggy, and rename a few fields for clarity
    • Support for https://stroika.atlassian.net/browse/STK-159 - SmallStackBuffer<> to support non POD types
    • fixed SmallStackBuffer... so reserve () now allows shrinking as well. And other cleanups
    • comments and regression tests for SmallStackBuffer new non-POD support
    • added optional CTOR param: SmallStackBufferCommon::eUninitialized, and provided _uninitialized variants of resize and GrowToSize() methods, and used them as appropriate thorughout stroika
    • small tweak to SmallStackBuffer::push_back
  • Iterator/Iterable changes
    • Iterator::CTOR move CTOR for rep
    • support qStroika_Foundation_Traversal_Iterator_UseSharedByValue to see if works better without sharedbyvalue (performance/thread issues) and set (CHANGE) to to 0 by default
    • Inside Iterator<> template - renamed IteratorRepSharedPtr to RepSmartPtr; renamed MakeSharedPtr to MakeSmartPtr, etc. Deprecated old names. Reason for the agnostic about type of smart ptr names - since we may use unique_ptr (or maybe shared_ptr - still testing)
    • use IteratorBase::PtrImplementationTemplate<> instead of deprecated IteratorBase::SharedPtrImplementationTemplate
    • renamed MakeSharedPtr<> to MakeSmartPtr<> in Iteratble<> template
    • renamed usage of SharedPtrImplementationTemplate to PtrImplementationTemplate
  • ThirdPartyComponents
    • libcurl 7.61.1
    • openssl 1.1.1-pre9
    • boost 1.68 (caused problem on MacOS XCode 10, but worked around - linker constexpr issue)
    • openssl makefile (unix): added imporved logging for CONFIGURE process (to debug); and got rid of -no-engines options - saw it was causing problems with latest openssl (emits warning -no-engines not supported) and no clear notes on why its needed (may not be anymore - maybe was workaround for centos6 issue we may not have anymore)
    • lose --without-system on boost makefile since appears ignored and always included
  • Execution module cleanups
    • added overload of ThrowIfNull for unique_ptr,
    • added (and used) macro IgnoreExceptionsExceptThreadInterruptForCall and documented all the IgnoreExceptionsExcept...... macros
    • Implement Execution::IsProcessRunning () for windoze
  • Tweak DiscreteRange<>::begin () and docs
  • moved PRIVATE_::uninitialized_copy_n_MSFT_BWA to Configuraiton file/module so can be used elsewhere
  • small performance tweaks to TextReader
  • use C++17 class type deduction in a few places/uses of lock_guard (so not repeating type)
  • cosmetic changes due to constexpr statics being inline since c++17
  • new Streams::Copy module (and simple regtest)
  • major cleanups to warnings (esp on windows); [[maybe_unused]] used, cleanued up lots of unneeded qSilenceAnnoyingCompilerWarnings/#pragma warnings, and use alot of noexcepts on move CTORs/operator= calls
  • lose obsolete bug and feature defines qFriendDeclsCannotReferToEnclosingClassInNestedClassDeclBug qAccessCheckAcrossInstancesSometimesWrongWithVirtualBaseqSupportEnterIdleCallback qUseGDIScrollbitsForScrolling
  • more cosemtic changes - noexcept CTORs, initialized files (already initialized in CTOR to silence bad warning from msvc analayzer, and similar)
  • update WindowsTargetPlatform from 10.0.16299.0 to 10.0.17134.0
  • qCompilerAndStdLib_locale_constructor_byname_asserterror_Buggy bug definition and workaround
  • Improved regtest for locale lookup code (runtime_error thrown); and fixed test for !qCompilerAndStdLib_locale_constructor_byname_asserterror_Buggy workaround - broken (just differently) for release builds
  • used RWSynchronized<> for fDirectHandlers_; with signalhandlers since best if multiple reads dont block as this updated rarely
  • avoid running :SyncLRUCacheT1_ (); regtest on valgrind ARM helgrind cuz it makes it crash
  • added my+g++-8.2 to regtests; Lose regtest my-g++-8.1-debug-c++17 config; change 8.2 gcc config test to user C++21
  • update notes on https://stroika.atlassian.net/browse/STK-663
  • HistoricalPerformanceRegressionTestResults/PerformanceDump-{Windows_VS2k17,Ubuntu1804_x86_64,MacOS_XCode10}-2.1d6.txt - NOTE - ignoring irreproducible (hard to repro) rasppi valgrind issue and 2 temp networking issues on retetsts)
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Windows_VS2k17,Ubuntu1804_x86_64,MacOS_XCode10}-2.1d6-OUT.txt
    • vc++2k17 (15.8.3)
    • MacOS, XCode 10 (beta6)
    • gcc 7, gcc 8
    • clang++6 (ubuntu) {libstdc++ and libc++}
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • cross-compile to raspberry-pi(3/stretch+testing): --sanitize address,undefined, gcc7, gcc8, and valgrind:memcheck/helgrind
    • gcc with --sanitize address,undefined,thread and debug/release builds on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
v2.1d5
2018-08-01
  • https://github.com/SophistSolutions/Stroika/compare/v2.1d4...v2.1d5
  • Compile bug workarounds
    • wrap a couple more uses in qCompiler_cpp17InlineStaticMemberOfTemplateLinkerUndefined_Buggy
  • More type traits cleanups
    • added helper (Configuration::IsIterableOfT_v<> and used in place of Configuraiton::IsIterableOfT<>::value
    • for Configuration::is_iterator<>::value, use Configuration::is_iterator_v<>
    • Deprecated function Configuration::Container() and added IsIterable/IsIterable_v as inline constexpr variables, to do basically the same thing and sihckes calls to has_beginend to use IsIterable_v
  • BlockAllocation
    • slight refactor of BlockLAllocator code - adding BlockAllocator::AdjustSizeForPool_ ()
    • deprecated AutomaticallyBlockAllocated
    • use ManuallyBlockAllocated instead of AutomaticallyBlockAllocated in Optional
  • Cleanup file formatting - using namespace a :: b :: c { instead of namespace a { namespace b {namespace c {; regualrizing spacing around headers and namespaces (space before/after blocks that contain comments and none of they have no function header comments)
  • Documentation
  • Some more constexpr function usage (Math::AtLeast etc)
  • lose qStroika_Foundation_Memory_SharedByValue_DefaultToThreadsafeEnvelope_ define - not compatible with current threading policy - but leave in logic to support localized use of SharedByValue with syncronized load/store (not sure good idea but maybe)
  • lose unneeded Enumeration.cpp and VersionDefs.cpp, Cryptography/Digest/DigestDataToString.cpp
  • fixed regression test issue - had hardwired canonical name of website that changed
  • refactor - move Stats code from LRUCache to its own module in Cache code; Added ToString() support to Cache::Statistics objects; then can use Statisitcs (shared) objects in Cache/TimedCache module
  • Draft Memoizer cache utility/function and regression tests
  • qCompilerAndStdLib_inline_static_align_Buggy bug define and workaround
  • fixed run valgrind on samples - regressiontest script
  • Significant rewrite teo RoundupTo/RoundDownTo () - little tested
  • HistoricalPerformanceRegressionTestResults/PerformanceDump-{Windows_VS2k17,Ubuntu1804_x86_64,MacOS_XCode10}-2.1d5.txt
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Windows_VS2k17,Ubuntu1804_x86_64,MacOS_XCode10}-2.1d5-OUT.txt
    • vc++2k17 (15.7.5)
    • MacOS, XCode 10 (beta)
    • gcc 7
    • gcc 8
    • clang++6 (ubuntu) {libstdc++ and libc++}
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined, gcc7, gcc8
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined,thread and debug/release builds on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
v2.1d4
2018-07-13
  • https://github.com/SophistSolutions/Stroika/compare/v2.1d3...v2.1d4
  • Switch entirely to using std::optional from Memory::Optional
    • Still maintain Memory::Optional for old code (not yet deprecated).
    • But internally, switched (essentially) all use and public APIs to use std::optional instead of Memory::Optional
    • Added a variety of utility functions in Memory::Optional module which mimic old helpful utility functions - like Memory::Accumulate, Memory::CopyToIf(), Memory::ValueOrDefault (), etc. More todo.
    • Lose defines qCompilerAndStdLib_Supports_stdoptional and qCompilerAndStdLib_Supports_stdexperimentaloptional
    • use non-expeict operator optional<> in Memory::Optional
    • get rid of !qCompilerAndStdLib_OptionalWithForwardDeclare_Buggy - just a 'feature' of std::optional
    • new bug define qCompilerAndStdLib_optional_value_const_Buggy for xcode10
  • cleanup use of enable_if using enable_if_t, and various _v type_traits templates (more terse, and cleaner, big change)
  • change calls to std::forward/std::move etc to forward/move - so lost std prefix on std namespace references - just import namespace
  • Various fixes to KeyValuePair<> - better template conversion handling
  • Cleanup ping/firewall code - tested - works - but windows issue with having to disable firewall first
  • SynchronizedTimedCache<> cleanups, docs, options (performance)
  • Compilers
    • updated to support VS2k17 15.7.5
  • Memory::BlockAllocation
    • AutomaticallyBlockAllocated deprecated
    • Deprecate DECLARE_USE_BLOCK_ALLOCATION () and instead use inhertance from Memory::UseBlockAllocationIfAppropriate
    • more cosmetic cleanups of Memory::BlockAllocated<>
  • Valgrind/Testing
    • experimental use less of valgrind workaround (maybe just sharedlocks broken- testing)
  • ThirdPartyComponents and Build Scripts
    • openssl 1.1.1pre8
    • Minor fix to configure script for finding -l lib names to use when -print-file-name doesnt work
    • lose qPlatformSupports_snprintf bug define (always have it)
    • Cleanup libcurl regtests - and fix so works on raspberrypi (with no ssl) - cuz one of sites we used to test with redirects to ssl-based site - so must allow that test to pass with openssl disabled
    • fixed openssl thirdpartylibs build so works on raspberrypi (cross-compile)
    • https://stroika.atlassian.net/browse/STK-427 - fixed curl makefile to detect local openssl
    • https://stroika.atlassian.net/browse/STK-427 - changed default for openssl - so even if cross-compiling defaults to true
  • Time code
    • small, mostly cosmetic cleanups to Time::DateTime code
    • Get rid of most use of TimeOfDay::empty () and replace it with use of Optional - at least in DateTime class (and timezone); in preps to using optional more thoughoghly and losing empty for TimeOfDay and Date()
  • Documentation
    • ReadMe.md updates
    • Coding conventions updates
  • HistoricalPerformanceRegressionTestResults/PerformanceDump-{Windows_VS2k17,Ubuntu1804_x86_64,MacOS_XCode10}-2.1d4.txt
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Windows_VS2k17,Ubuntu1804_x86_64,MacOS_XCode10}-2.1d4-OUT.txt
    • vc++2k17 (15.7.5)
    • MacOS, XCode 10 (beta)
    • gcc 7
    • gcc 8
    • clang++6 (ubuntu) {libstdc++ and libc++}
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined, gcc7, gcc8
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined,thread and debug/release builds on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
v2.1d3
2018-06-23
  • https://github.com/SophistSolutions/Stroika/compare/v2.1d2...v2.1d3
  • Documentation cleanups
  • Support Visual Studio.net 2k17 15.7.4
  • Streams
    • Simplified (***not backward compatible***) - second argument to InternallySyncrhonized {input,output,inputoutput} stream helper - so now class not template
    • Simplify 'Ptr' implementation with Streams classes - deleting most of them and just using base-class Ptr implementation
  • Synchonized
    • Quiet a few small safety cleanups
    • Synchonized<> now supports either shared_timed_mutex or shared_mutex, but default to shared_mutex for RWSynchonized
    • Synchonized: break lhs.load () OP rhs.load () into 3 lines so no possability of deadlock.
    • new Synchonized_Traits field kSupportsSharedLocks, and use that to obsolete LOCK_SHARD/UNLOCK_SHARED for that traits, and just use ifconstexpr instead
    • Synchronized<>::store/load/operator() now only defined if TRAITS::kAllowRecursive - and documentation relating to this
    • Synchronized<>::lock/unlock/shared_lock/shared_unlock - now enable_if - so not defined when inapproprite for underlying mutex type
    • Synchronized - more minor cleanups to enable_if (Experimental_UpgradeLock2
    • renamed Synchronized<>::*UpgradeLock* to Syncrhonized<>::UpgradeLockNonAtomically () - deprecating older verisons/names
    • more small cleanups to Synchonized (use ReadLockType_ in ReadableReference object)
    • Synchonized<> - use lock_guard for _WriteLockType since we dont need to unlock or empty create those (at least for now)
  • Regression tests
    • Added to threadtest a copy of Test2_LongWritesBlock_ using RWSynchronized; and updated both tests to use smaller sleep constants so tests run faster; and lowered one sleep count in a test from 5 to 2 seconds - also to make regtests run faster
    • more speed tweaks on thead (#38) regression tests
    • slightly normalize regression test config names
    • modularize Regression test slightly - by capturing regexp var with rasperripi configs, and script running of each remotely
  • HistoricalPerformanceRegressionTestResults/PerformanceDump-{Windows_VS2k17,Ubuntu1804_x86_64,MacOS_XCode9.3}-2.1d3.txt
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Windows_VS2k17,Ubuntu1804_x86_64,MacOS_XCode9.3}-2.1d3-OUT.txt
    • vc++2k17
    • MacOS, XCode 10
    • gcc 7
    • gcc 8
    • clang++6 (ubuntu) {libstdc++ and libc++}
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined, gcc7, gcc8
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined,thread and debug/release builds on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
v2.1d2
2018-06-16
  • https://github.com/SophistSolutions/Stroika/compare/v2.1d1...v2.1d2
  • Use new C++17 (mostly) features
    • use conditional_t instead of #if tests (more)
    • Deprecate Execution::make_unique_lock () LOSE macro MACRO_LOCK_GUARD_CONTEXT All because with C++17 - you can use auto critSec = lock_guard{fCriticalSection_}; due to http://en.cppreference.com/w/cpp/language/class_template_argument_deduction use [[maybe_unused]] auto&& critSec = lock_guard{fCritSection_};
    • redo most use of qStroika_Foundation_Execution_SpinLock_IsFasterThan_mutex using conditional_t<> and cleanup to SpinLock
    • replaced macro qStroika_Foundation_Execution_SpinLock_IsFasterThan_mutex with constexpr Execution::kSpinLock_IsFasterThan_mutex (less configurable, but more compatible with modules? - sigh - not sure how best to handle such tradeoffs)
    • use qCompiler_cpp17ExplicitInlineStaticMemberOfTemplate_Buggy as needed to workaround bug with it in msvc2k17
    • Lose obsolete qCompilerAndStdLib_constexpr_const_then_constexpr_Buggy bug define
    • lose remaining checks for if __cplusplus >= kStrokia_Foundation_Configuration_cplusplus_14
    • renamed macro qStroika_Foundation_Memory_SharedPtr_IsFasterThan_shared_ptr to constexpr bool Memory::kSharedPtr_IsFasterThan_shared_ptr
    • replaced #define qStroika_Foundation_Traveral_IterableUsesStroikaSharedPtr with constexpr bool Traversal::kIterableUsesStroikaSharedPtr
    • new template UseBlockAllocationIfAppropriate - experimental - maybe will replace DECLARE_USE_BLOCK_ALLOCATION
    • new helper class Configuration::Empty
    • replace qStroika_Foundation_Traveral_IteratorUsesStroikaSharedPtr with constexpr kIteratorUsesStroikaSharedPtr
    • Replace macro qStroika_Foundation_Memory_BLOBUsesStroikaSharedPtr_ with Memory::kBLOBUsesStroikaSharedPtr constexpr (using C++17 features - so we can lose macros and get closer to supporting modules)
    • namespace Stroika::Foundation { cosmetic cleanups
  • Updated README.md (much better IMHO).
  • Compiler bug define warnings
    • Lose qNoSTRNICMP define (very obsolete)
    • Lose obsolete qCompiler_noSanitizeAttributeMustUseOldStyleAttr_Buggy bug define
  • Replace calls to Led_NormalizeTextToNL with Characters::NormalizeTextToNL; Replace calls to Led_NativeToNL () with Characters::NativeToNL; Replace calls to Led_NLToNative with Characters::NLToNative; And remove the 'replaced' functions; Added misisng Linending Characters::NativeToNL
  • cleanup Level4 MSVC2k17 warnings
  • fixed va_start warning
  • renamed Led_BufToULONG to BufToSizeT/BufToUInt32; Led_BufToUSHORT to BufToUInt16 etc - to cleanup code and silence warnings (size_t part handked warnings)
  • Redo String_BufferedArray_Rep_ using conditional_t and Memory::UseBlockAllocationIfAppropriate isntead of DECLARE_USE_BLOCK_ALLOCATION
  • fix regressiontest script to count errors from visual studio properly
  • fix for NetworkMonitor/Ping for race condition (std::uniform_int_distribution cannot be used const on gcc)
  • tweak qCompilerAndStdLib_stdfilesystemAppearsPresentButDoesntWork_Buggy for XCode 10
  • qCompilerAndStdLib_conditionvariable_waitfor_nounlock_Buggy bug define and workaround (clang6 lib)
  • use static inline c++17 feature
  • fixed serious threading regression due ot use of static inline for sThreadAbortCheckFrequency_Default - bad default - now fixed
  • Depend on XCode 10 not XCode 9 for MacOS
  • SQLite 3.24
  • HistoricalPerformanceRegressionTestResults/PerformanceDump-{Windows_VS2k17,Ubuntu1804_x86_64,MacOS_XCode9.3}-2.1d2.txt
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Windows_VS2k17,Ubuntu1804_x86_64,MacOS_XCode9.3}-2.1d2-OUT.txt
    • vc++2k17
    • MacOS, XCode 10
    • gcc 7
    • gcc 8
    • clang++6 (ubuntu) {libstdc++ and libc++}
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined, gcc7, gcc8
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined,thread and debug/release builds on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
v2.1d1
2018-06-11
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a234...v2.1d1
  • Start using new C++17 features
    • lose a bunch of DefaultNames static definitions, now no longer needed with c++17 (local); and lose a bunch of deprecated function definitions and classes
    • Start using new namespace A::B syntax (mostly just Stroika::Foundation)
    • Mark AnyVariantValue as **deprecated** - as std::any does the same thing in C++17 (or close enough)
    • if constexpr
  • New Branch - 2.1 - with theme being requires C++17 features
    • Docs and notes about new branch
    • Lose support for g++5
    • Lose support for gcc6 (because it lacks if constexpr support) - and therefore also drop support for qCompiler_InlineStaticMemberAutoDefined_Buggy workaroudn (only for gcc6)
    • Lose support for clang 3.9
    • Lose support for clang 4
    • Lose support for clang 5
    • Update to configure script to only generate c++17 or later use
    • no longer support regtests on Ununtu 1604
    • Lose XCode 8 support for MacOS (require at least XCode 9)
    • use constexpr if and conditional_t to replace macro qStroika_Foundation_DataExchange_VariantValueUsesStroikaSharedPtr_ with constanat kVariantValueUsesStroikaSharedPtr_ (modules readiness)
    • Added a bunch of [[maybe_unused]] attributes to silence compiler warnings when I tried using highest warning level
    • if constexpr, and other small cosemtic cleanups to avoid msvc compiler warnings
  • Change (mostly lose, sometimes add) compiler bug workarounds (mostly) because we no longer support the old compilers (in Stroika v2.1 branch)
    • ADD qCompiler_cpp17InlineStaticMemberOfTemplateLinkerUndefined_Buggy - and workaround only for macos/darwin - use C++14 isntead of 17 by default but turn on IGNORE Wc++17-extensions compiler option so I can use C++17 features (not perfect but maybe best I can do)
    • Lose iƒ qCompilerAndStdLib_glibc_stdfunctionmapping_Buggy bug workaround, since we no longer support gcc5 (C++17 min)
    • Lose qCompilerAndStdLib_constexpr_functions_cpp14Constaints_Buggy bug workaround - since only used for gcc5, and thats no longer supported by Stroika v2.1
    • Lose qDecoratedNameLengthExceeded_Buggy define - obsolete
    • lose qCompilerAndStdLib_has_include_Buggy define - no longer needed
    • Lose qCompilerAndStdLib_DefaultCTORNotAutoGeneratedSometimes_Buggy cuz only used for clang XCode 8 on macos, and we dont support that anymore for the stroika v2.1 branch
    • lose bug define qCompilerAndStdLib_SFINAE_SharedPtr_Buggy because only for XCode 8, and we no longer support it (clang8 macos)
    • lose unused compiler bug workaround qCompilerAndStdLib_deprecated_attribute_itselfProducesWarning_Buggy - and was only for gcc5 not supported any longer
    • Lose qCompilerAndStdLib_complex_templated_use_of_nested_enum_Buggy bug workaround define cuz we no longer support gcc5
    • Lose bug define qCompilerAndStdLib_TemplateCompareIndirectionLevelCPP14_Buggy cuz only broken on gcc5, and thats not supported anymore for Stroika v2.1 branch
    • Lose qCompilerAndStdLib_SFINAEWithStdPairOpLess_Buggy bug workaround cuz no longer support clang39, nor XCode 8 (clang8 for macos)
    • Lose obsolete qCompilerAndStdLib_IllUnderstoodSequenceCTORinitializerListBug bug define cuz we no longer support gcc5, and that was the only compiler with this issue
    • New qCompiler_InlineStaticMemberAutoDefined_Buggy and workaround (gcc6)
    • lose qSupportDeprecatedStroikaFeatures define - [[deprecated]] warnings are a better way to handle this issue
    • new qCompilerAndStdLib_MaybeUnusedIgnoredInLambdas_Buggy define, and related Lambda_Arg_Unused_BWA(x) workaround; and lose obsolete Arg_Unused, and use alot of [[maybe_unused]]; lose obsolete qSTLTemplatesErroniouslyRequireOpLessCuzOfOverExpanding and Led_Arg_Unused
  • Led cleanups (spurred by use of Level4 warning level)
    • more warnings cleanups for Led code - bigish(not fully backward compat) change is to Led_ClipFormat
    • several warnings corrected - related to 32/64 bit windows - big chagnes to IME API (fixes) for Led, and a few other casts, changes of type for Win64
  • ThirdPartyComponents
    • use curl 7.60
    • Get functioning with openssl 1.1.1 pre(7) - but dont enable cuz 1.1.1 not yet released
    • Cleanup openssl makefile: do build/patch in IntermediateFiles/CONFIG/Th.../openssl/
    • maybe fixed makefile for 64 bit windows openssl
    • Minor tweaks to Xerces makefile
  • Clenaup Test makefiles
  • Mark STL::Compare::Equals () functions as deprecated (use std::equals())
  • replaced use of STL::Equals() with STL::equal - and redo API slightly (replacing deprecated function)
  • re-instate SharedStaticData with better docs about why its useful/where its used
  • Switch all VisualStudio.Net builds to use highest warning level - Level4 (from Level3) and fixed many of the warnings
  • Fixed serious bug I had found with String::InsertAt because of VS2k17 Level4 Warnings
  • Logger::Log() and Logger::LogIfNew - now take 'format' argument as const wchar_t* instead of String, because objects that cannot be passed through ... appearnetly illegal to use with va_start
  • fixed poentially serious bugs with DataStructures/DoublyLinkedList.inl - assign in assert whihc should have been check equals!
  • renamed a few regression tests from gcc to g++, and other naming consistency improvements
  • MS_VS_2k17_15Pt7Pt3 support; and tweak messages about pre-c++17 compiler flags
  • Lose Salt parameter from WinCryptDeriveKey - never neeeded/used
  • a few minor tweaks to ReserveSpeedTweekAddNCapacity/ReserveSpeedTweekAddN - cleanup param names, and fixed one missing pass of arg param minChunk to next level function down (caught by compiler warning chekcins - level 4 - in msvc)
  • fixed serious bug in InternetMediaTypeRegistry::GetPreferredAssociatedFileSuffix () - noticed by MSVC level 4 warnings
  • Fixed possible leak in GetMountedFilesystems_Windows_ () due to name duplication/mistake
  • String::ReplaceAll overload for RegularExpression no longer takes CompareOptions cuz you use that to construct the RegularExpression
  • use alignas (double) instead of union trick for clarity and avoid compiler warning
  • HistoricalPerformanceRegressionTestResults/PerformanceDump-{Windows_VS2k17,Ubuntu1804_x86_64,MacOS_XCode9.3}-2.1d1.txt
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Windows_VS2k17,Ubuntu1804_x86_64,MacOS_XCode9.3}-2.1d1-OUT.txt
    • vc++2k17
    • MacOS, XCode 9.3 (apple clang 9.2)
    • gcc 7
    • gcc 8
    • clang++6 (ubuntu) {libstdc++ and libc++}
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined, gcc7, gcc8
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined,thread and debug/release builds on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
v2.0a234
2018-05-26
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a233...v2.0a234
  • Compiler versions supported
    • support _MS_VS_2k17_15Pt7Pt2_
    • gcc8 (x86 and arm)
  • WebServer ConnectionManager
    • https://stroika.atlassian.net/browse/STK-638 - use fewer threads in pool - and only use thread when executing body of request (use epoll instead of lots of read)
      • maintain list of exsitng connections (for single epoll thread)
      • WebServer ConnectionManager use thread interruption to wakeup waitiothread when new connection added to list of those that could get more data
      • Changed default max connections from 10 to 25
      • Dramtically decreased default number of threads used by default
      • Added fixed thread for WaitForReadyConnectionLoop_()
      • Keep list of active connections on two lists - one for in process and one for waiting for data
      • MessageStartTextInputStreamBinaryAdapter::AssureHeaderSectionAvailable () implemented (to help avoid issue of reads blocking threads while header not fully present)
      • keep special connectionreader stream around associaed with connection til we finish reading the headers - incomplete but progress towards supporting defence against incomplete headers in request
    • Cleanups to WebServer Connection ToString methods
    • Minor cleanups to Frameworks/WebServer, and fixed bug with FileSystemRouter - stripping filename prefixes
    • WebServer Request GetBodyStream() now uses InputSubStream::New () - so other code can now get body as a stream instead of a BLOB (and still only placeholder for transfer-codings); still not well done but better
    • Add calls to curl to sample output for WebServer sample
  • Threads
    • new Thread::CleanupPtr utility, and use in a bunch of places instead of explicit DTORs with if thread != null { suppress; and aboortandwiat"}
    • **MAJOR change** to Windows Thread Interruption - no longer does throw from APC proc, but better documented that all the windows alertable functions return WAIT_IO_COMPLETION when proc queued, and so just check and throw afterwards. APPEARS to (perhaps) workaround some bug with WSAPoll - but not sure -didnt dig too far into it - this seemed safter (but NOT fully backward compatible - so be CAREFUL)
  • Streams
    • InputStream now allows call to GetReadOffset/GetOffset () for non-seekable streams. added Require() docs/code for Seek() calls for InputStream so more clear requiremnt. Doc no such requiremnt got GetOffset(). Support GetReadOffset() for SocketStream, and BufferedInputStream
    • new Streams::InputSubStream template
    • Clarify docs on InputStream::Seek () - no real change - except for seek past end now EOFException instead of range_error
  • Socket IO Code
    • qStroika_Foundation_Exececution_WaitForIOReady_BreakWSAPollIntoTimedMillisecondChunks - workaround for WSAPoll() issue being interuppted. Especially since change to having interupption not throw (but maybe true anyhow) - it appears to be needed to repeat/re-poll at quick intervals to make this work right on windows
    • renamed ConnectionOrientedSocket -> ConnectionOrientedStreamSocket
    • assertion checking to assure Socket::REad (and REadNonBlocking) done so no 2 threads at once do it
    • Fixed Socket::Ptr::Detach () to match my docs - and affect the udnerlying REP object; and updated much of the docs
    • ConnectionOrientedStream: Read/Write/REadNonBlocking/Connect - virtual rep methods now const, so can be called at the same time as GetPeerAddress (which is key cuz that gets called in ToString - want to be able to ToString() while a Read going on in another thread
    • Fixed serious bug (misinterpration of timeout) on WaitForIOReady. And changed API for WaitForIOReady::WaitQuietlyUntil () to return set, not optional (zero returned means timeout so no need use optional to distinguish timeout case.
  • Configure
    • more variants of MSFT uname -r which dont support sanitizers by default
  • ThirdPartyComponents builds
    • Cleanup to boost makefile - always extract from tarfile instead of copying from CURRENT
    • Xerces - restructure makefile so files extracted to IntermediateFiles (no build from CURRENT)
    • Xerces - use gnuiconv for xerces even on unix, to avoid issue with xerces pkg-config --libs not including the right libs
    • Xerces - Lose CMAKE flag in building Xerces - just always use CMAKE to build it
  • Compile bug define changes
    • Lose qCompilerAndStdLib_StaticAssertionsInTemplateFunctionsWhichShouldNeverBeExpanded_Buggy bug workaround define: just dont define those detault templates (appears to not be legal C++ despite the fact that they should never be expanded)
    • get rid of qCompilerAndStdLib_copy_elision_Warning_too_aggressive_when_not_copyable_Buggy bug define and workaround - temporary binds to R&& and so no need for move() call
    • added qCompilerAndStdLib_TemplateTypenameReferenceToBaseOfBaseClassMemberNotFound_Buggy workaround- for VS2k16.7.1
  • Containers
    • Collection<> operator+ overload
    • Draft Bijection:: WhereRangeIntersects, WhereDomainIntersects, Where
  • minor improvements to InternetAddress constexpr use - for qCompilerAndStdLib_constexpr_union_variants_Buggy workaround mitigation
  • due to https://stroika.atlassian.net/browse/STK-654 disable asan for gcc8.1 (my) configuration in regression tests
  • made a few Iterator/Iterable<> methods constexpr (getemptyiterator etc)
  • Optional - switch to using has_value instead of IsMissing/IsPresent() - still support others (not yet deprecated) - but leaning towards transitioning to std::optional once we require C++17
  • changed max time value on Sequence_DoublyLinkedList versus vector - appears vs2k17 vector code got faster
  • no address sanitizer on gcc8 - even builtin one (til I can understand/resolve the stack-refernece-sanitizer errror)
  • HistoricalPerformanceRegressionTestResults/PerformanceDump-{Windows_VS2k17,Ubuntu1604_x86_64,Ubuntu1804_x86_64,MacOS_XCode9.3}-2.0a234.txt
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Windows_VS2k17,Ubuntu1604_x86_64,,Ubuntu1804_x86_64,MacOS_XCode9.3}-2.0a234-OUT.txt
    • vc++2k17
    • MacOS, XCode 9.3 (apple clang 9.2)
    • gcc 5.4 (because used in Ubuntu 1604 - most recent LTS release; probably losing support for this soon)
    • gcc 6.4
    • gcc 7.2/7.3
    • gcc 8
    • clang++3.9.1 (ubuntu) {libstdc++}; probably losing support for this soon
    • clang++4.0.1 (ubuntu) {libstdc++ and libc++}; probably losing support for this soon
    • clang++5.0.0 (ubuntu) {libstdc++ and libc++}
    • clang++6 (ubuntu) {libstdc++ and libc++}
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined, gcc6, gcc7
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined,thread and debug/release builds on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
v2.0a233
2018-05-04
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a232...v2.0a233
  • updated primary regression testing machine from ubuntu 1710 to 1804
    • fixed https://stroika.atlassian.net/browse/STK-628 helgrind workaround (for ubuntu 1804)
    • simplify the helgrind exception for https://stroika.atlassian.net/browse/STK-628 so works on newer compilers
  • clang++6 support
  • Big change to variables listed in ConfigurationFiles/CONFIGNAME.xml, and what is computed in SharedMakeVariables-Default.mk
    • Mostly - compute what headers/libs we are using in configuraiton script and not in SharedMakeVariables-Default.mk (not entirely but more so)
    • **NOT BACKWARD COMPAT** - Change linker makefile args in apps to $(Linker) $(StroikaLinkerPrefixArgs) -o $(TARGETEXE) $(Objs) $(StroikaLinkerSuffixArgs)
    • new Configuraiton variables INCLUDES_PATH, LIBS_PATH, and LIB_DEPENDENCIES
    • configure --append-lib-dependencies
    • llvm-ar and llvm-ranlib autodetected by Configuration script
    • new --stdlib option to configure
    • new --cpppstd-version configure flag
    • fill in default value for INCLUDES_PATH in config files based on defined features
    • changed sqlite and lzma library names for unix to conform with usual convention so works with -l
    • move some c++ lib stuff from EXTRA_SUFFIX_LINKER_ARGS to LIB_DEPENDENCIES
    • obsoleted predefined makefile variable Includes - and instead append -I to CFLAGS
    • use config file generated INCLUDES_PATH_COMPILER_DIRECTIVES in makefiles in place of individual adding of some entries in SharedMakeVariables-Default.mk
    • more changes to the set of compilers we run regression tests on (prefer clang++-5 over my private build of clang - former more likely/commonly used)
  • Simplify macro compiler bug testing/defines system
    • avoid check of __GNUC_MINOR for GCC7 checks - and maybe in general in the future - unless clearly needed. Maybe simpler to maintain if we assume the point release dont change much of these values (in the past they rarely have)
    • make __clang_major compiler bug define tests less restrictive (dont check __clang_minor__); and hopefully fixed qCompilerAndStdLib_glibc_stdfunctionmapping_Buggy for gcc 5
    • qCompilerAndStdLib_template_extra_picky_templatetypenametemplate_Buggy obsolete - found a way to rewrite that works with both compilers
    • lose qCompilerAndStdLib_noexcept_declarator_in_std_function_Buggy bug define - this just isn't legal C++ (https://stackoverflow.com/questions/41293025/stdfunction-with-noexcept-in-c17); probably should be - but isn't; and no obvious plans to change so just accomodate
  • Fixed several missing virtual DTOR base classes (detected by clang++6)
    • fixed missing virtual _IRep dtor on Compression/Reader
  • Switching (soon not yet this release) to require C++17 or later
    • use just c++17 for more configurations, and now the default c++ version generated by configure script (unless using old C compiler not yet supporting)
    • use of set_unexpected support since removed in C++17
  • reinstate ScriptsLib\RunMKLinkViaUAC.bat since needed still on some windows installs (not sure - I have two - one needed one not - unsure what the difference is)
  • Also treat ERROR_INTERNET_TIMEOUT as generating a Timeout excpetion
  • fixed bug with macos workaraound verison of realpath --canonicalize-misisng (rel paths)
  • HistoricalPerformanceRegressionTestResults/PerformanceDump-{Windows_VS2k17,Ubuntu1604_x86_64,Ubuntu1804_x86_64,MacOS_XCode9.3}-2.0a233.txt
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Windows_VS2k17,Ubuntu1604_x86_64,,Ubuntu1804_x86_64,MacOS_XCode9.3}-2.0a233-OUT.txt
    • vc++2k17
    • MacOS, XCode 9.3 (apple clang 9.2)
    • gcc 5.4 (because used in Ubuntu 1604 - most recent LTS release; probably losing support for this soon)
    • gcc 6.4
    • gcc 7.2/7.3
    • clang++3.9.1 (ubuntu) {libstdc++}; probably losing support for this soon
    • clang++4.0.1 (ubuntu) {libstdc++ and libc++}; probably losing support for this soon
    • clang++5.0.0 (ubuntu) {libstdc++ and libc++}
    • clang++6 (ubuntu) {libstdc++ and libc++}
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined, gcc6, gcc7
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined,thread and debug/release builds on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
    • NOTE - sporadic bug 'pthread_cond_{signal,broadcast}: associated lock is not held by calling thread' - in this release - still to fix
v2.0a232
2018-04-23
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a231...v2.0a232
  • ln -s / MakeDirectorySymbolicLink.sh
    • ScriptsLib/MakeDirectorySymbolicLink.sh reinstate, and fixed, and used again in MakeBuildRoot
    • lose obsolete ScriptsLib\RunMKLinkViaUAC.bat,
    • re-order slashes in ScriptsLib/MakeDirectorySymbolicLink.sh - so expects unix order slashes
  • WebServer ConnectionMgr - kDefault_MaxConnections{10} - temporarily - until we can fix https://stroika.atlassian.net/browse/STK-638
  • Fixed TimedCache use of new INORDERCOMPARER code
  • lose stuff deprecated in 2.0a227: Timezone_kUnknown, GetTimezone, IsDaylightSavingsTime, GetLocaltimeToGMTOffset, TimeOfDay_kMin, TimeOfDay_kMax, etc
  • Fixd SAXParser on parse errors, to throw BadFormatException (instead of assertnotreached)
  • There was a bug in the last release with confusion about overloads for Set constructor - constructor from other container versus comparer - so fixed IsPotentiallyComparerRelation () to be more restrictive
  • HistoricalPerformanceRegressionTestResults/PerformanceDump-{Windows_VS2k17,Ubuntu1604_x86_64,Ubuntu1710_x86_64,MacOS_XCode9.2}-2.0a232.txt
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Windows_VS2k17,Ubuntu1604_x86_64,,Ubuntu1710_x86_64,MacOS_XCode9.2}-2.0a232-OUT.txt
    • vc++2k17
    • MacOS, XCode 9.2 (apple clang 9.2)
    • gcc 5.4 (because used in Ubuntu 1604 - most recent LTS release)
    • gcc 6.4
    • gcc 7.2
    • clang++3.9.1 (ubuntu) {libstdc++}
    • clang++4.0.1 (ubuntu) {libstdc++ and libc++}
    • clang++5.0.0 (ubuntu) {libstdc++ and libc++}
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined, gcc6, gcc7
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined,thread and debug/release builds on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
v2.0a231
2018-04-19
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a230...v2.0a231
  • Major rework of Compare objects in Stroika, and (nearly) call containers
    • https://stroika.atlassian.net/browse/STK-642
    • Use term ThreeWayComparer for old Compare API
    • Fully support existing stdc++ compare objects, like less, in containers - either by type or value - so you can use lambdas etc to be compare objects
    • Lose most of the TRAITS from containers - sort and equals now done by assigned object in CTOR for container.
    • New ComparisonRelationType and traits-like mechanism for these comparers, along with adapters leveraging this to convert.
    • Old compare APIs all deprecated (but they were rarely used outside of Stroika internals)
    • https://stroika.atlassian.net/browse/STK-651 experiment with IsAddable member template
    • Many other container cleanups (esp CTOR)
    • ComparisonRelationDeclaration
    • String::LessCI/EqualsCI, comparison functors
    • Minor container performance tweak and noted more todo - https://stroika.atlassian.net/browse/STK-645
  • Supported Compilers
    • Support _MS_VS_2k17_15Pt6Pt0_ Vs 2k17 15.6.0 - no bugfixes found (of our identified bugs)
  • ProcessRunner
    • enhanced POSIX ProcessRunner code to capture the trailing bits of the stderr, and include them in the error message; and otherwise reformattied teh default error message
    • tweaks to Execution::DetachedProcessRunner () docs on daemonizing, chdir, etc.
    • improved erro message report from ProessRunner for posix
  • Samples
    • On UNIX, change naming to be Samples-XX, instead of Samples_XX - to match what we did on windows
    • sample webserver exe-relative dir for html folder - makefile + code
  • Framework::WebServer/WebService
    • qStroika_Framework_WebServer_Connection_DetailedMessagingLog - dump transaction log to /tmp of connections
    • simplifided if (thisMessageKeepAlive) { case of http webserver - cuz if no content length (and we dont support transfercoding) -
    • chagned behavior of WebServer HTTP Request GetBody when no HTTP header. Documented that we MSUT either supprot tranfer encoding (which we dont) or it must be empty (at least for http 1.1). So change of behavior (used to readall). Docuemtned todo fix
    • use WebServer/ClientErrorException in a few more palaces in WebService framework
    • WebService::Server::ExpectedMethod () now takes iterable (cuz must do case insensitive compare of strings) -and does that - and now reports better message
  • Streams
    • new class LoggingInputOutputStream (to help debug stream IO - like socket IO - code)
    • OutputStream<>::WriteLn
    • Added InputOutputStream accessor for IsReadOpen/IsWriteOpen
    • SplitterOutputStream<>
  • Build System changes
    • Start including more lib dependencies (for stuff like fs extensions in libstdc++) - into CONFIG file (generated with configure) instead of #includes common-variables .mk file
    • unix makefile hack to StroikaLibsWithSupportLibs listing $(EXTRA_LINKER_ARGS) a second time - need to have some libs args listed at start, and some at end (NOTE- this is a tmphack and needs alot of rework)
    • Lose obsolete ScriptsLib/MakeDirectorySymbolicLink.sh now that microsoft (Appears to) support ln -s properly
    • remove some obsolete files (intermediatefiles/activeconfig/library/*.mk) from ApplyConfiguraiton
    • Improved ScriptsLib/GetMessageForMissingTool.sh for MacOSX
    • workaround https://stroika.atlassian.net/browse/STK-643 boost broken on windows with hack to disable boost by default on windows:
  • IO::FileSystem
    • Started DIRECTLY using std::filesystem, and deprecating some of my duplicate (and incomplete) Filesystem APIs
    • FileOutputStream - default is eUnBuffered
    • used BOOST on macos - because filesystem support doesnt work on their compilers
    • use std::filesystem::path in FSRouterRep_
  • ThirdPartyComponents
    • curl 7.47.1
    • boost 1.67.0
    • update sqlite version to 3.23
    • 3.2.1 version of Xerces
    • curl makefile tweaks (fix makefile for more use of pkg-config etc)
  • Added (experiemntal) concept is_iterator; Concept 'is_callable<> added
  • fixed serious bug with String::FromISOLatin1 ()
  • Tweaks to PIDLoop () - code - exception handling, trace messages, autostart, etc
  • operator bool () for Ptr classes (Stream::Ptr,Thread::Ptr,SharedPtr)
  • https://stroika.atlassian.net/browse/STK-644 helgrind warning suppression/workaround
  • Clenaup Iterable<>::OrderBy - docs and name inordercompaer etc
  • https://stroika.atlassian.net/browse/STK-650 qStroika_Foundation_Characters_StillDependOnDeprecatedCodeCvtUtf8 warning suppression
  • qCompilerAndStdLib_template_extra_picky_templatetypenametemplate_Buggy
  • InternetMediaTypeRegistry use of Bijection was inappropriate
  • HistoricalPerformanceRegressionTestResults/PerformanceDump-{Windows_VS2k17,Ubuntu1604_x86_64,Ubuntu1710_x86_64,MacOS_XCode9.2}-2.0a231.txt
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Windows_VS2k17,Ubuntu1604_x86_64,,Ubuntu1710_x86_64,MacOS_XCode9.2}-2.0a231-OUT.txt
    • vc++2k17
    • MacOS, XCode 9.2 (apple clang 9.2)
    • gcc 5.4 (because used in Ubuntu 1604 - most recent LTS release)
    • gcc 6.4
    • gcc 7.2
    • clang++3.9.1 (ubuntu) {libstdc++}
    • clang++4.0.1 (ubuntu) {libstdc++ and libc++}
    • clang++5.0.0 (ubuntu) {libstdc++ and libc++}
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined, gcc6, gcc7
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined,thread and debug/release builds on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
v2.0a230
2018-03-05
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a229...v2.0a230
  • Fixed ConnectionOrientedSocket::ReadNonBlocking () - was returning 1 when EOF was available - but thats WRONG. Return 0 in that case
  • Tweaks to support tsan (thread sanitizer)
    • tsan now fully works with Stroika. The biggest remaining issue is that tsan doesn't work with ASAN so hard to fit with just one 'debug' configuration
    • gcc-release-thread-sanitize config needs --lto disable like gcc-release-address-sanitize (compiler / linker bug)
    • SharedStaticData deprecated
    • adjustments to sanitizer regresiosn test configs
    • redo Debug/AssertExternallySynchronizedLock MUTEX definition - no longer using obsolete SharedStaticData - instead just using function to access object which controls timing of create automatically; and documented better what the mutex protects
    • blockallocation works fine with --sanitze thread and --assertions enabled
    • Foundation::Execution::Threads (../Builds/gcc-basic-threadsanitize/Test38) WARNING: ThreadSanitizer: data race (pid=19396) Write of size 1 at 0x7ffd1a6307d8 by main thread: #0 Stroika::Foundation::Execution::ThreadPool::Abort_() /home/lewis/Sandbox/Stroika-Regression-Tests/Library/Sources/Stroika/Foundation/Execution/ThreadPool.cpp:378 (Test38+0x00000011ce81) .. Previous read of size 1 at 0x7ffd1a6307d8 by thread T3: #0 Stroika::Foundation::Execution::ThreadPool::WaitForNextTask_(Stroika::Foundation::Execution::Function*) /home/lewis/Sandbox/Stroika-Regression-Tests/Library/Sources/Stroika/Foundation/Execution/ThreadPool.cpp:433 (Test38+0x00000011d645) So try making fAborted_ atomic. Not a real bug, but may eliminate this warning, and sb safe/reasonable.
  • String
    • StringBuilder supports assignemnt from String
    • Fixed serious bug iwth String::FromISOLatin1 ()
    • refactor and add overload for String::FromISOLatin1/2
  • HTTP WebServer
    • https://stroika.atlassian.net/browse/STK-637: HTTP Keep-Alives (complete but only modestly tested)
    • other cleanups to WebServer framework - docs etc
    • Simplified SSDP webserver usage - now clearer and cleaner (still doesnt use keepaives but on purpose).
    • Cleanup WebServer Connection::ReadHeaders_ () - private static returns bool instead of throw on common failure due to EOF
    • In keepalive handling - default on/off according to http 1.1, etc. And if known content length (if not force off).; support 'remaining' countdown - with remaining info captued by keep-alives header
    • Overload for Interceptor CTOR taking lambdas (for simpler use - done in SSDP example).
    • HTTP WebServer - Request object SetHTTPVersion impl; and renamed GetSpecialHeaders -> GetHeaders (); and in ToString () use GetEffectiveHeaders ()
    • Deprecated Connection::Close () (websever)
    • changed kDefault_AutomaticTCPDisconnectOnClose from 5 to 2 (since this happens not infrequently talking to chrome and it can cause threads to get eaten up in the short term
    • WebServer ToString support: Message, Request, Response, MessageStartTextInputStreamBinaryAdapter
    • Improved defaults for WebServer ConnectionManager - ComputeThreadPoolSize_ () and ComputeConnectionBacklog_ ()
    • in response to report from John - futher improved CORSModeSupport::eSuppress code. I added kAccessControlAllowMethods (his request); but at the same time, fixed code so ONLY reports other than allow-origin for PREFLIGHT (OPTIONS) requests, and added more headers and Access-Control-Max-Age
    • WebServer::Connection USE_NOISY_TRACE_IN_THIS_MODULE_ extra logging
    • WebBrowser: When the connection is completed, make sure the socket is closed so that the calling client knows as quickly as possible (not just when last object ref goes away).
    • MessageStartTextInputStreamBinaryAdapter::Rep_ now uses AssertExternallySynchronizedLock instead of regular mutex - and documented as such - threadsafetyrules, IO::Network::HTTP::MessageStartTextInputStreamBinaryAdapter changed to follow New/Ptr pattern; and added ToString() method on PTR (for debugging). NOT backward compat
  • ThirdPartyComponents
    • use Boost 1.66.0
  • Improve and add regtests for Set<>::Where - esp docs
  • new Mapping<>::Where overload (hiding Iterable one - updating return type and overload for diff functions); and added related Mapping<>::WithKeys method
  • Cleanups for KeyValuePair<> - but incomplete
  • Support Socket::Ptr::ToString ()
  • Allow VirtualConstant<>::operator-> and document it a bit more
  • Socket::Ptr Compare/Equals - use shared_ptr compare instead of compare on NativeSocket
  • Add default value for USE_TEST_BASENAME to ScriptsLib/RunPerformanceRegressionTests.sh
  • HistoricalPerformanceRegressionTestResults/PerformanceDump-{Windows_VS2k17,Ubuntu1604_x86_64,Ubuntu1710_x86_64,MacOS_XCode9.2}-2.0a230.txt
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Windows_VS2k17,Ubuntu1604_x86_64,,Ubuntu1710_x86_64,MacOS_XCode9.2}-2.0a230-OUT.txt
    • vc++2k17
    • MacOS, XCode 9.2 (apple clang 9.2)
    • gcc 5.4 (because used in Ubuntu 1604 - most recent LTS release)
    • gcc 6.4
    • gcc 7.2
    • clang++3.9.1 (ubuntu) {libstdc++ and libc++}
    • clang++4.0.1 (ubuntu) {libstdc++ and libc++}
    • clang++5.0.0 (ubuntu) {libstdc++ and libc++}
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined, gcc6, gcc7
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined,thread and debug/release builds on tests
    • ONE INNCUOUS REGTEST REPORT ON WINDOWS - PERFORMANCE - IGNORED
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
v2.0a229
2018-02-19
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a228...v2.0a229
  • Exeuction/Thread/Syncrhonization
    • https://stroika.atlassian.net/browse/STK-484 possible fix - waitableevent - may need extra mutex lock on read (found with tsan)
    • WaitableEvent - Lose obsolete workarounds for https://stroika.atlassian.net/browse/STK-484
    • added type aliases for SignalHandler types
  • Various sanitizer related cleanups
    • (Minimally) support thread sanitizer
      • Improved Test1_MultipleConcurrentReaders test - so test that RW does support mutiple readers, but regular Synchonized<> does not
      • RegressionTest18_RWSynchronized_ and Test1_MultipleConcurrentReaders - rewroite to not use extra mutex, and other means to check for multiple readers working. https://stroika.atlassian.net/browse/STK-484 - testing but I think gcc-basic-threadsanitize is now working.
      • lose no longer needed //Stroika_Foundation_Debug_ValgrindDisableHelgrind in a few places due to TSAN driven cleanups
      • cleaned up signal handler regtests - so pass TSAN and helgrdind with fewer suppressions
      • Enhanced Test1_Basic_ regtest to hopfully workaround/fix TSAN reported error about race writing to variable
      • remove data race in blockingqueue regtests, which silences a few warnings from tsan (and removes need for helgrind workarounds) - https://stroika.atlassian.net/browse/STK-481
    • for https://stroika.atlassian.net/browse/STK-601 and clang++ - try Stroika_Foundation_Debug_ATTRIBUTE_NO_SANITIZE(vptr) isntead of function
    • failed attempt at getting tsan to pass (use no_sanitize(thread))
    • fixed qCompiler_noSanitizeAttribute_Buggy define
    • for https://stroika.atlassian.net/browse/STK-601 disable function on latest clang bug vptr on macos clang
    • document/touch up qCompiler_noSanitizeAttribute_Buggy
    • new Foundation/Debug/Sanitizer module
    • https://stroika.atlassian.net/browse/STK-500 - qCompiler_SanitizerVPtrTemplateTypeEraseureBug to workaround issue with address - santizer vptr subfeature.
    • makefile doc comment about Compiler_Sanitizer_stack_use_after_scope_on_arm_Buggy - SEE https://stroika.atlassian.net/browse/STK-500
    • https://stroika.atlassian.net/browse/STK-500 - different workaround for (now) stack-use-after... on ARM only - disabled use of address sanitizer as workaround - not worth finding better kludge / workaround (hard)
    • remove qCompiler_SanitizerVPtrTemplateTypeEraseureBug workaround - for reasons I don't follow - it doesn't appear needed anymore
    • qCompiler_SanitizerFunctionPtrConversionSuppressionBug - re-enabled the ./configure workaround; better documented the bug in ObjectVariantMapper::MakeCommonSerializer_ForClassObject_ (); better documetned / linkd to JIRA ticket https://stroika.atlassian.net/browse/STK-601 ; and removed some hacks used to debug/track this issue down
    • suppress warning about stack-use-after-scope - qCompiler_Sanitizer_stack_use_after_scope_on_arm_Buggy
    • if set any --sanitize flags - then dont add in default values (just ones explicitly set) - from ./configure
  • VariantValue
    • Minor cleanup to VariantValue class (mirroed with constexpr the type names in the variantValue class)
    • Allow VariantValue::As () - for ALL types and document as such.
  • Build and Regression Test Scripts
    • Configuration building and other perl scripts improved to include warnings and strict declarations
    • added default value for FEATUREFLAG_librt in configure script (just affects windows)
    • improved behavior of sanize flags wtih configure - using set in perl
    • GetClangVersion_ fix to configure (fixed problem in configure detecting clang version)
    • TOTAL_WARNINGS_EXPECTED=0 in regression tests now
    • in configure script - run SetDefaultForCompilerDriver_() AFTER ParseCommandLine_Remaining_ () so the defaults dont take precedence over the overrides
    • Minor tweak to configure script for default sanitizer inclusion
    • regression test script cahgnes to NOT include output about valgrind if not running valgrind; and added total ERRORs output
    • cosmetic cleanup to Boost makefile output
  • JSON Reader/Writer
    • JSONWriter - refactor a bunch of cases that write string to go through same case (and document we handle ALL VariantValues since all can be coereced to string)
    • JSONWriter option fAllowNANInf
    • And documented better our handling and requirements for JSONWriter.
  • ModuleGetterSetter<>
    • regression test for ModuleGetterSetter_
    • deprecated ModuleGetterSetter<>::SynchonizedUpdate () and replaced it with a better ModuleGetterSetter<>::Update () - which only conditionally (if needed) updates the global data - but the same method works to unconditionally update the data
  • added overload for String ToString (const char* t)
  • minor constexpr cleanups for Atom<> class
  • fixed copyright date
  • minor cleanups to Date/DateTime code/
  • Avoid use of It turns out, .200s anyhow, since the use was pointless, and it was producing valgrind errors
  • Lose qStdLibSprintfAssumesPctSIsWideInFormatIfWideFormat define - just always assume true (standards conformant)
  • changed Stroika::Foundation::Debug::Private_::Assertion_Failure_Handler_ () so it no longer warns in gcc since I cannot figure out how to suppress the warning. Just call std::quick_exit() at the end. Probably not what I would have preferred, but reasonable - Support qCompilerAndStdLib_quick_exit_Buggy
  • OptionsFile::mkFilenameMapper () shouldnt return const object (no reason for const I can think of)
  • HistoricalPerformanceRegressionTestResults/PerformanceDump-{Windows_VS2k17,Ubuntu1604_x86_64,Ubuntu1710_x86_64,MacOS_XCode9.2}-2.0a229.txt
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Windows_VS2k17,Ubuntu1604_x86_64,,Ubuntu1710_x86_64,MacOS_XCode9.2}-2.0a229-OUT.txt
    • vc++2k17
    • MacOS, XCode 9.2 (apple clang 9.2)
    • gcc 5.4 (because used in Ubuntu 1604 - most recent LTS release)
    • gcc 6.4
    • gcc 7.2
    • clang++3.9.1 (ubuntu) {libstdc++ and libc++}
    • clang++4.0.1 (ubuntu) {libstdc++ and libc++}
    • clang++5.0.0 (ubuntu) {libstdc++ and libc++}
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined, gcc6, gcc7
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined, and debug/release builds (tried but not working threadsanitizer) on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
v2.0a228
2018-01-29
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a227...v2.0a228
  • Compiler Support
    • Support VisualStudio.net 2k17 15.5.5
  • Xerces makefile - fix windows regression - had messed up debug symbols (and more)
  • ThirdPartyComponents
    • use libcurl version 7.58.0
    • 3.22 sqlite
  • String
    • Fixed several char_32_t bugs in UTF8Converter
    • use https://github.com/codebrainz/libutfxx/blob/master/utf/ConvertUTF.* to improve UTF8 conversion code
    • String::FromUTF8 () - rewrite using UTF8Converter - so should be faster
    • In UTF8Converter - use constexpr instead of const(
    • Added String::FromISOLatin1 () support, and documented this can be used for any random string of characters safely
    • renamed String::FromAscii to String::FromASCII; FromAscii deprecated
  • Frameworks::WebServer
    • WebServer::ConnectionManager::Options now has option for fTCPBacklog and changed default to 3/4 of maxConnections
    • Cleanup and docs and todo items on WebServer Connection and ConnectionManager class
  • reviewed https://stroika.atlassian.net/browse/STK-494 (spinlock/atomic_thread_fence) and various issues and C++ spec/docs. Decided this code was correct and updated docs with clearer justifications as to why.
  • On CYGWIN - dont use -j10 by default
  • https://stroika.atlassian.net/browse/STK-381 - Deprecate constviagetter; replace with VirtaulConstant; used successfully in PredefinedInternetMediaType
  • Minor cleanups to Led FindClosestColorInColorTable code
  • Doc-comments and cleanups
  • HistoricalPerformanceRegressionTestResults/PerformanceDump-{Windows_VS2k17,Ubuntu1604_x86_64,Ubuntu1710_x86_64,MacOS_XCode9.2}-2.0a228.txt
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Windows_VS2k17,Ubuntu1604_x86_64,,Ubuntu1710_x86_64,MacOS_XCode9.2}-2.0a228-OUT.txt
    • vc++2k17
    • MacOS, XCode 9.0 (apple clang 9.0)
    • gcc 5.4 (because used in Ubuntu 1604 - most recent LTS release)
    • gcc 6.4
    • gcc 7.2
    • clang++3.9.1 (ubuntu) {libstdc++ and libc++}
    • clang++4.0.1 (ubuntu) {libstdc++ and libc++}
    • clang++5.0.0 (ubuntu) {libstdc++ and libc++}
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined, gcc6, gcc7
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined, and debug/release builds (tried but not working threadsanitizer) on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
v2.0a227
2018-01-22
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a226...v2.0a227
  • improve makefile output from xerces build/logging
  • Time support
    • more docs and validation cleanup to Date/DateTime code - throwing range_error if numbers out of range
    • Implement new policy (halfway) - in Date/DateTime code - (and TimeOfDay but less critical there) - so CTOR requires valid inputs, but operations that could overflow will now thorw range_error instead of overflowing
    • cleanup TimeOfDay - doc that CTOR always requires valid in range input (change for uint32_t overload - docuemnted changed and temp hackward compat/assert)
    • more regtests for datetime issue I encoounted in HealthFrame (diff of days before 1970) - now done mcuh better. And another TimeOfDay constexpr CTOR
    • DateTime::Difference () cleanups
    • Cleanup code - Duration
  • typo in ModuleGetterSetter synchronized update
  • docs improvemnts so clearer why to use String_Constant
  • HistoricalPerformanceRegressionTestResults/PerformanceDump-{Windows_VS2k17,Ubuntu1604_x86_64,Ubuntu1710_x86_64,MacOS_XCode9.2}-2.0a227.txt
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Windows_VS2k17,Ubuntu1604_x86_64,,Ubuntu1710_x86_64,MacOS_XCode9.2}-2.0a227-OUT.txt
    • vc++2k17
    • MacOS, XCode 9.0 (apple clang 9.0)
    • gcc 5.4 (because used in Ubuntu 1604 - most recent LTS release)
    • gcc 6.4
    • gcc 7.2
    • clang++3.9.1 (ubuntu) {libstdc++ and libc++}
    • clang++4.0.1 (ubuntu) {libstdc++ and libc++}
    • clang++5.0.0 (ubuntu) {libstdc++ and libc++}
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined, gcc6, gcc7
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined, and debug/release builds (tried but not working threadsanitizer) on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
v2.0a226
2018-01-21
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a225...v2.0a226
  • Compilers
    • Support VS2k17 15.5.3 compiler (bug defines)
    • Support VS2k17 15.5.4 compiler (bug defines)
  • Date/Time/DateTime/Timezone
    • renamed Time::GetTimezoneInfo to Time::GetCurrentLocaleTimezoneInfo and deprecated old name; Deprecated Time::GetTimezone()
    • https://stroika.atlassian.net/browse/STK-555 - Improve Timezone object so that we can read time with +500, and respect that - FIXED
    • notes/regtest cleanups for https://stroika.atlassian.net/browse/STK-107 workaround
    • Added DateTime::IsDaylightSavingsTime () utility
    • deprecated timezone IsDaylightSavingsTime() and GetLcoaleTimeToGMTOffset - can now use Timezone object directly.
    • new module Foundation/Time/Common - for now - just contains common comments about inherited C++ structures
    • Minor cleanups to datetime deprecation - deprecate less: leave around kMin/kMax and ifdef if they are const or constexpr and just docoment that function always constexpr and kMin/kMax is constexrp only if !qCompilerAndStdLib_static_constexpr_Of_Type_Being_Defined_Buggy
    • replace Timezone::kUTC, kLocalTime, and kUnknown with static constexpr methods UTC (), LocalTime(), and Unknown(); keep existing const names with ifdefs !qCompilerAndStdLib_static_constexpr_Of_Type_Being_Defined_Buggy if they are constexpr or const (so if I eventually figure this out I can fix to use real constants)
    • DateTime move CTOR constexpr; more TimeOfDay CTOR to be constexpr; A couple more DateTime methods & CTORs constexpr
    • Lots of documentation cleanups and review of todo items (Timezone,Date,DateTime,TimeOfDay,Common)
    • New strategy for dealing with qCompilerAndStdLib_static_constexpr_Of_Type_Being_Defined_Buggy: for Date, TimeOfDay, and DateTime - min(), max() are constexpr functions. kMin/kMax still around, but when you need constexpr - use those constexpr functions.
    • Various datetime related docs / comments cleanups.
    • DefaultNames... for a bunch of Date related enums.
    • DateTime....Lose deprecated eFirstDayOfWeek etc...
    • use Date/DateTime/TimeOfDay() ::min()/::max() instead of kMin/kMax - constexpr functions - https://stroika.atlassian.net/browse/STK-635
    • DateTime(time_t) no longer accepts param of timezone - and no longer defaults to UNKNOWN but instead defaults to UTC; and documented time_t being UTC and why
    • progress on https://stroika.atlassian.net/browse/STK-555 - so now I suspect dates with +5:00 at end will capture that offset and it will be used/preserved appropriately (more todo relating to this and need tests, but this is a big step forward with datetime support); qCompilerAndStdLib_Supported_mkgmtime64 define
    • Timezones: workaround for https://stroika.atlassian.net/browse/STK-634; Time::IsDaylightSavingsTime cleanup () - and doc unsupported for current status of Timezone objects;
    • https://stroika.atlassian.net/browse/STK-555 Timezone class improvements - Timezone::GetBiasInMinutesFromUTCType and IsDaylightSavings () overload
    • https://stroika.atlassian.net/browse/STK-555 - start adding support to timezone code for bias-offset
    • minor cleanups to Timezone - constexpr methods
    • Timezone operator= and CTOR copy overloads
  • experiment with constexpr Optional move CTOR (more like stdc++17 optional)
  • Build System/Scripts
    • updated GetMessageForMissingTool for nodejs
    • fixes for make clobber with Tools folder (mostly fix for windows)
    • Minor tweaks to UAC/symblink and long path name checks/warnings (windows specific crap) - cosmetic/comments
    • cleanup boost makefile (so hopefully avoid rebuild some stuff on linux after make clean)
    • docs on direct usage/calls to Scripts\FormatCode.sh
  • https://stroika.atlassian.net/browse/STK-567 - experimental InputStream<>::ReadNonBlocking () feature
    • Draft implementation of ReadNonBlocking () for all remaining uses, except Compression::Zip::Reader...(deflate and inflate)
    • docs/notes for ReadNonBlocking_ReferenceImplementation_ForNonblockingUpstream
    • progress/notes on https://stroika.atlassian.net/browse/STK-567 - zip reader ReadNonBlocking
  • use make_signed_t instead of make_signed<>::type and make_unsigned_t instead of make_unsigned<>::type
  • Docs on ConditionVariable class
  • FormatCode script allows external specification of formatter (conditionally set var)
  • upgraded to clang-format 6 and re-ran make-format
  • fixed Modbus response size for uint16_t (kReadHoldingResisters_, kReadInputRegister_) responses (bug report and fix from John Pringle)
  • Updated copyright notice
  • HistoricalPerformanceRegressionTestResults/PerformanceDump-{Windows_VS2k17,Ubuntu1604_x86_64,Ubuntu1710_x86_64,MacOS_XCode9.2}-2.0a226.txt
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Windows_VS2k17,Ubuntu1604_x86_64,,Ubuntu1710_x86_64,MacOS_XCode9.2}-2.0a226-OUT.txt
    • vc++2k17
    • MacOS, XCode 9.0 (apple clang 9.0)
    • gcc 5.4 (because used in Ubuntu 1604 - most recent LTS release)
    • gcc 6.4
    • gcc 7.2
    • clang++3.9.1 (ubuntu) {libstdc++ and libc++}
    • clang++4.0.1 (ubuntu) {libstdc++ and libc++}
    • clang++5.0.0 (ubuntu) {libstdc++ and libc++}
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined, gcc6, gcc7
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined, and debug/release builds (tried but not working threadsanitizer) on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
v2.0a225
2018-01-04
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a224...v2.0a225
  • improve Bind error message on fail to Bind (socket)
  • Fixes to ScriptsLib/MakeDirectorySymbolicLink.sh (effectively) - rewrote ScriptsLib/RunMKLinkViaUAC.bat so now I think works
  • RegressionTest script refactor/rename
    • Documentation/Regression-Tests.md
    • refactored RegressionTests.sh script so more of the common code done on small regression tests
    • Fixes for RunPerformanceRegressionTests.sh to adapt to recent RunREmote script changes
    • Lose obsolete ScriptsLib/RunPerfTests.bat
    • Lose obsolete ScriptsLib/RunRemoteMacBuild.sh (use MACHINE=lewis-Mac USE_TEST_BASENAME=MacOS_XCode9.2 ./ScriptsLib/RunRemoteRegressionTests.sh instead)
    • more parameterization of RegressionTests.sh and new RunRemoteRegressionTests.sh (eventually to replace RunRemoteMac)
  • Minor String class changes
    • Get rid of String::IRep::Peek() method - and a few related cleanusp/doc improvments (todo items review)
    • String::As<> template supports u16string and u32string
  • Build/Makefile Misc
    • --abbreviate-paths on Boost makefile, and warnings for https://stroika.atlassian.net/browse/STK-633
  • SSDP Client thread mangaement = new API - must check for nullptr
  • cosmetic cleanups on Thread code - docs - and more caseful use of if != nulltr call smartptr method
  • tweak signed/unsigned int types to avoid compiler warnings
  • Makefile and other Script output formatting tweaks (cosmetic)
    • script and makefile output tweaks (space around ..., more use of substitute-vars, etc)
  • HistoricalPerformanceRegressionTestResults/PerformanceDump-{Windows_VS2k17,Ubuntu1604_x86_64,Ubuntu1710_x86_64,MacOS_XCode9.2}-2.0a225.txt
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Windows_VS2k17,Ubuntu1604_x86_64,,Ubuntu1710_x86_64,MacOS_XCode9.2}-2.0a225-OUT.txt
    • vc++2k17
    • MacOS, XCode 9.0 (apple clang 9.0)
    • gcc 5.4 (because used in Ubuntu 1604 - most recent LTS release)
    • gcc 6.4
    • gcc 7.2
    • clang++3.9.1 (ubuntu) {libstdc++ and libc++}
    • clang++4.0.1 (ubuntu) {libstdc++ and libc++}
    • clang++5.0.0 (ubuntu) {libstdc++ and libc++}
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined, gcc6, gcc7
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined, and debug/release builds (tried but not working threadsanitizer) on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
v2.0a224
2017-12-21
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a223...v2.0a224
  • dont depend on C++17 (still require C++14)
  • stdc++17: because std::iterator<> was deprecated in C++17 (crazy) - I restructured (OK improvement) Iterator<> to not subclass from it, but to duplicate the fields. And changed name its template param from BASE_STD_ITERATOR to ITERATOR_TRAITS; and added new DefaultIteratorTraits to replace std::iterator<> (basically identical)
  • upgrade WindowsTargetPlatformVersion from 10.0.15063.0 to 10.0.16299.0
  • stdc++17: shared_ptr<>::unique () now deprecated, so use use_count () == 1 instead
  • Fixed bug with time_t Time::GetLocaltimeToGMTOffset (bool applyDST) which only comes up on Windows in apps that have the TZ variable set.
  • Cleanup qCompilerAndStdLib_noexcept_declarator_in_std_function_Buggy comments
  • lose a few deprecated functions (PickoutParamValues_NEW, PickoutParamValuesBody, _Deprecated_
  • fixed slight buffer overflow bug detected by clang++ in debug builds (testing)- TraceContextBumper CTOR
  • Execution::Synchonized<>
    • QuickSynchronized use SpinLock if qStroika_Foundation_Execution_SpinLock_IsFasterThan_mutex
    • Extra optional parameters for Synchronized_Traits<> - recursive flag, readlock and writelock types
    • draft experimental (pretty incomplete) Synchonized<>::Experimental_UnlockUpgradeLock ()
    • Synchonized<>::Experimental_UpgradeLock2 - and regtest RegressionTest22_SycnhonizedUpgradeLock_ for it; and more docs cleanups on Synchonized
  • Support Building Boost as ThirdPartyComponent
    • supports windows/unix/macos, and cross-compiling (though cross-compiling badly)
    • Still not used/referenced anywhere in Stroika, but probably will for upgrade_mutex
  • Support VS2k17 15.5 release
    • _MS_VS_2k17_15Pt5Pt0_
    • Get rid of qCompilerAndStdLib_union_designators_Buggy bug define. Replace with test for __cpp_designators
    • Support compiler _MS_VS_2k17_15Pt5Pt2_ 15.5.2 - and lose defines for many intermediate MSVC compilers (handled by '<' sign)
  • String
    • better support for utf8, utf16, utf32 support in String, operator+/operator+= and StringBuilder - u, U, u8 literals
    • tmphack disable a couple failing string tests - and come abck and fix or document the bugs (surroate pairs I think)
  • Valgrind/Helgrind
    • Debug::IsRunningUnderValgrind () use to replace some use of #if qStroika_FeatureSupported_Valgrind and some explicit tests of RUNNING_ON_VALGRIND
    • timeout in various tests (if using helgrind), so use a smaller number to avoid helgrind failure (when built for valgrind)
    • tracectx calls to help find timing bottlenecks running under valgrind
    • maybe workaround possible thread startvation issue (speed) with helgrind - Test3_SynchronizedOptional_
    • (kRunningValgrind_) speed tweaks for aparent defect in helgrind
    • valgrind/helgrind cleanups and workaround for https://stroika.atlassian.net/browse/STK-632
  • Build/RegTests/Scripts
    • use -j10 by default in regtests
    • added gcc-6-debug-c++17 config cuz having trouble building gcc 6 on ununtu 17.10
    • Added GetCompilerArch.sh scipt
    • support Configuration ARCH field - automatically computed - but command-line overridable (e.g. --arch x86)
    • fixed checking for missing clang-format
  • HistoricalPerformanceRegressionTestResults/PerformanceDump-2.0a224-{Windows-x86-vs2k17,linux-gcc-7.2.0-x64,MacOS-x86-XCode9}.txt
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Linux,Ubuntu1604,MacOS-XCode9,Windows-VS2k17}-2.0a224-OUT.txt
    • vc++2k17
    • MacOS, XCode 9.0 (apple clang 9.0)
    • gcc 5.4 (because used in Ubuntu 1604 - most recent LTS release)
    • gcc 6.4
    • gcc 7.2
    • clang++3.9.1 (ubuntu) {libstdc++ and libc++}
    • clang++4.0.1 (ubuntu) {libstdc++ and libc++}
    • clang++5.0.0 (ubuntu) {libstdc++ and libc++}
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined, gcc6, gcc7
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined, and debug/release builds (tried but not working threadsanitizer) on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
v2.0a223
2017-11-26
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a222...v2.0a223
  • Start support for u16string and u32string CTOR and AsUTF16 and AsUTF32; char32_t support in Charcter class
  • HistoricalPerformanceRegressionTestResults/PerformanceDump-2.0a223-{Windows-x86-vs2k17,linux-gcc-7.2.0-x64,MacOS-x86-XCode9}.txt
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Linux,Ubuntu1604,MacOS-XCode9,Windows-VS2k17}-2.0a223-OUT.txt
    • vc++2k17
    • MacOS, XCode 9.0 (apple clang 9.0)
    • gcc 5.4 (because used in Ubuntu 1604 - most recent LTS release)
    • gcc 6.4
    • gcc 7.2
    • clang++3.9.1 (ubuntu) {libstdc++ and libc++}
    • clang++4.0.1 (ubuntu) {libstdc++ and libc++}
    • clang++5.0.0 (ubuntu) {libstdc++ and libc++}
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined, gcc6, gcc7
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined, and debug/release builds (tried but not working threadsanitizer) on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
v2.0a222
2017-11-21
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a221...v2.0a222
  • ***NOTEWORTHY BUG FIX**** fixed FloatToString () handling of large numers when you havent spefified scientific but it uses scientific anyhow; so dont truncate 3.333e10 to 3.333e1 - and added regtest to check
  • start experimenting with including new std::filesystem code into Stroika
  • Compilers supported and Compiler Bug Workarounds
    • Re-instate support for gcc 5.4 because its used by Ubuntu 1604 - the current LTS Ubuntu (keep til it 1804 available)
    • replace my-gcc-5.4.0-release config using ~/gcc-5.4.0 with g++-5 since gcc5 no longer compiles with latest gcc(72)
    • qCompilerAndStdLib_glibc_stdfunctionmapping_Buggy and start working around, and related - use std::snprintf instead of ::snprintf for gcc5 on new ubuntu
    • RaspberryPi/ARM
      • add to raspberrypi-gcc-7 configuraiton --append-extra-compiler-args -Wno-psabi to silence a bunch of warnings
      • https://stroika.atlassian.net/browse/STK-627 - suppress gcc arm warning about ABI change
      • rename CONFIG raspberrypi_valgrind_gcc-6_NoBlockAlloc to raspberrypi_valgrind_gcc-7_NoBlockAlloc and use arm gcc7 compiler
      • switch test raspberrypi-gcc-6-sanitize to raspberrypi-gcc-7-sanitize
      • raspberrypi-gcc-7-sanitize configure uses --append-run-prefix
      • resolve https://stroika.atlassian.net/browse/STK-512 - using the configuraiton RUN_PREFIX to address the raspberrypi issue with asan LD_PRELOAD requirement
      • workaround qCompilerAndStdLib_asan_on_arm_SetOfString_Buggy
    • clang++
      • lose support for clang 3.7 and clang 3.8 (and so also los support for qCompilerAndStdLib_typeidoftemplateinlambda_Buggy and qCompilerAndStdLib_StructFieldMetaInfoOfNestedClassInTemplate_Buggy bug workarounds
  • ThirdPartyComponents
    • sqlite 3.21.0
    • OpenSSL
      • OpenSSL 1.1.0g; Lose support for building openssl 1.0 (just assume 1.1 or later)
      • fixed bug with nmake install on windows for openssl; existed before but was hidden by RunArgumentsWithCommonBuildVars.pl ignoring subscript return errors - now fixed
    • Curl
      • curl 7.56.1
      • in building libcurl, also pass along CXX/AR/RANLIB to configure
    • Xerces
      • Use new Xerces 3.2
      • Xerces build process, rewrite to use cmake on windows and Unix
      • https://stroika.atlassian.net/browse/STK-625 - got Xerces 3.2 building/working on Windows (using cmake)- inperfect, and needs cleanup
      • https://stroika.atlassian.net/browse/STK-625 qFeatureFlag_PrivateOverrideOfCMake feature supported in config
      • CURRENT is now read-only, and we configure in subdir of IntermediateFiles
      • https://stroika.atlassian.net/browse/STK-43 - mark closed due to new cmake based xerces and only need to worry about (cuz we only test) building on win10
  • ConditionVariable/WaitableEvent/Synchronized
    • document and add requires for CondtionVariable<>::wait* calls REQUIRE (and ENSURE) l.owns_lock()) - to try and address valgrind warning
    • Cleanups of conditionvaraible (my wrapper) class. (https://stroika.atlassian.net/browse/STK-623) - wait_until wrapper rewritten, now much cleaer
    • set sThreadAbortCheckFrequency_Default{2.5}
    • https://stroika.atlassian.net/browse/STK-629 change in WaitableEvent is not needed - pretty sure. Anlyzed docs in http://en.cppreference.com/w/cpp/thread/condition_variable and that lock doesnt seem needed
    • testing workaround for https://stroika.atlassian.net/browse/STK-629. This maybe a fix, or maybe just a workaround - must review and at least document better before I can close.
  • Docs about Sleep() functions; and used 100ms instead of .1 in etc i a bunch of places (reads nicer)
  • ModuleGetterSetter::SynchonizedUpdate () helper
  • Docs Improvements
    • DiscreteRange
    • added Range<> CTOR example docs and corresponding regtest
    • Cleanup docs on Queue
    • docs about what compiler versions are supported
  • Build and Test Scripts
    • Fixed ScriptsLib/RunArgumentsWithCommonBuildVars.pl so exit > 0 if sub process fails (so failed compiles top compile
    • small cleanup to Library/Projects/VisualStudio.Net-2017/SetupBuildCommonVars.pl
    • for Tests makefile - run-tests target - lose REMOTE_RUN_PREFIX - and just use RUN_PREFIX configuration arg
    • have to losen up valgrind helgrind check for debug build cuz more names on stack
    • Added VALGRIND_LatestGCC_Debug_SSLPurify_NoBlockAlloc configuration, and added running valgrind (memcheck and helgrind) check on it to regression tests
    • macos realpath build helper
    • losen matching on one Valgrind-Helgrind-Common.supp rule so works on debug version of code under valgrind
    • workaround for https://stroika.atlassian.net/browse/STK-626 - valgrind exception
    • https://stroika.atlassian.net/browse/STK-628 helgrind suppression rule (dubious: associated lock is not held by any thread - __condvar_cancel_waiting )
    • helgrind RegressionTest18_RWSynchronized generalized matching in supression rule so works with more compilers
    • fixed FormatCode to NOT destroy files if missing clang-foramt
    • Lose legacy astyle support from FormatCode.sh script (just use clang-format)
    • workaround excessive memory/time demand of valgrind on a couple (pipe) test, and use smaller numbers on debug/valgrind runs
    • updated GetMessageForMissingTool.sh for better messages under darwin/macos
  • HistoricalPerformanceRegressionTestResults/PerformanceDump-2.0a222-{Windows-x86-vs2k17,linux-gcc-7.2.0-x64,MacOS-x86-XCode9}.txt
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Linux,Ubuntu1604,MacOS-XCode9,Windows-VS2k17}-2.0a222-OUT.txt
    • vc++2k17
    • MacOS, XCode 9.0 (apple clang 9.0)
    • gcc 5.4 (because used in Ubuntu 1604 - most recent LTS release)
    • gcc 6.4
    • gcc 7.2
    • clang++3.9.1 (ubuntu) {libstdc++ and libc++}
    • clang++4.0.1 (ubuntu) {libstdc++ and libc++}
    • clang++5.0.0 (ubuntu) {libstdc++ and libc++}
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined, gcc6, gcc7
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined, and debug/release builds (tried but not working threadsanitizer) on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
v2.0a221
2017-10-25
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a220...v2.0a221
  • ***RELEASE DEFECT*** - Extra 'info' warning about GCC args in arm target - need to cleanup
  • ***RELEASE DEFECT*** - two valgrind failures (due to upgrade to ubuntu 17.10 I think) - both look innocuous but need more careful review
  • Ubuntu 17.10 and UNIX Compile support change
    • build gcc7 instead of gcc5 for raspberrypi regression tests
    • workaround LTO bug in gcc 7.2 (sb fixed in 7.3) in configuraiton gcc-release-sanitize
    • lose support for building unix regtests gcc 5.4 and clang 3.7, 3.8 (still support in headers, but soon lose that too)
  • Thread::Ptr not allowing dereference nullptr anymore
    • Things like Abort (), and AbortAndWaitForDone () used to work when Thread::Ptr was == nullptr. Now documented NO, and added requires.
    • Updated some internal Stroika code to accomodate this change
    • ***NOT BACKWARD COMPATIBLE*** - but easy to detect/fix usage in DEBUG builds
  • ThirdPartyComponents
    • ActivePerl was added to ThirdPartyComponents - JUST for Windows - to allow building the newest version of OpenSSL; its not intended to be used otherwise; new qFeatureFlag_ActivePerl in configuration; defaults to true for cygwin and openssl; and if so - extract ac opy of activeperl
    • Upgraded SQLite to 3.20.1
    • Upgraded OpenSSL to 1.1.0f
  • HistoricalPerformanceRegressionTestResults/PerformanceDump-2.0a221-{Windows-x86-vs2k17,linux-gcc-7.2.0-x64,MacOS-x86-XCode9}.txt
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Linux,MacOS-XCode9,Windows-VS2k17}-2.0a221-OUT.txt
    • vc++2k17
    • MacOS, XCode 9.0 (apple clang 9.0)
    • gcc 6.4
    • gcc 7.2
    • clang++3.9.1 (ubuntu) {libstdc++ and libc++}
    • clang++4.0.1 (ubuntu) {libstdc++ and libc++}
    • clang++5.0.0 (ubuntu) {libstdc++ and libc++}
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined, gcc6, gcc7
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined, and debug/release builds (tried but not working threadsanitizer) on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
v2.0a220
2017-10-19
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a219...v2.0a220
  • Fixed missing (misspelled) STL::Intersects() method
  • HistoricalPerformanceRegressionTestResults/PerformanceDump-2.0a220-{Windows-x86-vs2k17,linux-gcc-7.2.0-x64,MacOS-x86-XCode9}.txt
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Linux,MacOS-XCode9,Windows-VS2k17}-2.0a220-OUT.txt
    • vc++2k17
    • MacOS, XCode 9.0 (apple clang 9.0)
    • gcc 5.4
    • gcc 6.4
    • gcc 7.2
    • clang++3.7.1 (ubuntu)
    • clang++3.8.1 (ubuntu)
    • clang++3.9.1 (ubuntu) {libstdc++ and libc++}
    • clang++4.0.1 (ubuntu) {libstdc++ and libc++}
    • clang++5.0.0 (ubuntu) {libstdc++ and libc++}
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined, gcc5 and gcc6
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined, and debug/release builds (tried but not working threadsanitizer) on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
v2.0a219
2017-10-18
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a218...v2.0a219
  • https://stroika.atlassian.net/browse/STK-623 a few small cleanups to ConditionVariable<>
    • Fixed missing #include
    • Docs and Examples
    • ConditionVariable<>notify_one/notify_all () helper
    • new ConditionVariable helper class
    • BlockingQueue::QAtEOF () and renamed BlockingQueue::IsAtEndOfInput -> EndOfInputHasBeenQueued
    • https://stroika.atlassian.net/browse/STK-624 really turns out to be just issue with regression test for blockinqueue
  • HistoricalPerformanceRegressionTestResults/PerformanceDump-2.0a219-{Windows-x86-vs2k17,linux-gcc-7.2.0-x64,MacOS-x86-XCode9}.txt
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Linux,MacOS-XCode9,Windows-VS2k17}-2.0a219-OUT.txt
    • vc++2k17
    • MacOS, XCode 9.0 (apple clang 9.0)
    • gcc 5.4
    • gcc 6.4
    • gcc 7.2
    • clang++3.7.1 (ubuntu)
    • clang++3.8.1 (ubuntu)
    • clang++3.9.1 (ubuntu) {libstdc++ and libc++}
    • clang++4.0.1 (ubuntu) {libstdc++ and libc++}
    • clang++5.0.0 (ubuntu) {libstdc++ and libc++}
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined, gcc5 and gcc6
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined, and debug/release builds (tried but not working threadsanitizer) on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
v2.0a218
2017-10-16
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a217...v2.0a218
  • Serious regression - https://stroika.atlassian.net/browse/STK-622 - hang in startup of apps using Logger
    • added regression tests to capture issues in https://stroika.atlassian.net/browse/STK-622
    • fix to BlockingQueue<>::RemoveHeadIfPossible () - which was ONE problem (silly regression)
    • new ConditionVariable helper class
    • Use in WaitableEvent (plus effective change of default abort latency timeout from .5 to 1 second)
    • use ConditionVariable<> in BlockingQueue code (with its fix for blocking/iterruption)
    • CLOSED https://stroika.atlassian.net/browse/STK-622 but opened https://stroika.atlassian.net/browse/STK-623 to track a few cleanups left todo
  • HistoricalPerformanceRegressionTestResults/PerformanceDump-2.0a218-{Windows-x86-vs2k17,linux-gcc-7.2.0-x64,MacOS-x86-XCode9}.txt
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Linux,MacOS-XCode9,Windows-VS2k17}-2.0a218-OUT.txt
    • vc++2k17
    • MacOS, XCode 9.0 (apple clang 9.0)
    • gcc 5.4
    • gcc 6.4
    • gcc 7.2
    • clang++3.7.1 (ubuntu)
    • clang++3.8.1 (ubuntu)
    • clang++3.9.1 (ubuntu) {libstdc++ and libc++}
    • clang++4.0.1 (ubuntu) {libstdc++ and libc++}
    • clang++5.0.0 (ubuntu) {libstdc++ and libc++}
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined, gcc5 and gcc6
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined, and debug/release builds (tried but not working threadsanitizer) on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
v2.0a217
2017-10-13
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a216...v2.0a217
  • BlockingQueue
    • rewrite BlockingQueue to use condition_variable, so that it wakes multiple threads when new data is available (little tested)
    • small code cleanup to BlockingQueue code - and document better use of condition_variable, and workaround for helgrind bug https://stroika.atlassian.net/browse/STK-620
    • https://stroika.atlassian.net/browse/STK-620 helgrind suppression for errant warning about condition_variable::notify_all
    • BlockingQueue now uses ConditionVariable_.wait_until instead of wait_for to avoid /usr/include/c++/6/chrono:176:38: runtime error: signed integer overflow: 9223372036854775807 * 1000000 cannot be represented in type 'long int'
    • RegressionTest19_ThreadPoolAndBlockingQueue_ new regression test
  • Compilers Supported
    • Added G++ 7.2
    • Added clang++ 5.0
    • Added Apple XCode 9.0, Apple clang++-9.0
    • Added support Visaul C++ .net 15.3.4 (SP4)
    • regression tests: use clang.4.0.1 instead of 4.0.0
    • regression tests: use gcc.6.4 instead of 6.3
    • regression tests: use gcc.7.2 instead of 7.1
  • Compile Bug workaround changes (besides support new compilers)
    • Added new qCompilerAndStdLib_unnamed_semaphores_Buggy (and workaround for MacOS)
    • simplified qCompilerAndStdLib_Supports_stdoptional macro - c++17 or later for std::optional
  • Containers
    • Added docs on Container CTORS (examples of use); and regtests to verify each works
    • Containers::STL
      • New STL::Concatenate ()
      • Improved STL::Concatenate and STL::Append - variadic templates
      • new regression test for Containers::STL
  • DataExchange
    • added regression test for MakeCommonSerializer_EnumAsInt () and fixed a bug with it
  • Deprecation
    • Lose v2.0a213 deprecated functions, like Stream<>::empty/clear, SharedMemoryStream::CloseForWrites, inputstream::empty()
    • PickoutParamValuesBody / PickoutParamValuesFromBody -- see these notes
  • Makefile and configuration and losing perl scripts
    • makefile output tweaks building sample installers
    • Much progress on https://stroika.atlassian.net/browse/STK-271 - losing about 1/2 of the remaining perl build scripts (moved logic to makefile), eg Run.pl, checkall.pl, etc
    • MAYBE fixed run-tests makefile script so when test crashes in prints CRASHED as status instead of []
    • configure --run-prefix and --append-run-prefix; changed regression test configs to --append-run-prefix for clang with libc++ (so tests run without installing clang ABI separately)
    • Support new configuration RUN_PATH variable in Tests Makefile for 'run-tests' (incomplete but enough to get clang tests passing I think - still need to rewrite/refactor how used)
    • change default for DEBUG sanitize flags - to not include asan by default on WSL cuz so far doesnt work there (tied to version)
    • on make check - stop checks if one fails
    • replace checkall.pl use with with utility ScriptsLib/CheckFileExists.sh in makefiles
    • MAKE_INDENT_LEVEL - supported in WebGet so things look better on wget
    • cleaning up used env vars from PrintEnvVarFromCommonBuildVars.pl (looks like LIB is really WIN_LIB_DIRECTORIES)
    • tons of changes to windows build system (still incomplete but builds Debug-U-32 at least); mostly use ScriptsLib/RunArgumentsWithCommonBuildVars.pl $(CONFIGURATION) MSBuild.exe ... in place of buildall_vs.pl scripts and refactored that .pl code so works with recent changes in vcvars.bat
    • VisualStudio.Net-2017/SetupBuildCommonVars.pl
      • lose Fill_Defined_Variables_ from Projects/VisualStudio.Net-2017/SetupBuildCommonVars and use CC instead of CC_32 etc - in caslls to PrintEnvVarFromCommonBuildVars.pl (most places - but still must review)
      • fix handling of PATH with PrintEnvVarFromCommonBuildVars.pl - so now maybe works for -64 builds
      • lose obsolete code from VisualStudio.Net-2017/SetupBuildCommonVars.pl, and added new helper GetAugmentedEnvironmentVariablesForConfiguration () which is still not used
      • had to re-install OS, and not sure what all changed. Maybe update to VS2k? - but now vcvarsall.bat seems to change directory, so undo that change (probably new visual studio verison caused this and OS install coincidence)
    • improve GetMessageForMissingTool.sh for cygwin
    • fixed regression in regression test script (change from true/false to 0/1 in tests) - was causing helgrind tests to be skipped
    • check more carefully for atlmfc (look for not just atl stuff but MFC too)
  • Math
    • New function Math::StandardDeviation () and added regression test
  • Miscellaneous
    • Added Duration::AsPinned
    • makedev() now requires include sys/sysmacros.h for linux
    • errno_ErrorException::LookupMessage () maps ETIMEDOUT to TimeoutExcpetion
    • code celanup - renaming qUsePOSIXSemPOSTFromSignalHandler_ to qConditionVariablesSafeInAsyncSignalHanlders (soon to move)
    • hopefully resolved race/regression with signal(POSIX) code change recently (was done originally because I found docs saying what I was doing was not safe)
    • Lose Debug/Trace GetStartOfEpoch_ () logic. Redundent since GetTickCount () now assures returns 0-based. And better to NOT do so the values reported in columsn match more exactly the GetTickCount () results.
    • https://stroika.atlassian.net/browse/STK-621 - lose testing malloc-guard - not important and not perfectly implemented (so seems to have some incompatability with glibc - use by latest libcurl)
  • Samples
    • Makefile cleanups
    • Sample/SimpleService: Accomodate requirment from dpkg: control directory has bad permissions 777 (must be >=0755 and <=0775), and wehre we create tmpdir for DEB, so it can work right with WSL
    • fixed windows project for archiveutility to support Release-U-32-Logging configuraiton
    • use Samples-SimpleService isntead of Samples_SimpleService as path dir name in IntermediateFiles and Builds
  • Signal Handlers
    • close https://stroika.atlassian.net/browse/STK-617 - use qUsePOSIXSemPOSTFromSignalHandler_ and docs and lose qConditionVariableSetSafeFromSignalHandler_
    • New POSIX\SemWaitableEvent.cpp (and Helgrind_WARNS_EINTR_Error_With_SemWait_As_Problem_Even_Though_Handled); and used for https://stroika.atlassian.net/browse/STK-617 Enabled new qUseSemPOSTFromSignalHandler_ - using sem_wait, to see if this works. Fixes possible latent bug with signal handling.
  • Threads
    • https://stroika.atlassian.net/browse/STK-619 - make kInfinite use numeric_liits::infinity () not max (). NOTE - this could have more impact (see jira ticket) than it sounds on the surface
    • Added regtest Test_14_timepoint_ () and changed DurationSeconds2time_point () so maybe works better avoiding overflow
    • WaitableEvent
      • WaitableEvent::Set () fix for condition_variable::notify_all () - outside lock(pessimizaiton issue) - so SB performance tweak
      • WaitableEvent Cleanups
      • Leaning MORE AND MORE against using/supporting eAutoResetEvent
      • Manual reset event now the default for WaitableEvent. And many places in stroika where i (needlessly) used autoreset, just use the default or explicit manual reset event
      • Fixed bug where BlockingQueue did one way for one CTOR, and the other way for the other!
  • ThreadPool
    • make ThreadPool::Abort_ and AbortAndWaitForDone_ noexecpt and cleanup internal code a bit cuz of that
    • new helper functions - ThreadPool::WaitForTasksDone/WaitForTasksDoneUntil (and used in regtest)
  • ThirdPartyComponents
    • CURL: use 7.56.0
    • curl requires autoconf as well as automake in check_prerequistites
    • Improve wget call for building curl
    • re-ordered FETCHURLS for xerces (since archihve site has new and old so may as well cehck there first)
    • zlib sourceforge download no longer works with wget because it downloads js code that furhters download - so use github download instead
  • Time::GetTickCount
    • DurationSecondsType Time::GetTickCount () now inline: return time_point2DurationSeconds (std::chrono::steady_clock::now ());
    • time_point2DurationSeconds etc enforce tickcount/DurationSecondsType >= 0.
    • Document using steady-clock and based on zero at startup
    • Lose all the non-portable variation ways of getting tickcount
    • KEY REASON for this is now we can convert GetTickCount () result to a time_point which can be used with stuff like wait_until in stdC++ api
    • added time_point2DurationSeconds and DurationSeconds2time_point, and re-implement GetTickCount () to always use time_point2DurationSeconds (chrono::steady_clock::now ());time_point2DurationSeconds (chrono::steady_clock::now ());
  • WebService
    • Lose some unused overloads of Server::VariantValue::PickoutParamValues added docs, deprecated PickoutParamValues_NEW and lost deprecated (older different) PickoutParamValues_NEW
    • rename PickoutParamValuesBody to PickoutParamValuesFromBody () - and deprecate mapper from oldname to new name
  • HistoricalPerformanceRegressionTestResults/PerformanceDump-2.0a217-{Windows-x86-vs2k17,linux-gcc-7.2.0-x64,MacOS-x86-XCode9}.txt
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Linux,MacOS-XCode9,Windows-VS2k17}-2.0a217-OUT.txt
    • vc++2k17
    • MacOS, XCode 9.0 (apple clang 9.0)
    • gcc 5.4
    • gcc 6.3
    • gcc 7.2
    • clang++3.7.1 (ubuntu)
    • clang++3.8.1 (ubuntu)
    • clang++3.9.1 (ubuntu) {libstdc++ and libc++}
    • clang++4.0.1 (ubuntu) {libstdc++ and libc++}
    • clang++5.0.0 (ubuntu) {libstdc++ and libc++}
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined, gcc5 and gcc6
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined, and debug/release builds (tried but not working threadsanitizer) on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
v2.0a216
2017-08-24
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a215...v2.0a216
  • use new _STROIKA_CONFIGURATION_WARNING_ trick to only emit compiler mismatch (version) warnings ONCE - by emitting just in the StroikaConfig.cpp file
  • no using namespace std at top level in Led/Support.h
  • Cleaned up and fixed timing on one thread-based regression test
  • HistoricalPerformanceRegressionTestResults/PerformanceDump-2.0a216-{Windows-x86-vs2k17,linux-gcc-6.3.0-x64,MacOS-x86-XCode8}.txt
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Linux,MacOS-XCode8,Windows-VS2k17}-2.0a216-OUT.txt
    • vc++2k17
    • MacOS, XCode 8.3.3 (apple clang 8.1)
    • gcc 5.4
    • gcc 6.3
    • gcc 7.1
    • clang++3.7.1 (ubuntu)
    • clang++3.8.1 (ubuntu)
    • clang++3.9.1 (ubuntu) {libstdc++ and libc++}
    • clang++4.0.0 (ubuntu) {libstdc++ and libc++}
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined, gcc5 and gcc6
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined, and debug/release builds (tried but not working threadsanitizer) on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
v2.0a215
2017-08-23
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a214...v2.0a215
  • NEW Visual Studio.net 2017 15.3.2 - _MS_VS_2k17_15Pt3Pt2_ support (assumed same as Pt1 except tested one bug and it was stlill broken)
  • qCompilerAndStdLib_alignas_Sometimes_Mysteriously_Buggy is still broken with VS2k17 15.3.1 - just much more insidiously! (main reason for emergency release)
  • lose performance test Test_VirtualFunctionBasedRunnable - std::function seems at least as fast as virtual
  • simplified use of $(shell - in makefiles - more often just use plain backtick, and export StroikaRoot and use ScriptsLib/SubstituteBackVariable more, eg, simple-service-installer
  • tweak ScriptsLib/PrintProgressLine.sh, fix space handling
  • Lose a bunch of defines that were deprecated in v2.0a211, like some FileSYstem stuff, and FileOutputStream::mk, and _SharedPtrIRep
  • HistoricalPerformanceRegressionTestResults/PerformanceDump-2.0a215-{Windows-x86-vs2k17,linux-gcc-6.3.0-x64,MacOS-x86-XCode8}.txt
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Linux,MacOS-XCode8,Windows-VS2k17}-2.0a215-OUT.txt
    • vc++2k17
    • MacOS, XCode 8.3.3 (apple clang 8.1)
    • gcc 5.4
    • gcc 6.3
    • gcc 7.1
    • clang++3.7.1 (ubuntu)
    • clang++3.8.1 (ubuntu)
    • clang++3.9.1 (ubuntu) {libstdc++ and libc++}
    • clang++4.0.0 (ubuntu) {libstdc++ and libc++}
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined, gcc5 and gcc6
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined, and debug/release builds (tried but not working threadsanitizer) on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
    • The few failures reported were: just minor networking issues (a few websites down), one bug (not regression just corrupted data file and need better validation), and one futhter timing issue with thread regtest on raspberry pi (not bug - just tests have builtin timeouts too quick)
v2.0a214
2017-08-21
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a213...v2.0a214
  • Support NEW Visual Studio.net 2017 15.3.1 - _MS_VS_2k17_15Pt3Pt1_
  • Framework WebServer
    • Fixed serious / subtle regression/bug with Frameworks/WebServer/Router: CallFAndWriteConvertedResponse - had to be more careful about bind () return and how to delegate that to 2 different templates for void/non-void return case
    • USE_NOISY_TRACE_IN_THIS_MODULE_ tweaks for Frameworks/WebServer/Router
    • WebServer::Message print/write/writleln () overloads - trivial forward to response object
    • Properly support 'Method Not Allowed (405) in WebServer framework router - along with Allowed header response - if we get someting that matches uri but not method
  • New ScriptsLib/{PrintProgressLine,SubstituteBackVariables}
  • Same fix I did to synchonized<>::store() now applied to Synchonized::WritableReference::store () - so can use synconized<<optional>notcopyable>> - and added regtest for aditional test case
  • restructure Tests makefile, and samples so can run more parallelized on unix -j
  • weaken timing requirement for test c_str () - since sometimes fails. Review later when I have a pattern of data (so I can see more clearly when broken)
  • changed ScriptsLib/RegressionTests to use integrers intead of false/true since integers work better with bash and false/true pretty poorly. Then used that to fix deftault value of CLOBBER_FIRST to depened on CONTINUE
  • new Mapping::LookupChecked<> and docs
  • HistoricalPerformanceRegressionTestResults/PerformanceDump-2.0a214-{Windows-x86-vs2k17,linux-gcc-6.3.0-x64,MacOS-x86-XCode8}.txt
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Linux,MacOS-XCode8,Windows-VS2k17}-2.0a214-OUT.txt
    • vc++2k17
    • MacOS, XCode 8.3.3 (apple clang 8.1)
    • gcc 5.4
    • gcc 6.3
    • gcc 7.1
    • clang++3.7.1 (ubuntu)
    • clang++3.8.1 (ubuntu)
    • clang++3.9.1 (ubuntu) {libstdc++ and libc++}
    • clang++4.0.0 (ubuntu) {libstdc++ and libc++}
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined, gcc5 and gcc6
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined, and debug/release builds (tried but not working threadsanitizer) on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
    • The few failures reported were just minor networking issues (a few websites down)
v2.0a213
2017-08-10
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a212...v2.0a213
  • Streams
    • https://stroika.atlassian.net/browse/STK-586: OutputStream<> now supports Close, and IsOpen methods
    • Includes deprecating SharedMemoryStream<>::CloseForWrites () and replacing it with call to (now) inherited InputOutputStream<>::CloseWrite ()
    • CloseRead/CloseWrite/IsOpenWrite/IsOpenRead support in approrpaite concrete methods - to provide better docs and assertionsStream
    • Deprecated Stream<>::empty () - instead using != nullptr or == nullptr; and lose obsolete hack I had in InputStream code re-declaring operator!= commednted no reason and can see no need anymore
    • Require IsOpen () in many places, and docs improvements
    • mark https://stroika.atlassian.net/browse/STK-598 resolved cuz just did this a few days ago - Debug::AssertExternallySynchonized in Stream classes
  • Frameworks/WebService/Server
    • improvements to PUT handling and error reproting with /VariantValue
    • typename ARG_TYPE_COMBINED viariant of mkRequestHandler () overload
    • more use of CallFAndWriteConvertedResponse - seems to be working. Maybe able to go fully VARIANT template arg...
    • added OrderParamValues; deprecated PickoutParamValues and related cleanups
    • Draft CallFAndWriteConvertedResponse () support - to improvie Frameworks/WebService/Server/VariantValue so it can support returning 'void' - or at least close/soon
    • improved WriteDocs support - configurable CSS section and variable subst in new DocsOptions object/argument
  • Frameworks/WebServer/Message
    • Added a few shorthand helpers for Frameworks::WebServer::Message, eg. Message::SetResponseContentType ()
  • configure support for --strip
    • improved default STRIP program for configure (NOTE - upgraders will need to re-generate configurations)
    • use configured STRIP pgoram in building installer (sample service)
  • delete some deprecated routines - deprecated in 2.0a209: kTIMEOUTBoolResult, ThreadPool:: abort and waitfordone retouines (and documetned why); and Thread::AbortAndWaitUntilDone
  • use || exit $? inside forloops in a few more spots of makefiles (so when samples fail to build we stop)
  • stream and inputstream/outputstream Ptr classes now use inherited Debug::AssertExternallySynchronizedLock
  • {Socket | Stream | Thread}::Ptr::reset () support, and deprecated Stream::clear (just use Stream::reset)
  • HistoricalPerformanceRegressionTestResults/PerformanceDump-2.0a213-{Windows-x86-vs2k17,linux-gcc-6.3.0-x64,MacOS-x86-XCode8}.txt
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Linux,MacOS-XCode8,Windows-VS2k17}-2.0a213-OUT.txt
    • vc++2k17
    • MacOS, XCode 8.3.3 (apple clang 8.1)
    • gcc 5.4
    • gcc 6.3
    • gcc 7.1
    • clang++3.7.1 (ubuntu)
    • clang++3.8.1 (ubuntu)
    • clang++3.9.1 (ubuntu) {libstdc++ and libc++}
    • clang++4.0.0 (ubuntu) {libstdc++ and libc++}
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined, gcc5 and gcc6
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined, and debug/release builds (tried but not working threadsanitizer) on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
v2.0a212
2017-08-05
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a211...v2.0a212
  • changed vs2k17 project files from WindowsTargetPlatformVersion>10.0.14393.0 to 10.0.15063.0 (default in lastest VS)
  • Support clang 8.1 on MacOS
  • lose bug define !qCompilerAndStdLib_atomic_flag_atomic_flag_init_Buggy - I THINK I've found a portable way to do this correctly
  • Adjust regression test to accomodate change in text on googles website
  • better warning for node missing - nodejs-legacy (at least on debian)
  • Lose deprecated ReadPOD () - was deprecated 2.0a208
  • added helgrind suppressions to address what appeared on the surface a regression in the last release: it was not - just an intentionally reversed lock order to test a new promise made in RWSyncrhonized() template
  • Small docs/cleanups
  • *Build error/failure ignored for this release - build targetting raspberrypi, the installer builds failed. Will correct for next release*
  • HistoricalPerformanceRegressionTestResults/PerformanceDump-2.0a212-{Windows-x86-vs2k17,linux-gcc-6.3.0-x64,MacOS-x86-XCode8}.txt
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Linux,MacOS-XCode8,Windows-VS2k17}-2.0a212-OUT.txt
    • vc++2k17
    • MacOS, XCode 8.3.3 (apple clang 8.1)
    • gcc 5.4
    • gcc 6.3
    • gcc 7.1
    • clang++3.7.1 (ubuntu)
    • clang++3.8.1 (ubuntu)
    • clang++3.9.1 (ubuntu) {libstdc++ and libc++}
    • clang++4.0.0 (ubuntu) {libstdc++ and libc++}
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined, gcc5 and gcc6
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined, and debug/release builds (tried but not working threadsanitizer) on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
v2.0a211
2017-08-01
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a210...v2.0a211
  • ***Deprecation and Incompatible changes***
    • IO::FileSystem::FileSystem::Default () deprecated - use new IO::FileSystem::Default () instead
    • Thread now quasi-namespace. Replace Thread {x} with Thread::Ptr a = Thread::New (x);
    • XXXStream now quasi-namespace, and use XXXStream::Ptr x = XXXStream::New (args) instead of XXXStream x (args);
    • Replace mk () pattern with static 'New ()'. Use this throughtout Stroika. In most cases it was never used so no need to deprecate - just changed names. BUt for FileInputStream and FileOutputStream it was widely used so mark the old names as deprecated
    • TextStream now uses Ptr/New changes made elsewhere wtih Streams - NOT backward compatible - change TextStream (as CTOR) to TextStream::New
    • Convert TextWriter to use 'quasi-namespace pattern, and New and Ptr; so now places(INCOMPTIBLE CHANGE) which used TextWriter as a contructor must change to TextWriter::Ptr x = TextWriter::New (.args)
    • Refactored Socket (and related ConnectionOrientedMasterSocket, ConnectionOrientedSocket, ConnectionlessSocket classes to use new New () and quasi-namespace and Ptr pattern.
    • lose deprecated code from v2.0a206 and v2.0a207
  • Now require C++14 or later
    • CPPSTD_VERSION_FLAG defaults to --std=c++14 instead of --std=c++11
    • Since losing support for C++ PRE c++14, we can lose bug wrokaround defines: qCompilerAndStdLib_deprecated_attribute_Buggy qCompilerAndStdLib_shared_mutex_module_Buggy and prepare to lose #define _Deprecated_(MESSAGE) and use [[deprecated]] directly (but leave macro around briefly, in case still used elsewhere.
  • Major structural changes - docs, threadsafety notes etc, for Ptr objects
    • design overview docs - changes about const/logical const on Ptr objects, and how this affeects thread safety (no real change to behavior - just docs and more safety support)
  • resolved https://stroika.atlassian.net/browse/STK-491: RWSyncrhonized<> should now support multiple readers at the same time. More todo to polish, but also improved docs on this scoore a bit, and added RegressionTest18_RWSynchronized_
  • noexcept and improved cancelation point respect and docs
    • String docs - and make String::c_str () be noexcept
    • AssertExternallySynchronizedLock now clearly marked as not a cancelation point (containing none) - and all methods noexcept. Caused some problems on default CTOR - not sure I got right but I hope so ;-)
    • Iterable::_SafeReadRepAccessor::_ConstGetRep () const is now marked: noexcept
    • SharedByValue::cget () const and SharedByValue::get () const now both marked noexcept
    • Iterable::_SafeReadRepAccessor::_SafeReadRepAccessor marked noexcpt - stuff calls now noexcept and its used by String::c_str () which we want to be noexcept
    • IO::FileSystem::FileSystem::Access () is now marked noexcept
  • IO::FileSystem FileSystem
    • IO::FileSystem::FileSystem::Default () deprecated - use new IO::FileSystem::Default () instead
    • As part of https://stroika.atlassian.net/browse/STK-612 - renamed FileSYstem::FileSystem to FileSYstem::Ptr (soon redo a bunch of this to use actual shared_ptr and rep so primary FS stuff is just that rep and we can do other reps, like tarfile or other archives
  • Minor deprecation changes
    • Refactoring - Iterable: _IterableRepSharedPtr replaces _SharedPtrIRep and _IterableSharedPtr - the former being deprecated
    • in containers - use the name _MultiSetRepSharedPtr, _QueueRepSharedPtr, etc instead of _SharedPtrIRep - deprecating the old names
    • Simplfy alot of calls to cast to typename Iterator::SharedIRepPtr; renamed Iterator<>::SharedIRepPtr -> Iterator<>::IteratorRepSharedPtr
    • deprecated Optional<>::engaged () and replaced it with Optional<>::has_value () matching the name on cppreference (not sure where I got engaged from?)
  • https://stroika.atlassian.net/browse/STK-66 - we now have shipped a sample .service file with the sample service,a and an installer that autoinstalls and starts etc the service.
  • We had openssl disabled by default on darwin, but seems no obvious reason, so re-enabled
  • https://stroika.atlassian.net/browse/STK-608 - InternallySyncrhonizedOutputStream etc - now use base class instead of aggregation - more efficent and fixes possible bugs with constructing extra object and not really using it (ctor mismatch)
  • Deprecated InputStream<>/OutputStream<> Synchronized () methods - using new sync param to ::New is mcuh better because it forces all ptrs reps used to be syncronized or none - no point in just a few people accessing through sync pointer!
  • docs on IO::FileSystem::FileSYstem::Access and CheckAccess
  • revised MACRO_LOCK_GUARD_CONTEXT() for C++17, in preps for deprecating the macro (if/when we can lose c++14 support)
  • tweaked USE_NOISY_TRACE_IN_THIS_MODULE_ dbgtrace reporting in Execution/ProcessRunner.cpp for POSIX - lose a few (too many) message
  • Sample SimpleService now includes direct support for building installers: .deb, .rpm, and placeholder (jira ticket) for WIX support
  • IO::Network
    • fixed windows error message (like unix) on Bind() failure to mention the bind: added bug https://stroika.atlassian.net/browse/STK-604 to track generalizing how we report these 'while' messages
    • fixed bug with ConnectionlessSocket::RecvFrom - must use sockaddr_storagesockaddr_storage not sockaddr for returned sockaddr (not sure how this bug lasted so long - generated error on WTF on windows)
    • socket fixes for unix
  • Optional and Syncrhonized factoring/changes for move semantics
    • Added TestHarness::not_copyable
    • Support and add tests for Optional
    • added move () overload for Synchronized::store ()
    • Added regression tests to assure Syncrhonized works with store (tried optional but thats not working yet)
    • Fixed optional assignment of rvalue references to move() right subelemenent; and added regression tests to capture/verify this
    • use const T& and T&& as overload args for Synchronized::store
  • InternallySyncrhonized arg to static New () - and major improvmenet to docs/clarify how we track synchronize of rep (letter) versus envelope (smart_ptr)
    • Now all streams support optional param on construction (New) to make the rep internally synchronized
    • mostly cleanups of threadsafety docs - again mostly for new Streams code - and ohter similar cleanups
    • Added InternallySyncrhonized type - use new use InternallySyncrhonizedInputOutputStream, InternallySyncrhonizedOutputStream, and InternallySyncrhonizedInputStream to impement for all concrete Stream classes
  • Build System
    • use --directory CURRENT --strip-components=1 for tar instead of extract and then move (sadly must do slightly differently for macos)
    • include realpath.cpp in top level sln, and make format-code, and fix to support extra arg used by curl (sort of - hopefully enough)
    • fixed macos-specific realpath override implementation so works with --canonicalize-missing - enough
    • change install-realpath line to use g++ so it gets stdc++ libs
  • Build error/failure ignored for this release - build targetting raspberrypi, the installer builds failed. Will correct for next release
  • ***Important*** Helgrind Regression: Will correct for next release; see test output
  • HistoricalPerformanceRegressionTestResults/PerformanceDump-2.0a211-{Windows-x86-vs2k17,linux-gcc-6.3.0-x64,MacOS-x86-XCode8}.txt
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Linux,MacOS-XCode8,Windows-VS2k17}-2.0a211-OUT.txt
    • vc++2k17
    • MacOS, XCode 8
    • gcc 5.4
    • gcc 6.3
    • gcc 7.1
    • clang++3.7.1 (ubuntu)
    • clang++3.8.1 (ubuntu)
    • clang++3.9.1 (ubuntu) {libstdc++ and libc++}
    • clang++4.0.0 (ubuntu) {libstdc++ and libc++}
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined, gcc5 and gcc6
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined, and debug/release builds (tried but not working threadsanitizer) on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
v2.0a210
2017-07-06
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a209...v2.0a210
  • libcurl 7.54.1
  • ThreadPool - move support
  • require pkg-config always - not just for unix/curl. Eventually will probably use it more
  • Thread
    • Changed GetNativeHandle () to do as docs say - and return {} not 0;
    • Thread::SetPriority regression fixed
  • HistoricalPerformanceRegressionTestResults/PerformanceDump-2.0a210-{Windows-x86-vs2k17,linux-gcc-6.3.0-x64,MacOS-x86-XCode8}.txt
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Linux,MacOS-XCode8,Windows-VS2k17}-2.0a210-OUT.txt
    • vc++2k17
    • MacOS, XCode 8
    • gcc 5.4
    • gcc 6.3
    • gcc 7.1
    • clang++3.7.1 (ubuntu)
    • clang++3.8.1 (ubuntu)
    • clang++3.9.1 (ubuntu) {libstdc++ and libc++}
    • clang++4.0.0 (ubuntu) {libstdc++ and libc++}
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined, gcc5 and gcc6
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined, and debug/release builds (tried but not working threadsanitizer) on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
v2.0a209
2017-07-04
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a208...v2.0a209
  • Execution::Yield bugfix:
    Fixed RARE and SUBTLE bug, but NOT BACKWARD COMPATIBLE change.
    SpinLock and BlockAllocator no longer call Execution::Yield () - and instead call std::this_thread::yield ().
    This makes them not cancelation points.
    The case of SpinLock caused a SUBTLE bug - Iterable::CTOR () noexcept
    ...
    called something that used a spinlock (assertexternallysynchonized) which in turn did a Yield () - rarely and occasionally
    That produced - rare but occasional std::terminate!
    Since we want to use SpinLock and mutex interchangeably - just the difference being performance - cancelation there seemed inappropriate.
    It MAY have been appropriate on the Allocate () method, but seemed qustionable as that is a replacement for operator new () - and thats not a cancelation point so it has the potental to encourage buggy code when you turn on/off block allocation.
    If you need cancelation checking in your code - best to stick it in yourself.
    And it was VERY buggy that it was being done in BlockAllocator::Deallocate () - which is a noexcept method!
  • ***NOT BACKWARD COMPATIBLE*** Memory::Optional Compare (<> etc) - major bugfix: had implementation backwards from docs (so keep docs changed code) - on maining of empty optional in compare - and added regtests
  • Samples/SimpleService
    • Rewrote MainLoop so simpler and clearer (more clonable/safe)
    • Added support for logging the version
    • fix issue with Samples/SimpleService/buildall_vs.pl
  • Performance Tests
    • fixed two major bugs with performance regtest (49): accidnetally left in 'temporarytest'; and was running Sequence<> as test for Sequence_DoublyLinkedList - hiding how atrociously slow it was (is)
    • tweak test repeat counts on performance regtest; shouldnt affect score of individual tests, but will affect overall test timing and weighting; attempted to get baselines closer to even 1 second per multiplier factor
  • ProcessRunner
    • fixed bug with POSIX ProcessRunner on exceptions (e.g thread abort); CLOSE_ must be noexcept and not throw
    • Improved DbgTrace output #if USE_NOISY_TRACE_IN_THIS_MODULE_ in ProcessRunner - dumping data read back from process to dbgtrace
  • Frameworks/WebServer
    • Added Request::GetContentType () for webserver request
  • Build Scripts
    • mkdir `dirname $@` for compiling objs
    • fixed ScriptsLib/MakeVersionFile.sh so it works when called from dir other than top of stroika dir
    • fixed typo in cmd2Run buildall_vs.pl sample scripts
  • Frameworks/WebService
    • Frameworks/WebService/Server/VariantValue::ApplyArgs draft
    • WebService/Server/VariantValue
        A few new prototype functions to help unpack WS args:
      • PickoutParamValuesFromURL
      • PickoutParamValuesBody
      • PickoutParamValues_NEW
      • (comment maybe lose older PickoutParamValues)
  • Containers
    • Added Set<>::erase () overload
    • for Array or stl vector based concrete containers - add capacity/reserve methods
    • Queue<>::clear ()
    • very big performance tweak to Sequence_DoublyLinkedList<>::Insert () for append case
  • Documentation improvements
    • general docs improvements throughout the code (/** coments*/)
    • Design Overview docs
    • Git-Tags-and-Branches.md
    • Documentation on cancelation points
  • Thread
    • Thread vs Thread::Ptr
    • A few more CheckForThreadInterruption () calls to assure things marked cancelation point always called it.
    • New Thread::WaitForDoneUntilQuietly () and vectored some code to use that.
    • Improved Thread::AbortAndWaitForDoneUntil () - to log/warn which threads slow to shutdown.
    • Add regression test for Thread create but not start thread leak bug - and bug fixed
    • Delay constructing thread object until Start. This allows constructing (but not starting) Thread objects before main. Slightly tricky change, so not 100% sure no regressions - test a bit. And documented GetID and GetNativeHandle may return bogus values before start
    • Added regression tests for Thread::Interrupt () - and found it was broken - so fixed it
    • more tweaks to Thread class - lock_guards and made more methods const since const relaly applies to smartptr - not underlying data
    • Thread::operator== and != nullptr - use that instead of GetStatus ()
    • hopefully primve Thread::Ptr operator= with more overloads (to test fix on synrchonized)
    • lose Thread::Abort_Forced_Unsafe () - was not fully implemented and not a good idea, so dont even bother deprecating - pretty sure never used
    • https://stroika.atlassian.net/browse/STK-461 - wrap Thread class as Debug::AssertExternallySynchronized - for envelope / smart ptr
    • another small race fix with abort when NotYetRunning
    • more cleanups of Thread dbgtrace code - and more careful use of compare_exchange_strong to manipulate the thread state. Hopefully I have logic right now to avoid deadlocks - but need to test
    • Thread code intenrals: renamed fThreadDone_ to fThreadDoneAndCanJoin_, and simplify Thread::WaitForDoneUntil ();
    • Documentation on cancelation points
    • Thread::WaitForDoneUntil () no longer does wait on fThreadDone if thread completed - does join at end anyhow. Change I made to not start thread caused issue.
    • Some regressions - heopfully fixed (and better docs) - on thread code - due to change in when thread constructed (not in CTOR but later at start); found I really MUST do fRep_->fThreadDOne.Wait () so join doesnt deadlock (fAccessSTDThreadMutex_); and fixed set of status to eRunning to use compare_exchange_strong - probably slight buggy/race all along there
    • Threads: some name and dbgtrace cleanups; and fixes for regressions in how threads are named under POSIX (crash/failure)
    • Thread docs/cleanups and name change - for POSIX - CalledInRepThreadAbortProc_ -> InteruptionSignalHandler_
    • lose added dbgtrace for SuppressInterruptionInContext::~SuppressInterruptionInContext () with comments why
    • Thread::Ptr code doesnt work well with synchonized - must use synrchonized.store ()
    • make Thread not copyable - just movable, and new type Thread::Ptr to allow copy (like I did for Stream/Stream::Ptr)
    • docs about Thread::Yield () - cancelation point
    • renamed AbortAndWaitUntilDone -> AbortAndWaitForDoneUntil; and marked old name as deprecated
    • Thread USE_NOISY_TRACE_IN_THIS_MODULE_ enhancements; slight DbgTrace formatting improvements in Thread code
  • ThreadPool
    • Deprecated Abort and ...etc methods for ThreadPool: we cannot support a partly shutdown threadpool anyhow and nothing todo when its been aborted but destroy it, and destroy already does all this anyhow. All (as far as I can tell) pointless. So DTOR shuts down threadpool and nothing else provided (deprecated for now)
    • In Threadpool code - vector more to Thread static methods with iterables
  • Sockets
    • XXXSocket -> XXXSocketPtr
    • Migrate XXXXSocket classes to XXXXSocket::Ptr - so more clear - always use Ptr to use these sockets, and use base (without Ptr) to construct them
    • make many more Socket (subclass) methods const - since they dont modify the smartptr (just the underlying rep); and changed semnatics of Clsoe to no longer do a reset () on the pointer - just to close the underlying socket
    • change use of Socket subclasses - so ConnecitonlessSocket etc - non-Ptr classes - NEVER do anything but produce shared object, so cannot be used with any of the accessor methods
    • ConnectionOrientedSocket::ReadNonBlocking () support (untested); and used that in SocketStream::ReadNonBlocking.
    • Socket (nullptr_t) CTOR allowed, and then revered operator< etc to use SOcket - not socketptr
    • https://stroika.atlassian.net/browse/STK-597 - Socket 'smart pointer wrapper' should use Debug::AssertExternallySynchonized
    • moved methods and smartptr back to Socket class - clearer for docs and more like other Ptr classes. Just not copyable - is enough
    • Debug::AssertExternallySynchronized support for socket reps
    • Socket::ptr inherits from Socket - for shared type defs - to fix issue compiling on gcc
    • Refactor Socket code - so ConnectionOrientedSocket, ConnectionlessSocket, ConnectionOrientedMasterSocket all go in their own files.
      ***NOT BACKWARD COMPATIBLE*** - but simple to react to - if you use one of these classes, include the .h file of the same name "Stroika/Foundation/IO/Network/ConnectionlessSocket.h" in PLACE of Socket.h (typically).
    • delete default CTOR for various sorts of Sockets. Use optional if you want a bad socket (or soon can use new Ptr stuff)
  • Streams
    • Streams::MemoryStream<> versus Streams::MemoryStream<>::Ptr cleanups
    • more Streams cleanups/docs/refactoring
    • first draft of refactoring Streams code so Stream and contains IRep and smart Ptr class
    • docs about const ptr stuff for Stream, and various subtypes (still todo making change but got in docs)
    • more cleanups to Streams code - Printf() method
    • more comments/dcos and attemts at some progress on https://stroika.atlassian.net/browse/STK-567 - ReadNonBlocking
    • cleanup Stream<>::opeator==/!= usage - member when possible and non-member for when nullptr on LHS
    • new InputStream<>::_ReadNonBlocking_ReferenceImplementation_ForNonblockingUpstream and implementations of several more InputStream::ReadSome() subclasses
    • use const & in a few more places for streams
    • more cleanups - TextInput/OutputStream etc not copyable anymore (if needed downcast to base or add Ptr)
    • Lose Streams/ToDo.md - cuz now in shttps://stroika.atlassian.net/secure/Dashboard.jspa
    • back to names BufferedInputStream, ETC - all without the Ptr at the end, and instead made them not copyable (just assignable to base class Ptr types). And added nested Ptr classes they could be assigned to (like BufferedOutputStream::Ptr)
    • lose deprecated usage we dont need yet for bufferedstreams
    • refactored InputOutputStream to use new Ptr/Rep design pattern
    • Streams and related classes - lots of docs clarification, and only real code change was require in SharedRep CTORs that rep != nullptr (and documetned use nullptr_t ctr if you must
    • Major change to socket code - mimicing the refactoring just done to Streams (Ptr).
      To make these classes more accurately reflect the fact that they operate as SmartPtrs - Socket, ConnectionOrientedSocket, ConnectionlessSocket and ConnectionOrientedMasterSocket have ALL been updated to no longer be default constructible, and no longer be copyable/movable.
      ***NOT BACKWARD COMPATIBLE***
      But - this is easy to adopt to. There are nested 'Ptr' classes inside each class, which are just like the owning class (e.g. Socket) except for being copyable and default constructible.
      So if you have code like: XXX (where XXX is Socket, or ConnectionOrientedSocket for example), just replace it with XXX::Ptr everywhere you have a copyable object (only exception being where you construct a specific kind of socket).
      So ConnectionOrientedSocket s = localSocketToAcceptOn.Accept (); becomes: ConnectionOrientedSocket::Ptr s = localSocketToAcceptOn.Accept ();
  • regression test configurations
    • clang 3.9 and 4.0 regression test configs changed cuz c++1z builds dont work (not debugged why)
    • clang goes abck to default to c++14 since c++1z not building (debug but not high priority)
    • use c++1z instead of c++17 for clang 4.0 or later as default
    • updated regression test args mostly changing vrsion of C++ libs dependend on
    • for clang4.0 and greater, default to $noSanitizerFlags having function in it - to silence a warning we wish to suppress. For https://stroika.atlassian.net/browse/STK-601 details. ALSO - lose support in configure script for clang 3.5 (and dont set use stdc++11 for before gcc 4.9, since we want to abandon c++11 support)
  • Lose old _Deprecated_ declarations for SQLite::DB, CircularSubString, and kBadIndex
  • Support JSON::Writer option fJSONPrettyPrint; - and though defaults on
  • Added regression test to verify can Write and Read multiple JSON objects and read without getting EOF Write2JSONSThenRead2JSONsWithSharedStream_
  • new WaitableEvent::kWaitQuietlyTimeoutResult and kWaitQuietlySetResult; DEPRECATED kTIMEOUTBoolResult
  • simplify ObjectVariantMapper's FromGenericObjectMapperType and ToGenericObjectMapperType
  • marked https://stroika.atlassian.net/browse/STK-157 resolved: just documented BLOB code better that uses C++ standard thread safety, and used Debug::AssertExternallySynchonizeedLock
  • HistoricalPerformanceRegressionTestResults/PerformanceDump-2.0a209-{Windows-x86-vs2k17,linux-gcc-6.3.0-x64,MacOS-x86-XCode8}.txt
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Linux,MacOS-XCode8,Windows-VS2k17}-2.0a209-OUT.txt
    • vc++2k17
    • MacOS, XCode 8
    • gcc 5.4
    • gcc 6.3
    • gcc 7.1
    • clang++3.7.1 (ubuntu)
    • clang++3.8.1 (ubuntu)
    • clang++3.9.1 (ubuntu) {libstdc++ and libc++}
    • clang++4.0.0 (ubuntu) {libstdc++ and libc++}
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined, gcc5 and gcc6
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined, and debug/release builds (tried but not working threadsanitizer) on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
    • Note - ONE regression test failed on raspberrypi, but seems just timing issue on raspberry pi - not bug (but wroteup notes in case it recurrs)
v2.0a208
2017-06-15
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a207...v2.0a208
  • Visual Studio Debugger templates (.natvis)
    • Serveral .natvis templates {string, weak version of sequence, and a few others}
  • fixed serious bug with operator= in Debug/AssertExternallySynchronizedLock - not sure how it could have been so long unnoticied?
  • Support BlockingQueue<>::EndOfInput ()
  • Streams Changes (big)
    • rename (not backward compat name change but rarely used) Stream (and subclases) _GetRep () to _GetSharedRep () and made protected (as name implies)
    • instead of using _GetSharedRep with Streams - use _GetRepConstRef () and/or _GetRepRWRef ()
    • Added InputStream<>::IsAtEOF () and used in JSON::Reader
    • new InputStream<>::Peek () method
    • rename (with deprecation warning InputStream::ReadPOD to ReadRaw (to match WriteRaw); and added another overload and more docs
    • Renamed ReadSome () -> ReadNonBlocking
    • fixed bug in SharedMemoryStream for fClosedForWrites_ ReadSome () - now ReadNonBlocking()
    • operator==/operator!= for Stream with nullptr
    • new Streams/SharedMemoryStream, docs, and regression test
    • Added OutputStream::Write (const ElementType& e) overload
  • TextReader (mostly) and some TextWriter (Stream) Changes
    • Major changes to TextReader (mostly improvements): uses codecvt to incrementally translate binary data. And implements seekability (but in some cases not backward compatible - you must pass in params saying you want seekabiliuty - since can be costly); And this code is more picky than the code before about bad code pages (see https://stroika.atlassian.net/browse/STK-274) but ask chcekd in should be OK
    • https://stroika.atlassian.net/browse/STK-274 - added optional characterset arg to TextReader, but work still incomplete, https://stroika.atlassian.net/browse/STK-487
    • Several fixes to TextReader code to properly decode charactersets on teh fly (without readall) -and !qMaintainingMBShiftStateNotWorking_ temporary fix/workaround
    • TextReader taking CTOR of Iterable now is seekable
    • performance optimization in TextReader rep constructed wtih Iterable - support put-back
    • fixed TextWriter to use mbstate_t as instance variable
  • ProcessRunner
    • https://stroika.atlassian.net/browse/STK-587 - ProcessRunner and ProcessRunner::BackgroundPRocess now use Debug::AssertExternallySynchronizedLock
    • slight refactoring of ProcessRunner code - just moved large lambda into two private static functions - so easier to follow/debug
    • New ProcessRunner::RunInBackground
    • ProcessRunner: For windows - lose no longer needed DISABLE_COMPILER_MSC_WARNING_START (6262) lines; for POSIX, use CLOSE_ private helper - takes references on POSIX now - and sets fd to -1, and only closes if >= 0, and useStdin uses refreneces to said, so that no race with other threads creating fds we are closing (was already doing that for windows)
    • change ProcessRunner to not do a ReadAll () on the stdin, but to incrementally read as pushing bytes to the pipe (to allow for streaming/large sends
    • Fixed Linux pipe handling code only read as much as needed as late as possible - from input stream (so can do very long lived pipes)
    • slightly more aggressive processrunner big pipe regression test
    • enlarge one bufsize for posix in ProcessRunner
    • process runner debugtrace code cleanups
    • fixed Execution/ProcessRunner to use ReadSome () - so keeps reading output while waiting for more stream input (for SharedMemoryStream)
    • changed TextReader CTOR to default to seekable = true (needed for ReadLine/ReadLines - too many places - will need to address performacne costs
    • use Execution::WaitForIOReady in POSIX ProcessRunner
    • ProcessRunner and BackgroundProcessRunner regtests passing large amounts of data through pipe (and tests for Streams::SharedMemoryStream
    • Misc cleanups/fixes
    • more cleanups to processrunniner posix code - but broken now - last checkin broke unix - so debug
    • experimental changes to POSIX ProcessRunner - so it intermingles reads and writes to avoid deadlock on very large send/recieve combos
    • disable part of the access check code I added in ProcessRunner - cuz only works if given full path
    • small amount of USE_NOISY_TRACE_IN_THIS_MODULE_ trace code added to ProcessRunner; and check on unix for acess to exe before fork - so missing exe can be reported when not using spawn
    • fixed bug with POSIX ProcessRunner - when you write and get block even after reading from stdout/stdin (race); fixed by using nonblocking IO
  • WebServer
    • IO/Network/Transfer/Response returns optional content type (NOT BACKWARD COMPAT); and added GetChaset method, and used that in Response::GetDataTextInputStream () to construct the proper textstream with the right charset conversion. POSSIBLY not backwards compatible, cuz if we get unknown charset back, we will fail to be able to read that stream as text
    • added concept of EarlyInterceptors to ConnectionMgr, and prependstoearly, and moved server and CORS interceptors there.
    • Intercetor::CompletedNormally support
    • WebServer::ILogHandler and LoggingInterctor
    • optional threadpoolname config option for WebServer::ConnectionMgr
    • ObjectVariantMapper code cleanups/docs
    • fixed bug with WebServer/ConnectionManager - include earlyInterceptors
  • WebServervice
    • Frameworks/WebService/Server/VariantValue PickoutParamValues helper
    • Big improvement to WebServices/Server/VariantValue/mkRequestHandler (not backward compat).
      Added list of strings arg to one overload of mkRequestHandler () each each named parameter, and did various templates with different number of args - to map that named param to the in order typed param.
      Tried HARD to get variadic templates working for this, but I'm afraid there is too much of variadic templates I dont understand, so I left work in progress commetned out and chekced in. Just did up to 4 params with explicit typed args. Should be enough for now.. (easy to extend if I need to - easier than getting variadic tempaltes working ;-))
  • JSON Reader
    • rewrote JSON::Reader to use Streams directly - and therefore avoid doing a ReadAll() - that didnt work if you were reading from a live but incomplete stream (like a socket or pipe with multiple jsons)
    • performance tweaks on Variant/JSON/Reader (but because of switch to streams, now about 20% slower than before - more tweaks todo)
    • JSON Parser: use StringBuilder isntead of wstring (seemed to make no diff)
    • slight peroformance tweak to JSON reader - less seeking - more just plow forward
  • ObjectVariantMapper
    • Improved ObjectVariantMapper::Add<> docs - for case of custom reader, and added DoRegressionTests_CustomMapper_11_ - first draft test of mapper.Add<> customer adder example RGBColor
    • fixed ObjectVariantMapper::MakeCommonSerializer and ObjectVariantMapper::AddCommonType to better handle case where T is itself not known about, but a base class is - still register a valid type mapper for the argument type (and documented this corner case behavior)
    • major restructuring of types readers/writers in ObjectVariantMapper -
      but should be nearly 100% transparent to users. Now using ToVariantMapperType and FromVariantMapperType - more strong typing in converters
      https://stroika.atlassian.net/browse/STK-590 - regression runtime error warnings - due to ObjectVariantMapper type safety improvements created
    • ObjectVariantMapper assertions, and document https://stroika.atlassian.net/browse/STK-581
    • ObjectVariantMapper: renamed ToVariantMapperType<> to FromObjectMapperType<> and FromVariantMapperType<> to ToObjectMapperType<> - to make the rest of the naming in this module simpler and more clear and consistent
    • ToGenericVariantMapperType/FromGenericVariantMapperType use void* not Byte*
    • nearly complete switch to using From/ToVariantMapperType<> instead of From/ToGenericVariantMapperType (so more type safe)
    • added ObjectVariantMapper::Add overload
    • ToString () support in ObjectVariantMapper
  • Hypercube classes
    • Improved hypercube regtests
    • https://stroika.atlassian.net/browse/STK-580 more testing of hypercube code
    • https://stroika.atlassian.net/browse/STK-580 - hypercube classes now just about testable but far from complete
    • tiny progress on regtest for datahypercube
    • SparseDataHyperRectangle1/2/3/4
    • more cleanups/progress of factories for SparseDataHyperRectangle
    • minor tweaks to https://stroika.atlassian.net/browse/STK-580 DataHyperRectange
    • DataHyperRectangle now iterable of tuple (T,INDEXES...)
    • cleanup DataHyperRectangle_Sparse_stdmap
    • got DataHyperRectangle_Sparse_stdmap largely working - add works, and iteration works
    • small fixes to DataHyperRectangle_Sparse_stdmap
    • new Containers/DenseDataHyperRectangle and SparseDataHyperRectangle
    • re-disabled one of the SparseDataHyperRectangle build #include hacks - til I can debug
  • Matrix
    • minor cleanup to array indexing (const) for Matrix code
    • matrix backend rep uses Debug::AssertExternallySynchronizedLock and vector<> isntead of Sequence<> for speed in debug builds
    • Small CTOR improvements to LinearAlgebra::Matrix and regtests
    • eggregious error - fData[row * fDimensions.fColumns + col] = value; silently fails - https://stroika.atlassian.net/browse/STK-582
    • fixed a few problems with LinearAlgebra::Matrix code (getat/setat and diemsions)
  • Regression Tests
    • adjust test timeout so we dont fail next time on raspberrypi
    • updated one case of test failure - to allow for HTTP::StatusCodes::kRequestTimeout which sometimes fails talking to httpbin website
    • corrected small mistakes in ObjectVariantMapper RGBColor example
    • increase kMargingOfError from 2.5 to 3.5 seconds on thread wait timing test regression test (for arm/raspberrypi)
    • uppted timeout in regtest from 2.5 to 5.0 for when running on rasberrypi - delays can be wierdly large
  • Documentation
    • thread safety docs - not just generically cleaned up, but docs in many classes about thread safety
    • cleanup Code-Status.md tags on headers
    • Streams docs, including better docs on thread safety docs in letter/envelope distinction
    • docs/cleanusp to recent webservice framework changes
    • general/ohter docs and todo notes
  • Threadpool
    • threadpool optional param name for pool so can appear in individual thread names
    • Minor tweaks to threadpool entry naming
    • more cosmetic tweaks to thread pool entry thread names
    • further improved (for unix) threadpool entry names
  • Containers
    • moved include of archtype in concrete subtype outside wrapper #ifdefs so as to avoid deadly embrace with includes if bad order of #includes - more fine grained includes avoids embrace
    • renamed the namespace in which Containers Factories reside from Concrete to Factory
    • moved a couple of #includes to allow nesting with factories (containers) work better
    • Sequence:: opeator[] imporvements - see https://stroika.atlassian.net/browse/STK-582 - but still not right; added regtests for this, and notes on remaining (now new) problems - with references/rvalue reference of base class for TemporaryElementReference_
    • Major changes to DoublyLinkedList<> - actually supporting double linking. Should make big performance improvement, but could EASILY be buggy - esp the patching logic. BUt so far appears to pass regtests. Also - empriically - seems SLOWER (slightly) - not faster (at least my exsiting test cases in performance regtests)
  • ThirdPartyComponents
    • use sqlite 3.19.3
    • openssl - experimented with 1.1.0f - but not using yet cuz hard to build with Windows (perl issues)
  • URL::Compare () and operator<><=>=
  • more tweaks to FileAccessMode change
  • Added HTTP::Status::kRequestTimeout = 408 define
  • Changes to NearlyEquals(is_float_type version) - so when diff is infinity, compare a little differently. Not 100% sure this is right, but coerrce to TC first. This fixes an issue where called NearlyEquals(sequence[i] and sequence[i] returns a special temporary type (that cannot be assigned to); Logic looks OK
  • /bigobj in windows project files (vs2k17) for one more file
  • New CodePage::LookupCodeConverter
  • workaround clang bug qCompilerAndStdLib_DefaultCTORNotAutoGeneratedSometimes_Buggy
  • HistoricalPerformanceRegressionTestResults/PerformanceDump-2.0a208-{Windows-x86-vs2k17,linux-gcc-6.3.0-x64,MacOS-x86-XCode8}.txt
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Linux,MacOS-XCode8,Windows-VS2k17}-2.0a208-OUT.txt
    • vc++2k17
    • MacOS, XCode 8
    • gcc 5.4
    • gcc 6.3
    • gcc 7.1
    • clang++3.7.1 (ubuntu)
    • clang++3.8.1 (ubuntu)
    • clang++3.9.1 (ubuntu) {libstdc++ and libc++}
    • clang++4.0.0 (ubuntu) {libstdc++ and libc++}
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined, gcc5 and gcc6
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined, and debug/release builds (tried but not working threadsanitizer) on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
v2.0a207
2017-05-08
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a206...v2.0a207
  • **warning: NOT BACKWARD COMPATIBLE CHANGE**
    • NOT BACKWARD COMPATIBLE CHANGE - WellKnownLocations::GetApplicationData () on unix switcehd from /var/lib to /var/opt - see docs on that method for why
  • deprecated StructFieldMetaInfo::{eOmit,eInclude} and renaemd to eOmitNullFields, eIncludeNullFields (just in that StructFieldInfo class - base enum remains unchanged)
  • Support gcc 7.1
    • qCompilerAndStdLib_deprecated_attribute_itselfProducesWarning_Buggy to silence a few deprecation warnings
    • tweak qCompilerAndStdLib_static_constexpr_Of_Type_Being_Defined_Buggy for gcc 7.1
    • new qCompilerAndStdLib_process_init_constructor_array_Buggy
    • new qCompilerAndStdLib_noexcept_declarator_in_std_function_Buggy
    • may have found kStrokia_Foundation_Configuration_cplusplus_17 value
  • InternetMediaTypeRegistry
    • new very minimal InternetMediaTypeRegistry - but enough for use in FileSystemRouter
    • windows and Linux supported (only)
  • Memory::Optional
    • https://stroika.atlassian.net/browse/STK-556 - reopened/re-closed - no longer support self-move for Optional class - and documented reference in C++ spec why
    • https://stroika.atlassian.net/browse/STK-577 - allow self-assign in optional - web seems to indicate better that way, and I ran into sensible need for it in HSI code
  • Memory::BLOB
    • more tweaks for BLOB::ToString - for large blobs - AsHex now takes overload arg maxBytesToShow
    • generalized BLOB::Raw arguments - so sb able to pass in vector and fix BLOB::Raw () overload wtih CONTAINER_OF_POD_T to avoid Iterator2Pointer (s.end ()) which fails on vs2k
    • optional maxBytesToShow arg to BLOB::ToString () - despite fact that Characters::ToString () template doesnt use it yet
  • Networking IPv6 support
    • Incomplete, but about 80% working/tested.
    • New IPVersionSupport and SupportIPV4 () and SupportIPV6 () to facilitate in other APIs - saying if we support IPv4 or IPv6.
    • new utilities Network::SocketAddresses () and InternetAddresses_Any /InternetAddresses_Localhost - to facilitate using multiple socket addresses for v4 and v6
    • WebServer framework now fully supports IPv6 (tested in sample app), In particular, you can now curl http://192.168.244.187:8080 OR curl http://fe80::256b:dfd2:f4e:59b4%19:8080 with the web server sample
    • use sockaddr_storage instead of sockaddr in a couple places to avoid failure on IPv6
    • workaround https://stroika.atlassian.net/browse/STK-578 - bug with IPV6_MULTICAST_LOOP on linux
    • support dualstack sockets code differences between windows/unix (kUseDualStackSockets_ = false - for Socket code - disable feature since not same between windows and unix (default) and I think least error prone usage for stroika will be no dual stack (was confusing getting addrinuse when made no sense))
    • modbus listen on IPV4 and IPv6
    • Replaced (deprected) Socket::ProtocolFamily - use SocketAddress::FamilyType instead
    • GetPrimaryNetworkDeviceMacAddress () now checks IPv4 and IPv6 for sockets/hardware address (still takes first)
    • refactored SSDP code to work with IPv6 - incomplete, and not fully functional (with ipv6)
  • Samples
    • refactor and cleanup the Services Sample
    • help string on SSDPClient
    • fixed bug in sample (log/string format) - and code comments
    • WebServer supports IPv6
    • Sample WebServer demos use of FileSystemRouter - with sample-html-folder
  • DataHyperRectangle
    • Draft implementation (not yet useable) with notes about how to improve.
    • Should support both dense and sparse representations (probably different baseclasses cuz different behavior expected for iterable/size)
  • Makefile/Build System improvements
    • new script ScriptsLib/GetMessageForMissingTool.sh and used it in makefiles to try to give better suggestions on how to install missing components (little tested so probably needs tuning)
    • use SHELL=/bin/bash so echo knows about -n (on macos)
  • ConnectionManager::Options refactoring
    • ConnectionManager::Options refactoring and updated sample app to use (and use instance variable router so more closely mimics likely users usage)
  • Docs/format
    • ReadMe docs cleanups
    • new clang-format
  • ThirdPartyComponents
    • Tried LZMA SDK version 1700, but had to revert to using LZMA SDK 1604 - 1700 much chnaged, and I can find no docs, and the changes appear pretty illogical - so not sure ever will upgrade - maybe lost this and replace with other lib for lzma support?
    • curl v7.54.0
    • SQLite Version 3.18.0
  • Timing cleanups on regtests
    • dbgtrace to find limits on failures for timing issue on raspberry pi thread tests
  • added Test49_SetOfStringCTORIssue_ () to capture issue with interaction between String operator T() method and Set CTOR. Decided to fix String code - and elimiated conversion operator ; and documented why in String::As<> method overloads
  • qCompilerAndStdLib_DefaultCTORNotAutoGeneratedSometimes_Buggy broken in clang 3.8 too, 3.7 and Apple-Clang
  • SignalHandler::ToString () - hopefully portable change but inspired by error message from gcc 7.1.
  • String::LimitLength () - slight optimizaiton and redefined behavior so only does right trim (or left if !keepLeft) - and iff needed to get under the argument maxLength
  • Added Iterable::Iterable (const CONTAINER_OF_T& from)
  • new methods Bijection::Map and Bijection::InverseMap
  • Added new WaitForSocketIOReady
  • Frameworks/WebServer/FileSystemRouter
  • fixed FileSystem::GetFileSuffix () for LINUX
  • added DataExchange/InternetMediaType kImage_JPEG_CT
  • USE_NOISY_TRACE_IN_THIS_MODULE_ cleanups to ThreadPool code
  • docs/cleanups on RegularExpression code - make clearer default syntax, and just use default argument now
  • new Set<> Union/Difference/oeprator+/operator- overloads
  • HistoricalPerformanceRegressionTestResults/PerformanceDump-2.0a207-{Windows-x86-vs2k17,linux-gcc-6.3.0-x64,MacOS-x86-XCode8}.txt
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Linux,MacOS-XCode8,Windows-VS2k17}-2.0a207-OUT.txt
    • vc++2k17
    • MacOS, XCode 8
    • gcc 5.4
    • gcc 6.3
    • gcc 7.1
    • clang++3.7.1 (ubuntu)
    • clang++3.8.1 (ubuntu)
    • clang++3.9.1 (ubuntu) {libstdc++ and libc++}
    • clang++4.0.0 (ubuntu) {libstdc++ and libc++}
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined, gcc5 and gcc6
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined, and debug/release builds (tried but not working threadsanitizer) on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
    • NOTE - Linux failures: ssh lewis@raspberrypi /tmp/Test37 - ignored cuz just guess at timing window for thread finish, and took too long - update next build of code to be more tolerant; and ignored test on Foundation::IO::Network test on linux cuz just sporadic network error (DNS)
v2.0a206
2017-04-17
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a205...v2.0a206
  • --apply-default-debug-flags now does --sanitize address,undefined --no-sanitize vptr by default (gcc and clang)
  • >Frameworks::WebServices
    • First(rough) draft
  • Frameworks::WebServer
    • optional SO_LINGER support in Frameworks/WebServer/ConnectionManager
    • Optional SetAutomaticTCPDisconnectOnClose support
  • IO::Network::Socket code
    • https://stroika.atlassian.net/browse/STK-574: - Socket::GetAutomaticTCPDisconnectOnClose Socket::SetAutomaticTCPDisconnectOnClose and hooks in SOcket::Close ()
    • refactoring of IO::Network::Socket code - new classes ConnectionOrientedMasterSocket, ConnectionOrientedSocket, ConnectionlessSocket
    • more USE_NOISY_TRACE_IN_THIS_MODULE_ defines for network/socketio debugging and other DbgTrace () cleanups
    • BreakWriteIntoParts_ for socket write - even on Linux. Not obvious if needed, but safer and doesnt cost much
    • Socket::Shutdown() support
    • Docs
    • Socket::GetType (), and deprecated SocketKind (renamed to Socket::Type)
    • more IO::Network::Socket cleanups - and allow RecieveFrom () to take nullptr for fromaddress
  • >WaitForIOReady
    • WaitForIOReady class now supports more kinds of events to monitor (and uses a set), and other small simple related cleanups
    • WaitForIOReady supports quiet and non quiet variants (quiet returns optional and non-quiet throws)
  • RegularExpression::kNONE and RegularExpression::kAny; and added constexpr aliases for RegularExpression::SyntaxType::eECMAScript etc to RegularExpression::eECMAScript
  • SmallStackBuffer::reserve/capacity and StringBuilder reserve/capacity - https://stroika.atlassian.net/browse/STK-573; SmallStackBuffer no longer requires explicit arg in CTOR; SmallStackBuffer::Invariant ()
  • added void to default set of serializers in ObjectVariantMapper
  • dbgtrace improvement in Execution/ThreadPool
  • Use constexpr in a few more places
  • start trying to workaround qCompilerAndStdLib_SFINAEWithStdPairOpLess_Buggy regression/bug clang
  • workaround for perl script regression/issue caused by new perl version v5.24.1 in ubuntu 17.04
  • Most Unix tests now on Ubuntu-17.04
  • HistoricalPerformanceRegressionTestResults/PerformanceDump-2.0a206-{Windows-x86-vs2k17,linux-gcc-6.3.0-x64,MacOS-x86-XCode8}.txt
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Linux,MacOS-XCode8,Windows-VS2k17}-2.0a206-OUT.txt
    • vc++2k17
    • MacOS, XCode 8
    • gcc 5.4
    • gcc 6.2
    • gcc 6.3
    • clang++3.7.1 (ubuntu)
    • clang++3.8.1 (ubuntu)
    • clang++3.9.1 (ubuntu) {libstdc++ and libc++}
    • clang++4.0.0 (ubuntu) {libstdc++ and libc++}
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined, gcc5 and gcc6
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined, and debug/release builds (tried but not working threadsanitizer) on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
v2.0a205
2017-04-07
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a204...v2.0a205
  • >Frameworks/NetworkMonitor/Traceroute
    • fixed traceroute compute of hop time for TTL expired and dest-unreachables
    • major refactoring of Frameworks/NetworkMonitor code - Pinger helper class and separate sample from single ping - and start factoring out ICMP specific parts (so we can do udp/etc/ pings)
    • pass in options to Traceroute::Run in sample
    • fixed several names in IPV4 IP PacketHeader to match the linux defs - linux field names - no standards for this but no need to differ without a reason; and added namespaces for V4 on IP and ICMP stuff - cuz all fairly different form IPV6
    • Now have decent - 90% - traceroute functionality.
      (timing broken but that will be easy to fix).
      Mostly added address etc params to TTLExiored and DestinationUnreachable excetpions.
      Fixed buffer size for recv_buf (too small generates bad error message).
      Fixed compare of original with responding (echoed) request id - so we get the right icmp header to check against.
    • traceroute code - just vectors through ping code
  • >clang-4.0.0
    • clang-4.0.0 support, and added to regtests
    • -stdc++1z doenst seem to work right for clang so go back to 1y
    • qCompilerAndStdLib_regexp_Compile_bracket_set_Star_Buggy is still broken with clang4 and its libstdc++
  • _MS_VS_2k17_15Pt1_
    • _MS_VS_2k17_15Pt1_ - support Visual Studio.net 2k17 .1 release
  • IO::Network
    • Added InternetAddress::GetAddressSize (), and new IO::Network::CIDR class
    • InternetAddress - make in_addr_t CTOR work portably (including windows)
    • Added DNS::QuietReverseLookup ()
    • new InternetAddressRange - to fixup CIDR classes. Incomplete but decent draft
    • ToString for socket - use decimal to show port#
  • Samples
    • Tweak UPnP/SSDP/Client/Search - docs and predefined strings
    • WebServer
    • Traceroute sample improvements/display/options
  • Frameworks/WebServer:
    • Use Mapping<> instead of std::map (not 100% backward compat but sb close)
    • InterceptorChain::InterceptorChain::AddBefore/AddAfter helpers.
    • More docs on InterceptorChain
    • new Response::AppendToCommaSeperatedHeader () helper
    • Fixed WebServer::ConnectionManager to respect before/after interceptors
  • Makefiles and Scripts:
    • minor cleanup to warnings about path too long for xerces
    • tweak ScriptsLib/MakeBuildRoot to better take into acount MAKE_INDENT_LEVEL
    • silence needless info warning from mklink call
  • Docs
    • coding convention docs
  • fixed typo with qCompilerAndStdLib_Supports_stdoptional
  • various small code cleanups and docs cleanups for Math/Optimization/DownhillSimplexMinimization
  • DataExchange/Variant/Writer new Write() overload (/1 return blob), and doc strings
  • Added aliases for NullFieldHandling::eOmit/eInclude in ObjectVariantMapper::StructFieldInfo and minor related regtest cleanups and added call to them in regtest
  • XML::QuoteForXMLW and XML::QuoteForXMLAttributeW take/return String (not wstring)
  • quite a few warnings silenced - some Led issues with function pointers cast to int, mostly mismatch between signed/unsinged and size_t - on 64-bit windows builds; and got rid of qTemplatesWithMixOfNestedClassesWithCommonNamesGetsConfusedBug
  • Cleanup display of Duration::PrettyPrint - spacing - following nist rule (doc on web) about space before units
  • improved DbgTrace for throwing invalid version strings
  • Exeuction::Throw/2 - with trace message overload - no longer prints stacktrace cuz done in Throw/1 which it vectors through
  • HistoricalPerformanceRegressionTestResults/PerformanceDump-2.0a205-{Windows-x86-vs2k17,linux-gcc-6.3.0-x64,MacOS-x86-XCode8}.txt
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Linux,MacOS-XCode8,Windows-VS2k17}-2.0a205-OUT.txt
    • vc++2k17
    • MacOS, XCode 8
    • gcc 5.4
    • gcc 6.2
    • gcc 6.3
    • clang++3.7.1 (ubuntu)
    • clang++3.8.1 (ubuntu)
    • clang++3.9.1 (ubuntu) {libstdc++ and libc++}
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined, gcc5 and gcc6
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined, and debug/release builds (tried but not working threadsanitizer) on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
    • Failure on test 36 - Execution::Threads - raspberrypi - innocuous
v2.0a204
2017-03-22
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a203...v2.0a204
  • >***No Longer supporting VS2k15***
    • lose oboslete (only used for vs2k15) - qCompilerAndStdLib_ObjectReaderRangeReaderDefaultArg_Buggy, qCompilerAndStdLib_autogenerated_CTOR_from_default_initial_values_used_with_initializer_Buggy, qCompilerAndStdLib_DefaultValueInClassDeclarationBreaksAutoCTORDef_Buggy, qCompilerAndStdLib_inet_ntop_const_Buggy, qCompilerAndStdLib_constexpr_with_delegated_construction_Buggy, qCompilerAndStdLib_constexpr_atomic_ptr_null_initializer_Buggy, qCompilerAndStdLib_largeconstexprarray_Buggy, qCompilerAndStdLib_constexpr_somtimes_cannot_combine_constexpr_with_constexpr_Buggy, qCompilerAndStdLib_constexpr_with_delegated_construction_Buggy
  • New NetworkMontior framework
    • New Sample TraceRoute (traceroute and ping functionality)
    • New InternetProtocol::ICMP module
    • New InternetProtocol::IP module
    • Fully working Ping based on ICMP, but NOT functional yet traceroute. Someday also do traceroute via udp/tcp/etc.
  • Duration pretty-print: lose 1 µs, 600 ns and instead generate 1.6 µs; and updated regression tests, and added picoseconds to duration pretty printer
  • Socket added optional timeout parameter to Socket::ReceiveFrom ()
  • Makefile cleanups
    • more makefile cleanups - factoring Subdirs rule into SharedBuildRules-Default.mk
    • simplfiy makefile use of list-objects
  • Iterable::NthValue () utility
  • BLOB::Raw () overloads for strings, and BLOB::Raw () overloads
  • Range::Circle () method
  • turn qCompilerAndStdLib_constexpr_union_enter_one_use_other_Buggy on for msvc 2k17 - cuz broken in case of use in conditional<> type
  • Added Socket::Socket () CTOR overloads to pass in more parameters - for family, and protocol etc
  • dbgtrace message in Library/Sources/Stroika/Foundation/Execution/Thread
  • in a few samples, add SIGPIPE= Execution::SignalHandlerRegistry::kIGNORED
  • New Stroika_Foundation_Configuration_STRUCT_PACKED(...) macro
  • improved Debug::TraceContextBumper in IO::Socket code
  • HistoricalPerformanceRegressionTestResults/PerformanceDump-2.0a204-{Windows-x86-vs2k17,linux-gcc-6.3.0-x64,MacOS-x86-XCode8}.txt
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Linux,MacOS-XCode8,Windows-VS2k17}-2.0a204-OUT.txt
    • vc++2k17
    • MacOS, XCode 8
    • gcc 5.4
    • gcc 6.2
    • gcc 6.3
    • clang++3.7.1 (ubuntu)
    • clang++3.8.1 (ubuntu)
    • clang++3.9.1 (ubuntu) {libstdc++ and libc++}
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined, gcc5 and gcc6
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined, and debug/release builds (tried but not working threadsanitizer) on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
v2.0a203
2017-03-15
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a202...v2.0a203
  • ***LIKELY LAST VERSION SUPPORTING VS2k15***
  • Debug::TraceContextBumper optional extra sprintf arg
    • Debug::TraceContextBumper now takes overload with extra sprintf args, that is appending in log as (stuff); useful to abbreviate output and calls of TraceContextBumper - and retrofitted stroika code to use it
    • new Stroika_Foundation_Debug_OptionalizeTraceArgs macro to undo performance hit from recent Debug::TraceContextBumper change (eval args to the inner arg DbgTrace) - and more docs
  • Sequence<>::IndexOf - and losing kBadSequenceIndex ***NOT BACKWARD COMPATIBLE***
    • not backward compatible! - Sequence<>::IndexOf(values other than iterator) now returns Optioanl - instead of sentinal value
    • Sequence<> cleanups - not fully backward compatible - moved kBadSequenceIndex from public global scope to protected member
    • Minor speed tweaks and fixes to laset checkin on IndexOf () - for Sequence ... and test cases.
  • https://stroika.atlassian.net/browse/STK-572: set TRAITS>::_ArrayIteratorBase::SetIndex () to use shared_lock<> on fData (but should do non-shared lock on its own protective mutex
  • ***NOT BACKWARD COMPATIBLE*** - deprecate String::kBadIndex; and String::Find() returns Optional instead of kBadIndex on not found
  • ***NOT BACKWARD COMPATIBLE*** - deprecate String::CircularSubstring - and instead add more overloads for SubString() to do the same thing. If called with unsigned params, it does as it always has. But if it is given signed int params, allow negative to be interpretted as from the end
  • new makefile org for UNIX - lose making of symbolic links and build from IntermediatesFolder, to instead build from sources and TO Intermediates.
    • The main reason for this change is because symbolic links so badly broken on windows, and want to switch to gnu make for windows builds (not started yet - but this is prereq)
    • no longer need to cross-link makefiles for unix
    • fixed make clean/clobber for unix/makefile Tests
    • moved intemreidatefiles dir for tests to match what I had done for unix case and clean script
    • minor cosmetioc make clean fix
    • removing deprecated/uneeded stuff from ScriptsLib/ApplyConfiguration.
    • use realpath in echo liines so we substitute StroikaRoot string in echo- display makefile regression due to changes in where we build from
    • lose ALL_OBJS_DONE_HACK makefile hack
  • fixed DurationRange to support Pin () - needed GetNext/GetPrev in traits - and added regtests
  • ReadMountInfo_getfsent_ () support for MacOS
  • Run MSFT code analysis tool: plug one apparent handle leak (detachedrunprocess), and silenence a slew of other bogus warnings (DISABLE_COMPILER_MSC_WARNING_START) that were specific to the analysis tool
  • adjust timeout in thread test to avoid failure on very slow systems (like raspberrypi with asan/ubsan/debug)
  • Visual Studio.net 2k17 samples solution cleanup
  • minor cleanups to Configuration::GetSystemConfiguration_CPU - due to regression caused by String::Find () changes (reactio to it)
  • improved DbgTrace on JoinMulticastGroup / LeaveMulticastGroup
  • tweak WebGet.sh: messages and no-check-certificate because on wget because sometimes mirrors of source code have invalid certs, and we dont want to fail builds over that
  • added missing libraries for VS2k15 SSDPClient/SSDPServer
  • lose old deprecated code - OutputStream::WriteRaw()
  • HistoricalPerformanceRegressionTestResults/PerformanceDump-2.0a203-{Windows-x86-vs2k17,linux-gcc-6.3.0-x64,MacOS-x86-XCode8}.txt
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Linux,MacOS-XCode8,Windows-VS2k15,Windows-VS2k17}-2.0a203-OUT.txt
    • vc++2k15 Update 3.2
    • vc++2k17
    • MacOS, XCode 8
    • gcc 5.4
    • gcc 6.2
    • gcc 6.3
    • clang++3.7.1 (ubuntu)
    • clang++3.8.1 (ubuntu)
    • clang++3.9.1 (ubuntu) {libstdc++ and libc++}
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined, gcc5 and gcc6
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined, and debug/release builds (tried but not working threadsanitizer) on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
    • INNOCUOUS FAILURE: UNIX and Windows failures on test 41 - FAILED: RegressionTestFailure; false;;..\..\..\41\Test.cpp: 389 - were innocuous - remote network problem
v2.0a202
2017-03-08
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a201...v2.0a202
  • Now supporting Visual Studio.net 2017; soon losing release for previous RC versions, and then losing VS2k15 support
  • fixed small bug in Optional_Traits_Inplace_Storage::StorageType_::StorageType_ (StorageType_&& src) - which triggered ubsan error in Sample_SystemPerformanceMonitor - constructing datetime which moves a optional timezone in CTOR). I think it was an innocuous bug but best to elimninate the noise/warn from ubsan!
  • FileOutputStream integrated support for BufferFlag
  • fixed makefile to check for pkg-config - critcal to avoid build error with libcurl - referencnging wrong openssl silmently (creates link error on libcurl with ssl regtest)
  • https://stroika.atlassian.net/browse/STK-437 - path length long for xerces build bug
  • UPnP
    • tiny progress on UPnP::DeSerialize ()
    • ToString () methdos on Frameworks/UpNP stuff - and first incomplete draft of UPnP::DeSerialize for DeviceDescription
  • SQLite
    • big - not backward compat - changes to SQLite wrapper: use AssertExternallySynchronizedLock and document thread safety rules
    • renamed SQLite::DB to SQLite::Connection (old name still around with using/deprecated)
    • lose statement CTOR taking raw sqlite dsta strucucture; doc enforce no copy of Connection/Statement
    • set sqlite mode to SQLITE_CONFIG_MULTITHREAD
  • Samples
    • warn about Samples/ArchiveUtility cerr for NYI stuff
    • webserver sample - add options with quit-after and --port
    • Improved (did easy part) of UPnP::Serialize, and added print out of results to Sample SSDPClient
  • fix makefile issue for tests that prevented tests from being build with alternate makeroot (like when using stroika inside other product like WTFMate)
  • tiny bit of progress on DiskInfoType in IO::FileSYstem
  • minor - mostly cosmetic cleanups to DateTime (ctors mostly)
  • small cleanups to timezone/timeofday/date/datetime CTORs - constexrp - more to come
  • variations on WeakAssert, lik WeakAssertNotImplemented, WeakAssertNotReached () etc
  • InternetMediaType::ToString ()
  • IO::Network::Interface::ToString () implemetned
  • VERSION=7.53.1 libcurl
  • move stk vs2k17 solution files (stroika lib, samples, tests, etc) to Worksapces folder
  • Foundation/IO/FileSystem/Disk & MountedFilesystem code
    • Frameworks/SystemPerformance/Instruments/Filesystem
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Linux,MacOS-XCode8,Windows-VS2k15,Windows-VS2k17}-2.0a202-OUT.txt
    • vc++2k15 Update 3.2
    • vc++2k17
    • MacOS, XCode 8
    • gcc 5.4
    • gcc 6.2
    • gcc 6.3
    • clang++3.7.1 (ubuntu)
    • clang++3.8.1 (ubuntu)
    • clang++3.9.1 (ubuntu) {libstdc++ and libc++}
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined, gcc5 and gcc6
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined, and debug/release builds (tried but not working threadsanitizer) on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
    • Two innocuous build problems ignored - test 36 on rasberrypi, line 254 - fail - cuz of timing issue with asan and thread waits; and SSDPClient/Server not linking on VS2k15 (project file)
v2.0a201
2017-03-02
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a200...v2.0a201
  • Stroika_Foundation_Execution_Synchronized_USE_NOISY_TRACE_IN_THIS_MODULE_; and minor related cleanups
  • new regression test synchonized - Private_::Test2_LongWritesBlock_ - cuz of an issue john thought might be broken
  • Frameworks/IO/Filesystem partial refactor to Foundation::IO::FileSystem
    • new Foundation::IO::FileSystem Disk/MountedFilesystems
    • IO::Filesystem::MountedFilesystems has speed tweeks on unix - using poll - so doesnt refetch /proc/mounts if unchanged
    • various docs and other cleanups over what was in the frameworks code
    • refactored frameowrks code to use Foundation::IO::FileSystem Disk/MountedFilesystems
    • More todo - but this was enough for my Block needs (faster getmountedfilesystems)
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Linux,MacOS-XCode8,Windows-VS2k15,Windows-VS2k17}-2.0a201-OUT.txt
    • vc++2k15 Update 3.2
    • vc++2k17RC4
    • MacOS, XCode 8
    • gcc 5.4
    • gcc 6.2
    • gcc 6.3
    • clang++3.7.1 (ubuntu)
    • clang++3.8.1 (ubuntu)
    • clang++3.9.1 (ubuntu) {libstdc++ and libc++}
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined, gcc5 and gcc6
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined, and debug/release builds (tried but not working threadsanitizer) on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
v2.0a200
2017-02-28
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a199...v2.0a200
  • many cosmetic cleanups - mostly USE_NOISY_TRACE_IN_THIS_MODULE_ dbg trace messages
  • Networking
    • new function InternetAddress::AsAddressFamily () ; and fixed InternetAddress::Compare () for case of ipv6
    • Windows support (mostly - as mcuh as I can) - for details of TCP keepalives - TimeIdleBeforeSendingKeepalives and fTimeBetweenIndividualKeepaliveProbes
  • fixed ScriptsLib/ExtractVersionInformation.sh to strip trailing LF on FullVersionString
  • fixes to OpenSSL makefile so we start checking diff of regtest results again (unix only cuz failing on windows - but closer on windows); and check valid configuration; FIXES build (failure) on BLOW (bash on linux on windows) - maybe - mostly/partly?
  • Improved reporting from ScriptsLib/CheckValidConfiguration.sh
  • UPnP
    • Small cleanups to SSDP code - especially listener, and making fLocation in advertisement be of type URL
    • ToString () helpers added
  • Tested (passed regtests)
    • NOTE: failures on this build were just due to network error copying to raspberrypi
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Linux,MacOS-XCode8,Windows-VS2k15,Windows-VS2k17}-2.0a200-OUT.txt
    • vc++2k15 Update 3.2
    • vc++2k17RC4
    • MacOS, XCode 8
    • gcc 5.4
    • gcc 6.2
    • gcc 6.3
    • clang++3.7.1 (ubuntu)
    • clang++3.8.1 (ubuntu)
    • clang++3.9.1 (ubuntu) {libstdc++ and libc++}
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined, gcc5 and gcc6
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined, and debug/release builds (tried but not working threadsanitizer) on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
v2.0a199
2017-02-26
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a198...v2.0a199
  • New Math::Round() templated function - to do ROUNDING but SAFELY (C++ convert float to int is undefiend on overload - so this pins); and used it in every place Stroika was currently doing round and cast (maybe more needed but hard to search for); fixed bug with MacOS call to poll () - where very large negative number rounded, and then converted to int resulted in netgative # - which didnt work with macos poll()
  • ToString () support in more places
  • big simplication of Socket::Accept () code - hopefully preserving the correctness for interuption and EINTR etc support
  • Support keep-alives in Socket class, and Curl/WinHTTP based Transferconnection classes (as well as for linux TCP_KEEPCNT/TCP_KEEPIDLE/TCP_KEEPINTVL)
  • new Socket::setsockopt<> method; and related cleanups and docs improvments to Socket code
  • FileAccessMode now takes OPTIONAL string and OPTIONAL file access mode; use that to better report when we are guessing and when we are givin inforation about the file that failed. And fixed FileInputStream/FileOutputStream to report filename (and access modes) for Read/Write/Flush operations (not just open); and fixed ThroughTempFileWriter to also report filename when throwing FileAccessException; NOTE - NOT BACKWARD COMPAT CHANGE ON GetFileName/GetFileAccessMode on FileAccessException class (returns optional now - not value)
  • new methods Iteratorl<>::reset () and Iterator<>::clear ()
  • new method Optional<>::OptionalValue ()
  • Identified serious iterable/container bug: qStroika_Foundation_Traveral_OverwriteContainerWhileIteratorRunning_Buggy - and created regression test to track it down/fix
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Linux,MacOS-XCode8,Windows-VS2k15,Windows-VS2k17}-2.0a199-OUT.txt
    • vc++2k15 Update 3.2
    • vc++2k17RC4
    • MacOS, XCode 8
    • gcc 5.4
    • gcc 6.2
    • gcc 6.3
    • clang++3.7.1 (ubuntu)
    • clang++3.8.1 (ubuntu)
    • clang++3.9.1 (ubuntu) {libstdc++ and libc++}
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined, gcc5 and gcc6
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined, and debug/release builds (tried but not working threadsanitizer) on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
v2.0a198
2017-02-23
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a197...v2.0a198
  • fixed crasher bug with Float2StringOptions::ToString ()
  • cleanups to Float2StringOptions - renaming ScientificNotationType to FloatFormatType; and added fixed as option
  • rewrote Iterable::Contains () to use FindFirstThat () - so faster; lose Sequence::Contains() - since inherited one from Iterable is identical
  • openssl 1.1.0e
  • new build / release script helpers
  • HistoricalPerformanceRegressionTestResults/PerformanceDump-2.0a198-{x86-VS2k17,linux-gcc-6.3.0-x64,MacOS-x86-XCode8}.txt
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Linux,MacOS-XCode8,Windows-VS2k15,Windows-VS2k17}-2.0a198-OUT.txt
    • vc++2k15 Update 3.2
    • vc++2k17RC4
    • MacOS, XCode 8
    • gcc 5.4
    • gcc 6.2
    • gcc 6.3
    • clang++3.7.1 (ubuntu)
    • clang++3.8.1 (ubuntu)
    • clang++3.9.1 (ubuntu) {libstdc++ and libc++}
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined, gcc5 and gcc6
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined, and debug/release builds (tried but not working threadsanitizer) on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
v2.0a197
2017-02-22
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a196...v2.0a197
  • Math::LinearAlgebra
    • Early, somewhat usable draft of vector/matrix classes
  • Math::Optimization
    • Foundation/Math/Optimization/DownhillSimplexMinimization - appears to work -with several regression tests
  • Exception tracking
    • qStroika_Foundation_Exection_Exceptions_TraceThrowpoint define so exception tracing can be turned off
    • big change to Exception throw tracing and other related changes (many fewer specialziations because they use fact that you can use .c_str () to get string)
  • Float2StringOptions
    • major changes to Float2StringOptions - data hiding - all accessors
    • and new ScientificNotationType
  • JSON
    • adding Options object to JSON writer
    • adding support for ScientificNotation to FloatConversion code
    • JSON::Writer: Added spacesPerIndent to options;
    • used options internally - including for Characters::Float2String with floating point numbers (instead of direct print/sprintf) - so now externally configurable (via Characters::Float2StringOptions) how we print floats in JSON::Writer
  • slight improvement (change of semantics) to Optional::AccumulateIf
  • qCompilerAndStdLib_autogenerated_CTOR_from_default_initial_values_used_with_initializer_Buggy
  • KeyValuePair<> classes now support constexpr
  • Iterable::Nth () implementation
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Linux,MacOS-XCode8,Windows-VS2k15,Windows-VS2k17}-2.0a197-OUT.txt
    • vc++2k15 Update 3.2
    • vc++2k17RC4
    • MacOS, XCode 8
    • gcc 5.4
    • gcc 6.2
    • gcc 6.3
    • clang++3.7.1 (ubuntu)
    • clang++3.8.1 (ubuntu)
    • clang++3.9.1 (ubuntu) {libstdc++ and libc++}
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined, gcc5 and gcc6
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined, and debug/release builds (tried but not working threadsanitizer) on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
v2.0a196
2017-02-16
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a195...v2.0a196
  • IO::Filesystem: added DefaultNames(IO::FileSystem::FileSystem::RemoveDirectoryPolicy); added quite a few DbgTrace calls (mostly in +#if USE_NOISY_TRACE_IN_THIS_MODULE_); and fixed bug with recursive FileSystem::RemoveDirectoryIf/RemoveDirectory calls
  • DbgTrace improvements to IO/FileSystem/DirectoryIterator
  • added missing Collection::Collection (COPY_FROM_ITERATOR_OF_T start, COPY_FROM_ITERATOR_OF_T end)
  • Fixed assertion error and releated docs (internal) to String class (concactenate)
  • improved error reporting in errno_ErrorException::LookupMessage - different meanings for return value of 0 - meanign worked or didnt work - and use decimal now not hex for reporting #
  • fixed bug john reported with MeanValue () - and added regression test
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Linux,MacOS-XCode8,Windows-VS2k15,Windows-VS2k17}-2.0a196-OUT.txt
    • vc++2k15 Update 3.2
    • vc++2k17RC4
    • MacOS, XCode 8
    • gcc 5.4
    • gcc 6.2
    • gcc 6.3
    • clang++3.7.1 (ubuntu)
    • clang++3.8.1 (ubuntu)
    • clang++3.9.1 (ubuntu) {libstdc++ and libc++}
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined, gcc5 and gcc6
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined, and debug/release builds (tried but not working threadsanitizer) on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
v2.0a195
2017-02-13
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a194...v2.0a195
  • sqlite 3.17.0
  • added (failing) regression test on directory iterator - iteration while the current iterator is duplicated (so forcing clone); bug was on Windows only - and also checked in fix
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Linux,MacOS-XCode8,Windows-VS2k15,Windows-VS2k17}-2.0a195-OUT.txt
    • vc++2k15 Update 3.2
    • vc++2k17RC4
    • MacOS, XCode 8
    • gcc 5.4
    • gcc 6.2
    • gcc 6.3
    • clang++3.7.1 (ubuntu)
    • clang++3.8.1 (ubuntu)
    • clang++3.9.1 (ubuntu) {libstdc++ and libc++}
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined, gcc5 and gcc6
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined, and debug/release builds (tried but not working threadsanitizer) on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
v2.0a194
2017-02-12
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a193...v2.0a194
  • DEPRECATED OuptputStream::WritePOD - use WriteRaw () instead - and added overload of WriteRaw
  • AUTH support (simple and untested) for libcurl and WinHTTP IO::Transfer code
  • support _MS_VS_2k17_RC4_FULLVER_
  • Various docs cleanups - including samples readme docs
  • new ScriptsLib/CheckValidConfiguration.sh script
  • fixed Scripts/FormatCode to use expand to fix tabs
  • new Math::Abs () function - template - and provided specailization for Duration
  • NearEquals() overload for datetime and duration epsilon
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Linux,MacOS-XCode8,Windows-VS2k15,Windows-VS2k17}-2.0a194-OUT.txt
    • vc++2k15 Update 3.2
    • vc++2k17RC4
    • MacOS, XCode 8
    • gcc 5.4
    • gcc 6.2
    • gcc 6.3
    • clang++3.7.1 (ubuntu)
    • clang++3.8.1 (ubuntu)
    • clang++3.9.1 (ubuntu) {libstdc++ and libc++}
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined, gcc5 and gcc6
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined, and debug/release builds (tried but not working threadsanitizer) on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
v2.0a193
2017-02-01
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a192...v2.0a193"
  • important bug - Iterable<>::Where () never matched the first entry: added regtest for that case, and fixed the bug
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Linux,MacOS-XCode8,Windows-VS2k15,Windows-VS2k17}-2.0a193-OUT.txt
    • vc++2k15 Update 3.2
    • vc++2k17RC3
    • MacOS, XCode 8
    • gcc 5.4
    • gcc 6.2
    • gcc 6.3
    • clang++3.7.1 (ubuntu)
    • clang++3.8.1 (ubuntu)
    • clang++3.9.1 (ubuntu) {libstdc++ and libc++}
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined, gcc5 and gcc6
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined, and debug/release builds (tried but not working threadsanitizer) on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
v2.0a192
2017-01-31
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a191...v2.0a192
  • Streams
    • migrated some common code from FileInputStream / FileOutputStream to common module FileStramCommon
    • documentation cleanups on Streams/InputOutputStream
    • https://stroika.atlassian.net/browse/STK-567 : documented/clarified experiemntal InputStream<>::ReadSome API - not working yet probably / mostly
  • Makefile/project files
    • fix where we store obj files in vs2k17 project files (minor) and fix makefile for unix/windows so does faster make clean on library
    • tweak makefile trace formatting
    • faster make clean && make clobber
  • Optional<>::reset () method
  • TRIED thirdpartycomponents zlib 1.2.11; tried setting ZLIB_DEBUG for zlib on debug builds; https://stroika.atlassian.net/browse/STK-568 - wait for fixed version or debug but someday update - ended up with effectly no real change
  • use new FormatCode script - using clang-format now - not happy with how it looks but probably on balance better than astyle (seems less buggy)/li>
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Linux,MacOS-XCode8,Windows-VS2k15,Windows-VS2k17}-2.0a192-OUT.txt
    • vc++2k15 Update 3.2
    • vc++2k17RC3
    • MacOS, XCode 8
    • gcc 5.4
    • gcc 6.2
    • gcc 6.3
    • clang++3.7.1 (ubuntu)
    • clang++3.8.1 (ubuntu)
    • clang++3.9.1 (ubuntu) {libstdc++ and libc++}
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined, gcc5 and gcc6
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined, and debug/release builds (tried but not working threadsanitizer) on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
v2.0a191
2017-01-28
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a190...v2.0a191
  • ToString
    • ToString () attempts at support for elisis (failed) and other cleanups
    • pretty print InternetAddress::ToString () for specail addresses like INADDR_ANY etc - and added V6::kV4MappedLocalhost constant
  • Compiler support change
    • no gcc 5.3 (testing)
    • gcc 6.3
    • clang 3.9.1
    • +gcc6-arm
    • support vis studio.net 2k17 rc3
  • ThirdPartyComponents
    • openssl 1.1.0d
    • use sqlkte 3.16.2
  • Configure script cleanups
  • Remove deprecated code
  • Cleanup docs on ObjectVariantMapper::MakeCommonSerializer; add typename... to it - so it can pass through extra args; used that to implement MakeCommonSerializer - with optional extra args saying how to parse. Added this to regression tests
  • example docs on AddClass using optional type mapper and new optional param to CommonSerializer for URLs
  • use t prefix instead of s for thread_local variables; and documeted it in Coding Conventions doc
  • FileInputStream and FileOutputStream now optionally can be constructed with a file descriptor
  • minor makefile cleanup echos on Cleaning/Clobbering
  • lose qCompilerAndStdLib_constexpr_constant_pointer_Buggy bug define -… … … its not a compiler bug but an unfortunate definition - and I wrote todo item to come up with better workaround, but I have an OK one for now
  • HistoricalPerformanceRegressionTestResults/PerformanceDump-2.0a191-{x86-VS2k17,linux-gcc-6.2.0-x64,MacOS-x86-XCode8}.txt
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Linux,MacOS-XCode8,Windows-VS2k15,Windows-VS2k17}-2.0a191-OUT.txt
    • vc++2k15 Update 3.2
    • vc++2k17RC3
    • MacOS, XCode 8
    • gcc 5.4
    • gcc 6.2
    • gcc 6.3
    • clang++3.7.1 (ubuntu)
    • clang++3.8.1 (ubuntu)
    • clang++3.9.1 (ubuntu) {libstdc++ and libc++}
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined, gcc5 and gcc6
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined, and debug/release builds (tried but not working threadsanitizer) on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
v2.0a190
2017-01-19
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a189...v2.0a190
  • ObjectReader
    • https://stroika.atlassian.net/browse/STK-409 : now supports optional specification of reader in StructFieldInfo - so dont need to add globally to the registry
    • renamed obsolete ObjectReader ListOfObjectReader to ListOfObjectReader_OLD (and use typedef to make ListOfObjectReader name now point to ListOfObjectReader_NEW)
    • Lose MakeActualReader () etc from TRAITS in RepeatedEleemntReader (so you must use CTOR args now to specify subreader)
  • fixed Frameworks/UPnP/SSDP/Client/Search so you can call Start () multipple times in a row (as the docs say you can)
  • changed API for ScriptsLib/FormatCode.sh so I can later update it to not use astyle, but switch to clang-format; run through astyle - new version - 2.0.6
  • https://stroika.atlassian.net/browse/STK-560 - added OPTIONAL type mapper to ObjectVariantMapper::StructFieldInfo
  • remove a bunch of old deprecated code
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Linux,MacOS-XCode8,Windows-VS2k15,Windows-VS2k17}-2.0a190-OUT.txt
    • NOTE - clang 3.8 builds failed on one test file, but I patched qCompilerAndStdLib_typeidoftemplateinlambda_Buggy and should be correct in final release
    • vc++2k15 Update 3.2
    • vc++2k17RC
    • MacOS, XCode 8
    • gcc 5.3
    • gcc 5.4
    • gcc 6.1
    • gcc 6.2
    • clang++3.7.1 (ubuntu)
    • clang++3.8.1 (ubuntu)
    • clang++3.9.0 (ubuntu) {libstdc++ and libc++}
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined, and debug/release builds (tried but not working threadsanitizer) on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
v2.0a189
2017-01-15
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a188...v2.0a189
  • StructuredStreamEvents::ObjectReader
    • renamed/refactored from StructuredStreamEvents::ObjectReaderRegistry to StructuredStreamEvents::ObjectReader::Registry and moved the Readers and other types out of scope of ObjectReaderRegistry into namespace StructuredStreamEvents::ObjectReader. Old code should compile but with deprecated warnings. Easy to update to new format and lose those warnings. Deprecated ObjectReaderRegistry.h
    • cleanups - Activate/Deactive docs and fix for simplereader: deactivate methods that aggreate other readers - must reset/null those pointers so they can be re-used
    • ListOfObjectReader DEPRECATED and new ListOfObjectReader_NEW (soon to be same as old name once I delete the old stuff). Simpler and defined in terms of RepeatedElementReader. Can use ListOfObjectReader_NEW instead or documented hwo to rewrite with ReadDownTo/RepeatedElementReader
    • deprecated mkReadDownToReader and instead use make_shared>ObjectReaderRegistry::ReadDownToReader>
    • Big changes to RepeatedElementReader - in preps to lose move of what is done in traits. Params for Name choice (optional) and factory for subelt reader: now takes optional parameters to replace what was done more awkwardly via traits
    • ObjectReader::Registry cleanups for factory methods - reducing number of params needed and fixing factories for several classes
    • Change parameter to ObjectReaderRegistry::AddClass and ObjectReaderRegistry::MakeClassReader () from Mapping to Traversal::Iterable Purpose was to allow future overloads with options.
          Deprecation warning:
          warning C4996: 'Stroika::Foundation::DataExchange::StructuredStreamEvents::ObjectReaderRegistry::AddClass':
                           USE AddClass(StructFieldInfo[])- deprecated v2.0a189
                          
  • Documentation
    • better readme instructions on running sample service on windows
    • fixed \em Thread-Safety docs - now containers marked C++-Standard-Thread-Safety
    • more thread safety docs cleanups (esp streams)
    • usage exmaple/docs for service code on windows
    • fixed docs in Foundation/Execution/Synchronized.h
  • on failure starting service on windows service framework - (server side) - throw exception
  • use Traversal::Iterator2Pointer () instead of &*
  • HistoricalPerformanceRegressionTestResults/PerformanceDump-2.0a189-{x86-VS2k17,linux-gcc-6.2.0-x64,MacOS-x86-XCode8}.txt
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Linux,MacOS-XCode8,Windows-vs2k15,Windows-VS2k17}-2.0a189-OUT.txt
    • vc++2k15 Update 3.2
    • vc++2k17RC
    • MacOS, XCode 8
    • gcc 5.3
    • gcc 5.4
    • gcc 6.1
    • gcc 6.2
    • clang++3.7.1 (ubuntu)
    • clang++3.8.1 (ubuntu)
    • clang++3.9.0 (ubuntu) {libstdc++ and libc++}
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined, and debug/release builds (tried but not working threadsanitizer) on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
v2.0a188
2017-01-09
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a187...v2.0a188
  • DataExchange/StructFieldMetaInfo ToString () support
  • Support Debugger::Demangle () - windows and linux - and used it in StructFieldMetaInfo::ToString, and for type_index and type_name
  • Support type_index, and type_name in ToString ()
  • ToString: much better documentation on what types are supported
  • ObjectReaderRegistry
    • use Characters::ToString () in place of directly calling .name () on typeid results
    • DataExchange/StructuredStreamEvents/ObjectReaderRegistry AsFactory () on all the readers - makes much more terse:
      so replace:
          registry.Add<vector<Person_>> (
            ObjectReaderRegistry::ConvertReaderToFactory <
              vector<Person_>, ObjectReaderRegistry::RepeatedElementReader<vector<Person_>>
              > ()
          );
      with:
          registry.Add<vector<Person_>> (ObjectReaderRegistry::RepeatedElementReader<vector<Person_>>::AsFactory ());
                          
    • fixed (and enabled) ObjectReaderRegistry regression test john added - Test30, and item # 11 - T11_SAXObjectReader_BLKQCL_GetFactorySettings_Tuners_; Fix was basically the addition of ObjectReaderRegistry::MixinReader
    • Implemented new ObjectReaderRegistery::RangeReader - taking optional params for attribute (or subelement) names, and working with that being passed as param to AsFactory
  • cleanup use of ObjectVariantMapper::AddClass<> - using initializer_list
  • fixed Foundation/Configuration/Enumeration GetDistanceSpanned ()
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Linux,MacOS-XCode8,Windows-vs2k15,Windows-VS2k17}-2.0a188-OUT.txt
    • vc++2k15 Update 3.2
    • vc++2k17RC
    • MacOS, XCode 8
    • gcc 5.3
    • gcc 5.4
    • gcc 6.1
    • gcc 6.2
    • clang++3.7.1 (ubuntu)
    • clang++3.8.1 (ubuntu)
    • clang++3.9.0 (ubuntu) {libstdc++ and libc++}
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined, and debug/release builds (tried but not working threadsanitizer) on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
    • due to reboot problems, unix regtests didnt finish, but would have passed (ran before)
v2.0a187
2017-01-05
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a186...v2.0a187
  • Port Stroika to MacOS (using XCode 8)
    • All third party products work except openssl (fails regression tests - https://stroika.atlassian.net/browse/STK-563)
    • System performance tools not working (stubbed out) cuz macos doesnt support procfs
    • docs and misc additional tools like realpath
    • XCode project and workspace files
    • MacOS bug with sprintf - define and workaround: qCompilerAndStdLib_vswprintf_errantDependencyOnLocale_Buggy
    • tried support older clang but hard cuz no thread_local
    • fixup ScriptsLib/ExtractVersionInformation.sh for darwin sed workaround
    • qPlatform_MacOS define - defined (__APPLE__) && defined (__MACH__)
    • workaround issue with macos and uname (no -o) for make default-configuraitons
    • support qHas_pthread_setschedprio bug/missing feature define for crapple
    • lseek64 - on macos / darwin port
    • strerror_r support for macos
    • configure automatically setting right defaults for macos/xcode
  • Fixed detect qStroika_HasComponent_ATLMFC - was broken (detected when Bob installed on system without atlmfc)
  • malloc.h is linux specific
  • sysinfo is linux specific
  • librt build configuraiton flag (is linux specific)
  • SHELL=/bin/bash in makefiles - works better on macos, and may make porting easier
  • rewrote clone of IO::Filesystem::DirectoryItertor (motivated by port to MacOS, but better anyhow) - not use fdopendir
  • Cleanup some makefile echo messages
  • make Network::GetInterfaces () more resilient for errors from ::ioctl (sd, SIOCGIFFLAGS - for MacOS
  • ObjectVariantMapper
    • lose ObjectVariantMapper ArrayElementHandling - because will be made obsolete by new per-element type support (in classes) - and it appears not actually used anyhow
    • automate conversion to String_Constant of (first) string/name parameter to StructFieldInfo in ObjectVariantMapper
    • DEPRECATED API/CHANGE - Re-order string/offset params to ObjectVariantMapper::StructFieldInfo params (to match xml ones and cuz string most interesting and easier to reads/see) - suggested by John
  • lose unused Foundation/Containers/Common.cpp, and a few other CPP files (ranlib warnings on mac and no point)
  • libcurl - use 7.52.1
  • patched WindowsTargetPlatformVersion to 10.0.14393.0 for xerces and in all the vs2k17 project files
  • fixed check-prerequisite-tools for sqlite
  • building docs cleanups based on feedback from bob
  • new Configuration::GetDistanceSpanned ()
  • lose use of deprecated function MakeCommonSerializer_ContainerWithStringishKey<>
  • HistoricalPerformanceRegressionTestResults/PerformanceDump-2.0a187-{x86-VS2k17,linux-gcc-6.2.0-x64,MacOS-x86-XCode8}.txt
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Linux,MacOS-XCode8,Windows-vs2k15,Windows-VS2k17}-2.0a187-OUT.txt
    • vc++2k15 Update 3.2
    • vc++2k17RC
    • MacOS, XCode 8
    • gcc 5.3
    • gcc 5.4
    • gcc 6.1
    • gcc 6.2
    • clang++3.7.1 (ubuntu)
    • clang++3.8.1 (ubuntu)
    • clang++3.9.0 (ubuntu) {libstdc++ and libc++}
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined, and debug/release builds (tried but not working threadsanitizer) on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
v2.0a186
2016-12-19
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a185...v2.0a186
  • fix for https://stroika.atlassian.net/browse/STK-149 - Optional::ToString
  • ObjectVariantMapper
    • document and FIX the policy for Add () - so that its clear adds of types overwrite previous values. document future todo item https://stroika.atlassian.net/browse/STK-558
    • MakeCommonSerializer_ContainerWithStringishKey DEPRECATED
    • New MakeCommonSerializer_MappingWithStringishKey () and MakeCommonSerializer_MappingAsArrayOfKeyValuePairs ()
    • Changed MakeCommonSerializer to default to MakeCommonSerializer_MappingWithStringishKey (NOT BACKWARD COMPATIBLE)
    • Better docs on all these functions
  • refactored Library/Sources/Stroika/Foundation/IO/Network/Transfer/Client into multiple files (no real changes)
  • minor cleanups/docs BLOB - and fixed BLOB::AttachApplicationLifetime
  • silence an MSVC mostly innocuous warning in Optional code: Optional (U&& from)
  • use lock_guard in pne place in Memory::Optional, but added https://stroika.atlassian.net/browse/STK-557 to track other places where its harder to add
  • Small Timezone class cleanups (use qCompilerAndStdLib_static_constexpr_Of_Type_Being_Defined_Buggy, Timezone::kUnknown)
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Linux,Windows-vs2k15,Windows-VS2k17}-2.0a186-OUT.txt
    • vc++2k15 Update 3.2
    • vc++2k17RC
    • gcc 5.3
    • gcc 5.4
    • gcc 6.1
    • gcc 6.2
    • clang++3.7.1 (ubuntu)
    • clang++3.8.1 (ubuntu)
    • clang++3.9.0 (ubuntu) {libstdc++ and libc++}
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined, and debug/release builds (tried but not working threadsanitizer) on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
v2.0a185
2016-12-16
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a184...v2.0a185
  • Optional
    • Lots of progress - got constexpr stuff working (had to make tons of changes)
    • qCompilerAndStdLib_Supports_stdoptional/qCompilerAndStdLib_Supports_stdexperimentaloptional
    • docs cleanups
    • fixed https://stroika.atlassian.net/browse/STK-556 - speed tweak Optional...opeartpr= for when op= exists in T
  • support compiler bug defines for _MS_VS_2k17_RC1_FULLVER_
  • lose qCompilerAndStdLib_constexpr_functions_opNewMaybe_Buggy - was not compiler bug, and now fixed my code
  • new qCompilerAndStdLib_has_include_Buggy define
  • Fixed https://stroika.atlassian.net/browse/STK-546 - Replace Timezone enumeraiton with an object - defined new Timezone class, and Optional arg to DateTime
  • new BLOB::Repeat() method, and BLOB::Slice (), and BLOB docs
  • use DebugInformationFormat ProgramDatabase instead of EDITANDCONTINUE in the stroika library project files for vs2k17.
  • HistoricalPerformanceRegressionTestResults/PerformanceDump-2.0a185-{x86-VS2k17,linux-gcc-6.2.0-x64}.txt
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Linux,Windows-vs2k15,Windows-VS2k17}-2.0a185-OUT.txt
    • vc++2k15 Update 3.2
    • vc++2k17RC
    • gcc 5.3
    • gcc 5.4
    • gcc 6.1
    • gcc 6.2
    • clang++3.7.1 (ubuntu)
    • clang++3.8.1 (ubuntu)
    • clang++3.9.0 (ubuntu) {libstdc++ and libc++}
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined, and debug/release builds (tried but not working threadsanitizer) on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
v2.0a184
2016-12-07
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a183...v2.0a184
  • Optional
    • Tons more fixes aimed at making Optional work with constexpr Optional x { 1 }; - so I can use in DateTime with Timezone
    • use base class to address on/off destructor
    • Massively rewrote constructors overloads (template trickery) based on http://en.cppreference.com/w/cpp/utility/optional/optional
    • still not done - but down to one major change - using direct object in union instead of array of bytes - and that should fix it - eliminating need to call placement op new
  • WaitForIOReady::WaitUntil () now calls CheckForThreadInterruption (fixes hang in BLKQCL-Controller shutdown regression) and Handle_ErrNoResultInterruption/Execution::Platform::Windows::Exception::Throw checks for poll results
  • added support for DirectoryIterator ::IteratorReturnType::eDirPlusFilename, and FIXED support for eFullPathName
  • Added IO::FileSystem::FileSystem::GetFullPathName ()
  • new NullMutex utility (fake mutex)
  • use <LanguageStandard> instead of <AdditionalOptions> for stdcpplatest option in msvc2k17 project file
  • HistoricalPerformanceRegressionTestResults/PerformanceDump-2.0a184-{x86-vs2k17,linux-gcc-6.1.0-x64}.txt
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Linux,Windows-vs2k15,Windows-vs2k17}-2.0a184-OUT.txt
    • vc++2k15 Update 3.2
    • vc++2k17RC
    • gcc 5.3
    • gcc 5.4
    • gcc 6.1
    • gcc 6.2
    • clang++3.7.1 (ubuntu)
    • clang++3.8.1 (ubuntu)
    • clang++3.9.0 (ubuntu) {libstdc++ and libc++}
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined, and debug/release builds (tried but not working threadsanitizer) on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
    • https://stroika.atlassian.net/browse/STK-552 - Test36 - threads test - failed with std::terminate () but that had no TraceLog and wasn't reproducible
v2.0a183
2016-12-02
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a182...v2.0a183
  • Support Visual Studio.net 2017RC (still support VS2k15 Update 2 or later)
    • fixed configure script to respect --platform parameter; and changed windows RegressionTest code to run BOTH vs2k15 and vs2k17 regression tests (for now)
    • added /std:c++latest to options for compiler in vs2k17 project files
  • ThirdPartyComponents
    • libcurl - 7.51
    • 3.15.2 sqlite
    • openSSL 1.1.0c
  • Optional
    • Tried to get more constexpr stuff working, but ultimately failed/disabled for now - revisit. Needed to switch Timezone to struct that is optional in DateTime
    • progress towards getting constexpr Optional x { 3 } to work
    • qCompilerAndStdLib_Supports_stdoptional and if defined include in Optional.h
    • improved constexpr support in Optional - use trick of union so we can initialize one side and not the other
  • dont use binary_function - because deprecated in C++11
  • re-enabled RequireItemsOrderedByEnumValue_: maybe issue with https://stroika.atlassian.net/browse/STK-549 gone - test more
  • (DEPRECATION)renamed Mapping ContainsValue to ContainsMappedValue - and fixed it to be template function with VALUE_EQUALS_COMPARER
  • fixed bug with ExtractVersionInformation.sh for empty version-sub-stage
  • WebServer/Sockets/ConnectionMgr
    • ConnectionMgr for WebServer now supports multiple SocketAddreses too - and fxied bug with supprting that in Listener
    • IO::Network::Listener cleanups for new WatiForIOReady code
    • DEPRECATION IOWaitDispatcher (unless I find someone still using it - easy to fix)
    • big simplications/imrpveemtns to WatiForIOREady (just fd support) and use that in Listener
    • using Execution::WaitForIOReady in Network::Listener
    • using WSAPoll isntead of WaitForMultipleEventsEx in Execution/WaitForIOReady
    • Added Socket::GetLocalAddress
    • overload of DefaultFaultInterceptor that takes function argument (shortcut/simplify providing own error handler
    • lose faault handling in Router - instead use DefaultFaultHandler
    • reduce verbosity of WebServer/DefaultFaultInterceptor on fault messages
    • cosmetic; and changed default webserver error handling (DefaultFaultInterceptor) to return text, not html
    • Use DefaultFaultInterceptor support - an dto ConnectionManager (webserver)
    • WebServer AddInterceptor and RemoveInterceptor helpers
    • Associate list of before/after interceptors with connecitonmanager
  • reduce verbosity of ToString() on exception messages - so less redundant (need to test a bit but should make things better/more readsable)
  • New Iterable::Accumulate () - and new Iterable::Sum () - rewrote several other Iterable LINQ functions using Accumulate() - and made those accumulators return optional and added variant XXXValue for things like Median/Sum/Accumulate etc - returning T (with default)
  • renamed second template param for Mapping subtypes to MAPPED_VALUE_TYPE
  • renamed second template param for Mapping to MAPPED_VALUE_TYPE and renamed method Values () to MappedValues () to better mimic STL, and to avoid the related name confusion with Iterable::ValueType: Mapping::Values () deprecated (use MappedValues instead)
  • Date::Date (Year year, MonthOfYear month, DayOfMonth day) now constexpr (if not !qCompilerAndStdLib_constexpr_functions_cpp14Constaints_Buggy)
  • support for IteratorReturnType in DirectoryIterator/Iterable - so can return fullpath or just filenames arg for DirectoryIterable
  • tweak warning suppression for gcc/DirectoryContentsIterator
  • Support new WeakAssert() macro - for almost assertions
  • deprecated DirectoryContentsIterator
  • deprecated DeleteAllFilesInDirectory since now a cleaner way in stroika and that was never implemented for unix anyhow)- and used WeakAssert in a few places
  • fixed FileSystem::RemoveDirectory and FileSystem::RemoveDirectoryIf () to directly loop deleting and not use system(rm -rf xxx) - the later it turns out was buggy on windows (and produced weird ...*: cannot remove '': No such file or directory output in regression test 42 on windows
  • assertions now explictly marked noexcept - cannot throw
  • HistoricalPerformanceRegressionTestResults/PerformanceDump-2.0a183-{x86-vs2k15,x86-vs2k17,linux-gcc-6.1.0-x64}.txt
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Linux,Windows-vs2k15,Windows-vs2k17}-2.0a183-OUT.txt
    • vc++2k15 Update 3.2
    • vc++2k17RC
    • gcc 5.3
    • gcc 5.4
    • gcc 6.1
    • gcc 6.2
    • clang++3.7.1 (ubuntu)
    • clang++3.8.1 (ubuntu)
    • clang++3.9.0 (ubuntu) {libstdc++ and libc++}
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined {test accidentially skipped but fine/passes}
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined, and debug/release builds (tried but not working threadsanitizer) on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
v2.0a182
2016-11-10
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a181...v2.0a182
  • improved testing for directoryiterable, and fixed regression on POSIX DirectoryIterator (readdir change - errno)
  • Frameworks/WebServer: use ClientErrorException in Connection module and improve logging so easier to see whats wrong with http client request.
  • improved Throw() template specialization for IO::FileAccessException (call common code so dumps stack trace on throw)
  • DbgTrace cleanups (libcurl, DirectoryIterator, etc)
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Linux,Windows}-2.0a182-OUT.txt
    • vc++2k15 Update 3.2
    • gcc 5.3
    • gcc 5.4
    • gcc 6.1
    • gcc 6.2
    • clang++3.7.1 (ubuntu)
    • clang++3.8.1 (ubuntu)
    • clang++3.9.0 (ubuntu) {libstdc++ and libc++}
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined, and debug/release builds (tried but not working threadsanitizer) on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
v2.0a181
2016-11-08
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a180...v2.0a181
  • https://stroika.atlassian.net/browse/STK-548 workaround (with getaddrinfo and valgrind) - left open to revisit/verify
  • https://stroika.atlassian.net/browse/STK-549 workarounds (static_assert instead of Require but that doesnt work either - tricky) - just comment out asserts and leave 529 open
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Linux,Windows}-2.0a181-OUT.txt
    • vc++2k15 Update 3.2
    • gcc 5.3
    • gcc 5.4
    • gcc 6.1
    • gcc 6.2
    • clang++3.7.1 (ubuntu)
    • clang++3.8.1 (ubuntu)
    • clang++3.9.0 (ubuntu) {libstdc++ and libc++}
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined, and debug/release builds (tried but not working threadsanitizer) on tests
    • bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
v2.0a180
2016-11-06
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a179...v2.0a180
  • ThirdPartyComponents
    • SQLite 3.15.1
    • use OpenSSL 1.1.0b
    • LZMA SDK 16.04 instead of 16.02
  • draft of Bijection::PreImage/Image implementations
  • Compilers
    • Support clang++-3.9 (big rev to BuildClang.sh shell script - use cmake)
    • Support clang++-3.9 with libc++ (one bug workaround with regexp); requires apt-get install libc++abi1
    • gcc 6.2
  • new Documentation/Thread-Safety.md: C++-Standard-Thread-Safety and Must-Externally-Synchronize-Letter-Thread-Safety
  • in sqlite makefile - dont rebuild .a file just because .o file missing (third party products) - speeds builds - probabbly OK
  • document and enforce (Debug::AssertExtenrallySynchonized) new thread policy on IO/FileSystem/DirectoryIterator and DirectoryIterable
  • small fix to case of !qCompilerAndStdLib_static_constexpr_Of_Type_Being_Defined_Buggy
  • possible memleak in posix DirectoryIterator fixed (very rare); but mostly lose deprecated readdir_r, and just use readdir
  • renamed Sequence (GetLast/GetFirst to First); made them more clearly document/hide Iterbale versions; better document Iterbale verisons; and amke First/Last return optional (instead of assert); and added overload 'that' for First/Last to do handy search (first that meets criteria)
  • migrated format-code to ScriptsLib/FormatCode.sh so that shellscript can be re-used by other projects more easily (and added .clang-format file and started experimeneting with clang-format)
  • HistoricalPerformanceRegressionTestResults/PerformanceDump-2.0a180-{x86-vs2k15,linux-gcc-6.1.0-x64}.txt
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Linux,Windows}-2.0a180-OUT.txt
    • vc++2k15 Update 3.2
    • gcc 5.3
    • gcc 5.4
    • gcc 6.1
    • gcc 6.2
    • clang++3.7.1 (ubuntu)
    • clang++3.8.1 (ubuntu)
    • clang++3.9..0 (ubuntu)
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined, and debug/release builds (tried but not working threadsanitizer) on tests
    • 1 bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
    • one valgrind issue with gethostaddr() appears to be false positiive - https://stroika.atlassian.net/browse/STK-548
v2.0a179
2016-10-13
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a178...v2.0a179
  • https://stroika.atlassian.net/browse/STK-535 - issue with regtest [37] Foundation::Execution::ThreadSafetyBuiltinObject -Test10_MutlipleThreadsReadingOneUpdateUsingSynchonizedContainer_
    • TONS DONE - BUT STILL INEFFECTIVE; NOT a regression (apparently), just a newly noticed bug Test10_MutlipleThreadsReadingOneUpdateUsingSynchonizedContainer_ is a a new test
    • STILL NOT FIXED - but worked on alot - and possibly slightly better - but possibly not (maybe just slower mmissing core problem)
    • qIterationOnCopiedContainer_ThreadSafety_Buggy to trigger bug workaroudn (temporarily) and document hacks (which failed) to fix qIterationOnCopiedContainer_ThreadSafety_Buggy/https://stroika.atlassian.net/browse/STK-535
    • modest assertexternallysync cleanups to Foundation/Containers/Private/IteratorImplHelper - but mostly docs
    • PatchableContainerHelper::_ApplyToEachOwnedIterator () utility
    • assignment operators on patchable iterstors =delete (cuz not implemetned in base class and apepars not needed)
    • PatchableContainerHelper<> massive code cleanups and Containers/Private/IteratorImplHelper
    • big cleanup to mutex controlling update of list of active iterators. I think I fixed a race (missing locks). It was so confused/messy before, I'm not really sure.
    • lose LOCKER param to Patcher code (just use hardiwred mutex in Pather template) - big simplifciaotn
    • Tried breaking Containers into two reps - one with assertextenrallysynchonzied an one without - ContainerUpdateIteratoreSafety - but had to revert. Need to track list of iterators to done breakreferences and that requires a lock (or lockfree linked list NI- https://stroika.atlassian.net/browse/STK-535 - I need the list!!! (todo writeup why)
    • fix Containers/Concrete/Sequence_stdvector call to FiundFirstThat - to const-cast so gets non-const iterator (avoiding more costly conversion of iterator from const-to-non-const
    • lose (never implemtned) DataStructures/STLContainerWrapper::RemoveCurrent()
    • re-enable some shared_lock in array claees (even if qStroika_Foundation_Containers_DataStructures_Array_IncludeSlowDebugChecks_) - and then can simplify subclasses like Concrete/Sequence_Array (cuz asserts in base)
    • Added STLContainerWrapper<>::remove_constness helper
    • Tons of refactoring -0 lose macro version of locking and use explicit shared_lock/lock_guard<> on appropriate debug mutexs (fake) on fData_.
    • In MANY palces - lose CONTAINER_LOCK_HELPER_START and use std::shared_lock critSec { fData_ };
    • renamed Foundation/Containers/ExternallySynchronizedDataStructures -> Foundation/Containers/DataStructures; and moved Private/DataStructures/ to Foundation/Containers/DataStructures as well
  • FileSystem
    • FileSystem::RemoveFileIf/RemoveDirectoryIf now return bool saying actually did something
    • IO::FileSystem::FileSystem::CreateSymbolicLink ()
    • doc/example using DirecotryIterable (using Where)
  • zlib reader: improved error reporting; and read gzip supportl
  • Range
    • Range<T, TRAIT>::ContainedRange
    • Added RangeTraits::ExplicitRangeTraitsWithoutMinMax<...>::Difference () - and used in GetDistanceSpanned () - so now Range works properly with a variaty of types like Date, Duration, enums etc and this method - and thefroe DateRange<>.Enumeration () now also works/compiles (very hadny with Linq type utilties like Selec<String> ...
    • Range::Format -> ToString
  • Date/Time
    • operator++, and other oeprators improvements
    • new type Date::SignedJulianRepType - and use that in AddDays, new operator+/operator- etc minor Date improvements
    • Date::operator- (date) and Difference call now return SignedJulianRepType instead of Duration - so works better with Range (etc) - easier -and added regtest
    • Redid Date / Time / DateTime constexpr kMin/kMax support to workaround qCompilerAndStdLib_static_constexpr_Of_Type_Being_Defined_Buggy issue
    • Make DateRange a DiscreteDateRange - so iterable. Added SimpleDateRange - so CAN be used as constexpr, but unlikely to use
    • improve foramtting of Duration::PrettyPrint ... so for example 1.6e-6, outputs 1 us, 600 ns, instead of just 1 or 2 ns
  • Iterable
    • Added Iterable:: First/FirstValue/Last/LastValue()
    • Added regtests with Select (and docs)
    • https://stroika.atlassian.net/browse/STK-532 : fixed Iterable::Take/Iterable::Skip/Iterable::Select etc.... several that returns iterable<> - commit 697b99a8456364f4e4196da6d91cb46fd73b8c77, and regtest commit c5bad743f973add82d1cee6e851ab2c369f5948d
  • Compiler bug defines
    • Cleanup qCompilerAndStdLib_constexpr_const_then_constexpr_Buggy (not so widely broken - was anothe issue for nerwer compierls)
    • qCompilerAndStdLib_static_constexpr_Of_Type_Being_Defined_Buggy was the real issue - and still a problem (not clear compiler bug or lewis bug)
  • Web Server
    • webserver Request::GetContentLength () helper added
    • fixed serious bug in Request::GetBody - dont call ReadAll (0-size) - but just directly return empty blob
  • Stroika_Foundation_Debug_Valgrind_ANNOTATE_HAPPENS_BEFORE(X) and Stroika_Foundation_Debug_Valgrind_ANNOTATE_HAPPENS_AFTER(X) macros defined
  • ProcessRunner::Exception class added wtih details of results and hopefully better messages; now throwin for a few cases like sub-process-failed
  • tweak move ctors for Containers
  • https://stroika.atlassian.net/browse/STK-541 - disable Mapping::CTOR(&&) move constructor - cuz crashes on unix - not sure why
  • Draft (start at) linedlist lockfree - new module LockFreeDataStrucutres
  • https://stroika.atlassian.net/browse/STK-539 workaround for Mapping::RetainAll ()
  • Assert macro (and related) now use (a||b) - instead of if(a){b} - so Assert is now an expression, not a statement, and as such, can more easily be used in mem-initializers (or palces expecting an expression)
  • https://stroika.atlassian.net/browse/STK-126 - after pretty careful consideraiton - lose optional SeekOffsetType* offset to read calls
  • Lose obsolete qStroika_Foundation_Traveral_IteratorRepHoldsIterableOwnerSharedPtr_ feautre - https://stroika.atlassian.net/browse/STK-530 commit 9bca98b6cbdf035865db92d347bd811816194c90
  • ElementType renamed value_type commit 126d1bfbc385fe9c02b9184b7af5bc3a12f95444 - Foundation/Common/Compare etc...
  • HistoricalPerformanceRegressionTestResults/PerformanceDump-2.0a179-{x86-vs2k15,linux-gcc-6.1.0-x64}.txt: NOTE - this release BASICALLY UNDOES all the performance gains with containers since 2.0a170. First focus on correctness, and then go back and tweak!
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Linux,Windows}-2.0a179-OUT.txt
    • vc++2k15 Update 3.2
    • gcc 5.3
    • gcc 5.4
    • gcc 6.1
    • clang++3.7.1 (ubuntu)
    • clang++3.8.1 (ubuntu)
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined, and debug/release builds (tried but not working threadsanitizer) on tests
    • 1 bug with regtest - https://stroika.atlassian.net/browse/STK-535 - some suppression/workaround (qIterationOnCopiedContainer_ThreadSafety_Buggy) - and had to manually kill one memcheck valgrind cuz too slow
v2.0a178
2016-09-20
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a177...v2.0a178
  • new vs2k15 patch release - _MS_VS_2k15_Update3_02_FULLVER_ - assumed same bugs
  • Iterable\<> thread safety and performance improvements
    • (still SOMEWHAT risky/experimental, but much more confidient this is fine)
    • qStroika_Foundation_Containers_ExternallySynchronizedDataStructures_STLContainerWrapper_IncludeSlowDebugChecks_, qStroika_Foundation_Containers_ExternallySynchronizedDataStructures_Array_IncludeSlowDebugChecks_, etc
    • https://stroika.atlassian.net/browse/STK-531 - first draft adding AssertExternallySynchronizedLock support to Containers/Private/DataStructures...stl/extenrallysynconized
    • corrected misundersnatding - auto of an expression returning a reference doesnt produce a refernece value i nthe auto - so use auto& - so now we dont copy iteratorreps anymore in various concrete impls of studff using iterators - (so no need to worry about corruption of thier linked list)
    • Comments about https://stroika.atlassian.net/browse/STK-530 aka qStroika_Foundation_Traveral_IteratorRepHoldsIterableOwnerSharedPtr_ bug report (losing)
    • added explicit IteratorImplHelper_ (const IteratorImplHelper_&) = default; and comemnt we must be careful about synchonization on this method; one place I know we call it - I added wrapper of CONTAINER_LOCK_HELPER_ITERATORLISTUPDATE_START (and others in a second will be eliminated)
  • OpenSSL
    • use #include openssl instead of tying to replacehide/hide definitions - in openssl subdir modules anyhow
    • https://stroika.atlassian.net/browse/STK-488 - got building and passing regtests on windows (openssl 1.1.0)
    • temporary workaroudn for https://stroika.atlassian.net/browse/STK-527 bug - diff libcurl build workaround needed for newer openssl
    • notes about +#https://stroika.atlassian.net/browse/STK-528 - using nasm for building openssl
  • lose lots of deprecated members - eg. ElementType; KeyType;/ValueType and change remaining code to use element_type and mapped_type and key_type
  • libcurl use 7.50.3
  • sqlite use 3.14.2
  • more data hiding with Frameworks/WebServer
  • new Sequence<>::GetFirstIf/GetLastIf helpers
  • speed tweak on AssertExternallySynchronizedLock::unlock_shared () - DEBUG code
  • regression test harness PrintPassOrFail() now returns value to be passed out of main instead of calling exit - so fewer false leak reports on failure
  • HistoricalPerformanceRegressionTestResults/PerformanceDump-2.0a178-{x86-vs2k15,linux-gcc-6.1.0-x64}.txt
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Linux,Windows}-2.0a178-OUT.txt
    • vc++2k15 Update 3.2
    • gcc 5.3
    • gcc 5.4
    • gcc 6.1
    • clang++3.7.1 (ubuntu)
    • clang++3.8.1 (ubuntu)
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined, and debug/release builds (tried but not working threadsanitizer) on tests
    • 1 bug with regtest - KILLED on Builds/gcc-release-sanitize/Test48 - OK cuz just ran out of memory for sanitizer code
    • 1 bug with regtest - FAILED: RegressionTestFailure; caughtExceptAt <= expectedEndAt + kMargingOfErrorHi_;;/home/lewis/Sandbox/Stroika-Reg-Tests-Dev/Tests/36/Test.cpp: 259 - just adjust timeout or ignore
v2.0a177
2016-09-14/td>
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a176...v2.0a177
  • ***EXPERIMENTAL RELEASE TO EVALUATE https://stroika.atlassian.net/browse/STK-525 - qContainersPrivateSyncrhonizationPolicy_DebugExternalSyncMutex_ - RISKY but big performance improvement with containers
  • Fix alignas usage in SmallStackBuffer - fBuffer
  • a few helpful overloads of Thread methods (Wait*, Start)
  • HistoricalPerformanceRegressionTestResults/PerformanceDump-2.0a177-{x86-vs2k15,linux-gcc-6.1.0-x64}.txt
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Linux,Windows}-2.0a177-OUT.txt
    • vc++2k15 Update 3.1
    • gcc 5.3
    • gcc 5.4
    • gcc 6.1
    • clang++3.7.1 (ubuntu)
    • clang++3.8.1 (ubuntu)
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined (tried but not working threadsanitizer) on tests
v2.0a176
2016-09-12
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a175...v2.0a176
  • hack to test https://stroika.atlassian.net/browse/STK-525 - experimental hack that may make container classes much faster (STILL NOT USED - MAYBE IT WILL HELP)
  • Iterator/Iterable/Mapping changes to use more STL-like type names
    • added value_type typedef for Iterable and Iterator (REPLACING OBSOLETED/DEPRECATED ElementType)
    • start adding std::map<> like type aliases for Mapping<> - key_type and mapped_type - DEPRECATING ValueType and KeyType
  • Containers::Adapters::Adder: support Collection<> type; use new name value_type instead of ElementType
  • USE_NOISY_TRACE_IN_THIS_MODULE_ support in VariantValue code; and DefaultNames<DataExchange::VariantValue::Type>
  • Support set<> with Containers/Adapters/Adder
  • new BLOB::AsHex () const method
  • use sqlite 3.14.1 (instead of 3.13)
  • Characters::ToString
    • overload to handle arrays (and regtest)
    • Added Version::ToString () support
  • various simplifications of ObjevctVariantMapper - using Adder code;
  • LOSE DEFINES FOR OBSOLETE SYSTEMS/BUGS
    • lose gcc 4.9 support, so lost bug defines (and workarounds) for
      • qCompilerAndStdLib_make_unique_Buggy
      • qCompilerAndStdLib_two_levels_nesting_Protected_Access_Buggy
    • lose compiler bug defines needed for clang 3.6 (had been desupported):
      • qCompilerAndStdLib_string_conversions_Buggy
      • qCompilerAndStdLib_codecvtbyname_mising_string_ctor_Buggy
      • qCompilerAndStdLib_shared_ptr_atomic_load_missing_Buggy
      • qCompilerAndStdLib_codecvtbyname_mising_string_ctor_Buggy
      • qCompilerAndStdLib_TypeTraitsNewNamesIsCopyableEtc_Buggy
      • qCompilerAndStdLib_string_conversions_Buggy
      • qCompilerAndStdLib_thread_local_with_atomic_keyword_Buggy
    • lose obsolete qCompilerAndStdLib_is_trivially_copyable_Buggy bug workaround
    • Lose AIX (qPlatform_AIX) compatability - since I no longer have the need or ability to build for AIX so lose defines:
      • qPlatform_AIX
      • qCompilerAndStdLib_AIX_GCC_TOC_Inline_Buggy
      • qCompilerAndStdLib_fdopendir_Buggy
      • qCompilerAndStdLib_Locale_Buggy (use !qCompilerAndStdLib_locale_name_string_return_bogus_lengthBuggy instead in many places)
    • Remove bug workaround/define for qCompilerAndStdLib_COutCErrStartupCrasher_Buggy thanks to Stephan T. Lavavej @ MSFT for hints
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Linux,Windows}-2.0a176-OUT.txt
    • vc++2k15 Update 3.1
    • gcc 5.3
    • gcc 5.4
    • gcc 6.1
    • clang++3.7.1 (ubuntu)
    • clang++3.8.1 (ubuntu)
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined (tried but not working threadsanitizer) on tests
v2.0a175
2016-09-03
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a174...v2.0a175
  • Synchonized<> RWSynchonized support - now load () method really uses shared_lock
  • Frameworks/webserver
    • Interceptor support
    • Router now is an interceptor so integrates better
    • Use HandleFault code from Intercetor for some fault (e.g. 404/exception) handling
    • refactored webserver code so new Message object that owns Request/Response and moved GetPeerAddress there
    • Docs cleanups
    • wrappers on data, and thread safety checks asserts with Debug::AssertExternallySynchonized
    • ConnectionManager now owns its own interceptor to add in server header and CORs stuff
    • ConnectionManager now delegates server loop to Connection::ReadAndProcessMessage () - so closer to support (not there yet) for keep-alives.
  • HistoricalPerformanceRegressionTestResults/PerformanceDump-2.0a175-{x86-vs2k15,linux-gcc-6.1.0-x64}.txt
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Linux,Windows}-2.0a173-OUT.txt
    • vc++2k15 Update 3.1
    • gcc 5.3
    • gcc 5.4
    • gcc 6.1
    • clang++3.7.1 (ubuntu)
    • clang++3.8.1 (ubuntu)
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined (tried but not working threadsanitizer) on tests
v2.0a174
2016-08-26
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a173...v2.0a174
  • Thread::SuppressInterruptionInContext in ThreadPool DTOR - so it safely shuts down all owned threads
  • in Frameworks/WebServer/ConnectionManager - reorder fListenr and fThreads (threadpool) object - so we default DTOR stops listeneer before killing threadpool
  • SKIPPED REGRESSION TESTS
v2.0a173
2016-08-25
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a172...v2.0a173
  • {MAJOR}: Fixed Optional<> (requires much testing and reaction) to support multiple readers of const methods - using shared_lock of AssertExternallySynchronizedLock on const methods; and fixed Optional::AccumulateIf to do AssertExternallySynchronizedLock cuz that class is now recursive
  • Foundation/IO/Network/Listener CTOR now takes backlog argument: NOTE - NOT FULLY backward compatible - because default is 1, and before we had hardwired 10
  • Framework/WebServer
    • ToString support (request/response/response-state)
    • fServerHeader_ must be synchonized in ConnectionMnaager because there is a setter method
    • Frameworks/WebServer/ConnectionManager takes new option arg - maxConnecitons; uses that for threadpool, and now uses threadpool instead of a single thread it blcoks on in onConnect"
    • Added Request::GetPeerAddress () - and pass it into the Request from the Conneciton
  • pthread_setschedprio assert calls fixed to check for if not succeed, errno = EPERM
  • UNIX regression test cleanups - some name cleanups, lose gcc49, added no-third-party-components config
  • Noticed I wasnt testing gcc49, and a bug (compiler crash) crept in. Not sure we need it so begin process of de-supporting gcc49
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Linux,Windows}-2.0a173-OUT.txt
    • vc++2k15 Update 3.1
    • gcc 5.3
    • gcc 5.4
    • gcc 6.1
    • clang++3.7.1 (ubuntu)
    • clang++3.8.1 (ubuntu)
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined (tried but not working threadsanitizer) on tests
v2.0a172
2016-08-22
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a171...v2.0a172
  • https://stroika.atlassian.net/browse/STK-519 - New Foundation/DataExchange/Compression/ module - with (limited but functional) zlib compression/decompression support (with regtests)
  • refactor - DataExchange::{ArchiveReader,7z,Zip} -> DataExchange::Archive/{Reader,XML,7z} (NOT SRC COMPATIBLE)
  • refactor- DataExchagne/{VariantReader,VariantWriter,someofxml,INI,JSON,CharacterDelimitedLines} -> DataExchange/Variant/ (NOT SRC COMPATIBLE)
  • changed PERFORMANCE REGTEST qPrintOutIfFailsToMeetPerformanceExpectations includes qAllowBlockAllocation and !!qDefaultTracingOn so we dont have to keep weakening timing constraints
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Linux,Windows}-2.0a172-OUT.txt
    • vc++2k15 Update 3.1
    • gcc 4.9
    • gcc 5.3
    • gcc 5.4
    • gcc 6.1
    • clang++3.7.1 (ubuntu)
    • clang++3.8.1 (ubuntu)
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined (tried but not working threadsanitizer) on tests
v2.0a171
2016-08-21
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a170...v2.0a171
  • Support _MS_VS_2k15_Update3_01_FULLVER_
  • https://stroika.atlassian.net/browse/STK-518 - CompilerAndStdLib_AssumeBuggyIfNewerCheck_ () to try and improve the situation when people use Stroika with compilers newer than we've tested
  • Added qCompilerAndStdLib_std_get_time_pctx_Buggy to capture reasons for workaround code in TimeOfDay::Parse(...locale) - I think the std::get_time way is better but doesnt work on windows cleanup some obsolete diffenrt stratgies in TimeOfDay::Parse()
  • tweak kMargingOfErrorHi_ and VerifyTestResult () checks - to avoid/get better info on rare verifytestresults() test fauilure
  • Tested (passed regtests)
    • OUTPUT FILES: Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-{Linux,Windows}-2.0a171-OUT.txt
    • vc++2k15 Update 3.1
    • gcc 4.9
    • gcc 5.3
    • gcc 5.4
    • gcc 6.1
    • clang++3.7.1 (ubuntu)
    • clang++3.8.1 (ubuntu)
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined (tried but not working threadsanitizer) on tests
v2.0a170
2016-08-19
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a169...v2.0a170
  • Raspberrypi regression tests now regularly run --sanitize address,undefined
    • required updating my raspberypi to 'testing' in /etc/apt/sources.list (for libasan.so.2)
    • added to regression-test-configurations
    • support new +REMOTE_RUN_PREFIX= hack on running remote regression tests - to work around issue with address sanitizer REMOTE_RUN_PREFIX=LD_PRELOAD=/usr/lib/arm-linux-gnueabihf/libasan.so.2
  • Alignas
    • Due to testing --sanitize undefined on raspberrypi...
    • Fixed several places where we had WRONG or missing alignas
    • workaround new qCompilerAndStdLib_alignas_Sometimes_Mysteriously_Buggy define
    • Not sure what bad alignment could have done (speed or bad semantics) - but COULD have caused subtle ARM bugs?
  • https://stroika.atlassian.net/browse/STK-513 - had crash (originally due to time bug/issue) - which ONLY affected ARM/raspberry pi target, and ONLY when address sanitizer running. Side effect, I changed the format of the filename (after lots of back and forth unimportant changes)
  • Time bugs
    • longstanding bug with TimeOfDay::ClearSecondsField () - it must be a noop when called when 'empty' (not sure why only showed up with address sanitizer on arm)
    • docs on Time::IsDaylightSavingsTime () - and added VERIFY call - that mktime didnt fail - https://stroika.atlassian.net/browse/STK-515
    • Math::NearlyEquals (Time::DateTime l,... now uses As isntead of ToTickCount()
    • more assert calls in tm DateTime::As () etc
    • docs that TimeOfDay ensures result < kMaxSecondsPerDay and added ensure where mktime retunrs -1 (wasnt checking
    • https://stroika.atlassian.net/browse/STK-516 DateTime::AddSeconds (int64_t seconds) - if adding days only - dont convert 'emty' datetime to 0 datetime
  • Frameworks/WebServer/ConnectionManager
    • Minor debug cleanups
    • improved error reporting in Frameworks/WebServer/ConnectionManager - defaults - for exceptions
  • openssl 1.1 - https://stroika.atlassian.net/browse/STK-488
    • rogress on getting openssl 1.1 (beta 6) working on windows. Now builds tpc on windows (did for a while on unix); still not right - some flags wrong. But since I can switch between 1.0 and 1.1 for now - we can check this in
    • fixed GetString2InsertIntoBatchFileToInit64BitCompiles ()
  • https://stroika.atlassian.net/browse/STK-166: support Duration * float, / float, and that fixes DateTimeRange::GetMidpoint()
  • HistoricalPerformanceRegressionTestResults/PerformanceDump-v2.0a170-{x86-vs2k15,linux-gcc-6.1.0-x64}.txt
  • Tested (passed regtests)
    • Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-Linux-2.0a170-OUT.txt
    • Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-Windows-2.0a170-OUT.txt
    • vc++2k15 Update 3
    • gcc 4.9
    • gcc 5.3
    • gcc 5.4
    • gcc 6.1
    • clang++3.7.1 (ubuntu)
    • clang++3.8.1 (ubuntu)
    • cross-compile to raspberry-pi(3/jessie-testing): --sanitize address,undefined
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • gcc with --sanitize address,undefined (tried but not working threadsanitizer) on tests
v2.0a169
2016-08-16
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a168...v2.0a169
  • revised/improved check-prerequisite-tools support (renamed target and now recursive at start for third-party-components)
  • Started support for openssl 1.1, but incomplete and mostly not checked in; but parts were and those required changes to zlib build
  • SQLite: small memory leak fix, and makefile improvements
  • Tested (passed regtests)
    • Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-Linux-2.0a169-OUT.txt
    • Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-Windows-2.0a169-OUT.txt
    • vc++2k15 Update 3
    • gcc 4.9
    • gcc 5.3
    • gcc 5.4
    • gcc 6.1
    • clang++3.7.1 (ubuntu)
    • clang++3.8.1 (ubuntu)
    • cross-compile to raspberry-pi(3/jessie)
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • AddressSanitizer (tried but not working threadsanitizer) on tests
v2.0a168
2016-08-09
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a167...v2.0a168
  • Remove BOM from sqlite Makefile (breaks build on older Unix)
  • Quick untested release
v2.0a167
2016-08-08
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a166...v2.0a167
  • Support Memory::BLOB in VariantValue
  • SQLite work
    • New SQLite regression test
    • Fixed bugs with sqlite thirdparty makefiles
    • Support BLOB
    • SQLite APIs for running queries now take format strings - not queries per-se
    • support (untested) In memoruy DB, and CTOR for URL or Filename
  • Documentation/CommonDefaultConfigurations.txt
  • Tested (passed regtests)
    • Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-Linux-2.0a167-OUT.txt
    • Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-Windows-2.0a167-OUT.txt
    • vc++2k15 Update 3
    • gcc 4.9
    • gcc 5.3
    • gcc 5.4
    • gcc 6.1
    • clang++3.7.1 (ubuntu)
    • clang++3.8.1 (ubuntu)
    • cross-compile to raspberry-pi(3/jessie)
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • AddressSanitizer (tried but not working threadsanitizer) on tests
v2.0a166
2016-08-05
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a165...v2.0a166
  • Several SQLite fixes
  • Largely untested release
v2.0a165
2016-08-05
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a164...v2.0a165
  • New SQLite support - wrapper module, and automatically build sqlite3 in third-party-products
  • cosmetic cleanups to ConnectionManager (http): use GetCORSModeSupport () instead of GetIgnoreCORS
  • Lose backward compat workarounds which were only needed for gcc 48.
    • qCompilerAndStdLib_LocaleTM_put_Buggy
    • qCompilerAndStdLib_constexpr_after_template_decl_constexpr_Buggy
    • qCompilerAndStdLib_Iterator_template_MakeSharedPtr_gcc_crasher_Buggy
    • qCompilerAndStdLib_constexpr_after_template_decl_constexpr_Buggy
    • qCompilerAndStdLib_ParameterPack_Pass_Through_Lambda_Buggy
    • qCompilerAndStdLib_regex_Buggy
    • qCompilerAndStdLib_TemplateDiffersOnReturnTypeOnly_Buggy
    • qCompilerAndStdLib_stdContainerEraseConstArgSupport_Buggy
    • qCompilerAndStdLib_GCC_48_OptimizerBug
    • qCompilerAndStdLib_TemplateSpecializationInAnyNS_Buggy
  • ScriptsLib/RegressionTests-Unix.sh -> ScriptsLib/RegressionTests.sh and got working on windows (poorly but something).
  • Revised exactly what builds get run and how in regression tests
  • New ScriptsLib/RunPerformanceRegressionTests.sh script to facilitate running performance tests on both platforms
  • Tested (passed regtests)
    • Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-Windows-2.0a165-OUT.txt
    • Tests/HistoricalRegressionTestResults/REGRESSION-TESTS-Linux-2.0a165-OUT.txt
    • vc++2k15 Update 3
    • gcc 4.9
    • gcc 5.3
    • gcc 5.4
    • gcc 6.1
    • clang++3.7.1 (ubuntu)
    • clang++3.8.1 (ubuntu)
    • cross-compile to raspberry-pi(3/jessie)
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • AddressSanitizer (tried but not working threadsanitizer) on tests
v2.0a164
2016-07-30
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a163...v2.0a164
  • quick release - no changes, but runing full set of regtests this time
  • Tested (passed regtests)
    • vc++2k15 Update 3
    • gcc 4.9
    • gcc 5.3
    • gcc 5.4
    • gcc 6.1
    • clang++3.7 (ubuntu)
    • clang++3.8 (ubuntu)
    • cross-compile to raspberry-pi(3/jessie)
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • AddressSanitizer (tried but not working threadsanitizer) on tests
v2.0a163
2016-07-29
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a162...v2.0a163
  • Start losing support for gcc48 (still ifdefs but no longer test)
  • Adder overload taking pair<> with Mapping
  • SAXParser/ObjectReaderRegistry: many new regtests and fixed Fixed https://stroika.atlassian.net/browse/STK-504
  • String class performance improvements relative to constructor char16_t, char32_t (done by Xerces/SAX parser) - but still needs work (open https://stroika.atlassian.net/browse/STK-506)
  • new PerformanceDump-v2.0a163-linux-gcc-6.1.0-x64.txt and PerformanceDump-v2.0a163-x86-vs2k15-ReleaseU.txt
  • Tested (passed regtests)
    • vc++2k15 Update 3
    • gcc 6.1
    • clang++3.8 (ubuntu &;amp; private compiler build 3.8.1)
    • AddressSanitizer (tried but not working threadsanitizer) on tests
v2.0a162
2016-07-28
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a161...v2.0a162
  • Characters::ToString() support for std::exception
  • ObjectReaderRegistry: added mkReadDownToReader () with 2 names overload, and builtin support for duration
  • Tested (passed regtests)
    • vc++2k15 Update 3
    • gcc 4.8
    • gcc 4.9
    • gcc 5.3
    • gcc 5.4
    • gcc 6.1
    • clang++3.7 (ubuntu)
    • clang++3.8 (ubuntu &;amp; private compiler build 3.8.1)
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • AddressSanitizer (tried but not working threadsanitizer) on tests
v2.0a161
2016-07-25
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a160...v2.0a161
  • New experimental Containers::Adapters::Adder, and used to simplify ObjectReaderRegistery
  • tested - and BuildClang script was working - minor cleanups and fixes to config/build (pass version arg)
  • configure script: fixed bug with --sanitizer multiple args and added --append-extra-compiler-and-linker-args option, and --append-extra-compiler-args --append-extra-linker-args commandline args
  • Tested (passed regtests)
    • vc++2k15 Update 3
    • gcc 4.8
    • gcc 4.9
    • gcc 5.3
    • gcc 5.4
    • gcc 6.1
    • clang++3.7 (ubuntu)
    • clang++3.8 (ubuntu & private compiler build 3.8.1)
    • cross-compile to raspberry-pi
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • AddressSanitizer (tried but not working threadsanitizer) on tests
v2.0a160
2016-07-22
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a159...v2.0a160
  • Quick (untested) release to provide needed SAXReader functionality for Block
  • experimental ContainerAdder template helper and used in ListOfObjectReader, and related regression tests
  • Comments, and remove some obsolete code.
  • Minor fixes to PIDLoop
v2.0a159
2016-07-21
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a158...v2.0a159
  • Improved support for configure --sanitiize, and --no-sanitiize, and added --sanitize address,undefined --no-sanitize vptr to regression tests, and fixed a few small complaints detected by sanitizers
  • Improved memory guard support (more control options and sep header/footer layout)
  • Improved makefile handing of building witih CONFIGURATION=""
  • Added output-sync=line to MAKEFLAGS in hopes of reducing broken makefile output due to parallel makes
  • DataExchange
    • StructuredStreamEvents/ObjectReaderRegistry MakeClassReader is now static (addclass checks if fields present but make does not accordin gto docs)
    • StructuredStreamEvents/ObjectReaderRegistry MakeCommonReader_NamedEnumerations and MakeCommonReader_EnumAsInt and regtests of enum version
    • Fixed ObjectReaderRegistry so default for MakeCommonReader is to use MakeCommonReader_NamedEnumerations
    • Regtest T7_SAXObjectReader_BLKQCL_ReadSensors_::DoTest; and docs
    • Fix reading enum whose value == END - that counts as out of range! (chagne in behavior ofor DataExchange/ObjectVariantMapper
    • refactored ObjectReaderRegistry::RepeatedElementReader so TRAITS allow external specify of type object used in subelements and alternate append strategy
  • Support Set Equals() with iterable arg - and operator== and operator!= to handle that automatically - when comparing with a set
  • KeyValuePair members have default initiialization
  • VS2k15 project files now require /bigobj option (because of new regtests but easier to do for all)
  • Tested (passed regtests)
    • vc++2k15 Update 3
    • gcc 4.8
    • gcc 4.9
    • gcc 5.3
    • gcc 5.4
    • gcc 6.1
    • clang++3.7 (ubuntu)
    • clang++3.8 (ubuntu)
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • AddressSanitizer (tried but not working threadsanitizer) on tests
v2.0a158
2016-07-15
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a157...v2.0a158
  • Fix compile bug defines for new gcc 5.4 release
  • Tested (passed regtests)
    • vc++2k15 Update 3
    • gcc 4.8
    • gcc 4.9
    • gcc 5.3
    • gcc 5.4
    • gcc 6.1
    • clang++3.7 (ubuntu)
    • clang++3.8 (ubuntu)
    • cross-compile to raspberry-pi
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • AddressSanitizer (tried but not working threadsanitizer) on tests
v2.0a157
2016-07-14
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a156...v2.0a157
  • Irreproducible std::terminate/crash on Test35 - Foundation::Execution::Threads - std::terminate() - but no logs and when I ran over and over no reproduce - https://stroika.atlassian.net/browse/STK-497
  • Threads
    • Slight race in Thread::WaitForDone: https://stroika.atlassian.net/browse/STK-496 - minor changes to WaitForDone/WaitForDoneUnutl etc - in thread code. Test carefully. Very hard to reproduce
    • Major thread bug - fThreadDone event was an autoreset event! Must be manual reset (once someone waits on done - were still DONE!
    • slight cleanup of recent thread restructuring of waittildone code (needed manual reset event fix above to do this)
    • cleanup - compare_exchange_strong instead of exchange - with status - slight unimportant race cleaned up
  • updated ScriptsLib/ExtractVersionInformation.sh to handle 3.0.1 format version
  • malloc-guard (qStroika_Foundation_Debug_MallogGuard - ONLY for UNIX/GCC, configure --malloc-guard, to debug very hard to reproduce glibc memory corruption on BLKQCL device
  • Small UNIX regression test cleanups
  • fix makefile issue with xerces when its the only thirdpartylib
  • big change to debug symbols for unix - now IncludeDebugSymbolsInLibraries config file entry to parallel IncludeDebugSymbolsInExecutables and thats checked directyly instead of COnfig.mk file flag INCLUDE_SYMBOLS (which was ambiguous and confusing); instead - set +IncludeDebugSymbolsInExecutables by ScriptsLib/PrintConfigurationVariable.pl $(CONFIGURATION) IncludeDebugSymbolsInExecu... in makefile - and use that to add -g to LinkerPrefixArgs
  • fixed Containers/ExternallySynchronizedDataStructures/Array to use delete[] - detected by AddressSanitizer
  • Started adding more regtests - in preps for valgrind on arm, and addressanitizer/threadsantiizer tests
  • added PerformanceDump-v2.0a157-linux-gcc-6.1.0-x64.txt PerformanceDump-v2.0a157-x86-vs2k15-ReleaseU.txt
  • Tested (passed regtests)
    • vc++2k15 Update 3
    • gcc 4.8
    • gcc 4.9
    • gcc 5.3
    • gcc 6.1
    • clang++3.7 (ubuntu)
    • clang++3.8 (ubuntu)
    • cross-compile to raspberry-pi
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
    • AddressSanitizer (tried but not working threadsanitizer) on tests
v2.0a156
2016-07-11
  • https://github.com/SophistSolutions/Stroika/compare/v2.0a155...v2.0a156
  • SpinLock
    • https://stroika.atlassian.net/browse/STK-494 - attempt at workaround for possible bug WITH SpinLock - optional BarrierFlag argument (defaults to acquire/release) option to SpinLock CTOR (may fix/address bug on ARM / BLKQCL device - malloc corruption)
    • use qStroika_Foundation_Execution_SpinLock_IsFasterThan_mutex - and set TRUE for msvc, and false for other compilers cuz gcc faster with mutex (limited testing) - change due to memory fence - slows down more on unix/gcc
    • This fix (494) noticably slowed regtests (5-10%)
    • Added qStroika_Foundation_Memory_BlockAllocator_UseLockFree_ code - for blockallocator - which undid much of the loss, but still probably about a percent slower than v2.0a155 (depending on what you measure)
  • Spelling error correction: renamed interupt -> interrupt
  • thread code - fAccessSTDThreadMutex_ to protect access to fThread_ - handles a rare race detected by Helgrind on UNIX
  • https://stroika.atlassian.net/browse/STK-477 - experimental rework of thread interuption TLS variable(s) - instead of two - down to 1 (two bools replaced with one enum) - must test more to see works, and Thread::Rep_::NotifyOfInteruptionFromAnyThread_ use of compare_exchange_strong to be simpler/faster/clearer
  • docs and support FullVersionString opt for ScriptsLib/ExtractVersionInformation.sh, and whitespace fix
  • {NOT BACKWARD COMPAT}:renamed BitSubstring_NEW to BitSubstring, and BitSubstring_NEW still around briefly deprecated
  • Assertions/Tweaks/Cleanups in SystemPerformance/Instruments/Process
  • lose obsolete qSupportValgrindQuirks - from a much earlier attempt at valgrind supprot - these hacks no longer needed
  • Synchnonized
    • Lose deprecated Synchonized<>::get()
    • Synchonized operator-> and cget() return non-const ReadableReference - so it can be moved. Safe to return non-const ebcause no non-const methods on ReadableReference anyhow (no way to modify data) - just allows moving the reference (handy in many cases)
    • deprecated Synchonized<> :: GetReference() - use rwget/cget instead
  • added (test case) valgrind / helgrind on Samples_SystemPerformanceClient
  • Fixed where we write PerformanceDump to - Build output directory
  • renamed Thread::GetSignalUsedForThreadAbort -> Thread::GetSignalUsedForThreadInterrupt
  • Added PerformanceDump-v2.0a156-x86-vs2k15-ReleaseU.txt and PerformanceDump-v2.0a156-linux-gcc-6.1.0-x64.txt
  • Tested (passed regtests)
    • vc++2k15 Update 3
    • gcc 4.8
    • gcc 4.9
    • gcc 5.3
    • gcc 6.1
    • clang++3.7 (ubuntu)
    • clang++3.8 (ubuntu)
    • cross-compile to raspberry-pi
    • valgrind Tests (memcheck and helgrind), helgrind some Samples
v2.0a155
2016-06-29
  • various code cleanups to Synchonized<>: use Configuration::ArgByValueType, clarify/fix operator T(), docs cleanups, and fixed regression with oeprator-=, opeartor+=
  • Xerces: updated to use 3.1.4, and updated list of mirrors
  • Started transition of BitSubstring() API - by first creating BitSubstring_NEW, and deprecating BitSubstring (so we can transition through intermediate name as we chane meaning of 3rd parameter)
  • Added PerformanceDump-v2.0a155-x86-vs2k15-ReleaseU.txt and PerformanceDump-v2.0a155-linux-gcc-6.1.0-x64.txt
  • Tested (passed regtests)
    • vc++2k15 Update 3
    • gcc 4.8
    • gcc 4.9
    • gcc 5.3
    • gcc 6.1
    • clang++3.7 (ubuntu)
    • clang++3.8 (ubuntu)
    • cross-compile 2 raspberry-pi
    • valgrind (memcheck and helgrind)
v2.0a154
2016-06-28
  • Synchonized<>- lose deprecated operator-> non-const - having it around still generates deprecation warnings cuz of how it matched.
  • Quick release- untested
v2.0a153
2016-06-28
  • Synchonized<>- fixed operator+=/operator-= to not use deprecated operator->; and changed choice - const operator-> () is OK - no longer deprecated
  • Quick release- untested
v2.0a152
2016-06-27
  • Switch to VisualStudio 2k15 Update 3
  • Not BINARY backward compatible in binary format of Win32 4-byte version#s nor the binary format of Stroika verison#s
  • renamed Samples and Tests solution to have 'Stroika-' prefix
  • new PerformanceDump-v2.0a152-linux-gcc-6.1.0-x64.txt and PerformanceDump-v2.0a152-x86-vs2k15-ReleaseU.txt (on the surface, appears somewhat faster than update2)
  • Tested (passed regtests)
    • vc++2k15 Update 3
    • gcc 4.8
    • gcc 4.9
    • gcc 5.3
    • gcc 6.1
    • clang++3.7 (ubuntu)
    • clang++3.8 (ubuntu)
    • cross-compile 2 raspberry-pi
    • valgrind (memcheck and helgrind)
v2.0a151
2016-06-23
  • https://stroika.atlassian.net/browse/STK-436 - Each Configuration file should have a comment at the head saying how to run (args) configure
  • Discovered MSFT has qCompilerAndStdLib_cplusplus_macro_value_Buggy! so had been disabling shared_lock stuff for a while!!! - fixed many bug defines in headers accordingly! Sigh... Must retest carefully
  • Cleaned up checked in valgrind supressions. Many no longer needed (due to compiler/os/upgrade most likely)
  • ThirdPartyComponents updates
    • libcurl 7.49.1
    • lzma SDK 1602
    • openssl 1.0.2h, and progress towards supporting openssl 1.1 (beta) - but still too broken (windows build) to worry. Must do some restructure of my use code too NYI
  • fixed qCompilerAndStdLib_deprecated_attribute_Buggy for _MSC_FULL_VER? so no DEPRECATED works right on MSVC
  • Synchronized<>
    • docs and regtest for explicit lock on synchonized object
    • https://stroika.atlassian.net/browse/STK-489 - DEPRECATED operator-> () in Synchonized - and force explicit use of cget or rwget() on synchonized to get reference, or load to get a copy. For synchonized objects - these distrinctions just matter. Still experimental, but buetter documetned and I think clearer
  • TextReader() now takes overload CTOR with Iterable<Character>
  • VariantReader now takes overlaod on Read method of Iterable<Character> (aka string) - and added regtest cases for this
  • Math::Median always uses just nth_element (not sort) for speed
  • Added docs for ModuleGetterSetter and regression test sample/test code, and code cleanups
  • PerformanceDump-v2.0a151-linux-gcc-6.1.0-x64.txt and PerformanceDump-v2.0a151-x86-vs2k15-ReleaseU.txt
  • Tested (passed regtests)
    • vc++2k15 Update 2
    • gcc 4.8
    • gcc 4.9
    • gcc 5.3
    • gcc 6.1
    • clang++3.7 (ubuntu)
    • clang++3.8 (ubuntu)
    • cross-compile 2 raspberry-pi
    • valgrind (memcheck and helgrind)
v2.0a150
2016-06-15
  • Fixed bug with Math::Median (on even # of buckets), and enhanced template to support RETURN_TYPE, and other enhamcents
  • SmallStackBuffer<> has type value_type, and CTOR taking PTR,PTR
  • wrap valgrind include macor exclusion with cplusplus or stdc - so not included for msvc RC compiler etc
  • Tested (passed regtests)
    • vc++2k15 Update 2
    • gcc 4.8
    • gcc 4.9
    • gcc 5.3
    • gcc 6.1
    • clang++3.7 (ubuntu)
    • clang++3.8 (ubuntu)
    • cross-compile 2 raspberry-pi
    • valgrind (memcheck and helgrind)
v2.0a149
2016-06-13
  • workaround qCompilerAndStdLib_copy_elision_Warning_too_aggressive_when_not_copyable_Buggy
  • new macros Stroika_Foundation_Debug_ValgrindDisableHelgrind_START and Stroika_Foundation_Debug_ValgrindDisableHelgrind_END to temporarily disable heglrind warnings and test case for them
  • replace use of (losing) _NoReturn_ with [[noreturn]]
  • Improved make_unique_lock for rvalue-refs
  • Ran performace tests (PerformanceDump-v2.0a149-x86-vs2k15-ReleaseU.txt and PerformanceDump-v2.0a149-linux-gcc-6.1.0-x64.txt) and there were regressions, so worked to (mostlly) fix them.
  • Various speedups/cleanups to string code - relating to https://stroika.atlassian.net/browse/STK-444 fix earlier and StringBuffer reserve code. Got back most of the lost speed
  • renamed test HistoricalPerformanceRegressionTestResults
  • ScriptsLib/RegressionTests-Unix.sh now writes to Tests/HistoricalRegressionTestResults
  • Tested (passed regtests)
    • vc++2k15 Update 2
    • gcc 4.8
    • gcc 4.9
    • gcc 5.3
    • gcc 6.1
    • clang++3.7 (ubuntu)
    • clang++3.8 (ubuntu)
    • valgrind (memcheck and helgrind)
  • SKIPPED
    • cross-compile 2 raspberry-pi {skipped remote make run-tests}
v2.0a148
2016-06-10
  • https://stroika.atlassian.net/browse/STK-444 - preallocating nul byte on strings (for thread safety)
  • ThreadPool::GetPoolSize () needs auto critSec { make_unique_lock (fCriticalSection_) }; to access - event readonly - fThreads - beacuse it can be written by another thread at the same time
  • Target compilers supported changes
    • Add gcc 6.1
    • Add clang++3.7 (required new define qCompilerAndStdLib_locale_name_string_return_bogus_lengthBuggy for clang++ 3.7 and improved ifdefs for !qCompilerAndStdLib_Locale_Buggy)
    • Add clang++3.8
  • configure --lto now requires arg - enable/disable; and configure --apply-release-flags now sets --lto enable by default if using gcc
  • changed qCompilerAndStdLib_make_unique_lock_IsSlow from 0 to 1 - tested on gcc 5.3 and msvc2k15u2 and all have slight make_unique_lock penalty - so use fast way internally
  • Changed qStroika_Foundation_Memory_SharedPtr_IsFasterThan_shared_ptr so only defaults to 1 on VS (windows) and else 0 (using shared_ptr)
  • Valgrind Helgrind
    • silence helgrind warning on minor bug (still bug and added @todo but minor)
    • Stroika_Foundation_Debug_ValgrindDisableHelgrind on 2 vars in Foundation/Execution/SharedStaticData
    • Stroika_Foundation_Debug_ValgrindDisableHelgrind in SharedPtr
    • use new Stroika_Foundation_Debug_ValgrindDisableCheck_stdatomic - just to better document when/where/why valgrind/helgrind suppressions
    and SIMPLIFIED qCompilerAndStdLib_shared_mutex_module_Buggy
  • Lose OpenSSL.supp (just test with PURIFY mode OpenSSL- no many suppressions to be useful)
  • renamed EOFException::kEOFException -> EOFException::kThe, etc. Coding convention docs about kthe
  • Silenced some (safe) compiler warnings
  • fixed bug with Configuration::FindLocaleName - part1 and part3 cannot be static
  • fixed qCompilerAndStdLib_make_unique_Buggy bug define gcc
  • https://stroika.atlassian.net/browse/STK-188 - lose qStroika_Foundation_Memory_NeedPtrStoredInEnableSharedFromThis_
  • Lose deprecated bug workarounds
    • qCompilerAndStdLib_uninitialized_copy_n_Buggy
    • qCompilerAndStdLib_DefaultArgOfStaticTemplateMember_Buggy
    • qCompilerAndStdLib_constexpr_arrays_Buggy
    • qCompilerAndStdLib_static_initialization_threadsafety_Buggy
    • qCompilerAndStdLib_DotTemplateDisambiguator_Buggy
    and SIMPLIFIED qCompilerAndStdLib_shared_mutex_module_Buggy
  • Small cleanups to BlockAllocation: assertions, handle delete with interupt execptions as well as abort execptions, and other minor changes
  • Reggression Tests and new compilers supported
    • fix BuildGCC.sh script so uses GCC_VERSION as default (so can eb passed in as env var) and documetning tested 4.8, 4.9.3, 5.3.0, and 6.1.0
    • fixed execute permission and reuqire bash not just sh - to run HasCompiler - so regtest conf builder only does ones for compilers we have installed.
    • fixed compiler bug defines to support gcc 6.1, clang3-7. 3.8 and added tehse to regtested (and 48 now my private buold)
  • small inline cleanups (various modules)
  • Tested (passed regtests)
    • vc++2k15 Update 2
    • gcc 4.8
    • gcc 4.9
    • gcc 5.3
    • gcc 6.1
    • clang++3.7 (ubuntu)
    • clang++3.8 (ubuntu)
    • cross-compile 2 raspberry-pi
    • valgrind (memcheck and helgrind)
v2.0a147
2016-06-03
  • SignalHandler
    • refactor SafeSignalsManager::Rep_ () code for its condition variable usage (small change)
  • Helgrind support - https://stroika.atlassian.net/browse/STK-471
    • qStroika_FeatureSupported_Valgrind
    • Got all issues cleared up with helgrind - and now clean bill of health (with various caveats opened as bug reports in JIRA)
    • Many small changes - mostly annotations and supression file entries - esp to SignalHandler, and WaitablEvent, and regression tests
  • lose deprecated DEFINE_CONSTEXPR_CONSTANT()
  • Draft of new ModuleGetterSetter<T,IMPL>
  • Small cleanups/enhamcents to ErrNoException module: Always define errno_t in that Execution namespace, and lose qCanGetAutoDeclTypeStuffWorkingForTemplatedFunction because Handle_ErrNoResultInteruption fixed.
  • fixed several modbus bugs (really mostly returning wrong payload size and returing uint16s for coils and discrete registers) - reported by Chad@blcok - and improved diagnostics (ifdefed)
  • Tested (passed regtests)
    • vc++2k15 Update 2
    • gcc 4.8
    • gcc 4.9
    • gcc 5.3
    • clang++3.5 (ubuntu)
    • clang++3.6 (ubuntu)
    • cross-compile 2 raspberry-pi
    • valgrind (memcheck and helgrind)
v2.0a146
2016-06-01
  • Quick release - so no regression tests completed (and helgrind regtest still not clean).
  • Valgrind - Helgrind work
    • qStroika_FeatureSupported_Valgrind and VALGRIND_HG_CLEAN_MEMORY support - https://stroika.atlassian.net/browse/STK-471
    • Common-Helgrind.supp.
    • Enabled running Helgrind in the normal release process Regression tests (still a few regression warnings, but all tests pass)
  • fixed slight data race in ThreadPool code - detected by helgrind, and other related minor ThreadPool cleanups
v2.0a145
2016-05-27
  • Optional
    • Gave up on Optional<T> (T*) - instead - Optional<T>::OptionalFromNullable
    • More misc cleanups - nullopt_t, op=, etc.
  • Modbus TCP
    • added Modbus::SplitSrcAcrossOutputs
    • relax restrictions on returned values from APIs so we can return things outside the range of request - and handle that on the server side
  • Tested (passed regtests)
    • vc++2k15 Update 2
    • gcc 4.8
    • gcc 4.9
    • gcc 5.3
    • clang++3.5 (ubuntu)
    • clang++3.6 (ubuntu)
    • valgrind (memcheck only; helgrind still broken)
  • SKIPPED
    • cross-compile 2 raspberry-pi {skipped remote make run-tests}
v2.0a144
2016-05-26
  • IO::Socket
    • SockAddr ToString support
    • Socket::GetPeerAddress
  • Modbus TCP
    • New Modbus Framework
    • Supports a handful of messages (needed for BlockEng) - and full serverside (but no client/proxy support)
  • Streams
    • Added Streams::EOFException
    • Added OutputStream::WritePOD () and InputStream::ReadPOD ()
  • Tested (passed regtests)
    • vc++2k15 Update 2
    • gcc 4.8
    • gcc 4.9
    • gcc 5.3
    • clang++3.5 (ubuntu)
    • clang++3.6 (ubuntu)
    • cross-compile 2 raspberry-pi
    • valgrind (memcheck only; helgrind still broken)
v2.0a143
2016-05-20
  • Quick (ish) release with small fixes, and modest testing
  • DEPRECATED DEFINE_CONSTEXPR_CONSTANT
  • Configuration::SystemConfiguration
    • Fixed windows and Linux Configuration::GetSystemConfiguration_CPU () - to return right # logical and physical (socket) cores
    • Linux (embedded old linux) fix so returns right number of logical cores
    • ToString support, and added to regtest so does toString of result
  • Lose all support for VisualStudio.Net-2013
    • Lose all project files
    • Lose version defines (_MS_VS_2k13_VER_, _MS_VS_2k13_FULLVER_, _MS_VS_2k13_Update1_FULLVER_ etc)
    • Lose all bug defines (and their workarounds) that ONLY applied to VS2k13
      • qCompilerAndStdLib_LocaleTM_time_put_crash_sometimes_Buggy
      • qCompilerAndStdLib_TMGetGetDateWhenDateBefore1900_Buggy
      • qCompilerAndStdLib_LocaleDateParseBugOffBy1900OnYear_Buggy
      • qCompilerAndStdLib_VarDateFromStrOnFirstTry_Buggy
      • qCompilerAndStdLib_StdExitBuggy
      • qCompilerAndStdLib_alignas_Buggy
      • qCompilerAndStdLib_constexpr_Buggy
      • qCompilerAndStdLib_const_Array_Init_wo_UserDefined_Buggy
      • qCompilerAndStdLib_strtof_NAN_ETC_Buggy
      • qCompilerAndStdLib_TemplateParamterOfNumericLimitsMinMax_Buggy
      • qCompilerAndStdLib_noexcept_Buggy
      • qCompilerAndStdLib_SharedPtrOfPrivateTypes_Buggy
      • qCompilerAndStdLib_StaticCastInvokesExplicitConversionOperator_Buggy
      • qCompilerAndStdLib_hasEqualDoesntMatchStrongEnums_Buggy
      • qCompilerAndStdLib_thread_local_keyword_Buggy
      • qCompilerAndStdLib_stdinitializer_templateoftemplateCompilerCrasherBug
      • qCompilerAndStdLib_stdinitializer_of_double_in_ranged_for_Bug
      • qCompilerAndStdLib_lambda_default_argument_with_template_param_as_function_cast_Buggy
      • qCompilerAndStdLib_DefaultParamerOfStaticFunctionWithValueLambdaOfWithEmptyClosure_Buggy
      • qCompilerAndStdLib_DefaultedAssignementOpOfRValueReference_Buggy
      • qCompilerAndStdLib_TemplateCompileWithNumericLimitsCompiler_Buggy
      • qCompilerAndStdLib_noexcept_Buggy
      • qCompilerAndStdLib_constexpr_Buggy
      • qCompilerAndStdLib_thread_local_keyword_Buggy
  • updated building Stroika docs
  • Lose deprecated Frameworks/SystemPerformance/Instruments/Process fPercentCPUTime
  • Tested (passed regtests)
    • vc++2k15 Update 2
    • gcc 4.8
    • gcc 4.9
    • gcc 5.3
    • clang++3.5 (ubuntu)
    • clang++3.6 (ubuntu)
    • cross-compile 2 raspberry-pi
    • valgrind (memcheck only; helgrind still broken)
v2.0a142
2016-05-18
  • small cleanups to samples - Characters::ToString(current_exception()), and added InternetAddress::ToString ()
  • Improved error messages in ~AllThreadsDeadDetector_ for failure case
  • Added helpers VariantWriter::WriteAsBLOB () and VariantWriter::WriteAsString ()
  • minor mostly cosmetic and exception handling cleanusp to Frameworks::Service code
  • Set<T, TRAITS>::IsSubsetOf ()
  • VariantValue takes optional iterable of VariantValue
  • added Time::operator- (const DateTime& lhs, const DateTime& rhs)
  • SystemPerformance/Instruments/Process
    • deprecated PercentCPUTime and instead defined AverageCPUTimeUsed
    • respect fRestrictToPIDs and fOmitPIDs
    • support fCaptureTCPStatistics (default off) for Linux
  • NEW new PerformanceDump-v2.0a142-linux-gcc-5.3.0-x64.txt and PerformanceDump-v2.0a142-x86-vs2k15-ReleaseU.txt
  • Tested (passed regtests)
    • vc++2k15 Update 2
    • gcc 4.8
    • gcc 4.9
    • gcc 5.3
    • clang++3.5 (ubuntu)
    • clang++3.6 (ubuntu)
    • valgrind (memcheck only; helgrind still broken)
  • De-Supporting configurations
    • vc++2k13
    • ppc-AIX-7.1/gcc 4.9 (release works fully, but Configuration=Debug crashes linker unless you disable Xerces)
    • Centos 5 (scl enable devtoolset-2 sh & use custom build of gcc 5.3.0)
v2.0a141
2016-04-22
  • coding convention docs (_A name suffix), and renamed FormatThread to FormatThread_A
  • draft of Thread GetDefaultConfiguration and passing in Configuration object, and GetConfigurationStatus - https://stroika.atlassian.net/browse/STK-475 and https://stroika.atlassian.net/browse/STK-474;
  • Transfer fucntion (curl/winhttp) support fOptions_.fMaxAutomaticRedirects and default to 0, and handle in curl/winhttp implementations; fixed io transer network connection regtest to use fMaxAutomaticRedirects = 1, since many of them use redirects
  • fixed use of :WinHttpSetOption WINHTTP_DISABLE_COOKIES
  • URL class
    • NOT backward compat change - URL::GetScheme() now returns optional - and eFlexiblyAsUI doesnt fill in scheme by default - but many places use new GetSchemeValue () - which populates with the default; and fixed regression tests
    • added new utility URL::GetHostRelURLString () - badly named but needed;
    • URL::ToString
    • URL::GetHostRelativePathPlusQuery
  • fixed Network/Transfer/Client_WinHTTP to pass fURL_.GetHostRelativePathPlusQuery () instead of fURL_.GetHostRelativePath () - curl code was already fine
  • Attempt at fixing CTRLC issue with services - while not running - install signal handler LATER - just around the actual run as service
  • VS2k15
    • define qCompilerAndStdLib_COutCErrStartupCrasher_Buggy - last important bug (with workaround) for ms vs 2k15, and applied (cruddy but workable) workaround
    • NEW PerformanceDump-v2.0a141-x86-vs2k15-ReleaseU.txt
    • Switching all my development to using VS2k15 instead of VS2k13. Ran final release testing with VS2k13 also - for this release, but probably soon abanodon vs2k13
  • Tested (passed regtests)
    • vc++2k15 Update 2
    • vc++2k13 (probably last release to support/test this)
    • gcc 4.8
    • gcc 4.9
    • gcc 5.3
    • ppc-AIX-7.1/gcc 4.9 (release works fully, but Configuration=Debug crashes linker unless you disable Xerces)
    • Centos 5 (scl enable devtoolset-2 sh & use custom build of gcc 5.3.0)
    • clang++3.5 (ubuntu)
    • clang++3.6 (ubuntu)
    • valgrind (memcheck only; helgrind still broken)
v2.0a140
2016-04-04
  • Quick minor release (little tested)
v2.0a139
2016-04-04
  • Quick minor release (little tested) to adjust timeouts on performance regtest for HealthFrame release
  • warning - not backward compatible Execution::FormatThreadID now returns string (ASCII); so use Characters::ToString (IDType) instead
  • lose deprecated mkFinally
v2.0a138
2016-04-03
  • Support GCC 5.3 in Defaults_CompilerAndStdLib
  • curl version 7.48.0; and fixed download logic to only grab from mirrors and default download location - not github cuz that names folders differently
  • Various docs cleanups (including Thread, Synchonized)
  • Cleanup DbgTarace qStroika_Foundation_Exection_Thread_SupportThreadStatistics in Thread
  • Synchonized usage in Frameworks/SystemPerformance/Capturer
  • Slightly enlarged timeouts on performance regtest so hopefully wont fail anymore on AWS VMs
  • Formatting of backtrace output on gcc/unix (now using demangle)
  • New configure --runtime-stack-check {true|false} (hit by --apply-default-debug-flags) flag; but sadly doesnt work on AIX (platform where needed most)
  • RegressionTets-Unix.sh and Makefile
    • gcc 5.3.0 support in regression test, and a few other additions/removals
    • Conditionally added helgrind support (but disabeld cuz broken - https://stroika.atlassian.net/browse/STK-471)
    • Attempt to support running valgrind memcheck or helgrind, and changed meaning of VALGRIND= param to tool to use, and changed regtests to run memcheck AND one helgrind
  • Frameworks::Service
    • Lose unused Main::sTHIS_; and example usage comments
    • Use synchonized to protect instance variables on Main::BasicUNIXServiceImpl
    • Instance/function object for safe signal handler to avoid use of global variable
    • use fRunThread.load () instead of fRunThread_-> in Main::BasicUNIXServiceImpl::_Attach () to avoid deadlock
    • Generally UNIX impl should be more solid/thread/signal safe
  • ProcessRunner
    • santiy check asserts on getrlimit results
    • delete old obsolete code (ifdefed)
    • ProcessRunner - use f_fork on AIX
    • Incomplete draft of using spawn instead of fork/exec
  • Completed rewrite of https://analitiqa.atlassian.net/browse/AII-27 - Execution::Platform::AIX::GetEXEPathWithHintT - still sucks - but at least no popen
  • Added PerformanceDump-v2.0a138-x86-ReleaseU.txt; PerformanceDump-v2.0a138-linux-gcc-4.9.2-x64.txt; PerformanceDump-v2.0a138-linux-gcc-5.3.0-x64.txt
  • Tested (passed regtests)
    • vc++2k13
    • vc++2k15 Update 2 (except some crashers in 64 bit code due to MSFT lib bug)
    • gcc 4.8
    • gcc 4.9
    • gcc 5.3
    • ppc-AIX-7.1/gcc 4.9 (release works fully, but Configuration=Debug crashes linker unless you disable Xerces)
    • Centos 5 (scl enable devtoolset-2 sh & use custom build of gcc 5.3.0)
    • clang++3.5 (ubuntu)
    • clang++3.6 (ubuntu)
    • cross-compile-raspberry-pi
    • valgrind
v2.0a137
2016-03-31
  • Exeuction::Finally
    • lose obsolete DEPRECATED Exeuction::Finally
    • Decprecated mkFinally()
    • Added new Finally () - essentially same as mkFinally - so net net a rename
    • Re-jiggered and documented future and current noexcept support for Finally (now easier and safer), and related future todo (optional suppress abort)
  • Thread::SuppressInterruptionInContext in one spot of Thread::ThreadMain_, and in a couple finally's in WaitableEvent
  • print BackTrace in Assert/Fatal and neaten report in signalhandler
  • added ToString (const thread::id& t); and ifdefed use of that to dump tostring of runnign threads
  • support for Visual Studio.net 2015 Update 2 - but it STILL fails on 64lib lib bug - looks like I may need to debug this
  • minor tweak (static const string_constnat) for ObjectVariantMapper::MakeCommonSerializer_Range_ ()
  • lose a few depecated functions /classes (GetStandardTerminationSignals/ Has_Operator_LessThan)
  • adjusted regression test times (test 47 performance) - for compat with vs2k15 (in vm)
  • Lose qCompilerAndStdLib_deprecatedFeatureMissing and related deprecation macros (just _Deprecated_ now)
  • fixed typos in configure code - when appending to EXTRA_LINKER_ARGS include space in case args already there
  • Tested (passed regtests)
    • vc++2k13
    • vc++2k15 Update 2 (except some crashers in 64 bit code due to MSFT lib bug)
    • gcc48
    • gcc49
    • gcc52
    • ppc-AIX/gcc49 (release works fully, but DEBUG crashes linker unless you disable Xerces)
    • Centos 5 (scl enable devtoolset-2 sh gcc 4.8.2)
    • clang++3.5 (ubuntu)
    • clang++3.6 (ubuntu)
    • cross-compile-raspberry-pi
    • valgrind
v2.0a136
2016-03-29
  • Finally/mkFinally
    • Multistage rewrite - but for now switch all uses to using Exeuction::mkFinally
    • Gist of change is to allow use with no mallocs/locks
  • SignalHandler code
    • Rewrote much SignalHanlder code so safer interlock if signals while updating signal handlers
    • use Platform::POSIX::ScopedBlockCurrentThreadSignal before attempting signal lock in SignalHandlerRegistry::SetSignalHandlers () - to avoid deadlock
    • no arg overload of Platform::POSIX::ScopedBlockCurrentThreadSignal CTOR (all signals) and used that in Execution/SignalHandlers - so no signals on the thread adding/removing cached signal handler callbacks
    • Deprecated GetStandardTerminationSignals
    • SetStandardCrashHandlerSignals (eDirect)
    • SignalHandler::ToString ()
  • improved DBGTrace code for InputStream::ReadAll logic; Tightened some assertions; and fixed important bug (still not perfrect) on InputStream::ReadAll() seekable case; simplified InputStream::ReadAll ()
  • Cleanup BlockingQueue test and added example docs
  • Thread::Status now uses DefaultNames<> and supports Thread::ToString(), and used more thoroughly inside DbgTraces inside Thread code
  • Tweak tolerances on performance regtests to hopefully pass on AWS VMs
  • more DbgTrace() calls - cleanups to track down AIX bug; more int-size sensative in printfs/DbgTrace Streams/InputStream
  • minor cleanup to ordering in logger threads to avoid possible deadlock
  • fixed missing StringBuilder operator +/<< overloads
  • add ; separators in Debug/BackTrace
  • make ToString for Iterables - use [ instead of {
  • fixed case where SharedStaticData<T>::~SharedStaticData () could throw (abort exception)
  • re-disable the CFLAGS attempted crap for xerces build (for aix) -didnt work there and broke other builds. Must improve Xerces autoconf!
  • added PerformanceDump-v2.0a136-x86-ReleaseU.txt and PerformanceDump-v2.0a136-linux-gcc-5.2.0-x64.txt
  • Tested (passed regtests) on
    • vc++2k13
    • vc++2k15 (except some crashers in 64 bit code due to MSFT lib bug)
    • gcc48
    • gcc49
    • gcc52
    • ppc-AIX/gcc49 (release works fully, but DEBUG crashes linker unless you disable Xerces)
    • Centos 5 (scl enable devtoolset-2 sh gcc 4.8.2)
    • clang++3.5 (ubuntu)
    • clang++3.6 (ubuntu)
    • cross-compile-raspberry-pi
    • valgrind
v2.0a135
2016-03-22
  • Signal Handlers:
    • Misc cleanups
    • Simplified SignalHandler CTOR code - so just static sThe
    • new - hopefully safe now - SignalHanlder notification scheme for 'safe signal handlers'; has one defect which is delivered oout of order; and by default uses qConditionVariableSetSafeFromSignalHandler_ which now testing is safe with signals, but not super clearly documetned as such
  • Cleanup BlockingQueue test and added it to example docs
  • Enlarge tolerances on performance regtests to hopefully pass on AWS VMs
  • Debug:
    • configure apply-default-debug-flags for gcc, then set -rdynamic as default linker option - so stack traces come out better in debug traces
  • Threads
    • define and use Thread::AbortException::kThe and Thread::InterruptException::kThe to avoid problems constructing them (copyies strings) during abort, so abort in abort
    • document that Execution::FormatThreadID () is not a cancelation point and force with Thread::SuppressInterruptionInContext
    • document that Trace::EmitTraceMEssage is not a cancelation point; include Thread::SuppressInterruptionInContext
  • Before/After Main:
    • docs and assertion testing to document/ensure we dont have Thread objects outside the lifetime of main (at least not running)
    • in test harness, call to EXIT is _ version - so no call to after main
    • Added code to detect problems with threads running before or after main. Not perfect (cuz I lack a good way to detect)
  • AIX
    • experiment with hack to make extra compiler args (like AIX minimal TOC stuff) work with xerces compile (didnt work)
    • dont use -rdynamic on AIX (doesnt work - no idea why - but just changing defaults so SB OK)
  • Added PerformanceDump-v2.0a135-x86-ReleaseU.txt, PerformanceDump-v2.0a135-linux-gcc-5.2.0-x64.txt
  • Tested (passed regtests) on
    • vc++2k13
    • vc++2k15 (except some crashers in 64 bit code due to MSFT lib bug)
    • gcc48
    • gcc49
    • gcc52
    • ppc-AIX/gcc49 (release works fully, but DEBUG crashes linker unless you disable Xerces)
    • Centos 5 (scl enable devtoolset-2 sh gcc 4.8.2)
    • clang++3.5 (ubuntu)
    • clang++3.6 (ubuntu)
    • cross-compile-raspberry-pi
    • valgrind
v2.0a134
2016-03-19
  • Cleanup docs (e.g. markdown readmes, and inline in source code)
  • Signal handling, and thread safety and deadlocks
    • safer signal hanlding - no memory allocation during handling - INCOMPELTE
    • Disable thread abort during destroy of blocking q un Stroika::Foundation::Execution::SignalHandlerRegistry::SafeSignalsManager::Rep_::~Rep_
  • Cleanup signal handling and static usage (still more todo) on Frameworks::Service
  • minor comments/cleanups/. Containers::ReserveSpeedTweekAddNCapacity in InputStream::ReadAll
  • New Debug::Backtrace() call to generate a string with stack backtrace, suitable for logging. Now automatically called at the point where exceptions are thrown in tracelog. DefaultFatalErrorHandler_ prints current backtace.
  • Thread/Execution
    • Cleanup code starting/naming threads (pass in threadname in CTOR so clearer each thread is named)
    • Fixed non-POSIX calls to Thread::GetID() for null thread.
    • moved lock_guard critSec { sChangeInterruptingMutex_ } inside scope in Execution::CheckForThreadInterruption since Throw now does mcuh more than it used to (backtrace)
    • FIX bug with thread id stuff in ThreadMain ... issue is we dont assign to fThread yet in other thread sometimes - RACE - but fixed using GetCurrentThread and better documetned and asserts we eventually get the right value
    • use qStroika_Foundation_Exection_Thread_SupportThreadStatistics to add testings to regtests all threads cleaned up
    • Thread InterruptSuppressCountType_ need not be atomic (corrcted comment too) - cuz only accessed within a single thread. But added assert it never goes negative (wraps)
    • make Thread::InterruptException inherit from StringException - so its caught in Characters::ToString() conversion - and displayed reasonable
    • optional name parameter to Thread objects, new Thread::IsDone()
  • Threadpool cleanups, and added primitive ToString() support
  • threadpool::abort also uses Thread::SuppressInterruptionInContext
  • Restrucutre Logger code
    • define qCompilerAndStdLib_StdExitBuggy; renamed Logger::...FlushBuffer to Flush(); added Logger::ShutdownSingleton (); and cleaned up samples usage to be more correct and use the above
    • Logger::Log () now non-static method
    • Much improved threadsafety - https://stroika.atlassian.net/browse/STK-463
    • Lose all(?) static fields, and make them fields of Rep_
    • Enhanced samples with buffering for logging, and Logger::ShutdownSingleton
  • Tracing
    • document DbgTrace not cancelation point
    • TraceContextBumper noexcept
    • draft new support for qStroika_Foundation_Exection_Exceptions_TraceThrowpointBacktrace
    • Attempted ToString() support for exception_ptr objects
  • Build System
    • make (clobber/indent) cleanups
    • try -mminimal-toc gcc arg instead of -bbigtoc for AIX TOC size workaround issue; causes fewer linker crashes (though docs say make slower code) - see https://stroika.atlassian.net/browse/STK-464
    • draft support in configure script for --debug-symbols (workaround crazy AIX debug build failure) (ADD BUGRE PROT TO MAKE MORE THAN TRUEFASLE
  • More use of USE_NOISY_TRACE_IN_THIS_MODULE_ code (disabled but easy to turn on noisy per module)
  • change IO::Networking::Transfer::Options fOptions_.fFailConnectionIfSSLCertificateInvalid to be optional - and default true in WinHTTP, and false in curl (cuz we may not have ssl cert files - as on AIX - fixing https://stroika.atlassian.net/browse/STK-451)
  • experimental FinallyT<> and mkFinally to try and avoid memory allocaiton (used in in SignalHandlerRegistry::FirstPassSignalHandler_)
  • Fixed Frameworks/SystemPerformance/INstruments/Process windwos genration of percent values,a nd bug on aix side first time through (mislabled commit 46c83f715bed3700988b58f6bdcaf2aac08e3cea)
  • new String::FilteredString
  • Tested (passed regtests) on
    • vc++2k13
    • vc++2k15 (except some crashers in 64 bit code due to MSFT lib bug)
    • gcc48
    • gcc49
    • gcc52
    • ppc-AIX/gcc49
    • Centos 5 (scl enable devtoolset-2 sh gcc 4.8.2)
    • clang++3.5 (ubuntu)
    • clang++3.6 (ubuntu)
    • cross-compile-raspberry-pi
    • valgrind
v2.0a133
2016-03-13
  • Check-tools code for Stroika makefile - so prints clearer error message
  • PIDLoop support
  • Improved Characters::ToStrings () support: Duration, Characters::ToString module loses include of KeyValuePair, but adds support for serializing pair and CountedValue
  • Synchronized:- readable/writable reference code
  • Fixed default for ObjectVariantMapper::MakeCOmmonType<> for enum to use DefaultNames<> an dallow MakeCommonSerializer_EnumAsInt () for cases where people want to explicit write as integer
  • Added MultiSet<T, TRAITS>::SetCount (), added MultiSet<T, TRAITS>::clear ()
  • ObjectVariantMapper: simplified (fewer overloads - Iterable isntead of zillions of choices) for AddClass and added AddSubClass
  • Lose deprecated CheckFileAccess
  • Cleanup code and docs for VariantValue::Equals() - now more cases it compares as equals it used to treat as unequal (like taking a date and convert to string with json converter and then readback and compare - now compares equal
  • Big changes to SystemPerformance/Instruments/Process for windows. It no longer (requires/uses by default) WMI.
  • Patch for curl/openssl issue AIX bug (SSHv2 not recognized properly by curl autoconf)
  • Emit EOL after shortened / elipsis added dbg log message
  • Added PerformanceDump-v2.0a133-x86-ReleaseU.txt, PerformanceDump-v2.0a133-linux-gcc-5.2.0-x64.txt
  • Tested (passed regtests) on
    • vc++2k13
    • vc++2k15 (except some crashers in 64 bit code due to MSFT lib bug)
    • gcc48
    • gcc49
    • gcc52
    • ppc-AIX/gcc49 (except https://stroika.atlassian.net/browse/STK-451)
    • Centos 5 (scl enable devtoolset-2 sh gcc 4.8.2)
    • clang++3.5 (ubuntu)
    • clang++3.6 (ubuntu)
    • cross-compile-raspberry-pi
    • valgrind
v2.0a132
2016-03-06
  • fixed typo with Foundation/Cache/TimedCache, and new draft Cache/SynchronizedTimedCache
  • FileSystem::IsDirectoryName ()
  • Frameworks/WebServer: Request exception cleanups, new ClientErrorException
  • fixed serious bug with Request::GetBody (): was not handling partial reads (where read returns less than requested), optional upTo arg to InputStream::ReadAll()
  • fixed has KeyvaluePair definition - for ToString, and sampe for Range<>::ToString
  • Small cleanups to Iterator/Iterable/MakeSharedPtr - and use mew MakeSharedPtr/make_shared_ptr isntead of shared_ptr<> (new x)
  • updated version of astyle
  • Tested (passed regtests) on
    • vc++2k13
    • vc++2k15 (except some crashers in 64 bit code due to MSFT lib bug)
    • gcc48
    • gcc49
    • gcc52
    • ppc-AIX/gcc49 (except https://stroika.atlassian.net/browse/STK-451)
    • Centos 5 (scl enable devtoolset-2 sh gcc 4.8.2)
    • clang++3.5 (ubuntu)
    • clang++3.6 (ubuntu)
    • valgrind
v2.0a131
2016-02-20
  • OMG another bugfix for Debug::EmitTrace... code... minor but...
  • quickie release - no testing
v2.0a130
2016-02-20
  • OMG another bugfix for Debug::EmitTrace... code... minor but...
  • quickie release - no testing
v2.0a129
2016-02-20
  • OMG another bugfix for Debug::EmitTrace... code... minor but...
  • quickie release - no testing
v2.0a128
2016-02-20
  • fixed xerces makefiles to also have archive.apache fetch url; and switched to 3.1.3
  • fix Debug::EmitTrace... code ...thread interupt exception in low level DebugTrace code
  • quickie release - no testing
v2.0a127
2016-02-20
  • Small assertion cleanups to FileSystem::ExtractDirAndBaseName; and in FileSystem::GetFileBaseName
  • dont assert out and pass through - thread interupt exception in low level DebugTrace code
  • quickie release - no testing
v2.0a126
2016-02-15
  • OpenSSL crypto
    • progress on https://stroika.atlassian.net/browse/STK-123 Finish getting wrapper on openssl working
    • RESOLVED https://stroika.atlassian.net/browse/STK-190
    • RESOLVED https://stroika.atlassian.net/browse/STK-191
    • PROGRESS but not fixed - https://stroika.atlassian.net/browse/STK-192
    • RESOLVED https://stroika.atlassian.net/browse/STK-193 - issue with short encrpytions failing with block ciphers - was bug in pull code in streams
    • Lowered priority - defaults good - https://stroika.atlassian.net/browse/STK-194
    • tons .. fixed mostly working now
    • EVP_BytesToKey - nRounds defaults to 1 (and document why)
    • Cryptography::OpenSSL::WinCryptDeriveKey (didnt produce same results as windows in one case I tested - not sure why)
    • slightly restrucutre AES wrapper API - so usable, and now regrssion test passes (was missing IV); API A HORRIBLE MESS. see https://stroika.atlassian.net/browse/STK-458
    • attempt at fixing openssl makefile for crosscompiling (https://stroika.atlassian.net/browse/STK-427)
    • DecodeBase64() takes String overload
    • openssl 1.0.2f
    • -no-dso and -no-engines on building openssl - to wrokaround crasher bug using ssl from curl on centos6 (II-ESX-Agent); I should be able to get it working, but it doesn't appear needed so disabling SB OK - at least for now
    • hopefully bug workaround for https://stroika.atlassian.net/browse/STK-452 - AIX openssl build issue
    • I think I solved problem with using pkg-config with openssl/curl - issue seems to be its configure script misses the dependency on teh private ldl, so we force that in, and the link tests work again
    • attempted to add nullopt_t support to Optional<> but not quite fully working (added https://stroika.atlassian.net/browse/STK-456)
    • attempt losing two Optional operator= overloads (not backward compat) - but designed to more closely mimic http://en.cppreference.com/w/cpp/experimental/optional/operator%3D and avoid some overload ambiguities I was running into. Just testing...
    • use curl 7.47, and use --without-zsh-functions-dir to workaround https://stroika.atlassian.net/browse/STK-419; PATCH to workaround ZSH curl bug
    • fixed curl makefile to use PKG_CONFIG_PATH - not PKG_CONFIG
    • workaround trnascoder bug/issue on RedHat 6 - so did for xerces config - --enable-transcoder-gnuiconv --disable-transcoder-icu; use enable-transcoder-iconv disable-transcoder-gnuiconv for xerces - cuz gnuiconv depends on the LANG environment variable/locale stuff and that doesnt work on centos6
  • fixed zlib mirror
  • VariantValue::As returns NAN if null-type (more consistent with other docs on behavior of empty - but NOTE - NOT BACKWARD COMPATIBLE)
  • Added optional Socket BindFlags to ConnecitonManager and Listener
  • default values (not on cygwin) for AR/RANLIB (used in new openssl makefile and we didnset set them for AIX)
  • Added new Filesystem::ExtractDirAndBaseName and used that in place of FileSystem::GetFileBaseName in processrunner (cuz abotu to change GetFileBaseName a bit). AND refined definition of Filesystem::GetFileBaseName and added regression tests
  • BLOB
    • BLOB::Hex () utility function; BLOB::Raw()
  • Frameworks/WebServer/ConnectionManager and WebServer Sample
    • in Frameworks/WebServer/ConnectionManager - since we dont yet support connection keepalives, set Connection: close (required)
    • WebServer Response - better support String, and fixed missing printf()
    • WebServer Resposne::Write () overload for BLOB
    • wrap new Route/ConnectionMgr stuff with !qCompilerAndStdLib_regex_Buggy; and support new Route RequestMatch
    • WebServer request uses Mapping (for now so i can use ToString); And fixed bug (assert error) fetchbgin BODY with zero sized content-length
    • Added draft WebServer Router class; more cleanups of webserver code - including sample - to use (proto) router; got usable WebServer ConnectionManager, and greatly simplfied the WebServer sample app demo
  • Fix re-order regtests and fixed fixed accidentlaly remapped regression tests - #20 - Set
  • ToString now supports KeyValuePair
  • Framewowrks::Service - if we have an exception runing the thread service - propagate it
  • Added Socket SO_LINGER support
  • Added Set::operator^=
  • ProcessRunner (Big - not fully backward compatible - changes)
    • fixed a serious bug with ProcessRunner::CreateRunnable - capturing stack variable and returning it in function object before exec!
    • First - on windows - with default settings - we throw on failed process exec (subprocess returns nonzero) - like on UNIX.
    • There are now overloads of Run() - taking a reference to a Memory::Optional - which will be filled in iff we have status return results. And if filled in, the throw behaivor (on windows and unix) is disabled.
    • and on UNIX fixed EINTR bug - where waidpid was not handling EINTR.
    • Cleanup Execution::DetachedProcessRunner - mode DebugStrs - and execvp on UNIX - so searches path; and documentation
  • FOR AIX, we just add -latomic to StroikaFoundationSupportLibs to avoid ld: 0711-317 ERROR: Undefined symbol: .__atomic_load_8
  • DataExchange/OptionsFile - docs, and Write and WriteRaw() does noting (no file change) if no actual changes; OptionsFile::WriteRaw () optimizaiton to not write doesnt apply when read/write paths are different! - like in upgrade!
  • Added exceedingly preliminary/primitive SOAP support (just parse some kinds of partial) SOAPFault objects
  • Logger
    • Logger::LogIfNew ()
    • Imporved DbgTrace() handling of Logger::Log - always logging immediately to tracelog - not when output to syslog - and with proirity, and note about supressions
    • SLIGHLY incompatible change to DirectoryIterator/DirectoryIterable - so they NEVER return . or ..: looking through my existing usage, it was NEVER helpful and I had tons of specail case code filtering these out (nearly every use)
    • IO::FileSystem::FileSystem::FindExecutableInPath ()
    • POSIX support for IO::FileSystem::FileSystem::GetFileLastAccessDate/IO::FileSystem::FileSystem::GetFileSize and IO::FileSystem::FileSystem::GetFileLastModificationDate
    • some cleanups o fFileSystem::WellKnownLocations:: - making POSIX GetTemporary respoect enviroment variables, and CACHE (so faster), and other related cleanups
  • fixed Execution::IsProcessRunning() for AIX
    • lose String::ConstGetRep_ - and use _SafeReadRepAccessor instead; and added strika bug defines for a few importatnt string threading bugs (one very serious); stop using obsolete Iterable::_ConstGetRep and instead use _SafeReadRepAccessor<> and iuts _ConstGetRep; lose obsolete Iterable::_ConstGetRep - use _SafeReadRepAccessor<>::_ConstGetRep () instead
  • new system configuration fPreferedInstallerTechnology
  • Added load/store names for readableReference/WritableReference in Synchonized
  • IO::Network::Transfer
    • IO::Network::Transfer - cleanup and force consistently ALL POST, Send () etc calls will throw on failure, and to get the status/details catch and find the response object in exception
    • slight improvement on https://stroika.atlassian.net/browse/STK-442 - for winhttp - set flag earlier so we ignore ssl errors if we dont need to know about them (leave bug open cuz even when we do need ssl info, we should be able to tell if it would have failed)
    • exception memleak bulletproof in Transfer/Client_WinHTTP
    • make WinHTTP support .fFailConnectionIfSSLCertificateInvalid and added regresison test teo verify this
  • small fix to ObjectReaderRegistry::RepeatedElementReader, and docs/examples
  • overload IsPartition so takes optional comparer for range elements, and use in Math::ReBin()
  • fixed _Deprecated_ macro
  • DEPRECATED -Stroika_Enum_Names - use Configuration::DefaultNames<ENUMNAME> instead, and used that in in ToString(), and EnumNames::PeekName (ENUM_TYPE e) const constexpr
  • Many fixes to RegressionTests-Unix.sh
  • Debug/Trace code: fixed dbgstr code for dumping very large lines to windows debugger, and noexcept usage
  • ToString () improvements (fix unsigned)
  • better factor EQUALS_COMPARER for SortedSet_DefaultTraits, SortedMapping_DefaultTraits, Set_stdset_DefaultTraits, Mapping_stdmap_DefaultTraits - depending on their base 'archtype' traits
  • Common::DefaultEqualsComparer and DefaultEqualsComparerOptionally
  • Various cleanups to containers - mostly relating to use of DefaultEqualsComparer
  • qCompilerAndStdLib_hasEqualDoesntMatchStrongEnums_Buggy and workarounds
  • AtLeast/AtMost
  • deprecated Common::Has_Operator_LessThan in favor of Configuration::has_lt
  • Containers factory fixups to handle TRAITS differ from standard
  • New CountedValue<> and used that in MultiSet<>
  • New Containers submodule for DefaultTraits and Factory
  • use improved strategy (...) for Default_SFINAE_ in many cases
  • https://stroika.atlassian.net/browse/STK-431 - moved STL less<> to Common
  • renamed Execution::DoThrow -> Execution::Throw (and a few similar renames)
  • hopefully improved dependencies on rules in top level makefile (so less redundant building when called with no configuraiton argument - SB no diff otherwise)
  • docs cleanups and deprecated FileSystem::CheckFileAccess (use CheckAccess)
  • use noexcept on a few functions: GetTickCount, and Debug:: trace code
  • PerformanceDump-v2.0a126-x86-ReleaseU.txt, PerformanceDump-v2.0a126-linux-gcc-5.2.0-x64.txt, PerformanceDump-v2.0a126-linux-gcc-4.9-x64.txt added
  • Tested (passed regtests) on
    • vc++2k13
    • vc++2k15 (except some crashers in 64 bit code due to MSFT lib bug)
    • gcc48
    • gcc49
    • gcc52
    • ppc-AIX/gcc49 (except https://stroika.atlassian.net/browse/STK-451)
    • Centos 5 (scl enable devtoolset-2 sh gcc 4.8.2)
    • clang++3.5 (ubuntu)
    • clang++3.6 (ubuntu)
    • cross-compile-raspberry-pi
    • valgrind
v2.0a125
2016-01-13
  • Substantial fixes to Debug/AssertExternallySynchronized - needed because of recent shared_lock support (multiset)
  • renmaed Execution::DoReThrow -> ReThrow() - and deprecated old name
  • several cleanups of TimedCache code - including deprecations, and docs, regression tests, TRAITS COMPARE and DO_DIRTY_ON_READ flag support.
  • cleanup MakeSharedPtr / new code for a few more places - Iterable
  • fixed Xerces makefile for AIX, and use explicit std:: before thread to avoid issues on AIX
  • Further ToString support (bool/datetime etc)
  • fix redirection in ScriptsLib/RegressionTests-Unix.sh and other output cleaning
  • Define define qCompilerAndStdLib_static_initialization_threadsafety_Buggy
  • qTemplateAccessCheckConfusionProtectedNeststingBug
  • PerformanceDump-v2.0a125-linux-gcc-5.2.0-x64.txt and PerformanceDump-v2.0a125-x86-ReleaseU.txt added
  • Tested (passed regtests) on vc++2k13, vc++2k15 (except some crashers in 64 bit code due to MSFT lib bug), gcc48, gcc49, gcc52, ppc-AIX/gcc49, clang++3.5, clang++3.6, cross-compile-raspberry-pi, and valgrind;
v2.0a124
2016-01-04
  • Consolidate and test minor tweaks.
  • Tested (passed regtests) on vc++2k13, vc++2k15 (except some crashers in 64 bit code due to MSFT lib bug), gcc48, gcc49, gcc49(32-bit x compile - but limited - no tpp libs), gcc52, ppc-AIX/gcc49, clang++3.5, clang++3.6, cross-compile-raspberry-pi, and valgrind;
v2.0a123
2016-01-03
  • Just updated copyrights for 2016.
v2.0a122
2015-12-30
  • Minor tweaks to Cryptography / Digest code.
  • Untested release.
v2.0a121
2015-12-29
  • Minor docs changes
  • Fixed scripting issue that was causing problems (ln -s cygwin) on JohnB's computer
  • Quick emergency release - little tested - cuz little changed
v2.0a120
2015-12-28
  • Fixed make check
  • Fixed Configuration::IterableOfT
  • Fixed https://stroika.atlassian.net/browse/STK-422 - Bijection CTOR
  • Fixed small CTOR issue with levels of conversion in Mapping CTOR - added regression test to capture
  • Make tests speed improvements (less use of perl so -j works more)
  • configure --only-if-has-compiler support
  • Tested (passed regtests) on vc++2k13, vc++2k15 (except some crashers in 64 bit code due to MSFT lib bug), gcc48, gcc49, gcc49(32-bit x compile - but limited - no tpp libs), gcc52, pcc-AIX/gcc49, clang++3.5, clang++3.6, cross-compile-raspberry-pi, and valgrind;
v2.0a119
2015-12-27
  • Supported Rasberry PI cross-compile builds (added to regression test)
  • NOTE - dangerous not backward compat - change on Date::Format (String format,LCID OPT PARAM) -> Date::Format (LCID,String) - so ew Date::Format(String) we effectively re-interpet as meaning STDC++ API for format strings instead of Windows LCID (in both case curent localeish)
  • quick hack partial shared_lock code - if qCompilerAndStdLib_shared_mutex_module_Buggy
  • Various Containers cleanups - especially surrounding CTOR
    • lose _SortedSetSharedPtrIRep, _StackSharedPtrIRep, _QueueSharedPtrIRep etc using declarations - just use _SharedPtrIRep
    • lose many contianer :_ConstGetRep () methdos (cuz can uyse _SafeReadRepAccessor<_IRep> { this } ._ConstGetRep () - and use that to cleanup ccontainer ::_AssertRepValidType () calls
    • https://stroika.atlassian.net/browse/STK-420 explicit CTOR(CONTINAER) for some (all) our containers to non-explicit
    • missing move CTORs
    • new Concept utility: Configuration::IsIterableOfT<> used on above CTOR changes
    • Making Iterable inherit from private Debug::AssertExternallySynchronizedLock
    • Iterable::_SafeReadRepAccessor docs revised / semantics revised, and now uses Debug::AssertExternallySynchronizedLock
    • migrating _SafeReadWriteRepAccessor from UpdateIterable to Iterable and make it inherit from Debug::AssertExternallySynchronizedLock, and lose UpdateIterable class
  • make regression-test-configuraitons
  • Get rid of Iterable::_ReadOnlyIterableIRepReference/Iterable<T>::_GetReadOnlyIterableIRepReference and SharedByValue<TRAITS>::ReadOnlyReference: though this was well done, we never used it, and its onbsoleted by new Synchonized approach
  • https://stroika.atlassian.net/browse/STK-182 make Debug/AssertExternallySynchronizedLock recursive and draft support for shared_lock
  • Network::GetDefaultPortForScheme etc - URL optional use for ports
  • add parameterpack forwarding support to ConvertReaderToFactroy - args passed to new readers; and define qCompilerAndStdLib_ParameterPack_Pass_Through_Lambda_Buggy to deal with gcc 48 bugs
  • Various makefile / build improvements (clobber, etc)
  • Changed meaning of CPU::fRunQLength - now normalized to total cores, document better, and on windows, correct for discrpenecy with how it provides runQLength (take into account CPU usage)
  • Library/Sources/Stroika/Foundation/Execution/Logger.cpp - logger bookkeeping thread - use RemoveHEadIfPossible instead of RemoveHeadn and ignore expcetion
  • fixed BlockingQueue::RemoveHeadIfPossible () and clarifed docs. Now waits timeout period
  • Documentation (esp build process/configuration) improvements
  • fixed make run-tests script so if CrossCompiling (and note REMOTE= specified) we dont run the tests directly
  • Tested (passed regtests) on vc++2k13, vc++2k15 (except some crashers in 64 bit code due to MSFT lib bug), gcc48, gcc49, gcc49(32-bit x compile - but limited - no tpp libs), gcc52, pcc-AIX/gcc49, clang++3.5, clang++3.6, cross-compile-raspberry-pi, and valgrind;
v2.0a118
2015-12-08
  • docs and fix SERIOUS bug with FileOutputStream: it was not properly handling APPEND/TRUNC flag - essentially adding random flag isntead of correct one
  • Use lzma SDK 15.12
  • Lose some deprecated APIs (e.g. TakeNBitsFrom, DataExchange/Writer, DataExchange/Reader)
  • Tested (passed regtests) on vc++2k13, vc++2k15 (except some crashers in 64 bit code due to MSFT lib bug), gcc48, gcc49, gcc49(32-bit x compile - but limited - no tpp libs), gcc52, pcc-AIX/gcc49, clang++3.5, clang++3.6, and valgrind;
v2.0a117
2015-12-06
  • Got Xerces working on AIX
  • Serveral fixes to Debug::TimingTrace, including allow default warnIfLongerThan
  • updated _MS_VS_2k15_Update1_FULLVER_ for actual update 1 release
  • Improved WGet, and ftp mirrors list for openssl, and change to 1.0.2e
    • Tons more make system cleanups - mostly cosmetic
    • renamed default-configuration target to default-confiogurations
    • apply conifgurations - so can be done per config
    • top level makefile cleanups for applying one config at a time
    • Many fixes to support ECHO env variable, so make looks much better under AIX
    • build stroika docs to Builds folder and only once
    • fixed serious regression in Test projectfile templates - always doing test 1 instead of NNN
    • new ../ScriptsLib/GetDefaultShellVariable.sh helper
    • https://stroika.atlassian.net/browse/STK-417 - ScriptsLib/MakeDirectorySymbolicLink.sh on windows broken
    • renamed buildall / checkall scripts in samples to _vs - since they are visual studio specific and got rid of BuildUtils.pl
  • Tested (passed regtests) on vc++2k13, vc++2k15 (except some crashers in 64 bit code due to MSFT lib bug), gcc48, gcc49, gcc49(32-bit x compile - but limited - no tpp libs), gcc52, pcc-AIX/gcc49, clang++3.5, clang++3.6, and valgrind;
v2.0a116
2015-11-29
  • Huge changes to build system - lots of progress on build system refactoring:
    • KEY is that you can create multiple configurations and build each independently. Default now at top level is to iterate over them and build each
    • ScriptsLib/GetConfigurations.sh
    • Lose ScriptsLib/GetDefaultConfiguration.pl
    • fixed ScriptsLib/PrintEnvVarFromCommonBuildVars.pl to take CONFIGURATION arg and no longer depend on BuildUtils
    • fixed occasional hang in lzma build - did 7za - redirect sdtout to /dev/null but could be CURRENT exists so promts for overwrite
    • rewrote Make MAKE_INDENT_LEVEL support and use PrintLevelLeader.sh
    • new configure --apply-default-debug-flags --apply-default-release-flags options; used by default in makefile; and on unix - default to Debug and Release configs
  • Renamed ThirdPartyLibs to ThirdPartyComponents
  • DataExchange:
    • pass attribute namespace uri through Xerces SAX parser
    • new ObjectReaderRegistry::RepeatedElementReader
    • StructuredStreamEvents/ObjectReaderRegistry: lose Context& param from Deactivate etc. Make sure we always call Activate() in the right cases (classreader/listreader). And save context as needed for later use. API CHANGE - NOT BACKWARD COMPAT.
    • ObjectReaderRegistry: print better dbgtrace saying failure to lookup particular type; and add MakeCommonReader_ overloads for several more (most?) builtin POD types. AND AddClass<> check for ObjectReaderRegistery and ObjectVariantMapper
  • new utility Execution::WhenTimeExceeded and TimingTrace supported
  • fixed signed/unsinged comparison bug with AIX Frameworks/SystemPerformance/Instruments/Memory code to fixup inconsistnet memory stats
  • fixed FileSystem::RemoveFile/FileSystem::RemoveFileIf to set eWrite acces mode on exception; and implemnted draft of FileSytem::RemoveDirectory/RemoveDirectoryIf (incliing removepolicy to optioanlly delete subdris)
  • https://stroika.atlassian.net/browse/STK-96 use Stroika_Foundation_IO_FileAccessException_CATCH_REBIND_FILENAME_ACCCESS_HELPER to map exceptions to use filename
  • fixes for MakeBuildRoot and MakeDirectorySymbolicLink code - for sh/bash issue, and UAC on winDoze use stkRoot intead of relativepath, in ApplyConfiguraitons.pl - since we want Lots of related makefile cleanups
  • ServiceMain cleanup: Simplifed UNIX - only know pid# if alive - check if alive correctly (was wrong) threw in vaguely reasonable default timeout for stop/restart - so doesnt hang (30 seconds) Stroika/Frameworks/Service/Main
  • Libcurl - only init GlobalSSL and also set CURL_GLOBAL_ACK_EINTR set CURLOPT_NOSIGNAL
  • use ::setsid in Execution::DetachedProcessRunner () to avoid sighup/etc - detach from terminal group
  • Added optional hardware address to Network Interface info returned from GetInterfaces/GetInterfaceByID
  • Tested (passed regtests) on vc++2k13, vc++2k15 (except some crashers in 64 bit code due to MSFT lib bug), gcc48, gcc49, gcc49(32-bit x compile - but limited - no tpp libs), gcc52, pcc-AIX/gcc49, clang++3.5, clang++3.6, and valgrind;
v2.0a115
2015-11-11
  • If using MSVC2k13 - require at least Update5. Because of this, we could lose: qCompilerAndStdLib_HasFirstTimeUsePerTranslationUnitFloatingPoint_Buggy qCompilerAndStdLib_UsingInheritedConstructor_Buggy qCompilerAndStdLib_stdinitializer_ObjectVariantMapperBug FILE_SCOPE_TOP_OF_TRANSLATION_UNIT_MSVC_FLOATING_POINT_BWA and related detritus in code to workaround.
  • minor tweaks to accomodate the possability to the total system memory changing while we run (can happen with vmware/linux)
  • ScriptsLib/RegressionTests-Unix.sh major improvements
    • Attempt to allow automatic skip in regresison tests of missing compilers
  • ThirdPartyLibs makefile improvements
    • got libcurl to respect qFeatureFlag_OpenSSL, and tons of fixes to building openssl, curl, and other thirdpartylibs, using pkg_config
    • use ScriptsLib/WebGet.sh to fetch thirdparty packages insgtead of direct wget call so it supports mirrors
  • IO/Network/Transfer/Client:
    • allow configure of option for fSupportSessionCookies; Supprot for WinHTTP (which defaaulted on) and curl (whcih had defaulted off). (NEITHER implemeation good, and curl worst, but usable)
    • IO/Network/Transfer/Client option to specify useragent; cleanup other options
    • set user agent for Client_libcurl (for now just Stroika/2.0)
    • libcurl support for new fFailConnectionIfSSLCertificateInvalid transfer option
    • Fixed tiny bug with Windows Transfer/Client_WinHTTP which caused it to never re-use HTTP connections (a big performance problem and a bigger semantics problem for talking ESXi proxy wire protocol)
    • dangerous bug good update - Network/Transfer/Client_WinHTTP no longer throws internally on bad result - returns Reponse with status=500. We should return what is needed in the response, and only throw if we cannot get a valid response. That way the caller can inspect the resposne (oftne it has a soap fault or something). TODO - verify we do likewise with curl and document!)
  • AnyVariantValue - comments; move CTOR, use make_shared, and lose Equals and related operators (and document why), Added AnyVariantValue::IfAs () template
  • lose last two params for MakeVersionFile.sh: can do a good job of infering from filenames
  • OpenSSL.supp and -DPURIFY support so that we cna pass all regression tests with openssl/libcurl and valgrind (configure --openssl-extraargs PURIFY, and --block-allocation)
  • Drop support for Clang-3.4, and so got rid of bug defines: qCompilerAndStdLib_templated_constructionInTemplateConstructors_Buggy qCompilerAndStdLib_CompareStronglyTypedEnums_Buggy qCompilerAndStdLib_SafeReadRepAccessor_mystery_Buggy because these were only needed for clang-3.4
  • COMPATABILITIY WARNING: Refactoring of SAX like streaming reader code. Almost total rewrite. Some non-backward compatible changes include: replace all use of SAXCallbackInterface with StructuredStreamEvents::IConsumer, and lose the qname argumetns to StartElement() and EndElement() as well as HandleChildStart () in subclasses of SAXObjectReader
    • COMPATABILITIY WARNING: HandleChildStart and StartElement and EndElement (uri/name combined into new Name type) amd new StructuredStreamEvents::IConsumer instead of SAXCallbackInterface
    • COMPATABILITIY WARNING: SAXObjecReader renanmed -> StructuredStreamEvent/ObjectReader
    • Now very much patterend after ObjectVariantMapper
    • ObjectVariantMapper now uses DataExchange::StructFieldInfo with its macro for creation
    • ObjectVariantMapper::StructureFieldInfo deprecated and renamed to ObjectVariantMapper::StructFieldInfo
    • ObjectVariantMapper_StructureFieldInfo_Construction_Helper macro deprecated
    • Stroika_Foundation_DataExchange_ObjectVariantMapper_FieldInfoKey macro deprecated ObjectVariantMapper_StructureFieldInfo_Construction_Helper(A,B,C) -> ObjectVariantMapper::StructFieldInfo { Stroika_Foundation_DataExchange_StructFieldMetaInfo (A,B), C } (identical to Stroika_Foundation_DataExchange_StructFieldMetaInfo)
    • Attempt at getting rid of many Winvalid-offsetof DISABLE_COMPILER_CLANG_WARNING_START/DISABLE_COMPILER_GCC_WARNING_START by migrating them to Stroika_Foundation_DataExchange_StructFieldMetaInfo - but only really fixed for clang
  • InputStream::ReadLine () performance tweak
  • Tested (passed regtests) on vc++2k13, vc++2k15 {Pro} (except some crashers in 64 bit code due to MSFT lib bug), gcc48, gcc49, gcc49(32-bit x compile - but limited - no tpp libs), gcc52, pcc-AIX/gcc49, clang++3.5, clang++3.6, and valgrind;
v2.0a114
2015-10-26
  • Cleanup BLOB class, and probably slight performance improvements
  • qStroika_Foundation_DataExchange_VariantValueUsesStroikaSharedPtr_ set to qStroika_Foundation_Memory_SharedPtr_IsFasterThan_shared_ptr
  • fix for memory leak regression with SharedPtr (because of enabling the SharedPtr rvalue-ref code - old bug) - https://stroika.atlassian.net/browse/STK-215 Also, minor tweaks to SharedPtr (inlines).
  • Added Tests/HistoricalReferenceOutput/{PerformanceDump-v2.0a114-linux-gcc-5.2.0-x64.txt,PerformanceDump-v2.0a114-x86-ReleaseU.txt} - showing no significant change, or slight improvement
  • Tested (passed regtests) on vc++2k13, vc++2k15 {Pro} (except some crashers in 64 bit code due to MSFT lib bug), gcc48, gcc49, gcc49(32-bit x compile - but limited - no tpp libs), gcc52, pcc-AIX/gcc49, clang++3.4, clang++3.5, clang++3.6, and valgrind;
v2.0a113
2015-10-24
  • Syntax Error (TimedCache)
  • no testing - cuz little changed - emergency release
v2.0a112
2015-10-24
  • Fixed new ScriptsLibs UNIX shell script permissions
  • no testing - cuz little changed - emergency release
v2.0a111
2015-10-24
  • Added ScriptsLib/MakeBuildRoot.sh and ScriptsLib/MakeDirectorySymbolicLink.sh
  • LRUCache and TimedCache performance tweaks
  • new ScriptsLib/WebGet.sh to help download dependent components and used to change Xerces source mirror (cuz was failing)
  • no testing - cuz little changed - emergency release
v2.0a110
2015-10-21
  • Switched all Windows development from using Visual Studio.net Ultimate to using Community Edition
  • ScriptsLib/RegressionTests-Unix.sh
  • cleanup of how we generate default warning suppression messages (configure)
  • More cleanups of IO/Network/Socket, including better handle windows ThrowIfErrors() for winsock
  • New InputStream::ReadAll/2
  • Several fixes to SystemPerformance/Instruments/Process, partly due to Valgrind feedback, including most importantly, was treating an array of bytes as a null-terminated string without ever null-terminating
  • lzma sdk version 1509; and libcurl use version 7.45
  • minor cleanups to GetWinOSDisplayString_: mostly to supress the warning about ::GetVersionEx(), and fixed it to show right version of created than windows 8.1
  • Silence more uneeded compiler warnings, and a few timeouts on regression tests triggered by excessively slow machines/valgrind
  • Fixed qStroika_Foundation_Memory_SharedPtrSupportsRValueReferences_ issue, and lose define
  • qCompilerAndStdLib_SFINAE_SharedPtr_Buggy define to workaround bugs
  • qStroika_Foundation_Traveral_Iterator_SafeRepAccessorIsSafe_ DELETED
  • Various Iterator<> fixes so we can define qStroika_Foundation_Traveral_IteratorUsesStroikaSharedPtr 0 or 1
  • New define qStroika_Foundation_Memory_SharedPtr_IsFasterThan_shared_ptr, and used to drive qStroika_Foundation_Traveral_IteratorUsesStroikaSharedPtr qStroika_Foundation_Traveral_IterableUsesStroikaSharedPtr
  • Added PerformanceDump-v2.0a110-x86-ReleaseU.txt, PerformanceDump-v2.0a110-linux-gcc-5.2.0-x64.txt
  • Tested (passed regtests) on vc++2k13, vc++2k15 {Pro} (except some crashers in 64 bit code due to MSFT lib bug), gcc48, gcc49, gcc49(32-bit x compile - but limited - no tpp libs), gcc52, pcc-AIX/gcc49, clang++3.4, clang++3.5, clang++3.6, and valgrind;
v2.0a109
2015-10-16
  • use {} init instead of memset(0) in several places
  • cleanup socket error/throw code for quirky winsock - must call WSAGetLastError - not errno!
  • Added regression tests for sterls bug report about JSON reader/writer and fixed bug with
  • Use ArgByValueType in several more container classes (colelciton/deque/multiset/queue/sequence/stack, etc... should improve performance).
  • SystemPerformance/Instruments/CPU Windows RunLengthQ support
  • Added PerformanceDump-v2.0a109-x86-ReleaseU
  • Tested (passed regtests) on vc++2k13, vc++2k15 {Pro} (except some crashers in 64 bit code due to MSFT lib bug), gcc48, gcc49, gcc49(32-bit x compile - but limited - no tpp libs), gcc52, pcc-AIX/gcc49, clang++3.4, clang++3.5, clang++3.6, and valgrind;
v2.0a108
2015-10-14
  • Significant change to build system: configure script now more central, and works better. make default-configuration now calls configure. Now support args in --compiler-driver, and fixed AR/RANLIB autogen accordingly.
  • in openssl build: make rehash to avoid occasional noise in output
v2.0a107
2015-10-13
  • Streams/BufferedOutputStream FLUSH calls internal in implemeatnion causes re-entrant call to non-recursive AssertExternallySynchronizedLock mutex (reported by JohnB @ Block)
  • Cleanup DataExchange/Zip/Reader
v2.0a106
2015-10-13
  • SystemPerformance Framework:
    • Instruments/CPU: support for run-q-length
    • Instruments/Memory: windows OSReserved RAM, fixed minor page faults per second for AIX/Linux, refactored real/virtual/physical memory stats in SystemPerformance Memory - and added osreserved to phys memory stats (but not used), AIX report virt_active for fCommitedBytes, better handle missing 'MemAvailable' for older Linuxes - and estimate from SReclaimainble, Free and inactive RAM
    • Instruments/Filesystem cleanups: div-by-zero, fQLength , in-use-pct, refactoring of - to return stats on Disk and Volume (filesystem), ignore unmounted filesystems, and document todo perhaps having an option/separate list to return them (indexed by volume ID I guess, use q_sampled instead of ws_qsampled in AIX SystemPerformance Filesystem disk Q length monitor (still found no decent docs, but gives better answers and my guess is that q_sampled is for both read and write q, and wq_sampled is just for READ
    • Instruments/Network AIX support for total # TCP segment and TCP retransmits, Added another name mapping kluge from description to WMINAME for Windows SystemPerformance Network API
  • Added FileSystem::GetCurrentDirectory and FileSystem::SetCurrentDirectory methods
  • a little more support for ToString debugging utility (but still not working with Optional)
  • fix compare VariantValue(NAN, Math::nan ()) and with infinity- make equals coerece these special case strings
  • JSON reader/writer now properly handles NAN/INF values - by converting them to/from strings so remains always valid JSON but can still roundtrip these values
  • Major fixups to lzma makefile so pays attention to CC/etc from Stroika configuration, and fixes /MT windows issues etc
  • Major fixups to zip makefile so pays attention to CC/etc from Stroika configuration, and fixes /MT windows issues etc
  • Major fixups to curl makefile so pays attention to CC/etc from Stroika configuration
  • Implemetned now fully functional cross platform LZMA ArchiveReader, and ZIP ArchiveReader (at least miniaml list/extract function), including new ArchiveUtility sample
  • smarter SFINAE code for Optional and narrowing conversion (better warnings)
  • LRUCache defaulttrraits now takes VALUE,a nd deifned OptionalValueType, and changed default to regular default for Optional but documented how to use Memory::Optional_Traits_Blockallocated_Indirect_Storage
  • factored Platform_AIX_GetEXEPathWithHint into its own AIX specific module
  • allow AF_LINK addresses on AIX for reported interface experimental); fix IO/Network/Interface regression
  • Support for gcc5 bug defines
  • Library/Sources/Stroika/Foundation/Execution/ProcessRunner tweaks; rewrote code to layout exec args in ProcessRunnner for POSIX to avoid issue depending on the layout of g++ vector (cuz broke with gcc5)
  • placeholder KeyedCollection container file
  • inor tweaks, asserts etc - based on feedback for msvc 2k15 analysis tool
  • Tons of cosmetic cleanups and use Finally/cleanup code to simplify thread/process handle cleanup in windows CreatePRocess usage (warned by vs2k15 code analyze, but docs from msft said only needed to close process handle?)
  • threadpool regtest improvements; Added RegressionTest15_ThreadPoolStarvationBug_ () - but didnt help and may not really be a problem
  • use much more of ArgByValueType (for performace) - and REPLACED (not backward compat) EachWtih in several containers to use IMPORVED Where in Iterable (taking optional return container type) - still experimental
  • include -lm in unix link args in case gcc used as driver instead of g++; and redid config code to allow config of gcc/g++ (C/C++ compierl name cuz needed to build lots of third party tools) and detect gcc version# in GeneragteDefaultCOnfig.pl file so we can do right defaykt flags per version.
  • Repalce memset(0...) initialization with POD {} initialization
  • Tested (passed regtests) on vc++2k13, vc++2k15 {Pro} (except some crashers in 64 bit code due to MSFT lib bug), gcc48, gcc49, gcc49(32-bit x compile - but limited - no tpp libs), gcc50, gcc51, pcc-AIX/gcc49, clang++3.4, clang++3.5, clang++3.6, and valgrind;
v2.0a105
2015-09-22
  • Started support for LZMA SDK (7z archive format). Got so SDK in third-party-products builds (but not yet fully intergrated into stroika).
  • SystemPerformance Framework:
    • Tons of fixes for AIX - esp to process and memory instruments
    • Several cross-platform changes to memory names, and kinds of memory stats we capture/report (fPrivateVirtualMemorySize, fTotalVirtualMemorySize, Free, Active, Inactive,Available RAM, better pagefaults and page outs, private working set, command line, EXE)
    • caching staticinfo support for SystemPerformance/Instruments/Process - for AIX
  • More Foundation/Execution/Module String GetEXEPath (pid_t processID) performance improvements (FOR AIX)
  • added operator +/-/*/// for two Optional<> objects
  • WebServer framework
    • Modest progress on WebServer framework: enhanced exmaple so that showed looking for different urls, exception handling, and POST (and input args handling)
    • Added Cruddy but usable Request::GetBody () in Stroika/Frameworks/WebServer
    • Kludged around bug in reading WebServer headers - so now allows reading web request body (but must rewrite that code)
  • Tested (passed regtests) on vc++2k13, vc++2k15 {Pro} (except some crashers in 64 bit code due to MSFT lib bug), gcc48, gcc49, gcc49(32-bit x compile - but limited - no tpp libs), pcc-AIX/gcc49, clang++3.4, clang++3.5, clang++3.6, and valgrind;
v2.0a104
2015-09-12
  • cleanup aspects of Build structure - Project subdir Linux renamed to 'Unix', and re-purposed --platform generate config arg, and lose Platform value from config file
  • AIX support
    • Much improved reliability and performance of Execution::GetEXEPathT
    • Linker/Makefile cleanups
    • qCompilerAndStdLib_Locale_Buggy for buggy AIX
    • endianness fixes to IO/Network/InternetAddress (AIX), and other endianness fixes/improvements, and hash code
    • tweak GenerateConfiguration.pl default C++ warnings (better for AIX)
    • Hopefully workaround AIX crasher in Network::GetInterfaces ()
    • Workaround AIX bug with gcc snprintf() - Time::Duration - e90bf07ee6f6bed174e5aee49d77fdb3a48a1fa3
    • DateTime::AddSeconds() takes int64_t instead of time_t - because AIX only supports 4-byte time_t and that causes overflow with duration of only 100 years; and Added int/long/longlong return overloads from Duration
    • just DBGTRACE _SC_V6_LP64_OFF64 if macro not defined (POSIX) - for now
    • use sigaction instead of signal API - since fixes bug where signals stop working on 2nd created thread for AIX
    • Make Time::Duration code a little more resilient (and more assert checking) for floating point rounding errors
    • Tons of work on SystemPerformance framework for AIX. Works decently now, but still a bit more todo. TONS of changes required
    • Some changes to Configuraiton::GetSystemConfiguration for AIX
    • qCompilerAndStdLib_fdopendir_Buggy
    • if defined AIX, then add -lperfstat to StroikaFrameworksSupportLibs in Projects/Unix/SharedMakeVariables-Default.mk
    • replace use of defined (_AIX) with qPlatform_AIX
  • GetEXEPath (pid_t)
  • fixed bug with ProcessRunner - if we get error calling GetWD() - we throw. On POSIX we nver even used it (fixed now). But also changed API so WD is optional, and if not specified, not used (default OS behavior)
  • Cleanup IO/FileSystem/DirectoryIterator (some for AIX) - re-entrant readdir_r, etc
  • Added support for vector to ObjectVariantMapper, along with regresstion test to verify
  • rename subdir of Projects from Linux to Unix (as we now support 2 non-linux unix variants)
  • cleanup of Generate/Apply config scripts - start (testing) getting rid of Platform variable
  • Get rid of (most of?) remaining uname usage in makefiles and perl scripts. Use configuraiton define PlatformSubDirectory instead
  • Lose gcc 4.7 support, and lose obsolete bug defines: qCompilerAndStdLib_thread_local_initializers_Buggy, qCompilerAndStdLib_FunnyUsingTemplateInFunctionBug_Buggy, qCompilerAndStdLib_UnreasonableCaptureThisRequirement_Buggy, qCompilerAndStdLib_threadYield_Buggy
  • Cleanup logging/debugging code for signals, and simplify some legacy thread/signal code
  • added test case for building 32-bit Stroika code on 64-bit linux - and got working, and added to set of every-release-tests
  • --static-link-gccruntime option to make default-configuraiton
  • Misc docs and regtest improvements (e.g. IO::Network::Transfer::CreateConnection)
  • qCompilerAndStdLib_constexpr_union_enter_one_use_other_Buggy seems broken even with gcc49
  • new bug define qCompilerAndStdLib_strtof_NAN_ETC_Buggy; Refactored String2Float and Float2String into FloatConversions; Cleanup Float2StringOptions; new - little tested - semantics for handling NAN and INF values
  • lose qCompilerAndStdLib_constexpr_static_member_functions_default_args_Buggy because we redid NearlyEquals() using overloading - much simpler. And now facteored out epsilon calc to private routine, where we can try being smarter; and use Math::NearlyEquals () and added overload for DateTime; Redid Math::NearlyEquals() templates, so works with different argument types/li>
  • redefined GetTickCount() to zero at app start to minimize problems with overflow
  • allow Optional<> to assign common assignable types
  • Fixed a number of things so we CAN set DurationSecondsType to long double, but dont leave it that way until we can performance test
  • fixed Duration::PrettyPrint () to return empty string on empty duration but zero duration returns '0 seconds' and added regtests for this and other format calls
  • Generate new performance regression test results
  • Tested (passed regtests) on vc++2k13, vc++2k15 {Pro} (except some crashers in 64 bit code due to MSFT lib bug), gcc48, gcc49, gcc49(32-bit x compile - but limited - no tpp libs), pcc-AIX/gcc49, clang++3.4, clang++3.5, clang++3.6, and valgrind;
v2.0a103
2015-08-23
  • Started attempts at support for AIX
    • Mostly makefile changes - losing some old perl scripts, and repalcing use of stuff like $^O with ConffigurationReader.pl and PlatformSubdir... variable
    • GetOSInfo/version
    • thread/std::thread conflicts
    • ::sysconf (_SC_V6_LP64_OFF64)
    • Large number of qPlatform_Linux versus qPlatform_POSIX changes
    • lose unneeded sys/types.h includes
    • Added Xerces patch for AIX (configure)
    • sysinfo for reading uptime is Linux specifc
    • for AIX - set bigtoc option by default in GenerateConfiguration.pl
    • >makedev on AIX is a macro, so cannot use ::
    • curl 7.44
    • better exception message on locale not found (and other tweaks)
    • DateTime now supports timeval (in addition to timespec)
    • Support _MS_VS_2k13_Update5_FULLVER_
    • lose define qNBytesPerWCharT and Defaults_Characters_Character_.h - anachonisitic
    • factor GetStartOfEpoch_ () out of Emitter::DoEmitMessage_ () so we get one start-of-epoch
    • draft configure script (top level) - so for indirects. May leave it that way?
    • Tested (passed regtests) on vc++2k13, vc++2k15 {Pro} (except some crashers in 64 bit code due to MSFT lib bug), gcc47, gcc48, gcc49, clang++3.4, clang++3.5, clang++3.6, and valgrind; 3/4 regtests pass on AIX 7.1/gcc49
v2.0a102
2015-08-17
  • added new Debug/CompileTimeFlagChecker and used for qStroika_Foundation_Debug_AssertionsChecked qDefaultTracingOn ... etc
  • cleanup docs: doxygen - Example Usage and code declaration around bodies
  • Lose some deprecated options from make default-configuration
  • implemented Logger::FileAppender - and Logger::StreamAppender
  • Added FileOutputStream optional AppendFlag support
  • More varied build tweaks (project files) for MSVC2k15
  • use define qFeatureFlag_ATLMFC instead of qStroika_Framework_Led_SupportATL
  • use new Characters::Platform::Windows::SmartBSTR () instead of CComBStr - cuz VS Express has no ATL
  • Add optional parameter to InputStreamFromStdIStream<> for seekability (e.g. for cin)
  • Replace SLN file per sample with one big SLN file for all of them
  • Fixed small but serious bug with Mapping<>::RetainAll ()
  • JSON Writer - handling (document todo and added assert) for NAN values
  • Tweak openssl builds
  • Big/Subtle change in thread safety rules for container reps. They now use a recursive mutex, instead of the former non-recursive mutex. This then lifted the restriction on access the underlying iterable from inside an Apply() method. (ContainerRepLockDataSupport_)
  • Generate new performance regression test results (no interesting changes)
  • Tested (passed regtests) on vc++2k13, vc++2k15 {Pro&&Community} (except some crashers in 64 bit code due to MSFT lib bug), gcc47, gcc48, gcc49, clang++3.4, clang++3.5, clang++3.6, and valgrind
v2.0a101
2015-08-03
  • Got nearly fully working with VisualStudio.net 2k15 (one serious 64 lib bug exists, and I must report found bugs to MightSlop).
  • Use libcurl 7_43_0
  • OpenSSL - upgrade to 1.0.2d, and several cleanups to build process etc, including using .pdb file instead of patch todo /Z7
  • Started cleanup of Synchonized<> code now that we have shared_lock stuff in MSVC. Got a decent start at supporting read/write locks in this code, but still needs a bit more to be testable
  • Tested (passed regtests) on vc++2k13, vc++2k15 (except some crashers in 64 bit code due to MSFT lib bug, and VS2k15 Express not working), gcc47, gcc48, gcc49, clang++3.4, clang++3.5, clang++3.6, and valgrind
v2.0a100
2015-07-21
  • Rework Containers to use enable_if so constructor taking container is more restricive. This allowed greatly simplfying other uses of constructors, possibly improving perofrmance, but defintely making much simple and more robust.
  • New ArgByValueType<T> template to improve performance (for now just used in container reps)
  • SystemPerofrmance framework: filesystem imporvements (e.g. fAverageQLength), and Process (fCaptureCommandLine regexp)
  • Mapping<>::RetainAll()
  • RegularExpression cleanups
  • fixed serious/subtle bug with DataExchange/ObjectVariantMapper read of 'empty' variant value mapped to 'null' (missing) data. That means null in the JSON (or a missing field) was treated the same as an empty string (or nan float); Dangerous fix, but significant improvement
  • Generate new performance regression test results
  • Tested (passed regtests) on vc++2k13, gcc47, gcc48, gcc49, clang++3.4, clang++3.5, clang++3.6, and valgrind, and next rev should work with VC++2k15
v2.0a99
2015-07-12
  • A few minor Streams cleanups
  • Very little testing
v2.0a98
2015-07-11
  • Major cleanup of Streams code. Mostly just polishing, and completing the work started in the last release.
  • Fixed bugs with Synchonized<>/WritableReference - copying and const indirection
  • POSIX SystemPerformance/Instruments/Filesystem aveQLen code
  • Tested (passed regtests) on vc++2k13, gcc47, gcc48, gcc49, clang++3.4, clang++3.5, clang++3.6, and valgrind, and built and most tests OK on VC++2k15
v2.0a97
2015-07-07
  • Major Design and Name Changes for Streams library
    • New template Stream replaces BinaryStream and TextStream
    • New templates InputStream and OutputStream replace BinaryInputStream, BinaryOutputStream, TextInputStream, TextOutputStream
    • Lose Seekable base class, and instead have that functionality built into InputStream and OutputStream, so that the virtual methods for offset and seek can be different, allowing virtual mixins that permit separate read/write seek pointers.
    • Combined BasicBinaryInputOutputStream, BasicBinaryInputStream, and BasicBinaryOutputStream, and the three text stream variations, into MemoryStream (in such a way as to generalize them ALL and allow of Memory streams of structured objects)
    • Lose explicit promise that all streams are synchonized, and instead added 'Synchnonized' method to InputStream and OutputStream which creates synchonized streams, and other ones merely use Debug::AssertExternallySynchonized
    • Lose BinaryTiedStream, and instead, generalized BinaryInputOutputStream to the case where writes to one end COULD map to reads from the other, or just to some (e.g. remote) endpoint (so case of Memory based input/output stream same base class as socket streams).
  • Minor FileSystem fixes: FileSystem::RemoveFile () etc - use wunlink() if qTargetPlatformSDKUseswchar_t/windows
  • use Range instead DateTimeRange in SystemPerformance/MeasurementSet to get higher resolution
  • Use openssl 1.0.1o
  • Improved STLContainerWrapper support for vectors patching; and use that to fix patching bugs in Sequence_stdvector
  • Added and refactored ReserveSpeedTweekAddNCapacity() to Containers common code
  • Generate new performance regression test results
  • Tested (passed regtests) on vc++2k13, gcc47, gcc48, gcc49, clang++3.4, clang++3.5, clang++3.6, arm-linux-gnueabihf-g++-4.9(regtest44 failed), and valgrind, and built and most tests OK on VC++2k15
v2.0a96
2015-06-22
  • avoid LRUCache lock_guard reentrancy issue
  • Time::GetTimezoneInfo(); disable +%Z tz mapping - was unwise and not helpful in, fixed setting fBiasInMinutesFromUTC, and wrong dst flag to Time::GetLocaltimeToGMTOffset
  • DurationRange should have diff type of DurationSecondsType - not int
  • Made Duration::Format() alias for PrettyPrint () - so it works well with DurationRange::Format()
  • SystemPerformance/Instruments/Filesystem: POSIX: fixed devName to use canonicalize, and use .st_rdev so we get right device number to lookup IO stats, and use dev_t instead of devicename to cross-index between device data files
  • new Range<>::Pin() function
  • use make_shared and MakeSharedPtr<> in a few places instead of new Rep_
  • Fixed bugs with qStroika_Foundation_Traveral_IterableUsesStroikaSharedPtr off, and experiemnted, but left on for now as still faster
  • use Get/SetCapacity on Sequence_Array and Sequence_stdvector insert, as slight speed tweak
  • Added FileSystem::RemoveFile/RemoveFileIf
  • Improved messages in started/stopped etc in Stroika/Frameworks/Service/Main
  • improved OptionsFile message
  • Frameworks/SystemPerformance/Instruments/Memory: quite a few (mostly unix) virtual memrory accounting/stats changes. Mostly settled on CommitLimit and CommittedBytes (like windows)
  • Many RISKY changes to undo threadsafety support in Iterator/Iterable. Must me tested much more, but I think this takes us a good ways to using new Synchonized API, and better performacne.
    • turn qStroika_Foundation_Memory_SharedByValue_DefaultToThreadsafeEnvelope_
    • turn qStroika_Foundation_Traveral_Iterator_SafeRepAccessorIsSafe_ OFF
    • Turned off qStroika_Foundation_Containers_UpdatableIterator_WriteUpdateEnvelopeMutex_
  • Generate new performance regression test results
  • Tested (passed regtests) on vc++2k13, gcc47, gcc48, gcc49, clang++3.4, clang++3.5, clang++3.6, and valgrind, and built and most tests OK on VC++2k15
v2.0a95
2015-06-09
  • SystemPerformance Process Insturment support for SetPrivilegeInContext to get a few extra procesess captured
  • performance tweak Windows process System Perofmrance WMI code
  • Added DateTime::FromTickCount ()/ToTickCount
  • fixed bug iwth Foundation/Cache/LRUCache clear(KEY) method
  • make SystemPerformance/Instruments/Filesystem IOStats element optional, and added fAvailableSizeInBytes to VolumeInfo and related fixes to posix FS code
  • use Stroika_Foundation_IO_FileAccessException_CATCH_REBIND_FILENAME_ACCCESS_HELPER in IO/FileSystem/BinaryFileOutputStream.
  • Timezone improvements for RedHat 5
  • renamed Memory::TakeNBitsFrom -> BitSubstring ()
  • define new MakeSharedPtr () static function and started using in container code as slight performance improvement
  • Other small container speed tweaks
  • Tested (passed regtests) on vc++2k13, gcc47, gcc48, gcc49, clang++3.4, clang++3.5, clang++3.6, and valgrind, and built and most tests OK on VC++2k15
v2.0a94
2015-05-25
  • Platforms/Compilers added (mostly):
    • RedHat5 (various bugfixes mentioned below)
    • Visual Studio.Net 2k15 (various compiler bug defines needed)
  • SystemsPerformance Framework:
    • Added -c option to Samples/SystemPerformanceClient - to make it easier to test
    • Performance instrument ICapturer refacotoring - so we can more easily provide additional methods
    • Improved (windows) time to first capture for many instruments - by putting the sleepuntil into the public API but using the private API taht doesnt wait todo initial capture
    • cleanup Instruments/ProcessDetails POSIX procfs code to read commandline -mapping nuls to spaces
    • overload Instrument::CaptureOneMeasurement to take optional return var argument measurementTimeOut
    • Template specialization of CaptureOneMesaurement - required alot of restructuring, but helped performance significantly
    • DriveType support to MountedFilesystemUsage, Frameworks/SystemPerformance/Instruments/MountedFilesystemUsage: renamed DriveType to MountedDeviceType
    • Most instruemnts now support optional loading of some data - esp filesystem and process
    • tons more here
    • various code cleanups to SystemPerformance/Instruments/MountedFilesystemUsage (renamed fIOStats -> fCombinedIOStas, use sequnce update instead of copy new one - perfornamce)
    • Small WMI robsustness fixes, but that code is still very rough
    • renamed SystemPerformance/Instruments/NetworkInterfaces data member from fInterfaceStatistics to fInterfaces
    • include Interface status (up/down/running) and type (wifi etc) to SystemPerformance/Instruments/NetworkInterfaces
    • SystemPerformance/Instruments/MountedFilesystemUsage: better handle duplicate mounts in /proc/mounts - later ones win
    • fixed SystemPerformance/Instruments/MountedFilesystemUsage to ahndle symbolic links to device names in /proc/mounts table
    • SystemPerformance/Instruments/NetworkInterfaces now aggregates Foundation::IO::Network::Interface
    • sepearate dout in SystemPerformance/Instruments/ProcessDetails totalprocessor usage from totalProcessCPUUsage (diff is irqs etc) - and capture more/better data on unix
    • renamed SystemPerofrmcne ProcesDetails fTotalCPUTimeUsed to fTotalCPUTimeEverUsed
    • SystemPerofmrance Process: CachePolicy::eOmitUnchangedValues
    • Support OPTION - mostly to debug/test - to use 'ps' for process capture in SystemPerformacne module.
    • fixed order isuse in posix/ps SystemPerformance/Instruments/ProcessDetails
    • Added new kernelprocess flag to ProcessDetails output, and used it as optimizaiton of some lookups
    • renamed SystemPerformance/Instruments: MountedFilesystemUsage to Filesystem, NetworkInterfaces->Network, ProcessDetails to Process
  • ethtool_cmd_speed hack for old (centos5) linux
  • support old linux /gcclib before pthread_setname_np
  • Revised API for Common::CompareNormalizer
  • no longer need workaround for qCompilerAndStdLib_Template_Baseclass_WierdIterableBaseBug - found underlying issue and corrected it
  • lose specification of ForceConformanceInForLoopScope in windows project file
  • turn off qStroika_Foundation_Memory_SharedPtrSupportsRValueReferences_ - cuz broken (for now). MAJOR PROBLEM! More tweaks to regtest timing so the tests dont fail - and had to adjust cuz this is noticably slower!
  • Tons of build system scripts (configuration) improvements
    • lose obsolete 'target' code
    • tweak display of run builds etc - indenting (../ScriptsLib/PrintLevelLeader.sh)
    • Allow configuraiotn of AR and RANLIB from make defuault-configuraiton
    • lots of refactoring/simplficaiton of options passed to generate congiguraiton - and can now pass in arbitray extra g++/linker options, so I can do stuff like -lto, and -pg more easily
    • deprecated --default-for-platform and --online-if-unconfiratured...
  • enahnce Configuration::GetSystemConfiguration_OperatingSystem () to look for older redhat/centos systems without /etc/os-release
  • attempt at better handling missing /etc/timezone file on posix systems
  • Assure DNS module calls IO::Network::Platform::Windows::WinSock::AssureStarted (); on windoze; and fix placement of assert after throw-if
  • document and fix IO::FileSystem::FileSystem::ResolveShortcut () to handle case where not pointing at a shortcut and return original name; and Rough draft of FileSystem::CanonicalizeName and FileSystem::GetPathComponents (): NONE IN GOOD SHAPE - DRAFT
  • baudrate SB integer not floating point in Foundation/IO/Network/Interface; set friendly name
  • lose explicit defines for WINVER, _WIN32_WINNT, _WIN32_WINDOWS in stroika - use externally defined values (like from make defualkt-configariotn or whatever windows msvc defines
  • define new qCompilerAndStdLib_inet_ntop_const_Buggy bug
  • Time::TimeOfDay::CTOR overload taking hours/minutes/seconds, and new DateTime::ToTickCount () helper, and CTOR bugfixes
  • factored part of MakeVersionFile.sh into a more re-usable ExtractVersionInformation.sh
  • cleanup names and DbgTrace in ProcessRunner for error in DBGTRACE execing child (POSIX ONLY)
  • Network::GetPrimaryInternetAddress() on POSIX more robust
  • Network::GetInterfaceById ()
  • Tested (passed regtests) on vc++2k13, gcc47, gcc48, gcc49, clang++3.4, clang++3.5, clang++3.6, and valgrind, and built and most tests OK on VC++2k15
v2.0a93
2015-05-02
  • Cleaned up Stroika-Config code - so now that builds ONLY do the IntermediateFiles direactory and gets included
  • Refactoring of SystemPerformacne code and lots of new system performance functionality - esp using WMI, using new wildcard support and reading back process ids from WMI, ProcessDetails, bind context, SleepUntil style, and much more
  • undo mistake of adding Debug-A-32 and Release-A-32 to normal windows projhects.
  • Added FileSystem::WellKnownLocations::GetRuntimeVariableData () and used that to store PID files
  • new Rebin BasicDataDescriptor::GetValues ()
  • Added Mapping<>::Values() method
  • Redefined Optional<>::operator+/*- = methods to use AccumulateIf()
  • Imprved regression test code to use median so more stable, and then could weak down range of regtest checks and still pass
  • Tested (passed regtests) on vc++2k13, gcc47, gcc48, gcc49, clang++3.4, clang++3.5, clang++3.6, cand valgrind
v2.0a92
2015-04-26
  • MAJOR changes
  • Added Debug-A-32, Release-A-32 builds (windows) and major restructing of build process so ThirdPartyProducts built to to level Builds directory (incomplete but mostly done). Major changes to apply configuraitons etc - all related to making the configuraiton stuff work more closely to new deisgn. Includes fixing OpenSSL build for 64 bits
  • Scripts and makefile etc support to compute version strings/makefile stuff from single file, and #include from that common place - STROIKA_VERSION - ScriptsLib/MakeVersionFile.sh
  • Fixed threading bug that caused valgrind leak (was mostly bug in regtest on thread code) but discovered and documemented a bug with thread code (deferred in todo {Thread d;} leak)
  • new experiemntal Optional helpers (like Accumulate)
  • BufferedBinaryOutputStream::Flush () not needed - inherited; and refined/loosed support for aborted in BufferedBinaryOutputStream
  • Major improvements/cleanups/progress to SystemPerformance code - including WMI support
  • Improved make project-files (and related)
  • Major progress (though incomplete) on OpenSSL support - including new DerviedKey and much more
  • Debug::AssertExternallySynchronizedLock copyable
  • Improved SystemConfiguraiton support - especially for windows
  • Improved Windows timezone support - olsen DB
  • Optional AutoStartFlag arg to Thread CTOR
  • WindowsEventLogAppender::WindowsEventLogAppender () needs appName param for name of source of events
  • fix (little tested) for ObjectVariantMapper::MakeCommonSerializer_ to support Optional with non-standard traits
  • Tested (passed regtests) on vc++2k13, gcc47, gcc48, gcc49, clang++3.4, clang++3.5, clang++3.6, cand valgrind
v2.0a91
2015-04-05
  • Another minor patch...
v2.0a90
2015-04-05
  • Minor patch release
  • fixed missing namespace in definition of function (was link error)
  • Minor cleanups to OpenSSLCryptoStream - didnt solve anything but a hint, and documented remaining angles to attack
  • fixed CPPSTD_VERSION_FLAG to default to --std=c++11 (since thats all that gcc49 supports)
  • Tested (passed regtests) on vc++2k13, gcc47, gcc48, gcc49, clang++3.4, clang++3.5, and valgrind (one small thread warning I've had forever, AND new test26 openssl warnings to investigate)
v2.0a89
2015-04-05
  • Re-implemented make 'default configuration' stuff to use --Xerces use, --ZLib no, etc.
  • Fixed Windows 64 bit builds (was building 32-bit version)
  • Fixed OpenSSL wrappers - they were buggy/untested. Not working fully compatibly, but decent/close, and added regtests - most of which pass
  • Tested (passed regtests) on vc++2k13, gcc47, gcc48, gcc49, clang++3.4, clang++3.5, and valgrind (one small thread warning I've had forever, AND new test26 openssl warnings to investigate)
v2.0a88
2015-03-30
  • Cleanup Debug::AssertExternallySynchronizedLock and its use (empty base class optimization)
  • Draft of MSFT LINQ style methods in Iterable - enough to evaluate / test /consider
  • Fix some reporting of filenames with Stroika_Foundation_IO_FileAccessException_CATCH_REBIND_FILENAMESONLY_HELPER
  • Minor ThreadPool cleanups
  • big revisions to SystemConfiguration::CPU code - to accomodate tracking per cor config info, model name, and reading /proc/cpuinfo on POSIX
  • renamed Iterable<>::ExactEquals to Iterable<>::SequenceEquals()
  • Draft ToString() function
  • new STROIKA_FOUNDATION_CONFIGURATION_DEFINE_HAS to help define concepts - and simplify code
  • Tested (passed regtests) on vc++2k13, gcc47, gcc48, gcc49, clang++3.4, clang++3.5, and valgrind (one small thread warning I've had forever)
v2.0a87
2015-03-21
  • Use Xerces 3.1.2
  • use openssl 1.0.1m
v2.0a86
2015-03-17
  • Refactored most of Stroika to use non-member function style for equalable, and comparable, and new Common::CompareNormalizer helper
  • fixed rebin Math::ReBin() CheckRebinDataDescriptorInvariant() code- to check less aggressively
  • Fixed a few minor issues with WaitForIOReady for POSIX so more ready to test
  • Tested (passed regtests) on vc++2k13, gcc47, gcc48, gcc49, clang++3.4, clang++3.5, and valgrind (one small thread warning I've had forever)
v2.0a85
2015-03-05
  • Lots of Rebin code cleanups and assertion checking and internal validation, GetIntersectingBuckets, kNullValue, etc (not all bacwkard compatible changes)
  • Math::NearlyEquals() overload for the case of non-integral/non-floating point values, and changed integer overload default epsilon to zero
  • cleanup display/formatting of threadids
  • Revised design document about how to handle operator overloads (namespace function not member function), and started implementing in a few places
  • Range<>Offset
  • Tested (passed regtests) on vc++2k13, gcc47, gcc48, gcc49, clang++3.4, clang++3.5, and valgrind (one small thread warning I've had forever)
v2.0a84
2015-03-02
  • Fixed small bug with TraceContext code on UNIX
  • Essentially no new testing
v2.0a83
2015-03-01
  • Thread code cleanups (relating to races and new inturrupt support, and hopefully siginterupt fix, docs)
  • experiments with new concepts (added e.g. has_eq, EqualityComparable, LessThanComparable, and used in ComparerWithWellOrder etc)
  • Containers/ExternallySynchronizedDataStructures Array/LinkedList/DoublyLinkedList use ComparerWithEqualsOptionally instead of ComparerWithEquals: because we dont always need the method. Just fail when we access teh method (like call contains)
  • Lose map<> code in TraceContextBumper, and use thread_local int instead (much simpler)
  • Documentation
  • Support Release-Logging-32/64 in Tests VS2k13 project
  • TraceContextBumper CTOR wchar_t* / char* instead of ONLY requiring const SDKChar*
  • Tested (passed regtests) on vc++2k13, gcc47, gcc48, gcc49, clang++3.4, clang++3.5, and valgrind (one small thread warning I've had forever)
v2.0a82
2015-02-23
  • New Execution/WaitForIOReady class, and new IO/Network/IOWaitDispatcher
  • Began major restructuring of Thread Abort() support, in preparation for new Interupt() support. Very incomplete but many name changes, to faciliate this structural change. ThreadAbortExcetpion is now Thread::AbortException, and many APIs use the word Interrupt instead of Abort(). This SHOULD be so far - semaantics free, but doing a release here to test that.
  • new draft Execution::TimedLockGuard
  • Tested (passed regtests) on vc++2k13, gcc47, gcc48, gcc49, clang++3.4, clang++3.5, and valgrind (one small thread warning I've had forever)
v2.0a81
2015-02-18
  • Added optional FlushFlag support to BinaryFileOutputStream
  • got draft of Association working - but wrong API - really so far nearly identical to Mapping
  • LRUCache fixes: supprot Mapping with traits properly passing new compare funciton, cleanups, performance improvements
  • fixed bug with Mapping::Accumulate, and Mapping CTOR overload
  • Very little testing
v2.0a80
2015-02-12
  • possible fix bug with SignalHandlerRegistry::FirstPassSignalHandler_() - handling exceptions on thread which is being aborted
  • made BlockAllocator<T>::Deallocate (void* p): NOEXCEPT; and used new DoDeleteHandlingLocksExceptionsEtc_ to supress threadabort exceptions
  • Added StringBuilder::empty ()
  • Very little testing
v2.0a79
2015-02-11
  • Added new WaitableEvent::PeekIsSet () and better documented some details in WaitableEvent
  • cleanups to LRUCache to remove remnamts of old API/classes
  • Very little testing
v2.0a78
2015-02-11
  • Typo
v2.0a77
2015-02-11
  • Bugfixes with Traversal/DisjointDiscreteRange
  • use Synchonized<> with recursive mutex instead of nonrecursive mutext to avoid a flush deadlock in Execution::Logger
  • Very little testing
v2.0a76
2015-02-07
  • Draft of DisjointDiscreteRange<>::FindFirstThat/FindLastThat
  • Fixed small bug(s) with LRUCache due to recent change to using Optional internally; KeyType in its DefaultTraits, and ifdef out LRUCache_LEGACY_SOON2GO_
  • LRUCache clear() method overloads
  • Improved 'validateguards' support in SmallStackBuffer (fixed bug that not setup gaurds on X(X&) CTOR
  • Reimplemnted MeasureTextCache::CacheElt using new LRUCache code (cleanup)
  • Very little testing
v2.0a75
2015-02-02
  • Small fixes to TimedCache code.
v2.0a74
2015-02-02
  • Major refactoring of Optional<> code: adding back TRAITs, and using that to support plugable storage strategies (inline versus blockallocated), and documented better.
  • allow mutable Optional::peek () (not sure good idea)
  • String REGEXP improvements (really experiments). Still VERY INCHOATE. But added docs/example use cases and added those to regtests (as well as inline docs)
  • DisjointRange<T, RANGE_TYPE>::Format()
  • Tested (passed regtests) on vc++2k13, gcc47, gcc48, gcc49, clang++3.4, clang++3.5, and valgrind (one small thread warning I've had forever)
v2.0a73
2015-01-29
  • Minor CallerStalenessCache<> fixes, and docs, and similar for Mapping<>
  • SAFER fix for Array<> code - not using realloc(): eventually rewrite so sometimes uses this, or expand or some such. But for now - at least its SAFE!!! (thjough more costly) than what we had before
  • Turn back on qUseDirectlyEmbeddedDataInOptionalBackEndImpl_: safe now that we fixed above Array bug
  • started adding more SFINAE support from Stroustrup C++11 book, and used to tweak ComparerWithWellOrder::Compare() slightly
  • Tested (passed regtests) on vc++2k13, gcc47, gcc48, gcc49, clang++3.4, clang++3.5, and valgrind (one small thread warning I've had forever)
v2.0a72
2015-01-28
  • fixed re-entrancy bug(deadlock) in optional mutex debug checking (debug only issue)
v2.0a71
2015-01-27
  • Tests\HistoricalReferenceOutput\PerformanceDumps
  • Lose Iteartor<>::operator-&ht; NON_CONST overload returning non-const pointer
  • Various Optional<> changes:
    As checked in - now appears to work without crash in BLKQCL-Controller (still dont know exact proiblem)
    Turn qUseDirectlyEmbeddedDataInOptionalBackEndImpl_ off (which was key to working in BLKQCL-Controller)
    Use Holder_ to allow threadsafety checking
    Lose lots of non-const overloads and make API threadafe except for actual threadafety part)
    Lose TRAITS support
    Added ifdef(qStroika_Foundation_Debug_AssertionsChecked) - for now - fDebugMutex_ support
  • redo DiscreteRange() to not inherit from Iterable<> but have convert op, and experimental begin/end methods so can be used in iteration expressions
  • Tested (passed regtests) on vc++2k13, gcc47, gcc48, gcc49, clang++3.4, clang++3.5, and valgrind (one small thread warning I've had forever)
v2.0a70
2015-01-26
  • Attempted (mostly failed) to cleanup Debug::AssertExternallySynchronizedLock so we can save space used in release builds.
  • Many LRUCache<> improvements: new Elements() method, and improved/revised use of Debug::AssertExternallySynchronizedLock
  • Huge performance improvement (qUseDirectlyEmbeddedDataInOptionalBackEndImpl_)to Optional<> and performance regression tests for Optional.
  • Lose several deprecated functions/classes, like IRunnable, Lockable etc
  • DiscreteRange<> cleanups (private Iterable)
  • Large improvement to Range<>::Format
  • new Configuration::ScopedUseLocale
  • Minor misc progress on performance regtests (e.g. bufzize of Streams/TextInputStream::ReadAll)
  • Tested (passed regtests) on vc++2k13, gcc48, gcc49, clang++3.4, clang++3.5, and valgrind (one small thread warning I've had forever)[gcc47 didnt work, didnt investigate]
v2.0a69
2015-01-19
  • Added experimental Accumulate () API to Mapping
  • Major cleanups to ObjectVariantMapper, as well as performance improvements: DataExchange/ObjectVariantMapper added ToVariantMapperType/FromVariantMapperType typedefs, fixed MakeCommonSerializer_ support for C++ arrays, and big performance improvements (cache / re-use looked up converters)
  • Tested (passed regtests) on vc++2k13, gcc47, gcc48, gcc49, clang++3.4, clang++3.5, and valgrind (one small thread warning I've had forever)
v2.0a68
2015-01-15
  • Added new (draft) JSON readwrite and object-variant-mapper performacne test (and made 2.5x faster with below changes)
  • Started a variety of performance tweaks based on the realization that constructing codecvt_utf8 was extremely slow (so do statically) and can re-use it from different threads cuz with STL and const methods, this is guaranteed thread safe (see http://open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3797.pdf 17.6.5.9 Data race avoidance: A C++ standard library function shall not directly or indirectly modify objects (1.10) accessible by threads other than the current thread unless the objects are accessed directly or indirectly via the function’s non-const arguments, including this)
  • added begin/end to StringBuilder
  • Use StringBuilderand other tweaks in DataExchange/JSON/Writer for performance sake
  • Simplify Mapping<>/old legacy map<> usage in VariantValue
v2.0a67
2015-01-12
  • operator+= and operator-= support for Synchronized<T, TRAITS>
  • LRUCache: tiny improvements to StatsType, and mutex now defaults to Debug::AssertExternallySynchronizedLock
  • DoReThrow() overload with exception_ptr, and used in a few places
  • use new Thread::ThrowIfDoneWithException() in ProcessRunner::Run () so we propagate exception to caller
  • Used exception_ptr/current_exception in Thread class: added new Thread::ThrowIfDoneWithException() to support it;
  • Instruments/MountedFilesystemUsage now has (POSIX) capture_Process_Run_DF_ overloads to work with df when it returns an error (imperfect but improved)
  • Tested (passed regtests) on vc++2k13, gcc47, gcc48, gcc49, clang++3.4, clang++3.5, and valgrind (one small thread warning I've had forever)
v2.0a66
2015-01-11
  • Added WaitableEvent::WaitQueitly and WaitableEvent::WaitUntilQuietly
  • use Function<> in Thread class, and fixed enable_if CTOR for Thread
  • Tested (passed regtests) on vc++2k13, gcc47, gcc48, gcc49, clang++3.4, clang++3.5, and valgrind (one small thread warning I've had forever)
v2.0a65
2015-01-11
  • Minor fix to IRunnable backward compat Thread CTOR
v2.0a64
2015-01-11
  • LRUCache: fixed hash table size, and further name changes / refactoring.
  • Refactored operator== etc stuff outside of class members for Execution::Function, and suported nullptr
  • Added performacne test comparing IRunnable versus std::function, and based on that deprecated IRunnable, and switched to using std::function directly.
  • Refactored ThreadPool due to change in using std::function
  • Started adding qSUPPORT_LEGACY_SYNCHO to get rid of legacy syncho code
  • Added ObjectVariantMapper::MakeCommonSerializer_ (const Execution::Synchronized&) overload
  • Some SFINAE improvements to Optional<> operator== etc stuff - but still inadequate
  • Synchonized improvements, CTORs, Synchonized<>::load/store, etc
  • Tested (passed regtests) on vc++2k13, gcc47, gcc48, gcc49, clang++3.4, clang++3.5, and valgrind (one small thread warning I've had forever)
v2.0a63
2015-01-02
  • Remove deprecated Tokenize
  • Several improvements to DisjointRange/DisjointDiscreteRange (SFINAE, and bug fixes and new CTOR overloads)
  • Fixed Range::GetDistanceSpanned, and some related typename templating magic
  • DisjointDiscreteRange::Elements () - redid using Generator code - so should perform better
  • Tested (passed regtests) on vc++2k13, gcc47, gcc48, gcc49, clang++3.4, clang++3.5, and valgrind (one small thread warning I've had forever)
v2.0a62
2014-12-29
  • Fixup (name progress) on LRUCache and Synchonized (minor)
  • New DisjointRange, and DisjointDiscreteRange classes
  • New DiscreteRange::Elements() method, in preps for losing base class iterable
  • new draft BidirectionalIterator and RandomAccessIterator, with revised templating for Iterator to support this
  • restructuring operator==/!= etc for many classes, like Range, Iterator, etc, to support better LHS/RHS support
  • get rid of CodePageConverter::MapToUNICODE assertion
  • RangeTraits::ExplicitRangeTraitsWithoutMinMax<>::GetPrevious/GetNext()
  • Added overload of Iterable::FindFirstThat (const Iterator& startAt...
  • Added Sequence<T>::Insert (const Iterator& i, T item) overload
  • added TimingTrace helper (Debug module)
  • Synchonized<> uses recursive_mutex by default
v2.0a61
2014-12-20
  • Optional changes, including new CheckedValue, new strategy for operator== etc overloads, new use of Common::Equals....comarer, optimizations
  • use CheckForThreadAborting () in SpinLock::Yield_ ()
  • LRUCache name cleanups - migrating names to LEGACY_LRUCache ... etc as part of changeover
  • Renamed Synchonized to LEGACY_Synchonized to help conversion process
  • Improved EnumNames<> code, and fixed OffsetFromStart()
  • Completed operator XXXX revisions for String class
  • Tested (passed regtests) on vc++2k13, gcc47, gcc48, gcc49, clang++3.4, clang++3.5, and valgrind (one small thread warning I've had forever)
v2.0a60
2014-12-17
  • Patch release with fix for Queue<ENUM_TYPE>::length()
v2.0a59
2014-12-17
  • Patch release with fix for EnumNames<ENUM_TYPE>::PeekValue()
v2.0a58
2014-12-14
  • EnumNames<> constexpr support, as well as support for GetValue() and assertions to enforce CTOR arg order.
  • Experimental String operator== / etc support
  • MAJOR new code appraoch - experimental nu_Synchonized
  • operator bool Optional<>
  • qCompilerAndStdLib_constexpr_StaticDataMember_Buggy
  • constexpr Version support
  • Tested (passed regtests) on vc++2k13, gcc47, gcc48, gcc49, clang++3.4, clang++3.5, and valgrind (one small thread warning I've had forever)
v2.0a57
2014-12-06
  • Fixed Bits assertion checks
  • Lose deprecated functions
  • New IO::Network::Platoform::Windows::WinSock module to share code, and make easier to override startup
  • variadic template pass extra params to make_unique_lock
  • Ran most regtests (including valgrind)
v2.0a56
2014-12-04
  • Configuration::EnumNames constexpr improevements
  • DateRange difftype is duration
  • Quickie mini-release with limited testing, due to workaround for FileAccessMode Configuration::EnumNames code
v2.0a55
2014-12-01
  • Minor URL class cleanups (name changes, docs etc)
  • New Configuration::Endian support
  • New IO::Neworking::DNS module
  • Placeholder for new Set_SparseArray, and Sequence_ChunkedArray
  • Socket code cleanups (and fixes)
  • Added experimental const T* CTOR (explicit) for Optional
  • Lose some deprecated functions
  • ThirdPartyProducts makefile cleanups, including LOSE doxygen - just use system installed version
  • Incomplete attempts at getting constexpr working for EnumNames<> template. But at least got FileAccessMode table created before main, to workaround bug / issue with HealthFrameWorksServer, which generates calls to this dumptrace code before main()
  • Quickie mini-release with limited testing, due to workaround for FileAccessMode EnumNames code
v2.0a54
2014-11-23
  • Updated to support Visual Studio.net 2k13 Update 4. Ran those regtests, but thats all that changed so just release.
v2.0a53
2014-11-22
  • Lose LeakChecker module, and DEBUG_NEW. It caused troubles, and was on balance not worth the trouble. On unix Valgrind seems to work well, and for windows, I can try Dr Memory (http://drmemory.org/)
  • renamed Iterator2Address -> Iterator2Pointer (and fixed)
  • Stricter CTOR for ExternallyOwnedMemoryBinaryInputStream
  • new and use more Stroika_Foundation_IO_FileAccessException_CATCH_REBIND_... to improve error message reporting
  • Configuration::EnumNames cleanups (and more use)
  • default type args for String2Int template
  • Lose DEBUG_NEW and LeackChecker module
  • nu_LRUCache - started LARGE revisions
  • new TimeZone support
  • Improved SystemConfigruation stats gathering code (linux)
  • tweaks to Duration::PrintAge code
  • Tested (passed regtests) on vc++2k13, gcc47, gcc48, gcc49, clang++3.4, clang++3.5, and valgrind (one small thread warning I've had forever)
v2.0a52
2014-11-15
  • Added Set\::RemoveIf
  • SystemPerformance/Instruments/ProcessDetails minor improvements (like Options argument) - prelim
  • Renamed DataExchange::CharacterDelimitedLines::Reader::ReadAs2DArray to DataExchange::CharacterDelimitedLines::Reader::ReadMatrix
  • URL cleanups - relating to parsing. Migrated OLD_Cracker to regtests; parse cleanups to URL, incliuding new URL::eStroikaPre20a50BackCompatMode
  • Instrument now aggregates ObjectVariantMapper code and used that to provide nice CaptureOnce() method(s)
  • Very modest/incomplete testing
v2.0a51
2014-11-10
  • Added Optional<>::AssignIf(), and fixed Optional::Compare() code - including != etc - to work with synchonized Optional's by using an extra layer of member templates.
  • Refactored SystemPerformance::Instruments::ProcessDetails code
  • Fixes to SystemPerformance::Instruments::MountedFileSystem code
  • Implemented new SystemPerformance::Instruments::Memory code
  • New String::Tokenize() API and deprecated older Characters::Tokenize() API
  • New DataExchange::CharacterDelimitedLines reader
  • Docs
  • new BinaryFileInputStream::mk helper, to simplify buffering. And added support for not-seekable
  • Major rework of InternetAddress code: constexpr support, more constructors, fixed/documented net/host byte order issues, and support for IPv6, and better Compare behavior, and accessors for IPv4 octets.
  • Small fixes to Range::CTOR templating
  • Regression tests and better docs for Math::Rebin code
  • Fixes to Network/Interfaces code for Linux, and GetInterfaces() impl for Windows: many new fields - much improved
  • Added SocketAddress overload taking WINDOWS SOCKET_ADDRESS
  • Tested (passed regtests) on vc++2k13, gcc47, gcc48, gcc49, clang++3.4, clang++3.5, and valgrind (one small thread warning I've had forever)
v2.0a50
2014-10-30
  • Makefile cleanups, so make -j N works pretty well, $(MAKE), and much less noisy builds of most third-party-libs, losing a few more perl scripts. Also new GetDefaultConfiguration.pl and PrintConfigurationVariable.pl script in makefiles (work towards support of multiple configs)
  • Suport gcc-4.9, and clang++-3.5
  • use 1.0.1j openssl
  • Execution::ProcessRunner imporvements, including (incompatible) String args (instead of SDKString). Also, POSIX use waitpid() - still not 100% right but much closer, and throws if child returns status nonzero.
  • DataExchange::INI::Reader bug fix (last named section was lost)
  • Started Framework_SystemPerformance_Instrumemnts_Memory
  • SystemPerformance/Instruments/MountedFilesystemUsage supports Collect…ion{VolumeInfo}
  • GetTimezone/IsDaylightSavings time fixes
  • more explicit DataExchange::CheckedConverter{Characters::String,
  • cleanups to CheckedConverter_ValueInRange
  • forward inlines for Synchonized{String}...
  • chrono::duration better integration with Stroika...Time::Duration
  • Tested (passed regtests) on vc++2k13, gcc47, gcc48, gcc49, clang++3.4, clang++3.5, and valgrind (one small thread warning I've had forever)
v2.0a49
2014-10-20
  • Fixed dangerous deadlock bug with ProcessRunner(). (POSIX ONLY).
v2.0a48
2014-10-19
  • Refactored Configuration::Platform code into new Configuration::SystemConfiguration::OperatingSystem, and added tons of functionaly to the reset of Configuration::SystemConfiguration
  • Several VariantValue improvements, including move constructors, and improved documentation and behavior on the various As converters
  • Improvements to the POSIX ProcessRunner code - so closes unused (above 3 file) descriptors, and fixed fd leak, and other cleanups
  • Set::AddIf()
  • Better exception logging for DataExchange::BadFormatException
  • Experiemental ObjectVariantMapper class support for ArrayElementHandling
  • std::hash cleanups/docs my hash code
  • Doc file scope / static Stroika Strings and regtest
  • New String support for String::FromNarrowString () and String::AsNarrowString ()
  • removed deprecated ExceptionPropagate code - intead use make_excpetion_ptr/current_exception
  • minor cleanups to FileSystem::WellKnownLocations code (docs) and addition of FileSystem::WellKnownLocations::GetSpoolDirectory ()
  • StringException now inherites from std::exception
  • Map windows ERROR_ACCESS_DENIED to throw IO::FileAccessException ()
  • Quite a few libcurl makefile cleanups
  • Fixed serious bug with FileSystem::Access() check function (bacwards perm check)
  • SystemPerformance/Instruments/ProcessDetails revisions to reduce dbgtrace noise about access errors (e.g. running as lewis and opening process data for root)
  • Tested MSVC.net 2k13Update 3, gcc47, gcc48, clang++ 3.4, and valgrind (just one longstanding issue with leak/thread/rare)
v2.0a47
2014-10-08
  • Spotty here and there progress on new Synchonized<> deisgn - a few more methods forwarded (Set/?)
  • Major improvements to IO/Network/Transfer/Client code: especially libcurl code. Supported PUT and POST, and much improved the regression tests for these. Used BLOBs and nicely integrated Streams (and added some notes on future stream enhancements).
  • enhanced use of constexpr in a number of modules
  • Traversal::Iterator2Address
  • Small Stream improvements, like TextInputStream::ReadAll() using StringBuilder
  • Minor improvements to SmallStackBuffer and StringBuilder
  • Tested with clang++, gcc48, gcc47, msvc2k13-update3, and clean report card (one minor issue) from VALGRIND
v2.0a46
2014-09-28
  • Improved constexpr support, mostly with Time::Date/DateTime/etc..., as well as Math::Angle
  • Big change to Execution::Synchronized: instead of subclass use aggregation and operator T () conversion operator.
  • Small cleanups to Range/DiscreteRange
  • proto / 1/2 done build support improvements, tried out with libcurl - so can say --libcurl=no, or buildonly or build or usesystem
v2.0a45
2014-09-08
  • Fixed typo
v2.0a44
2014-09-08
  • Tweak Range<> template
  • Fixed small bug with Logger / syslog / error priority
v2.0a43
2014-09-07
  • Improved use of constexpr functions - especially to Range and DiscreteRange classes.
  • Improved Math::ReBin() code.
  • DiscreteRange versions of some functions from Range() - except return DiscreteRange.
  • STDCPP_VERSION_FLAG / ECHO_BUILD_LINES makefile
  • Modest progress (and testing) on Synchonized templates
  • Guards (debug) for SmallStackBuffer
  • Passed regtests on clang++ 3.4, g++-4.7, g++-4.8, msvc.net 2k13 update 3, and re-ran performance tests (and saved as reference)
v2.0a42
2014-09-03
  • Small fixes for portability of last release (#includes)
  • SpinLock::try_lock() support, and use SpinLock in several more places (since faster)
  • Added CallerStalenessCache<>::Lookup() overload
  • constexpr functions in Configuration::Enumeration
  • Still no significant testing (excepted tested no perf regressions from spinlock/etc changes)
v2.0a41
2014-09-02
  • Partial prototype of major new Synchonized<> template design
    • Containers::Optional deprecated
    • Decent Sychonized> impl to replace it
    • Placeholder so I can experiement with usage for Synchonized>, Synchonized, etc... most other containers
  • make_unique_lock, and qCompilerAndStdLib_make_unique_lock_IsSlow MACRO_LOCK_GUARD_CONTEXT
  • Duration::PrettyPrintAge
  • constexpr usage in Memory::Bits code
  • Many improvements to POSIX procfs ProcessDetails SystemMonitor module. Now does a usable job of capturing process statistics (for analytiqa).
v2.0a40
2014-08-08
  • Support for MSVC 2k13 Update 3, and other cleanups to Compiler bug defines.
  • Practically no testing for this release
v2.0a39
2014-08-06
  • Simple (POSIX ONLY for now) implementation of Network Interfaces, and enumerator to list interfaces (and address bindings and status)
v2.0a38
2014-08-06
  • More cleanups (BLOB overloads) of the Cryptography code
  • Practically no testing for this release
v2.0a37
2014-08-05
  • More cleanups and simplifications of the Cryptography Digest code
  • Practically no testing for this release
v2.0a36
2014-08-05
  • Major cleanups (not all backwards compatible) with the SystemPerformance framework. This includes a new (incomplete but usable on linux) ProcessDetails instrument (using procfs).
  • Linux implementation of ResolveShortcut()
  • BinaryStream and String minor additions, and cleanup of OptionsFile
  • Cleanups (optional members and explicit type register and better merge) for ObjectVariantMapper
  • Major cleanup/refactoring of Cryptography (esp Digest/Hash code)
  • Lots of work adding stuff to github issues database
  • Practically no testing for this release
v2.0a35
2014-07-10
  • Many improvements to OptionsFile code, including version/upgrade support, better message handling, and much more.
  • Fixed bug with POSIX DirectoryIterator/DirectoryIterable
  • Essentially no testing of this release
v2.0a33
2014-07-07
  • Fixed POSIX bug with DirectoryIterator/DirectoryIterable
  • OptionsFile improvements (logerror/logwarning, file suffixes)
  • Makefile / build tweaks, including progress on mkae skel, qStroika_HasComponent_zlib, and ENABLE_GLIBCXX_DEBUG configurability not strictly implied by enable-assertions, and small improvement to make clobber (still wrong)
  • Minimal testing
v2.0a32
2014-07-03
  • Makefile tweaks (lose runastyle.pl - do directly in makefile)
  • Fixed Execution::ParseCommandLine() implementation to support quotes
  • Minor improveemnts to String::CircularSubString, and helpers to StringBuilder
  • Minor Iterator<> performance tweeks (cget instead of get to avoid clone)
  • New DirectoryIterator/DirectoryIterable File support classes - DirectoryContentsIterator ALMOST deprecated
  • Passed gcc48-x64/valgrind regtests, and clang++
v2.0a31
2014-06-29
  • A variety of fixes to Range<> code - most notably supporting data-parameterized openness on endpoints.
  • Improved Configuration::EnumNames - so can call GetName()
  • Did only modest testing (clang++, gcc47,gcc48 and msvc2k13 passed regtests)
  • Passed gcc48-x64/valgrind regtests
v2.0a30
2014-06-24
  • Fixed deadlock in Containers::Optional<>::operator*
v2.0a29
2014-06-23
  • Quite a few improvements to UPnP SSDP code (especailly SearchListener) - fixing issues with case sensatity on compares, advertising devicetypes, and fixing ST/NT usage.
  • New Configuration::Platform module - essentially reporting OS version (primitive but portable)
  • Fixed bug with varargs and Logger::Log() code
  • A variety of (mostly linux) makefile improvements - so you can now rebuild without getting messed up .a files - and no longer need to make clean/clobber
  • ObjectVariantMapper improvements - Container::Optional, Collection, SortedCollection, SortedSet, and a few others. Also - refactoring to make it simpler
  • socket_storage fix to SocketAddress class
  • Fixed bug with missing Containers::Optional<>::operator*
  • Added compare operators for InternetAddress (so can be stored in maps etc)
  • Tested with clang++, gcc48, msvc2k13, and clean report card (one minor issue) from VALGRIND
v2.0a28
2014-06-11
  • Logger::WouldLog
  • Mapping no longer requires operator== for VALUE_TYPE () - but at a slight cost for Equals() comparisons on entire Mapping
  • ObjectVariantMapper now supports optional preflight phase on each object reader for a CLASS (user defined type) - to implement backward comatability/schema changing for a type
  • Very little tested
v2.0a27
2014-06-04
  • Two bugfixes to ProcessRunner () - Windows. And when writing emty string to process dont stick BOM on front end
  • String::LimitLength() overload that takes ellipsis string arg
  • Little tested
v2.0a26
2014-05-31
  • Quite a few Logger class improvements, including better numbering of priorities, buffering of output, automatic duplication suppression, and respect of min/max logger priority (automatic filtering).
  • Experiemental new EnumNames
  • Fixed thread priority support for POSIX threads
  • New experimental threadsafe Containers::Optional, and minor fixes to Memory::Optional
  • Minor tweaks to BlockingQueue code
  • Little tested
v2.0a25
2014-05-29
  • Minor fix to CallerStalenessCache
v2.0a24
2014-05-29
  • Minor tweaks to Time::Duration (new CTOR); and DataExchange::CheckedConverter<>.
  • New CallerStalenessCache.
  • OpenSSL 1.0.1g (post heartbleed)
  • Lose some earlier deprecated functions
  • Very little change, and largely untested.
v2.0a23
2014-05-26
  • _MS_VS_2k13_Update2_FULLVER_ Visual Studio.net 2013 Update 2 compiler defines and re-ran tests.
  • A few other minor tweaks to ObjectVariantMapper
v2.0a22
2014-04-25
  • Major Rework of thread-safety appraoch. This extends throughout the memory and Execution and Containers and Characters/Strings classes. Overall, this was neutral to performance, but intrinsicially slowed things down about 3x to 10x. However, I paired the changes with other performance optimizations to make up. See the tests/Performance regtest (now #46) for details.
  • Tons of further string performance/threading cleanups
    • Renamed String_ExternalMemoryOwnership_ApplicationLifetime_ReadOnly to String_ExternalMemoryOwnership_ApplicationLifetime and String_ExternalMemoryOwnership_StackLifetime_ReadOnly to String_ExternalMemoryOwnership_StackLifetime
    • String::InsertAt() deprecated, and new (temporary) String::InsertAt_nu which returns String object.
  • Tons of Iterable/Container thread safety fixes. These currently have a good deal of overhead (performance), and we need to fix that. But better they be correct, and then fast. Still alot more work todo just DOCUMENTING the thread-safety issues. And I did a ton to ameliorate/counter-act the performance overhead of the memory barriers. Containers and strings are Slightly slower than with v2.0a21, but only slightly. And I've docuemented quite a few more things which I hope will further improve performance, while retaining thread safety.
  • Refactor Containers/Private/DataStructures to Containers/ExternallySynchonizedDataStructures (experimental)
  • New Containers/UpdatableIterbale - part of thread safety fixes)
  • Deprecated WaitTimedOutException in place of new improved TimeOutException, and ThrowTimeoutExceptionAfter is now templated
  • SpinLock does yield
  • qStroika_Foundation_Traveral_IterableUsesSharedFromThis_ , and use Memory::SharedPtr (and enable_shared_from_this) in several ther classes like BLOB - as a performance tweak
  • qStroika_Foundation_Memory_SharedByValue_DefaultToThreadsafeEnvelope_ - even though now is big performance sink, probably best in the long run
  • Renamed Execution::ExternallySynchronizedLock to Debug::AssertExternallySynchronizedLock
  • Lose TRAITS support from Stack<>, Queue<>, and Deque<>, since simpler, and only needed for equals(). Instead, use Equals tempalte param on Equals<> method
  • New DataStructures/OptionsFile
v2.0a21
2014-03-12
  • Updated license to MIT license (at least tentatively - Sterl thinks this is best)
  • New Execution::SpinLock.
    • Used in BlockAllocated<> - made a big speedup of regtests (apx 20-100%)
  • New DataExchage::INI file support
  • BlockAllocation-related cleanups - renamed BlockAllocated<> to AutomaticallyBlockAllocated<> and added ManuallyBlockAllocated<>. Other related cleanups.
  • Revived SharedPtr<> template (faster, and maybe add future threadsafety option)
  • String class changes
    • Moving to IMMUTABLE backend design - like Java/C#
    • Deprecated String::Remove, and String::RemoveAt - not because really going away, but because changing API to return a new string and this will make it easier to avoid code subtly depending on old behavior. DO switch next release.
    • SubString() used to have default second arg: instead overload of 2 versions. NOT BACKWARD COMPAT if someone passed a value > end of string to second arg - now assert error!
    • tons string classlib improvemnts - maybe fix threadsafty issue
    • Lots of performance improvements on string classlib
    • Deprecated several concrete subclasses (because going to immutable string design), and use StringBuilder instead
    • New StringBuilder class
  • Fixed long-standing bug with canceling a thread while its starting another. Minor issue but I think that was causing some failures of regtests - especailly test 34/threads/gcc/linux (clang++ issue is another issue)
  • New Execution::ExternallySynchronizedLock class
  • Stroika performance measurements tool and regression test. Little done to improve performance, but at least now we have baseline measurements of some key benchmarks. Motivated by neeed to evaluate costs of String threadsafety.
  • Math::ReBin() draft
  • Duration/Time/etc Range () code now fixed for 'startup before main()' races, and todo comments on how to fix more performantly in the future
  • SetStandardCrashHandlerSignals() incompatable second argument changes, and improved/factoring
  • Duration::PrettyPrint and Lingustics/Word Pluralize etc all use new String class (instead of std::wstring/string). This isn't backward comptable, but close. (so we can use String_Constant in more places).
  • Implemented Mapping<>::Keys () and added regtest for it
v2.0a20
2014-02-09
  • Move String_Constant to its own file in Characters/String_Constant.h. Use of Characters::Concrete::String_Constant is deprecated. Generally this is fixed by just changing #include of Concrete/String_ExternalMemoryOwnership_ApplicationLifetime_ReadOnly.h to String_Constant.h
  • WaitableEvent changes:
    • WaitableEvent now requires a parameter indicating auto-reset or manual reset.
    • New experimental WaitableEvent::WaitForAny*
  • new Function<> object - like std::function - but can be used for callbacks
  • String class - progress on - but mostly docs - on envelope thread safety
  • Sequence no longer has TRAITS support - I decided it was simpler to just pass in equals comparer on methods that needed it (template param) - rationale documented in class docs header.
  • SystemPerformance framework
    • Variety of framework clenaups so a more respectable first draft
    • SystemPerformance Client now works well
    • New Capturer module - used in SystemPerformance Client to demonstrate. Incomplete, but usable.
  • Factored String2Int<>, HexString2Int(), ... to String2Int.h; String2Float<> to String2Float.h, and Float2String<>(and its related options class) to Float2String.h
  • Fixed POSIX GetTickCount() to use monotonic clock
  • Characters::StripTrailingCharIfAny deprecated and new String methods to support replacement
v2.0a19
2014-02-02
  • Started SystemPerformance framework (mostly placeholders)
  • Started Containers Association, SortedAssociation, and Bag (just placeholders)
  • New DataExchange::Atom
  • Renamed Execution::Event -> Execution::WaitableEvent (old name around but deprecated)
  • Draft of AbortableMutex (and list things todo); Lose lose qEVENT_GCCTHREADS_LINUX_WAITBUG, and fixed Event (WaitableEvent) class. Net effect is making Thread::AbortAndWaitTilDone() much faster. Lots of related docs/things todo
  • ThreadPool clenaups
  • make run-tests VALGRIND=1
    • default suppression file - not perfect results, but good
    • Alot of work here to cleanup valgrind results
    • Cleanup issues with Trace code (module init startup)
    • Now just two problem areas
  • make run-tests (makefile cleanups +) REMOTE= (so can run via ssh on remote host)
  • Renamed Tally<> to MultiSet<>
  • Iterator/Iterable cleanups (much docs) - but also deprecated ApplyStatic (use Apply), and deprecated ApplyUntilTrue, and ApplyUntilTrueStatic (use FindFirstThat).
  • Major speed tweeks (Iterable::Apply/FindFirstThat, and things that use it, and fix to String memory optimization qString_Private_BufferedStringRep_UseBlockAllocatedForSmallBufStrings).
  • CopyableMutex is deprecated
v2.0a18
2014-01-24
  • renamed Stroika/Foundation/IO/Network/NetworkInterfaces.h to Stroika/Foundation/IO/Network/LinkMonitor.h, and added new feature to monitor network connections, and used this to improve the stability / robustness of SSDP server support.
  • Leveraging new IteratorOwner code, major backend-refactoring of how we manage patching of iterators associated with a container to fix a long standing bug (that iterators must be associated with originating owner to preseve proper semantics). That allowed fixing / cleaning up code in Tally<> - that had workarounds for this. (note - there was nothing special about Tally<> excpet that it was the first place I implemented sub-iterators, where you have an Elements and UniqueElements() iterable that were trivial wrappers on the original base iterator).
  • Many refinements to SharedByValue code, including variadic template use to forward extra paraemters to Copy, and more sophisticated use of r-value references and noexcept.
  • Started adding ...Iterators have a new owner (aka iterable/container) property and refined Equals() semantics
  • Lots of cleanups of threads and signal handling code. Improved supression of abort. Improved impl and docs on 'alertable' stuff for WinDoze. thread_local with std::atomic/volatile.
  • Significant cleanup of templates/containers - using 'using =' etc
v2.0a17
2014-01-10
  • Fixed bug with Thread::SuppressAbortInContext
v2.0a16
2014-01-10
  • Minor
v2.0a15
2014-01-10
  • Progress on makefile re-vamping
  • OpenSSL 1.0.1f
  • Important new Thread::SuppressAbortInContext - feature to avoid a class of thread cleanup bugs
v2.0a14
2014-01-08
  • Minor
v2.0a13
2014-01-08
  • New 'safe signals' mechanism. This is not widely used, but is used in Services Framework, so users of the services framework (or anyone using safe signals) should add:
        Execution::SignalHandlerRegistry::SafeSignalsManager    safeSignals;
    
    to main(int argc, const char\* argv[])
  • Lose legacy nativive/pthread etc thread support (just C++-thread integration).
  • Use zlib 1.2.8
  • Experimental new ContainsWith() and EachWith()