Hacker GitHub

← All repos

camel-cdr/cauldron

View on GitHub ↗ ★ 145 C

A collection of single-file C libraries. (generic containers, random number generation, argument parsing and other functionalities)

9 mentions on Hacker News by 2 people: 2 stories, 7 comments · first 2021-01-31 · latest 2025-07-26

Mentions per year 9 mentions · busiest year 2023 (5)
20082026
  1. Here is my version of this concept, I tried to keep it as simple as possible: https://github.com/camel-cdr/cauldron/blob/main/cauldron/str...
    comment by camel-cdr · 2025-07-26 · in Generic Containers in C: Vec
  2. …learns how IEEE 754 works. [1] http://mumble.net/~campbell/2014/04/28/uniform-random-float [2] https://github.com/camel-cdr/cauldron/blob/a673553dd7925b0f1...
    comment by glkindlmann · 2025-06-02 · in Show HN: Fast Random Library for C++17
  3. …floating-point value with a probability proportional to the covered real number range*: https://github.com/camel-cdr/cauldron/blob/main/cauldron/ran... * Well, almost. I messed up the probability around subnormals slightly and haven't…
    comment by camel-cdr · 2025-05-07 · in Perfect Random Floating-Point Numbers
  4. …but it doesn't handle subnormals correctly. I've yet to find the time to revisit the problem. [0] https://github.com/camel-cdr/cauldron/blob/main/cauldron/ran...
    comment by camel-cdr · 2023-10-18 · in Higher quality random floats
  5. …subnormals, with the proper probability, and does so quickly for any choice of a and b. [0] [0] https://github.com/camel-cdr/cauldron/blob/main/cauldron/ran...
  6. …I did all I could think of to test it [2] [1] https://youtube.com/watch?v=VHJUlRiRDCY&t=2774s [2] https://github.com/camel-cdr/cauldron/blob/main/cauldron/ran...
    comment by camel-cdr · 2023-02-17 · in A Brief History of Random Numbers
  7. …you would need to register all print functions in a global macro. This is just a proof of concept: https://github.com/camel-cdr/cauldron/blob/main/ideas/fmt.c
    comment by camel-cdr · 2023-02-13 · in Let's implement buffered, formatted output