Skip to content

v1.0.0

Choose a tag to compare

@dasmig dasmig released this 13 Oct 00:29
· 30 commits to main since this release

First release. Religion by country, and hobbies and favourite film, game, book and music genres by sex, age and country, built on dasmig-core 1.0.0.

Added

  • dasmig::intg (dasmig/interestgen.hpp): get_interest(interest_request), with (request, seed) and shorthands for a country, a seed or neither. interest_request{country, age, person_sex, hobbies, media}; every field is optional.
  • interest: country_code, religion, religion_group, hobbies, films, games, books, music, to_json(), signature(), seed().
  • Five layered tables (religion, interests, affinity, age_bands, regions), extended with extend() / extend_from_string(table, ...); a directory layer applies to all its tables or none.
  • lite (195 countries, 104 hobbies and genres) and full (248 countries, 188 items) tiers; DASMIG_INTEREST_EMBED compiles lite in.
  • Known-answer tests identical on clang 18 (libc++), gcc 14 (x86-64 with FMA, ARM64), Apple clang (ARM64), MSVC and Emscripten.

Data: read before relying on it

  • Religion comes from the CIA World Factbook (public domain; frozen copy, the CIA closed it in Feb 2026). 13 countries' shares are rough estimates, not citations (basis = approximate; listed in doc/data.md).
  • Measured: the sex, age and country differences for 17 activity classes, from Eurostat time-use surveys (22 European countries, 2000 and 2010). They are applied worldwide.
  • Curated: the hobby and genre catalogue, base popularities, factors for children under 15, genre tastes by sex and age, regional tastes and religion factors. These are plausible generalisations, not fitted to data. Each factor row's basis says which.
  • US ATUS is not included (the Bureau of Labor Statistics blocks scripted downloads).

See Data and Method for every column's source and the model's limits.